Generate a dummy 'Fedora' fedora.img in images directory for use by tests.
[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-08 15:50+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-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29
26 #: ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32
34 #: ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
38 msgid "NAME"
39 msgstr "名前"
40
41 # type: textblock
42 #: ../src/guestfs.pod:5
43 msgid "guestfs - Library for accessing and modifying virtual machine images"
44 msgstr ""
45
46 # type: =head1
47 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
48 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
49 #: ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36
50 #: ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35
53 #: ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
54 msgid "SYNOPSIS"
55 msgstr ""
56
57 # type: verbatim
58 #: ../src/guestfs.pod:9
59 #, no-wrap
60 msgid ""
61 " #include <guestfs.h>\n"
62 " \n"
63 msgstr ""
64
65 # type: verbatim
66 #: ../src/guestfs.pod:11
67 #, no-wrap
68 msgid ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_sync (g);\n"
76 " guestfs_close (g);\n"
77 "\n"
78 msgstr ""
79
80 # type: verbatim
81 #: ../src/guestfs.pod:20
82 #, no-wrap
83 msgid ""
84 " cc prog.c -o prog -lguestfs\n"
85 "or:\n"
86 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
87 "\n"
88 msgstr ""
89
90 # type: =head1
91 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
92 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
93 #: ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50
94 #: ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51
97 #: ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 # type: textblock
102 #: ../src/guestfs.pod:26
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 # type: textblock
113 #: ../src/guestfs.pod:34
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:39
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 # type: textblock
130 #: ../src/guestfs.pod:44
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 # type: textblock
139 #: ../src/guestfs.pod:49
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 # type: textblock
146 #: ../src/guestfs.pod:52
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 # type: =head1
153 #: ../src/guestfs.pod:55
154 msgid "API OVERVIEW"
155 msgstr ""
156
157 # type: textblock
158 #: ../src/guestfs.pod:57
159 msgid ""
160 "This section provides a gentler overview of the libguestfs API.  We also try "
161 "to group API calls together, where that may not be obvious from reading "
162 "about the individual calls in the main section of this manual."
163 msgstr ""
164
165 # type: =head2
166 #: ../src/guestfs.pod:62
167 msgid "HANDLES"
168 msgstr ""
169
170 # type: textblock
171 #: ../src/guestfs.pod:64
172 msgid ""
173 "Before you can use libguestfs calls, you have to create a handle.  Then you "
174 "must add at least one disk image to the handle, followed by launching the "
175 "handle, then performing whatever operations you want, and finally closing "
176 "the handle.  By convention we use the single letter C<g> for the name of the "
177 "handle variable, although of course you can use any name you want."
178 msgstr ""
179
180 # type: textblock
181 #: ../src/guestfs.pod:71
182 msgid "The general structure of all libguestfs-using programs looks like this:"
183 msgstr ""
184
185 # type: verbatim
186 #: ../src/guestfs.pod:74
187 #, no-wrap
188 msgid ""
189 " guestfs_h *g = guestfs_create ();\n"
190 " \n"
191 msgstr ""
192
193 # type: verbatim
194 #: ../src/guestfs.pod:76
195 #, no-wrap
196 msgid ""
197 " /* Call guestfs_add_drive additional times if there are\n"
198 "  * multiple disk images.\n"
199 "  */\n"
200 " guestfs_add_drive (g, \"guest.img\");\n"
201 " \n"
202 msgstr ""
203
204 # type: verbatim
205 #: ../src/guestfs.pod:81
206 #, no-wrap
207 msgid ""
208 " /* Most manipulation calls won't work until you've launched\n"
209 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
210 "  * and _before_ other commands.\n"
211 "  */\n"
212 " guestfs_launch (g);\n"
213 " \n"
214 msgstr ""
215
216 # type: verbatim
217 #: ../src/guestfs.pod:87
218 #, no-wrap
219 msgid ""
220 " /* Now you can examine what partitions, LVs etc are available.\n"
221 "  */\n"
222 " char **partitions = guestfs_list_partitions (g);\n"
223 " char **logvols = guestfs_lvs (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #: ../src/guestfs.pod:92
229 #, no-wrap
230 msgid ""
231 " /* To access a filesystem in the image, you must mount it.\n"
232 "  */\n"
233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:96
239 #, no-wrap
240 msgid ""
241 " /* Now you can perform filesystem actions on the guest\n"
242 "  * disk image.\n"
243 "  */\n"
244 " guestfs_touch (g, \"/hello\");\n"
245 " \n"
246 msgstr ""
247
248 # type: verbatim
249 #: ../src/guestfs.pod:101
250 #, no-wrap
251 msgid ""
252 " /* You only need to call guestfs_sync if you have made\n"
253 "  * changes to the guest image.  (But if you've made changes\n"
254 "  * then you *must* sync).  See also: guestfs_umount and\n"
255 "  * guestfs_umount_all calls.\n"
256 "  */\n"
257 " guestfs_sync (g);\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #: ../src/guestfs.pod:108
263 #, no-wrap
264 msgid ""
265 " /* Close the handle 'g'. */\n"
266 " guestfs_close (g);\n"
267 "\n"
268 msgstr ""
269
270 # type: textblock
271 #: ../src/guestfs.pod:111
272 msgid ""
273 "The code above doesn't include any error checking.  In real code you should "
274 "check return values carefully for errors.  In general all functions that "
275 "return integers return C<-1> on error, and all functions that return "
276 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
277 "how to handle errors, and consult the documentation for each function call "
278 "below to see precisely how they return error indications."
279 msgstr ""
280
281 # type: =head2
282 #: ../src/guestfs.pod:119
283 msgid "DISK IMAGES"
284 msgstr ""
285
286 # type: textblock
287 #: ../src/guestfs.pod:121
288 msgid ""
289 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
290 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
291 "actual block device, or simply an empty file of zeroes that you have created "
292 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
293 "of these."
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:127
298 msgid ""
299 "The call you should use in modern code for adding drives is L</"
300 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
301 "specifying that the format is raw, do:"
302 msgstr ""
303
304 # type: verbatim
305 #: ../src/guestfs.pod:131
306 #, no-wrap
307 msgid ""
308 " guestfs_add_drive_opts (g, filename,\n"
309 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
310 "                         -1);\n"
311 "\n"
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:135
316 msgid "You can add a disk read-only using:"
317 msgstr ""
318
319 # type: verbatim
320 #: ../src/guestfs.pod:137
321 #, no-wrap
322 msgid ""
323 " guestfs_add_drive_opts (g, filename,\n"
324 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
325 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
326 "                         -1);\n"
327 "\n"
328 msgstr ""
329
330 # type: textblock
331 #: ../src/guestfs.pod:142
332 msgid ""
333 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
334 "libguestfs won't modify the file."
335 msgstr ""
336
337 # type: textblock
338 #: ../src/guestfs.pod:145
339 msgid ""
340 "Be extremely cautious if the disk image is in use, eg. if it is being used "
341 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
342 "corruption, but adding it read-only is safe."
343 msgstr ""
344
345 # type: textblock
346 #: ../src/guestfs.pod:149
347 msgid ""
348 "You must add at least one disk image, and you may add multiple disk images.  "
349 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
350 "first one you added), C</dev/sdb> (for the second one you added), etc."
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
357 "can call L</guestfs_list_devices> to get a list of the device names, in the "
358 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
359 msgstr ""
360
361 # type: =head2
362 #: ../src/guestfs.pod:159
363 msgid "MOUNTING"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:161
368 msgid ""
369 "Before you can read or write files, create directories and so on in a disk "
370 "image that contains filesystems, you have to mount those filesystems using "
371 "L</guestfs_mount>.  If you already know that a disk image contains (for "
372 "example) one partition with a filesystem on that partition, then you can "
373 "mount it directly:"
374 msgstr ""
375
376 # type: verbatim
377 #: ../src/guestfs.pod:167
378 #, no-wrap
379 msgid ""
380 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
381 "\n"
382 msgstr ""
383
384 # type: textblock
385 #: ../src/guestfs.pod:169
386 msgid ""
387 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
388 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
389 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
390 msgstr ""
391
392 # type: textblock
393 #: ../src/guestfs.pod:173
394 msgid ""
395 "If you are given a disk image and you don't know what it contains then you "
396 "have to find out.  Libguestfs can do that too: use L</"
397 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
398 "LVs, and either try mounting each to see what is mountable, or else examine "
399 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
400 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
401 "you might find it easier to look at higher level programs built on top of "
402 "libguestfs, in particular L<virt-inspector(1)>."
403 msgstr ""
404
405 # type: textblock
406 #: ../src/guestfs.pod:183
407 msgid ""
408 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
409 "several other variations of the C<guestfs_mount_*> call."
410 msgstr ""
411
412 # type: =head2
413 #: ../src/guestfs.pod:186
414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:188
419 msgid ""
420 "The majority of the libguestfs API consists of fairly low-level calls for "
421 "accessing and modifying the files, directories, symlinks etc on mounted "
422 "filesystems.  There are over a hundred such calls which you can find listed "
423 "in detail below in this man page, and we don't even pretend to cover them "
424 "all in this overview."
425 msgstr ""
426
427 # type: textblock
428 #: ../src/guestfs.pod:194
429 msgid ""
430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
431 "mount point."
432 msgstr ""
433
434 # type: textblock
435 #: ../src/guestfs.pod:197
436 msgid ""
437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
438 "the file called C<\"etc/passwd\"> then you could do:"
439 msgstr ""
440
441 # type: verbatim
442 #: ../src/guestfs.pod:200
443 #, no-wrap
444 msgid ""
445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
446 "\n"
447 msgstr ""
448
449 # type: textblock
450 #: ../src/guestfs.pod:202
451 msgid ""
452 "This would return C<data> as a newly allocated buffer containing the full "
453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
454 "or C<NULL> if there was an error."
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:206
459 msgid ""
460 "As another example, to create a top-level directory on that filesystem "
461 "called C<\"var\"> you would do:"
462 msgstr ""
463
464 # type: verbatim
465 #: ../src/guestfs.pod:209
466 #, no-wrap
467 msgid ""
468 " guestfs_mkdir (g, \"/var\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:211
474 msgid "To create a symlink you could do:"
475 msgstr ""
476
477 # type: verbatim
478 #: ../src/guestfs.pod:213
479 #, no-wrap
480 msgid ""
481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
482 "               \"/etc/rc3.d/S30portmap\");\n"
483 "\n"
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:216
488 msgid ""
489 "Libguestfs will reject attempts to use relative paths and there is no "
490 "concept of a current working directory."
491 msgstr ""
492
493 # type: textblock
494 #: ../src/guestfs.pod:219
495 msgid ""
496 "Libguestfs can return errors in many situations: for example if the "
497 "filesystem isn't writable, or if a file or directory that you requested "
498 "doesn't exist.  If you are using the C API (documented here)  you have to "
499 "check for those error conditions after each call.  (Other language bindings "
500 "turn these errors into exceptions)."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:225
505 msgid ""
506 "File writes are affected by the per-handle umask, set by calling L</"
507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:228
512 msgid "PARTITIONING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:230
517 msgid ""
518 "Libguestfs contains API calls to read, create and modify partition tables on "
519 "disk images."
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:233
524 msgid ""
525 "In the common case where you want to create a single partition covering the "
526 "whole disk, you should use the L</guestfs_part_disk> call:"
527 msgstr ""
528
529 # type: verbatim
530 #: ../src/guestfs.pod:237
531 #, no-wrap
532 msgid ""
533 " const char *parttype = \"mbr\";\n"
534 " if (disk_is_larger_than_2TB)\n"
535 "   parttype = \"gpt\";\n"
536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
537 "\n"
538 msgstr ""
539
540 # type: textblock
541 #: ../src/guestfs.pod:242
542 msgid ""
543 "Obviously this effectively wipes anything that was on that disk image before."
544 msgstr ""
545
546 # type: =head2
547 #: ../src/guestfs.pod:245
548 msgid "LVM2"
549 msgstr ""
550
551 # type: textblock
552 #: ../src/guestfs.pod:247
553 msgid ""
554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
556 "you familiarize yourself with the concepts of physical volumes, volume "
557 "groups and logical volumes."
558 msgstr ""
559
560 # type: textblock
561 #: ../src/guestfs.pod:252
562 msgid ""
563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
564 "tldp.org/HOWTO/LVM-HOWTO/>."
565 msgstr ""
566
567 # type: =head2
568 #: ../src/guestfs.pod:255
569 msgid "DOWNLOADING"
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:257
574 msgid ""
575 "Use L</guestfs_cat> to download small, text only files.  This call is "
576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
577 "NUL (C<\\0>) characters.  However it has a very simple to use API."
578 msgstr ""
579
580 # type: textblock
581 #: ../src/guestfs.pod:262
582 msgid ""
583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
584 "bit data, since it returns a (pointer, size) pair.  However it is still "
585 "limited to \"small\" files, less than 2 MB."
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:266
590 msgid ""
591 "L</guestfs_download> can be used to download any file, with no limits on "
592 "content or size (even files larger than 4 GB)."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:269
597 msgid ""
598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
599 msgstr ""
600
601 # type: =head2
602 #: ../src/guestfs.pod:272
603 msgid "UPLOADING"
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:274
608 msgid ""
609 "It's often the case that you want to write a file or files to the disk image."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:277
614 msgid ""
615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
618 "of other functions for creating test files, for example L</guestfs_fill> and "
619 "L</guestfs_fill_pattern>."
620 msgstr ""
621
622 # type: textblock
623 #: ../src/guestfs.pod:283
624 msgid ""
625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
626 "file content or size (even files larger than 4 GB)."
627 msgstr ""
628
629 # type: textblock
630 #: ../src/guestfs.pod:286
631 msgid ""
632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
633 msgstr ""
634
635 # type: textblock
636 #: ../src/guestfs.pod:288
637 msgid ""
638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
641 "in a predictable way (eg. adding it last after all other drives) then you "
642 "can get the device name from L</guestfs_list_devices> and mount it directly "
643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
644 "portable between kernel versions, and they don't support labels or UUIDs.  "
645 "If you want to pre-build an image or you need to mount it using a label or "
646 "UUID, use an ISO image instead."
647 msgstr ""
648
649 # type: =head2
650 #: ../src/guestfs.pod:299
651 msgid "COPYING"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:301
656 msgid ""
657 "There are various different commands for copying between files and devices "
658 "and in and out of the guest filesystem.  These are summarised in the table "
659 "below."
660 msgstr ""
661
662 # type: =item
663 #: ../src/guestfs.pod:307
664 msgid "B<file> to B<file>"
665 msgstr ""
666
667 # type: textblock
668 #: ../src/guestfs.pod:309
669 msgid ""
670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
671 "directories recursively."
672 msgstr ""
673
674 # type: =item
675 #: ../src/guestfs.pod:312
676 msgid "B<file or device> to B<file or device>"
677 msgstr ""
678
679 # type: textblock
680 #: ../src/guestfs.pod:314
681 msgid ""
682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
683 "devices in the guest."
684 msgstr ""
685
686 # type: textblock
687 #: ../src/guestfs.pod:317
688 msgid "Example: duplicate the contents of an LV:"
689 msgstr ""
690
691 # type: verbatim
692 #: ../src/guestfs.pod:319
693 #, no-wrap
694 msgid ""
695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
696 "\n"
697 msgstr ""
698
699 # type: textblock
700 #: ../src/guestfs.pod:321
701 msgid ""
702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
704 "guestfs_copy_size>."
705 msgstr ""
706
707 # type: =item
708 #: ../src/guestfs.pod:325
709 msgid "B<file on the host> to B<file or device>"
710 msgstr ""
711
712 # type: textblock
713 #: ../src/guestfs.pod:327
714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
715 msgstr ""
716
717 # type: =item
718 #: ../src/guestfs.pod:329
719 msgid "B<file or device> to B<file on the host>"
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:331
724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
725 msgstr ""
726
727 # type: =head2
728 #: ../src/guestfs.pod:335
729 msgid "LISTING FILES"
730 msgstr ""
731
732 # type: textblock
733 #: ../src/guestfs.pod:337
734 msgid ""
735 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
736 "L<guestfish(1)>-equivalent command C<ll>)."
737 msgstr ""
738
739 # type: textblock
740 #: ../src/guestfs.pod:340
741 msgid ""
742 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
743 "programs, as a flat list of strings."
744 msgstr ""
745
746 # type: textblock
747 #: ../src/guestfs.pod:343
748 msgid ""
749 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
750 "directory, plus additional information about each one.  It is more "
751 "equivalent to using the L<readdir(3)> call on a local filesystem."
752 msgstr ""
753
754 # type: textblock
755 #: ../src/guestfs.pod:347
756 msgid ""
757 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
758 msgstr ""
759
760 # type: =head2
761 #: ../src/guestfs.pod:350
762 msgid "RUNNING COMMANDS"
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:352
767 msgid ""
768 "Although libguestfs is primarily an API for manipulating files inside guest "
769 "images, we also provide some limited facilities for running commands inside "
770 "guests."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:356
775 msgid "There are many limitations to this:"
776 msgstr ""
777
778 # type: =item
779 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
780 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
781 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod: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:501 ../src/guestfs-actions.pod:509
791 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:523
792 #: ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:1562
793 #: ../src/guestfs-actions.pod:1566 ../src/guestfs-actions.pod:1570
794 #: ../src/guestfs-actions.pod:1578 ../src/guestfs-actions.pod:1582
795 #: ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1596
796 #: ../src/guestfs-actions.pod:1600 ../src/guestfs-actions.pod:1604
797 #: ../src/guestfs-actions.pod:1742 ../src/guestfs-actions.pod:1746
798 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:1756
799 #: ../src/guestfs-actions.pod:1817 ../src/guestfs-actions.pod:1821
800 #: ../src/guestfs-actions.pod:1826 ../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:339
804 #: ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354
805 #: ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056
806 #: ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064
807 #: ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076
808 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
809 #: ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098
810 #: ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192
811 #: ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201
812 #: ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248
813 #: ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257
814 #: ../inspector/virt-inspector.pl: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:1813 ../fish/guestfish-actions.pod:9
2548 #: ../fish/guestfish-actions.pod:1244
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-cat.pl:185
3817 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
3818 #: ../tools/virt-make-fs.pl:534 ../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-cat.pl:199
3916 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
3917 #: ../tools/virt-make-fs.pl:563 ../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:58
3997 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:156
3998 #: ../src/guestfs-actions.pod:170 ../src/guestfs-actions.pod:191
3999 #: ../src/guestfs-actions.pod:211 ../src/guestfs-actions.pod:225
4000 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:360
4001 #: ../src/guestfs-actions.pod:374 ../src/guestfs-actions.pod:419
4002 #: ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:465
4003 #: ../src/guestfs-actions.pod:532 ../src/guestfs-actions.pod:565
4004 #: ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:594
4005 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:711
4006 #: ../src/guestfs-actions.pod:725 ../src/guestfs-actions.pod:739
4007 #: ../src/guestfs-actions.pod:900 ../src/guestfs-actions.pod:920
4008 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1022
4009 #: ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1059
4010 #: ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1093
4011 #: ../src/guestfs-actions.pod:1132 ../src/guestfs-actions.pod:1202
4012 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1258
4013 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1401
4014 #: ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1653
4015 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1762
4016 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:2329
4017 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2426
4018 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:2977
4019 #: ../src/guestfs-actions.pod:2997 ../src/guestfs-actions.pod:3123
4020 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3150
4021 #: ../src/guestfs-actions.pod:3164 ../src/guestfs-actions.pod:3179
4022 #: ../src/guestfs-actions.pod:3215 ../src/guestfs-actions.pod:3288
4023 #: ../src/guestfs-actions.pod:3308 ../src/guestfs-actions.pod:3325
4024 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:3371
4025 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3422
4026 #: ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3476
4027 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3524
4028 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3553
4029 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3585
4030 #: ../src/guestfs-actions.pod:3680 ../src/guestfs-actions.pod:3700
4031 #: ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3764
4032 #: ../src/guestfs-actions.pod:3782 ../src/guestfs-actions.pod:3800
4033 #: ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3830
4034 #: ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:3861
4035 #: ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:3896
4036 #: ../src/guestfs-actions.pod:3945 ../src/guestfs-actions.pod:3976
4037 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4014
4038 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4043
4039 #: ../src/guestfs-actions.pod:4056 ../src/guestfs-actions.pod:4071
4040 #: ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4121
4041 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:4156
4042 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4187
4043 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4273
4044 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4315
4045 #: ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4350
4046 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:4542
4047 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4582
4048 #: ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4680
4049 #: ../src/guestfs-actions.pod:4697 ../src/guestfs-actions.pod:4710
4050 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:5015
4051 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048
4052 #: ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:5074
4053 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5100
4054 #: ../src/guestfs-actions.pod:5116 ../src/guestfs-actions.pod:5137
4055 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5175
4056 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5216
4057 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5253
4058 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5293
4059 #: ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5338
4060 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5381
4061 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5420
4062 #: ../src/guestfs-actions.pod:5435 ../src/guestfs-actions.pod:5454
4063 #: ../src/guestfs-actions.pod:5491 ../src/guestfs-actions.pod:5514
4064 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5648
4065 #: ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5781
4066 #: ../src/guestfs-actions.pod:5794 ../src/guestfs-actions.pod:5807
4067 #: ../src/guestfs-actions.pod:5829 ../src/guestfs-actions.pod:5842
4068 #: ../src/guestfs-actions.pod:5855 ../src/guestfs-actions.pod:5868
4069 #: ../src/guestfs-actions.pod:5883 ../src/guestfs-actions.pod:5942
4070 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:5975
4071 #: ../src/guestfs-actions.pod:5991 ../src/guestfs-actions.pod:6008
4072 #: ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6041
4073 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6091
4074 #: ../src/guestfs-actions.pod:6132 ../src/guestfs-actions.pod:6145
4075 #: ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6192
4076 #: ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6342
4077 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6374
4078 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6442
4079 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6521
4080 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6601
4081 #: ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6686
4082 #: ../src/guestfs-actions.pod:6715
4083 msgid "This function returns 0 on success or -1 on error."
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:172
4088 #: ../src/guestfs-actions.pod:193 ../fish/guestfish-actions.pod:28
4089 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
4090 msgid ""
4091 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4092 "instead."
4093 msgstr ""
4094
4095 # type: textblock
4096 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:175
4097 #: ../src/guestfs-actions.pod:196 ../src/guestfs-actions.pod:1406
4098 #: ../src/guestfs-actions.pod:1892 ../src/guestfs-actions.pod:1913
4099 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6778
4100 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
4101 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
4102 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
4103 #: ../fish/guestfish-actions.pod:4366 ../fish/guestfish-actions.pod:4463
4104 msgid ""
4105 "Deprecated functions will not be removed from the API, but the fact that "
4106 "they are deprecated indicates that there are problems with correct use of "
4107 "these functions."
4108 msgstr ""
4109
4110 # type: textblock
4111 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:60
4112 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1864
4113 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2065
4114 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:2979
4115 #: ../src/guestfs-actions.pod:4123 ../src/guestfs-actions.pod:5195
4116 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5422
4117 #: ../src/guestfs-actions.pod:5885 ../src/guestfs-actions.pod:6010
4118 #: ../src/guestfs-actions.pod:6523
4119 msgid "(Added in 0.3)"
4120 msgstr ""
4121
4122 # type: =head2
4123 #: ../src/guestfs-actions.pod:41
4124 msgid "guestfs_add_drive"
4125 msgstr ""
4126
4127 # type: verbatim
4128 #: ../src/guestfs-actions.pod:43
4129 #, no-wrap
4130 msgid ""
4131 " int\n"
4132 " guestfs_add_drive (guestfs_h *g,\n"
4133 "                    const char *filename);\n"
4134 "\n"
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs-actions.pod:47
4139 msgid ""
4140 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4141 "optional parameters, so the disk is added writable, with the format being "
4142 "detected automatically."
4143 msgstr ""
4144
4145 # type: textblock
4146 #: ../src/guestfs-actions.pod:51
4147 msgid ""
4148 "Automatic detection of the format opens you up to a potential security hole "
4149 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4150 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4151 "you should think about replacing calls to this function with calls to "
4152 "C<guestfs_add_drive_opts>, and specifying the format."
4153 msgstr ""
4154
4155 # type: =head2
4156 #: ../src/guestfs-actions.pod:62
4157 msgid "guestfs_add_drive_opts"
4158 msgstr ""
4159
4160 # type: verbatim
4161 #: ../src/guestfs-actions.pod:64
4162 #, no-wrap
4163 msgid ""
4164 " int\n"
4165 " guestfs_add_drive_opts (guestfs_h *g,\n"
4166 "                         const char *filename,\n"
4167 "                         ...);\n"
4168 "\n"
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs-actions.pod:69
4173 msgid ""
4174 "You may supply a list of optional arguments to this call.  Use zero or more "
4175 "of the following pairs of parameters, and terminate the list with C<-1> on "
4176 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4177 msgstr ""
4178
4179 # type: verbatim
4180 #: ../src/guestfs-actions.pod:74
4181 #, no-wrap
4182 msgid ""
4183 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4184 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4185 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4186 "\n"
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs-actions.pod:78 ../fish/guestfish-actions.pod:56
4191 msgid ""
4192 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4193 "The first time you call this function, the disk appears as C</dev/sda>, the "
4194 "second time as C</dev/sdb>, and so on."
4195 msgstr ""
4196
4197 # type: textblock
4198 #: ../src/guestfs-actions.pod:83 ../fish/guestfish-actions.pod:61
4199 msgid ""
4200 "You don't necessarily need to be root when using libguestfs.  However you "
4201 "obviously do need sufficient permissions to access the filename for whatever "
4202 "operations you want to perform (ie. read access if you just want to read the "
4203 "image or write access if you want to modify the image)."
4204 msgstr ""
4205
4206 # type: textblock
4207 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:67
4208 msgid "This call checks that C<filename> exists."
4209 msgstr ""
4210
4211 # type: textblock
4212 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:69
4213 msgid "The optional arguments are:"
4214 msgstr ""
4215
4216 # type: =item
4217 #: ../src/guestfs-actions.pod:95 ../fish/guestfish-actions.pod:73
4218 msgid "C<readonly>"
4219 msgstr ""
4220
4221 # type: textblock
4222 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:75
4223 msgid ""
4224 "If true then the image is treated as read-only.  Writes are still allowed, "
4225 "but they are stored in a temporary snapshot overlay which is discarded at "
4226 "the end.  The disk that you add is not modified."
4227 msgstr ""
4228
4229 # type: =item
4230 #: ../src/guestfs-actions.pod:101 ../fish/guestfish-actions.pod:79
4231 msgid "C<format>"
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../src/guestfs-actions.pod:103
4236 msgid ""
4237 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4238 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4239 "Possible formats include C<raw> and C<qcow2>."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:107 ../fish/guestfish-actions.pod:85
4244 msgid ""
4245 "Automatic detection of the format opens you up to a potential security hole "
4246 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4247 "RHBZ#642934.  Specifying the format closes this security hole."
4248 msgstr ""
4249
4250 # type: =item
4251 #: ../src/guestfs-actions.pod:112 ../fish/guestfish-actions.pod:90
4252 msgid "C<iface>"
4253 msgstr ""
4254
4255 # type: textblock
4256 #: ../src/guestfs-actions.pod:114
4257 msgid ""
4258 "This rarely-used option lets you emulate the behaviour of the deprecated "
4259 "C<guestfs_add_drive_with_if> call (q.v.)"
4260 msgstr ""
4261
4262 # type: textblock
4263 #: ../src/guestfs-actions.pod:121
4264 msgid "(Added in 1.5.23)"
4265 msgstr ""
4266
4267 # type: =head2
4268 #: ../src/guestfs-actions.pod:123
4269 msgid "guestfs_add_drive_opts_va"
4270 msgstr ""
4271
4272 # type: verbatim
4273 #: ../src/guestfs-actions.pod:125
4274 #, no-wrap
4275 msgid ""
4276 " int\n"
4277 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4278 "                            const char *filename,\n"
4279 "                            va_list args);\n"
4280 "\n"
4281 msgstr ""
4282
4283 # type: textblock
4284 #: ../src/guestfs-actions.pod:130
4285 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4286 msgstr ""
4287
4288 # type: textblock
4289 #: ../src/guestfs-actions.pod:132 ../src/guestfs-actions.pod:143
4290 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4291 msgstr ""
4292
4293 # type: =head2
4294 #: ../src/guestfs-actions.pod:134
4295 msgid "guestfs_add_drive_opts_argv"
4296 msgstr ""
4297
4298 # type: verbatim
4299 #: ../src/guestfs-actions.pod:136
4300 #, no-wrap
4301 msgid ""
4302 " int\n"
4303 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4304 "                              const char *filename,\n"
4305 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4306 "\n"
4307 msgstr ""
4308
4309 # type: textblock
4310 #: ../src/guestfs-actions.pod:141
4311 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4312 msgstr ""
4313
4314 # type: =head2
4315 #: ../src/guestfs-actions.pod:145
4316 msgid "guestfs_add_drive_ro"
4317 msgstr ""
4318
4319 # type: verbatim
4320 #: ../src/guestfs-actions.pod:147
4321 #, no-wrap
4322 msgid ""
4323 " int\n"
4324 " guestfs_add_drive_ro (guestfs_h *g,\n"
4325 "                       const char *filename);\n"
4326 "\n"
4327 msgstr ""
4328
4329 # type: textblock
4330 #: ../src/guestfs-actions.pod:151
4331 msgid ""
4332 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4333 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4334 "disk is added read-only, with the format being detected automatically."
4335 msgstr ""
4336
4337 # type: textblock
4338 #: ../src/guestfs-actions.pod:158
4339 msgid "(Added in 1.0.38)"
4340 msgstr ""
4341
4342 # type: =head2
4343 #: ../src/guestfs-actions.pod:160
4344 msgid "guestfs_add_drive_ro_with_if"
4345 msgstr ""
4346
4347 # type: verbatim
4348 #: ../src/guestfs-actions.pod:162
4349 #, no-wrap
4350 msgid ""
4351 " int\n"
4352 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4353 "                               const char *filename,\n"
4354 "                               const char *iface);\n"
4355 "\n"
4356 msgstr ""
4357
4358 # type: textblock
4359 #: ../src/guestfs-actions.pod:167
4360 msgid ""
4361 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4362 "QEMU interface emulation to use at run time."
4363 msgstr ""
4364
4365 # type: textblock
4366 #: ../src/guestfs-actions.pod:179 ../src/guestfs-actions.pod:200
4367 #: ../src/guestfs-actions.pod:2275
4368 msgid "(Added in 1.0.84)"
4369 msgstr ""
4370
4371 # type: =head2
4372 #: ../src/guestfs-actions.pod:181
4373 msgid "guestfs_add_drive_with_if"
4374 msgstr ""
4375
4376 # type: verbatim
4377 #: ../src/guestfs-actions.pod:183
4378 #, no-wrap
4379 msgid ""
4380 " int\n"
4381 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4382 "                            const char *filename,\n"
4383 "                            const char *iface);\n"
4384 "\n"
4385 msgstr ""
4386
4387 # type: textblock
4388 #: ../src/guestfs-actions.pod:188
4389 msgid ""
4390 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4391 "QEMU interface emulation to use at run time."
4392 msgstr ""
4393
4394 # type: =head2
4395 #: ../src/guestfs-actions.pod:202
4396 msgid "guestfs_aug_clear"
4397 msgstr ""
4398
4399 # type: verbatim
4400 #: ../src/guestfs-actions.pod:204
4401 #, no-wrap
4402 msgid ""
4403 " int\n"
4404 " guestfs_aug_clear (guestfs_h *g,\n"
4405 "                    const char *augpath);\n"
4406 "\n"
4407 msgstr ""
4408
4409 # type: textblock
4410 #: ../src/guestfs-actions.pod:208 ../fish/guestfish-actions.pod:142
4411 msgid ""
4412 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4413 "L<augtool(1)> C<clear> command."
4414 msgstr ""
4415
4416 # type: textblock
4417 #: ../src/guestfs-actions.pod:213 ../src/guestfs-actions.pod:2054
4418 msgid "(Added in 1.3.4)"
4419 msgstr ""
4420
4421 # type: =head2
4422 #: ../src/guestfs-actions.pod:215
4423 msgid "guestfs_aug_close"
4424 msgstr ""
4425
4426 # type: verbatim
4427 #: ../src/guestfs-actions.pod:217
4428 #, no-wrap
4429 msgid ""
4430 " int\n"
4431 " guestfs_aug_close (guestfs_h *g);\n"
4432 "\n"
4433 msgstr ""
4434
4435 # type: textblock
4436 #: ../src/guestfs-actions.pod:220
4437 msgid ""
4438 "Close the current Augeas handle and free up any resources used by it.  After "
4439 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4440 "any other Augeas functions."
4441 msgstr ""
4442
4443 # type: textblock
4444 #: ../src/guestfs-actions.pod:227 ../src/guestfs-actions.pod:252
4445 #: ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:284
4446 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:362
4447 #: ../src/guestfs-actions.pod:376 ../src/guestfs-actions.pod:407
4448 #: ../src/guestfs-actions.pod:421 ../src/guestfs-actions.pod:435
4449 #: ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:467
4450 #: ../src/guestfs-actions.pod:4872
4451 msgid "(Added in 0.7)"
4452 msgstr ""
4453
4454 # type: =head2
4455 #: ../src/guestfs-actions.pod:229
4456 msgid "guestfs_aug_defnode"
4457 msgstr ""
4458
4459 # type: verbatim
4460 #: ../src/guestfs-actions.pod:231
4461 #, no-wrap
4462 msgid ""
4463 " struct guestfs_int_bool *\n"
4464 " guestfs_aug_defnode (guestfs_h *g,\n"
4465 "                      const char *name,\n"
4466 "                      const char *expr,\n"
4467 "                      const char *val);\n"
4468 "\n"
4469 msgstr ""
4470
4471 # type: textblock
4472 #: ../src/guestfs-actions.pod:237 ../fish/guestfish-actions.pod:158
4473 msgid ""
4474 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4475 msgstr ""
4476
4477 # type: textblock
4478 #: ../src/guestfs-actions.pod:240
4479 msgid ""
4480 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4481 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4482 "containing that single node."
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:244 ../fish/guestfish-actions.pod:165
4487 msgid ""
4488 "On success this returns a pair containing the number of nodes in the "
4489 "nodeset, and a boolean flag if a node was created."
4490 msgstr ""
4491
4492 # type: textblock
4493 #: ../src/guestfs-actions.pod:248
4494 msgid ""
4495 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4496 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4497 msgstr ""
4498
4499 # type: =head2
4500 #: ../src/guestfs-actions.pod:254
4501 msgid "guestfs_aug_defvar"
4502 msgstr ""
4503
4504 # type: verbatim
4505 #: ../src/guestfs-actions.pod:256
4506 #, no-wrap
4507 msgid ""
4508 " int\n"
4509 " guestfs_aug_defvar (guestfs_h *g,\n"
4510 "                     const char *name,\n"
4511 "                     const char *expr);\n"
4512 "\n"
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:173
4517 msgid ""
4518 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4519 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4520 msgstr ""
4521
4522 # type: textblock
4523 #: ../src/guestfs-actions.pod:265 ../fish/guestfish-actions.pod:177
4524 msgid ""
4525 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4526 "evaluates to something which is not a nodeset."
4527 msgstr ""
4528
4529 # type: textblock
4530 #: ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:433
4531 #: ../src/guestfs-actions.pod:611 ../src/guestfs-actions.pod:642
4532 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:679
4533 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1632
4534 #: ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:1934
4535 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:2029
4536 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2316
4537 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2596
4538 #: ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4387
4539 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:4821
4540 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6534
4541 #: ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6560
4542 msgid "On error this function returns -1."
4543 msgstr ""
4544
4545 # type: =head2
4546 #: ../src/guestfs-actions.pod:272
4547 msgid "guestfs_aug_get"
4548 msgstr ""
4549
4550 # type: verbatim
4551 #: ../src/guestfs-actions.pod:274
4552 #, no-wrap
4553 msgid ""
4554 " char *\n"
4555 " guestfs_aug_get (guestfs_h *g,\n"
4556 "                  const char *augpath);\n"
4557 "\n"
4558 msgstr ""
4559
4560 # type: textblock
4561 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:184
4562 msgid ""
4563 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4564 "node, the C<value> is returned."
4565 msgstr ""
4566
4567 # type: textblock
4568 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:781
4569 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:859
4570 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:978
4571 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1147
4572 #: ../src/guestfs-actions.pod:1164 ../src/guestfs-actions.pod:1183
4573 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1503
4574 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1778
4575 #: ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1886
4576 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2077
4577 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:2448
4578 #: ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2652
4579 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:2731
4580 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3460
4581 #: ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3742
4582 #: ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4599
4583 #: ../src/guestfs-actions.pod:4770 ../src/guestfs-actions.pod:4949
4584 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5561
4585 #: ../src/guestfs-actions.pod:5577 ../src/guestfs-actions.pod:5594
4586 #: ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:6282
4587 #: ../src/guestfs-actions.pod:6301 ../src/guestfs-actions.pod:6319
4588 #: ../src/guestfs-actions.pod:6500 ../src/guestfs-actions.pod:6772
4589 msgid ""
4590 "This function returns a string, or NULL on error.  I<The caller must free "
4591 "the returned string after use>."
4592 msgstr ""
4593
4594 # type: =head2
4595 #: ../src/guestfs-actions.pod:286
4596 msgid "guestfs_aug_init"
4597 msgstr ""
4598
4599 # type: verbatim
4600 #: ../src/guestfs-actions.pod:288
4601 #, no-wrap
4602 msgid ""
4603 " int\n"
4604 " guestfs_aug_init (guestfs_h *g,\n"
4605 "                   const char *root,\n"
4606 "                   int flags);\n"
4607 "\n"
4608 msgstr ""
4609
4610 # type: textblock
4611 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:191
4612 msgid ""
4613 "Create a new Augeas handle for editing configuration files.  If there was "
4614 "any previous Augeas handle associated with this guestfs session, then it is "
4615 "closed."
4616 msgstr ""
4617
4618 # type: textblock
4619 #: ../src/guestfs-actions.pod:297
4620 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4621 msgstr ""
4622
4623 # type: textblock
4624 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:198
4625 msgid ""
4626 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4627 msgstr ""
4628
4629 # type: textblock
4630 #: ../src/guestfs-actions.pod:303 ../fish/guestfish-actions.pod:201
4631 msgid ""
4632 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4633 "logical I<or> of the following integers:"
4634 msgstr ""
4635
4636 # type: =item
4637 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:207
4638 msgid "C<AUG_SAVE_BACKUP> = 1"
4639 msgstr ""
4640
4641 # type: textblock
4642 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:209
4643 msgid "Keep the original file with a C<.augsave> extension."
4644 msgstr ""
4645
4646 # type: =item
4647 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:211
4648 msgid "C<AUG_SAVE_NEWFILE> = 2"
4649 msgstr ""
4650
4651 # type: textblock
4652 #: ../src/guestfs-actions.pod:315 ../fish/guestfish-actions.pod:213
4653 msgid ""
4654 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4655 "original.  Overrides C<AUG_SAVE_BACKUP>."
4656 msgstr ""
4657
4658 # type: =item
4659 #: ../src/guestfs-actions.pod:318 ../fish/guestfish-actions.pod:216
4660 msgid "C<AUG_TYPE_CHECK> = 4"
4661 msgstr ""
4662
4663 # type: textblock
4664 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:218
4665 msgid "Typecheck lenses (can be expensive)."
4666 msgstr ""
4667
4668 # type: =item
4669 #: ../src/guestfs-actions.pod:322 ../fish/guestfish-actions.pod:220
4670 msgid "C<AUG_NO_STDINC> = 8"
4671 msgstr ""
4672
4673 # type: textblock
4674 #: ../src/guestfs-actions.pod:324 ../fish/guestfish-actions.pod:222
4675 msgid "Do not use standard load path for modules."
4676 msgstr ""
4677
4678 # type: =item
4679 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:224
4680 msgid "C<AUG_SAVE_NOOP> = 16"
4681 msgstr ""
4682
4683 # type: textblock
4684 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:226
4685 msgid "Make save a no-op, just record what would have been changed."
4686 msgstr ""
4687
4688 # type: =item
4689 #: ../src/guestfs-actions.pod:330 ../fish/guestfish-actions.pod:228
4690 msgid "C<AUG_NO_LOAD> = 32"
4691 msgstr ""
4692
4693 # type: textblock
4694 #: ../src/guestfs-actions.pod:332
4695 msgid "Do not load the tree in C<guestfs_aug_init>."
4696 msgstr ""
4697
4698 # type: textblock
4699 #: ../src/guestfs-actions.pod:336
4700 msgid "To close the handle, you can call C<guestfs_aug_close>."
4701 msgstr ""
4702
4703 # type: textblock
4704 #: ../src/guestfs-actions.pod:338 ../fish/guestfish-actions.pod:236
4705 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4706 msgstr ""
4707
4708 # type: =head2
4709 #: ../src/guestfs-actions.pod:344
4710 msgid "guestfs_aug_insert"
4711 msgstr ""
4712
4713 # type: verbatim
4714 #: ../src/guestfs-actions.pod:346
4715 #, no-wrap
4716 msgid ""
4717 " int\n"
4718 " guestfs_aug_insert (guestfs_h *g,\n"
4719 "                     const char *augpath,\n"
4720 "                     const char *label,\n"
4721 "                     int before);\n"
4722 "\n"
4723 msgstr ""
4724
4725 # type: textblock
4726 #: ../src/guestfs-actions.pod:352 ../fish/guestfish-actions.pod:242
4727 msgid ""
4728 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4729 "or after C<path> (depending on the boolean flag C<before>)."
4730 msgstr ""
4731
4732 # type: textblock
4733 #: ../src/guestfs-actions.pod:356 ../fish/guestfish-actions.pod:246
4734 msgid ""
4735 "C<path> must match exactly one existing node in the tree, and C<label> must "
4736 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4737 msgstr ""
4738
4739 # type: =head2
4740 #: ../src/guestfs-actions.pod:364
4741 msgid "guestfs_aug_load"
4742 msgstr ""
4743
4744 # type: verbatim
4745 #: ../src/guestfs-actions.pod:366
4746 #, no-wrap
4747 msgid ""
4748 " int\n"
4749 " guestfs_aug_load (guestfs_h *g);\n"
4750 "\n"
4751 msgstr ""
4752
4753 # type: textblock
4754 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:254
4755 msgid "Load files into the tree."
4756 msgstr ""
4757
4758 # type: textblock
4759 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:256
4760 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4761 msgstr ""
4762
4763 # type: =head2
4764 #: ../src/guestfs-actions.pod:378
4765 msgid "guestfs_aug_ls"
4766 msgstr ""
4767
4768 # type: verbatim
4769 #: ../src/guestfs-actions.pod:380
4770 #, no-wrap
4771 msgid ""
4772 " char **\n"
4773 " guestfs_aug_ls (guestfs_h *g,\n"
4774 "                 const char *augpath);\n"
4775 "\n"
4776 msgstr ""
4777
4778 # type: textblock
4779 #: ../src/guestfs-actions.pod:384
4780 msgid ""
4781 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4782 "sorting the resulting nodes into alphabetical order."
4783 msgstr ""
4784
4785 # type: textblock
4786 #: ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:403
4787 #: ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:997
4788 #: ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1346
4789 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1468
4790 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:2120
4791 #: ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2155
4792 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2222
4793 #: ../src/guestfs-actions.pod:2293 ../src/guestfs-actions.pod:2342
4794 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2671
4795 #: ../src/guestfs-actions.pod:2773 ../src/guestfs-actions.pod:3029
4796 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3196
4797 #: ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:4220
4798 #: ../src/guestfs-actions.pod:4741 ../src/guestfs-actions.pod:4868
4799 #: ../src/guestfs-actions.pod:4983 ../src/guestfs-actions.pod:5634
4800 #: ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:5750
4801 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:5920
4802 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6412
4803 #: ../src/guestfs-actions.pod:6459 ../src/guestfs-actions.pod:6625
4804 #: ../src/guestfs-actions.pod:6644 ../src/guestfs-actions.pod:6729
4805 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6794
4806 #: ../src/guestfs-actions.pod:6813
4807 msgid ""
4808 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4809 ">), or NULL if there was an error.  I<The caller must free the strings and "
4810 "the array after use>."
4811 msgstr ""
4812
4813 # type: textblock
4814 #: ../src/guestfs-actions.pod:391 ../src/guestfs-actions.pod:922
4815 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1384
4816 #: ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2882
4817 #: ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3493
4818 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3715
4819 #: ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:4224
4820 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:5062
4821 #: ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:5088
4822 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:6134
4823 #: ../src/guestfs-actions.pod:6147 ../src/guestfs-actions.pod:6376
4824 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6613
4825 msgid "(Added in 0.8)"
4826 msgstr ""
4827
4828 # type: =head2
4829 #: ../src/guestfs-actions.pod:393
4830 msgid "guestfs_aug_match"
4831 msgstr ""
4832
4833 # type: verbatim
4834 #: ../src/guestfs-actions.pod:395
4835 #, no-wrap
4836 msgid ""
4837 " char **\n"
4838 " guestfs_aug_match (guestfs_h *g,\n"
4839 "                    const char *augpath);\n"
4840 "\n"
4841 msgstr ""
4842
4843 # type: textblock
4844 #: ../src/guestfs-actions.pod:399 ../fish/guestfish-actions.pod:270
4845 msgid ""
4846 "Returns a list of paths which match the path expression C<path>.  The "
4847 "returned paths are sufficiently qualified so that they match exactly one "
4848 "node in the current tree."
4849 msgstr ""
4850
4851 # type: =head2
4852 #: ../src/guestfs-actions.pod:409
4853 msgid "guestfs_aug_mv"
4854 msgstr ""
4855
4856 # type: verbatim
4857 #: ../src/guestfs-actions.pod:411
4858 #, no-wrap
4859 msgid ""
4860 " int\n"
4861 " guestfs_aug_mv (guestfs_h *g,\n"
4862 "                 const char *src,\n"
4863 "                 const char *dest);\n"
4864 "\n"
4865 msgstr ""
4866
4867 # type: textblock
4868 #: ../src/guestfs-actions.pod:416 ../fish/guestfish-actions.pod:278
4869 msgid ""
4870 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4871 "C<dest> is overwritten if it exists."
4872 msgstr ""
4873
4874 # type: =head2
4875 #: ../src/guestfs-actions.pod:423
4876 msgid "guestfs_aug_rm"
4877 msgstr ""
4878
4879 # type: verbatim
4880 #: ../src/guestfs-actions.pod:425
4881 #, no-wrap
4882 msgid ""
4883 " int\n"
4884 " guestfs_aug_rm (guestfs_h *g,\n"
4885 "                 const char *augpath);\n"
4886 "\n"
4887 msgstr ""
4888
4889 # type: textblock
4890 #: ../src/guestfs-actions.pod:429 ../fish/guestfish-actions.pod:285
4891 msgid "Remove C<path> and all of its children."
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:287
4896 msgid "On success this returns the number of entries which were removed."
4897 msgstr ""
4898
4899 # type: =head2
4900 #: ../src/guestfs-actions.pod:437
4901 msgid "guestfs_aug_save"
4902 msgstr ""
4903
4904 # type: verbatim
4905 #: ../src/guestfs-actions.pod:439
4906 #, no-wrap
4907 msgid ""
4908 " int\n"
4909 " guestfs_aug_save (guestfs_h *g);\n"
4910 "\n"
4911 msgstr ""
4912
4913 # type: textblock
4914 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:293
4915 msgid "This writes all pending changes to disk."
4916 msgstr ""
4917
4918 # type: textblock
4919 #: ../src/guestfs-actions.pod:444
4920 msgid ""
4921 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4922 "are saved."
4923 msgstr ""
4924
4925 # type: =head2
4926 #: ../src/guestfs-actions.pod:451
4927 msgid "guestfs_aug_set"
4928 msgstr ""
4929
4930 # type: verbatim
4931 #: ../src/guestfs-actions.pod:453
4932 #, no-wrap
4933 msgid ""
4934 " int\n"
4935 " guestfs_aug_set (guestfs_h *g,\n"
4936 "                  const char *augpath,\n"
4937 "                  const char *val);\n"
4938 "\n"
4939 msgstr ""
4940
4941 # type: textblock
4942 #: ../src/guestfs-actions.pod:458 ../fish/guestfish-actions.pod:302
4943 msgid "Set the value associated with C<path> to C<val>."
4944 msgstr ""
4945
4946 # type: textblock
4947 #: ../src/guestfs-actions.pod:460
4948 msgid ""
4949 "In the Augeas API, it is possible to clear a node by setting the value to "
4950 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4951 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4952 msgstr ""
4953
4954 # type: =head2
4955 #: ../src/guestfs-actions.pod:469
4956 msgid "guestfs_available"
4957 msgstr ""
4958
4959 # type: verbatim
4960 #: ../src/guestfs-actions.pod:471
4961 #, no-wrap
4962 msgid ""
4963 " int\n"
4964 " guestfs_available (guestfs_h *g,\n"
4965 "                    char *const *groups);\n"
4966 "\n"
4967 msgstr ""
4968
4969 # type: textblock
4970 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:313
4971 msgid ""
4972 "This command is used to check the availability of some groups of "
4973 "functionality in the appliance, which not all builds of the libguestfs "
4974 "appliance will be able to provide."
4975 msgstr ""
4976
4977 # type: textblock
4978 #: ../src/guestfs-actions.pod:479
4979 msgid ""
4980 "The libguestfs groups, and the functions that those groups correspond to, "
4981 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4982 "runtime by calling C<guestfs_available_all_groups>."
4983 msgstr ""
4984
4985 # type: textblock
4986 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:322
4987 msgid ""
4988 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4989 "\"]> would check for the availability of the Linux inotify functions and "
4990 "Augeas (configuration file editing) functions."
4991 msgstr ""
4992
4993 # type: textblock
4994 #: ../src/guestfs-actions.pod:489 ../fish/guestfish-actions.pod:327
4995 msgid "The command returns no error if I<all> requested groups are available."
4996 msgstr ""
4997
4998 # type: textblock
4999 #: ../src/guestfs-actions.pod:491 ../fish/guestfish-actions.pod:329
5000 msgid ""
5001 "It fails with an error if one or more of the requested groups is unavailable "
5002 "in the appliance."
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:494 ../fish/guestfish-actions.pod:332
5007 msgid ""
5008 "If an unknown group name is included in the list of groups then an error is "
5009 "always returned."
5010 msgstr ""
5011
5012 # type: textblock
5013 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:335
5014 msgid "I<Notes:>"
5015 msgstr ""
5016
5017 # type: textblock
5018 #: ../src/guestfs-actions.pod:503
5019 msgid "You must call C<guestfs_launch> before calling this function."
5020 msgstr ""
5021
5022 # type: textblock
5023 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:343
5024 msgid ""
5025 "The reason is because we don't know what groups are supported by the "
5026 "appliance/daemon until it is running and can be queried."
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:349
5031 msgid ""
5032 "If a group of functions is available, this does not necessarily mean that "
5033 "they will work.  You still have to check for errors when calling individual "
5034 "API functions even if they are available."
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:356
5039 msgid ""
5040 "It is usually the job of distro packagers to build complete functionality "
5041 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5042 "with all requirements satisfied, will support everything."
5043 msgstr ""
5044
5045 # type: textblock
5046 #: ../src/guestfs-actions.pod:525
5047 msgid ""
5048 "This call was added in version C<1.0.80>.  In previous versions of "
5049 "libguestfs all you could do would be to speculatively execute a command to "
5050 "find out if the daemon implemented it.  See also C<guestfs_version>."
5051 msgstr ""
5052
5053 # type: textblock
5054 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:1095
5055 msgid "(Added in 1.0.80)"
5056 msgstr ""
5057
5058 # type: =head2
5059 #: ../src/guestfs-actions.pod:536
5060 msgid "guestfs_available_all_groups"
5061 msgstr ""
5062
5063 # type: verbatim
5064 #: ../src/guestfs-actions.pod:538
5065 #, no-wrap
5066 msgid ""
5067 " char **\n"
5068 " guestfs_available_all_groups (guestfs_h *g);\n"
5069 "\n"
5070 msgstr ""
5071
5072 # type: textblock
5073 #: ../src/guestfs-actions.pod:541
5074 msgid ""
5075 "This command returns a list of all optional groups that this daemon knows "
5076 "about.  Note this returns both supported and unsupported groups.  To find "
5077 "out which ones the daemon can actually support you have to call "
5078 "C<guestfs_available> on each member of the returned list."
5079 msgstr ""
5080
5081 # type: textblock
5082 #: ../src/guestfs-actions.pod:547
5083 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5084 msgstr ""
5085
5086 # type: textblock
5087 #: ../src/guestfs-actions.pod:553
5088 msgid "(Added in 1.3.15)"
5089 msgstr ""
5090
5091 # type: =head2
5092 #: ../src/guestfs-actions.pod:555
5093 msgid "guestfs_base64_in"
5094 msgstr ""
5095
5096 # type: verbatim
5097 #: ../src/guestfs-actions.pod:557
5098 #, no-wrap
5099 msgid ""
5100 " int\n"
5101 " guestfs_base64_in (guestfs_h *g,\n"
5102 "                    const char *base64file,\n"
5103 "                    const char *filename);\n"
5104 "\n"
5105 msgstr ""
5106
5107 # type: textblock
5108 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:386
5109 msgid ""
5110 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5111 msgstr ""
5112
5113 # type: textblock
5114 #: ../src/guestfs-actions.pod:567 ../src/guestfs-actions.pod:581
5115 #: ../src/guestfs-actions.pod:1134
5116 msgid "(Added in 1.3.5)"
5117 msgstr ""
5118
5119 # type: =head2
5120 #: ../src/guestfs-actions.pod:569
5121 msgid "guestfs_base64_out"
5122 msgstr ""
5123
5124 # type: verbatim
5125 #: ../src/guestfs-actions.pod:571
5126 #, no-wrap
5127 msgid ""
5128 " int\n"
5129 " guestfs_base64_out (guestfs_h *g,\n"
5130 "                     const char *filename,\n"
5131 "                     const char *base64file);\n"
5132 "\n"
5133 msgstr ""
5134
5135 # type: textblock
5136 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:395
5137 msgid ""
5138 "This command downloads the contents of C<filename>, writing it out to local "
5139 "file C<base64file> encoded as base64."
5140 msgstr ""
5141
5142 # type: =head2
5143 #: ../src/guestfs-actions.pod:583
5144 msgid "guestfs_blockdev_flushbufs"
5145 msgstr ""
5146
5147 # type: verbatim
5148 #: ../src/guestfs-actions.pod:585
5149 #, no-wrap
5150 msgid ""
5151 " int\n"
5152 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5153 "                             const char *device);\n"
5154 "\n"
5155 msgstr ""
5156
5157 # type: textblock
5158 #: ../src/guestfs-actions.pod:589 ../fish/guestfish-actions.pod:404
5159 msgid ""
5160 "This tells the kernel to flush internal buffers associated with C<device>."
5161 msgstr ""
5162
5163 # type: textblock
5164 #: ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:609
5165 #: ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:640
5166 #: ../src/guestfs-actions.pod:658 ../src/guestfs-actions.pod:677
5167 #: ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:709
5168 #: ../src/guestfs-actions.pod:723 ../src/guestfs-actions.pod:737
5169 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
5170 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
5171 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
5172 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
5173 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
5174 msgid "This uses the L<blockdev(8)> command."
5175 msgstr ""
5176
5177 # type: textblock
5178 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:613
5179 #: ../src/guestfs-actions.pod:628 ../src/guestfs-actions.pod:644
5180 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:681
5181 #: ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:713
5182 #: ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:741
5183 msgid "(Added in 0.9.3)"
5184 msgstr ""
5185
5186 # type: =head2
5187 #: ../src/guestfs-actions.pod:598
5188 msgid "guestfs_blockdev_getbsz"
5189 msgstr ""
5190
5191 # type: verbatim
5192 #: ../src/guestfs-actions.pod:600
5193 #, no-wrap
5194 msgid ""
5195 " int\n"
5196 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5197 "                          const char *device);\n"
5198 "\n"
5199 msgstr ""
5200
5201 # type: textblock
5202 #: ../src/guestfs-actions.pod:604 ../fish/guestfish-actions.pod:413
5203 msgid "This returns the block size of a device."
5204 msgstr ""
5205
5206 # type: textblock
5207 #: ../src/guestfs-actions.pod:606 ../src/guestfs-actions.pod:706
5208 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
5209 msgid ""
5210 "(Note this is different from both I<size in blocks> and I<filesystem block "
5211 "size>)."
5212 msgstr ""
5213
5214 # type: =head2
5215 #: ../src/guestfs-actions.pod:615
5216 msgid "guestfs_blockdev_getro"
5217 msgstr ""
5218
5219 # type: verbatim
5220 #: ../src/guestfs-actions.pod:617
5221 #, no-wrap
5222 msgid ""
5223 " int\n"
5224 " guestfs_blockdev_getro (guestfs_h *g,\n"
5225 "                         const char *device);\n"
5226 "\n"
5227 msgstr ""
5228
5229 # type: textblock
5230 #: ../src/guestfs-actions.pod:621 ../fish/guestfish-actions.pod:424
5231 msgid ""
5232 "Returns a boolean indicating if the block device is read-only (true if read-"
5233 "only, false if not)."
5234 msgstr ""
5235
5236 # type: textblock
5237 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:1367
5238 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1862
5239 #: ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1945
5240 #: ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2015
5241 #: ../src/guestfs-actions.pod:2040 ../src/guestfs-actions.pod:2063
5242 #: ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2804
5243 #: ../src/guestfs-actions.pod:2819 ../src/guestfs-actions.pod:2833
5244 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2864
5245 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2894
5246 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2921
5247 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:2951
5248 #: ../src/guestfs-actions.pod:4369
5249 msgid "This function returns a C truth value on success or -1 on error."
5250 msgstr ""
5251
5252 # type: =head2
5253 #: ../src/guestfs-actions.pod:630
5254 msgid "guestfs_blockdev_getsize64"
5255 msgstr ""
5256
5257 # type: verbatim
5258 #: ../src/guestfs-actions.pod:632
5259 #, no-wrap
5260 msgid ""
5261 " int64_t\n"
5262 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5263 "                             const char *device);\n"
5264 "\n"
5265 msgstr ""
5266
5267 # type: textblock
5268 #: ../src/guestfs-actions.pod:636 ../fish/guestfish-actions.pod:433
5269 msgid "This returns the size of the device in bytes."
5270 msgstr ""
5271
5272 # type: textblock
5273 #: ../src/guestfs-actions.pod:638
5274 msgid "See also C<guestfs_blockdev_getsz>."
5275 msgstr ""
5276
5277 # type: =head2
5278 #: ../src/guestfs-actions.pod:646
5279 msgid "guestfs_blockdev_getss"
5280 msgstr ""
5281
5282 # type: verbatim
5283 #: ../src/guestfs-actions.pod:648
5284 #, no-wrap
5285 msgid ""
5286 " int\n"
5287 " guestfs_blockdev_getss (guestfs_h *g,\n"
5288 "                         const char *device);\n"
5289 "\n"
5290 msgstr ""
5291
5292 # type: textblock
5293 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:443
5294 msgid ""
5295 "This returns the size of sectors on a block device.  Usually 512, but can be "
5296 "larger for modern devices."
5297 msgstr ""
5298
5299 # type: textblock
5300 #: ../src/guestfs-actions.pod:655
5301 msgid ""
5302 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5303 "that)."
5304 msgstr ""
5305
5306 # type: =head2
5307 #: ../src/guestfs-actions.pod:664
5308 msgid "guestfs_blockdev_getsz"
5309 msgstr ""
5310
5311 # type: verbatim
5312 #: ../src/guestfs-actions.pod:666
5313 #, no-wrap
5314 msgid ""
5315 " int64_t\n"
5316 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5317 "                         const char *device);\n"
5318 "\n"
5319 msgstr ""
5320
5321 # type: textblock
5322 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:455
5323 msgid ""
5324 "This returns the size of the device in units of 512-byte sectors (even if "
5325 "the sectorsize isn't 512 bytes ... weird)."
5326 msgstr ""
5327
5328 # type: textblock
5329 #: ../src/guestfs-actions.pod:673
5330 msgid ""
5331 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5332 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5333 msgstr ""
5334
5335 # type: =head2
5336 #: ../src/guestfs-actions.pod:683
5337 msgid "guestfs_blockdev_rereadpt"
5338 msgstr ""
5339
5340 # type: verbatim
5341 #: ../src/guestfs-actions.pod:685
5342 #, no-wrap
5343 msgid ""
5344 " int\n"
5345 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5346 "                            const char *device);\n"
5347 "\n"
5348 msgstr ""
5349
5350 # type: textblock
5351 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:468
5352 msgid "Reread the partition table on C<device>."
5353 msgstr ""
5354
5355 # type: =head2
5356 #: ../src/guestfs-actions.pod:697
5357 msgid "guestfs_blockdev_setbsz"
5358 msgstr ""
5359
5360 # type: verbatim
5361 #: ../src/guestfs-actions.pod:699
5362 #, no-wrap
5363 msgid ""
5364 " int\n"
5365 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5366 "                          const char *device,\n"
5367 "                          int blocksize);\n"
5368 "\n"
5369 msgstr ""
5370
5371 # type: textblock
5372 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:476
5373 msgid "This sets the block size of a device."
5374 msgstr ""
5375
5376 # type: =head2
5377 #: ../src/guestfs-actions.pod:715
5378 msgid "guestfs_blockdev_setro"
5379 msgstr ""
5380
5381 # type: verbatim
5382 #: ../src/guestfs-actions.pod:717
5383 #, no-wrap
5384 msgid ""
5385 " int\n"
5386 " guestfs_blockdev_setro (guestfs_h *g,\n"
5387 "                         const char *device);\n"
5388 "\n"
5389 msgstr ""
5390
5391 # type: textblock
5392 #: ../src/guestfs-actions.pod:721 ../fish/guestfish-actions.pod:487
5393 msgid "Sets the block device named C<device> to read-only."
5394 msgstr ""
5395
5396 # type: =head2
5397 #: ../src/guestfs-actions.pod:729
5398 msgid "guestfs_blockdev_setrw"
5399 msgstr ""
5400
5401 # type: verbatim
5402 #: ../src/guestfs-actions.pod:731
5403 #, no-wrap
5404 msgid ""
5405 " int\n"
5406 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5407 "                         const char *device);\n"
5408 "\n"
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:735 ../fish/guestfish-actions.pod:495
5413 msgid "Sets the block device named C<device> to read-write."
5414 msgstr ""
5415
5416 # type: =head2
5417 #: ../src/guestfs-actions.pod:743
5418 msgid "guestfs_case_sensitive_path"
5419 msgstr ""
5420
5421 # type: verbatim
5422 #: ../src/guestfs-actions.pod:745
5423 #, no-wrap
5424 msgid ""
5425 " char *\n"
5426 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5427 "                              const char *path);\n"
5428 "\n"
5429 msgstr ""
5430
5431 # type: textblock
5432 #: ../src/guestfs-actions.pod:749 ../fish/guestfish-actions.pod:503
5433 msgid ""
5434 "This can be used to resolve case insensitive paths on a filesystem which is "
5435 "case sensitive.  The use case is to resolve paths which you have read from "
5436 "Windows configuration files or the Windows Registry, to the true path."
5437 msgstr ""
5438
5439 # type: textblock
5440 #: ../src/guestfs-actions.pod:754 ../fish/guestfish-actions.pod:508
5441 msgid ""
5442 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5443 "(and probably others), which is that although the underlying filesystem is "
5444 "case-insensitive, the driver exports the filesystem to Linux as case-"
5445 "sensitive."
5446 msgstr ""
5447
5448 # type: textblock
5449 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:513
5450 msgid ""
5451 "One consequence of this is that special directories such as C<c:\\windows> "
5452 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5453 "precise details of how they were created.  In Windows itself this would not "
5454 "be a problem."
5455 msgstr ""
5456
5457 # type: textblock
5458 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:519
5459 msgid ""
5460 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5461 "#posixfilenames1>"
5462 msgstr ""
5463
5464 # type: textblock
5465 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:522
5466 msgid ""
5467 "This function resolves the true case of each element in the path and returns "
5468 "the case-sensitive path."
5469 msgstr ""
5470
5471 # type: textblock
5472 #: ../src/guestfs-actions.pod:771
5473 msgid ""
5474 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5475 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5476 "how the directories were originally created under Windows)."
5477 msgstr ""
5478
5479 # type: textblock
5480 #: ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:530
5481 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5482 msgstr ""
5483
5484 # type: textblock
5485 #: ../src/guestfs-actions.pod:779
5486 msgid "See also C<guestfs_realpath>."
5487 msgstr ""
5488
5489 # type: textblock
5490 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:6304
5491 msgid "(Added in 1.0.75)"
5492 msgstr ""
5493
5494 # type: =head2
5495 #: ../src/guestfs-actions.pod:786
5496 msgid "guestfs_cat"
5497 msgstr ""
5498
5499 # type: verbatim
5500 #: ../src/guestfs-actions.pod:788
5501 #, no-wrap
5502 msgid ""
5503 " char *\n"
5504 " guestfs_cat (guestfs_h *g,\n"
5505 "              const char *path);\n"
5506 "\n"
5507 msgstr ""
5508
5509 # type: textblock
5510 #: ../src/guestfs-actions.pod:792 ../src/guestfs-actions.pod:4858
5511 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3210
5512 msgid "Return the contents of the file named C<path>."
5513 msgstr ""
5514
5515 # type: textblock
5516 #: ../src/guestfs-actions.pod:794
5517 msgid ""
5518 "Note that this function cannot correctly handle binary files (specifically, "
5519 "files containing C<\\0> character which is treated as end of string).  For "
5520 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5521 "functions which have a more complex interface."
5522 msgstr ""
5523
5524 # type: textblock
5525 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:981
5526 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1331
5527 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1453
5528 #: ../src/guestfs-actions.pod:1472 ../src/guestfs-actions.pod:1721
5529 #: ../src/guestfs-actions.pod:2140 ../src/guestfs-actions.pod:2159
5530 #: ../src/guestfs-actions.pod:2202 ../src/guestfs-actions.pod:2226
5531 #: ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2272
5532 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:4665
5533 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4823
5534 #: ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:5699
5535 #: ../src/guestfs-actions.pod:5754 ../src/guestfs-actions.pod:5900
5536 #: ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:6577
5537 #: ../src/guestfs-actions.pod:6603 ../src/guestfs-actions.pod:6629
5538 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6733
5539 #: ../src/guestfs-actions.pod:6752 ../src/guestfs-actions.pod:6798
5540 #: ../src/guestfs-actions.pod:6817 ../fish/guestfish-actions.pod:546
5541 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5542 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5543 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5544 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5545 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5546 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5547 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3080
5548 #: ../fish/guestfish-actions.pod:3095 ../fish/guestfish-actions.pod:3171
5549 #: ../fish/guestfish-actions.pod:3188 ../fish/guestfish-actions.pod:3203
5550 #: ../fish/guestfish-actions.pod:3786 ../fish/guestfish-actions.pod:3832
5551 #: ../fish/guestfish-actions.pod:3917 ../fish/guestfish-actions.pod:3932
5552 #: ../fish/guestfish-actions.pod:4342 ../fish/guestfish-actions.pod:4360
5553 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4387
5554 #: ../fish/guestfish-actions.pod:4435 ../fish/guestfish-actions.pod:4445
5555 #: ../fish/guestfish-actions.pod:4474 ../fish/guestfish-actions.pod:4484
5556 msgid ""
5557 "Because of the message protocol, there is a transfer limit of somewhere "
5558 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5559 msgstr ""
5560
5561 # type: textblock
5562 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:3033
5563 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3112
5564 #: ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3606
5565 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:4745
5566 #: ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:6463
5567 #: ../src/guestfs-actions.pod:6478
5568 msgid "(Added in 0.4)"
5569 msgstr ""
5570
5571 # type: =head2
5572 #: ../src/guestfs-actions.pod:807
5573 msgid "guestfs_checksum"
5574 msgstr ""
5575
5576 # type: verbatim
5577 #: ../src/guestfs-actions.pod:809
5578 #, no-wrap
5579 msgid ""
5580 " char *\n"
5581 " guestfs_checksum (guestfs_h *g,\n"
5582 "                   const char *csumtype,\n"
5583 "                   const char *path);\n"
5584 "\n"
5585 msgstr ""
5586
5587 # type: textblock
5588 #: ../src/guestfs-actions.pod:814 ../fish/guestfish-actions.pod:553
5589 msgid ""
5590 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5591 msgstr ""
5592
5593 # type: textblock
5594 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:556
5595 msgid ""
5596 "The type of checksum to compute is given by the C<csumtype> parameter which "
5597 "must have one of the following values:"
5598 msgstr ""
5599
5600 # type: =item
5601 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:561
5602 msgid "C<crc>"
5603 msgstr ""
5604
5605 # type: textblock
5606 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:563
5607 msgid ""
5608 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5609 "C<cksum> command."
5610 msgstr ""
5611
5612 # type: =item
5613 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:566
5614 msgid "C<md5>"
5615 msgstr ""
5616
5617 # type: textblock
5618 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:568
5619 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5620 msgstr ""
5621
5622 # type: =item
5623 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:570
5624 msgid "C<sha1>"
5625 msgstr ""
5626
5627 # type: textblock
5628 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:572
5629 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5630 msgstr ""
5631
5632 # type: =item
5633 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:574
5634 msgid "C<sha224>"
5635 msgstr ""
5636
5637 # type: textblock
5638 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:576
5639 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5640 msgstr ""
5641
5642 # type: =item
5643 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:578
5644 msgid "C<sha256>"
5645 msgstr ""
5646
5647 # type: textblock
5648 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:580
5649 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5650 msgstr ""
5651
5652 # type: =item
5653 #: ../src/guestfs-actions.pod:843 ../fish/guestfish-actions.pod:582
5654 msgid "C<sha384>"
5655 msgstr ""
5656
5657 # type: textblock
5658 #: ../src/guestfs-actions.pod:845 ../fish/guestfish-actions.pod:584
5659 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5660 msgstr ""
5661
5662 # type: =item
5663 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:586
5664 msgid "C<sha512>"
5665 msgstr ""
5666
5667 # type: textblock
5668 #: ../src/guestfs-actions.pod:849 ../fish/guestfish-actions.pod:588
5669 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5670 msgstr ""
5671
5672 # type: textblock
5673 #: ../src/guestfs-actions.pod:853 ../fish/guestfish-actions.pod:592
5674 msgid "The checksum is returned as a printable string."
5675 msgstr ""
5676
5677 # type: textblock
5678 #: ../src/guestfs-actions.pod:855
5679 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5680 msgstr ""
5681
5682 # type: textblock
5683 #: ../src/guestfs-actions.pod:857
5684 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5685 msgstr ""
5686
5687 # type: textblock
5688 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:1209
5689 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2806
5690 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2896
5691 #: ../src/guestfs-actions.pod:2923 ../src/guestfs-actions.pod:6165
5692 msgid "(Added in 1.0.2)"
5693 msgstr ""
5694
5695 # type: =head2
5696 #: ../src/guestfs-actions.pod:864
5697 msgid "guestfs_checksum_device"
5698 msgstr ""
5699
5700 # type: verbatim
5701 #: ../src/guestfs-actions.pod:866
5702 #, no-wrap
5703 msgid ""
5704 " char *\n"
5705 " guestfs_checksum_device (guestfs_h *g,\n"
5706 "                          const char *csumtype,\n"
5707 "                          const char *device);\n"
5708 "\n"
5709 msgstr ""
5710
5711 # type: textblock
5712 #: ../src/guestfs-actions.pod:871
5713 msgid ""
5714 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5715 "device named C<device>.  For the types of checksums supported see the "
5716 "C<guestfs_checksum> command."
5717 msgstr ""
5718
5719 # type: textblock
5720 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:4275
5721 #: ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4371
5722 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4566
5723 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093
5724 #: ../src/guestfs-actions.pod:6490
5725 msgid "(Added in 1.3.2)"
5726 msgstr ""
5727
5728 # type: =head2
5729 #: ../src/guestfs-actions.pod:880
5730 msgid "guestfs_checksums_out"
5731 msgstr ""
5732
5733 # type: verbatim
5734 #: ../src/guestfs-actions.pod:882
5735 #, no-wrap
5736 msgid ""
5737 " int\n"
5738 " guestfs_checksums_out (guestfs_h *g,\n"
5739 "                        const char *csumtype,\n"
5740 "                        const char *directory,\n"
5741 "                        const char *sumsfile);\n"
5742 "\n"
5743 msgstr ""
5744
5745 # type: textblock
5746 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:610
5747 msgid ""
5748 "This command computes the checksums of all regular files in C<directory> and "
5749 "then emits a list of those checksums to the local output file C<sumsfile>."
5750 msgstr ""
5751
5752 # type: textblock
5753 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:614
5754 msgid ""
5755 "This can be used for verifying the integrity of a virtual machine.  However "
5756 "to be properly secure you should pay attention to the output of the checksum "
5757 "command (it uses the ones from GNU coreutils).  In particular when the "
5758 "filename is not printable, coreutils uses a special backslash syntax.  For "
5759 "more information, see the GNU coreutils info file."
5760 msgstr ""
5761
5762 # type: textblock
5763 #: ../src/guestfs-actions.pod:902
5764 msgid "(Added in 1.3.7)"
5765 msgstr ""
5766
5767 # type: =head2
5768 #: ../src/guestfs-actions.pod:904
5769 msgid "guestfs_chmod"
5770 msgstr ""
5771
5772 # type: verbatim
5773 #: ../src/guestfs-actions.pod:906
5774 #, no-wrap
5775 msgid ""
5776 " int\n"
5777 " guestfs_chmod (guestfs_h *g,\n"
5778 "                int mode,\n"
5779 "                const char *path);\n"
5780 "\n"
5781 msgstr ""
5782
5783 # type: textblock
5784 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:628
5785 msgid ""
5786 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5787 "supported."
5788 msgstr ""
5789
5790 # type: textblock
5791 #: ../src/guestfs-actions.pod:914 ../fish/guestfish-actions.pod:631
5792 msgid ""
5793 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5794 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5795 "C<700>."
5796 msgstr ""
5797
5798 # type: textblock
5799 #: ../src/guestfs-actions.pod:918 ../src/guestfs-actions.pod:3859
5800 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:3993
5801 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:635
5802 #: ../fish/guestfish-actions.pod:2570 ../fish/guestfish-actions.pod:2655
5803 #: ../fish/guestfish-actions.pod:2665 ../fish/guestfish-actions.pod:2675
5804 msgid "The mode actually set is affected by the umask."
5805 msgstr ""
5806
5807 # type: =head2
5808 #: ../src/guestfs-actions.pod:924
5809 msgid "guestfs_chown"
5810 msgstr ""
5811
5812 # type: verbatim
5813 #: ../src/guestfs-actions.pod:926
5814 #, no-wrap
5815 msgid ""
5816 " int\n"
5817 " guestfs_chown (guestfs_h *g,\n"
5818 "                int owner,\n"
5819 "                int group,\n"
5820 "                const char *path);\n"
5821 "\n"
5822 msgstr ""
5823
5824 # type: textblock
5825 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:641
5826 msgid "Change the file owner to C<owner> and group to C<group>."
5827 msgstr ""
5828
5829 # type: textblock
5830 #: ../src/guestfs-actions.pod:934 ../src/guestfs-actions.pod:2993
5831 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2048
5832 msgid ""
5833 "Only numeric uid and gid are supported.  If you want to use names, you will "
5834 "need to locate and parse the password file yourself (Augeas support makes "
5835 "this relatively easy)."
5836 msgstr ""
5837
5838 # type: =head2
5839 #: ../src/guestfs-actions.pod:942
5840 msgid "guestfs_command"
5841 msgstr ""
5842
5843 # type: verbatim
5844 #: ../src/guestfs-actions.pod:944
5845 #, no-wrap
5846 msgid ""
5847 " char *\n"
5848 " guestfs_command (guestfs_h *g,\n"
5849 "                  char *const *arguments);\n"
5850 "\n"
5851 msgstr ""
5852
5853 # type: textblock
5854 #: ../src/guestfs-actions.pod:948 ../fish/guestfish-actions.pod:651
5855 msgid ""
5856 "This call runs a command from the guest filesystem.  The filesystem must be "
5857 "mounted, and must contain a compatible operating system (ie. something "
5858 "Linux, with the same or compatible processor architecture)."
5859 msgstr ""
5860
5861 # type: textblock
5862 #: ../src/guestfs-actions.pod:953
5863 msgid ""
5864 "The single parameter is an argv-style list of arguments.  The first element "
5865 "is the name of the program to run.  Subsequent elements are parameters.  The "
5866 "list must be non-empty (ie. must contain a program name).  Note that the "
5867 "command runs directly, and is I<not> invoked via the shell (see "
5868 "C<guestfs_sh>)."
5869 msgstr ""
5870
5871 # type: textblock
5872 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:663
5873 msgid "The return value is anything printed to I<stdout> by the command."
5874 msgstr ""
5875
5876 # type: textblock
5877 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:666
5878 msgid ""
5879 "If the command returns a non-zero exit status, then this function returns an "
5880 "error message.  The error message string is the content of I<stderr> from "
5881 "the command."
5882 msgstr ""
5883
5884 # type: textblock
5885 #: ../src/guestfs-actions.pod:967 ../fish/guestfish-actions.pod:670
5886 msgid ""
5887 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5888 "bin>.  If you require a program from another location, you should provide "
5889 "the full path in the first parameter."
5890 msgstr ""
5891
5892 # type: textblock
5893 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:675
5894 msgid ""
5895 "Shared libraries and data files required by the program must be available on "
5896 "filesystems which are mounted in the correct places.  It is the caller's "
5897 "responsibility to ensure all filesystems that are needed are mounted at the "
5898 "right locations."
5899 msgstr ""
5900
5901 # type: textblock
5902 #: ../src/guestfs-actions.pod:984 ../src/guestfs-actions.pod:1004
5903 #: ../src/guestfs-actions.pod:1506
5904 msgid "(Added in 0.9.1)"
5905 msgstr ""
5906
5907 # type: =head2
5908 #: ../src/guestfs-actions.pod:986
5909 msgid "guestfs_command_lines"
5910 msgstr ""
5911
5912 # type: verbatim
5913 #: ../src/guestfs-actions.pod:988
5914 #, no-wrap
5915 msgid ""
5916 " char **\n"
5917 " guestfs_command_lines (guestfs_h *g,\n"
5918 "                        char *const *arguments);\n"
5919 "\n"
5920 msgstr ""
5921
5922 # type: textblock
5923 #: ../src/guestfs-actions.pod:992
5924 msgid ""
5925 "This is the same as C<guestfs_command>, but splits the result into a list of "
5926 "lines."
5927 msgstr ""
5928
5929 # type: textblock
5930 #: ../src/guestfs-actions.pod:995
5931 msgid "See also: C<guestfs_sh_lines>"
5932 msgstr ""
5933
5934 # type: =head2
5935 #: ../src/guestfs-actions.pod:1006
5936 msgid "guestfs_config"
5937 msgstr ""
5938
5939 # type: verbatim
5940 #: ../src/guestfs-actions.pod:1008
5941 #, no-wrap
5942 msgid ""
5943 " int\n"
5944 " guestfs_config (guestfs_h *g,\n"
5945 "                 const char *qemuparam,\n"
5946 "                 const char *qemuvalue);\n"
5947 "\n"
5948 msgstr ""
5949
5950 # type: textblock
5951 #: ../src/guestfs-actions.pod:1013 ../fish/guestfish-actions.pod:700
5952 msgid ""
5953 "This can be used to add arbitrary qemu command line parameters of the form "
5954 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5955 "setting some parameters which would interfere with parameters that we use."
5956 msgstr ""
5957
5958 # type: textblock
5959 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:705
5960 msgid "The first character of C<param> string must be a C<-> (dash)."
5961 msgstr ""
5962
5963 # type: textblock
5964 #: ../src/guestfs-actions.pod:1020 ../fish/guestfish-actions.pod:707
5965 msgid "C<value> can be NULL."
5966 msgstr ""
5967
5968 # type: =head2
5969 #: ../src/guestfs-actions.pod:1026
5970 msgid "guestfs_copy_size"
5971 msgstr ""
5972
5973 # type: verbatim
5974 #: ../src/guestfs-actions.pod:1028
5975 #, no-wrap
5976 msgid ""
5977 " int\n"
5978 " guestfs_copy_size (guestfs_h *g,\n"
5979 "                    const char *src,\n"
5980 "                    const char *dest,\n"
5981 "                    int64_t size);\n"
5982 "\n"
5983 msgstr ""
5984
5985 # type: textblock
5986 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:713
5987 msgid ""
5988 "This command copies exactly C<size> bytes from one source device or file "
5989 "C<src> to another destination device or file C<dest>."
5990 msgstr ""
5991
5992 # type: textblock
5993 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:716
5994 msgid ""
5995 "Note this will fail if the source is too short or if the destination is not "
5996 "large enough."
5997 msgstr ""
5998
5999 # type: textblock
6000 #: ../src/guestfs-actions.pod:1042 ../src/guestfs-actions.pod:1204
6001 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:1655
6002 #: ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:6669
6003 #: ../src/guestfs-actions.pod:6688
6004 msgid ""
6005 "This long-running command can generate progress notification messages so "
6006 "that the caller can display a progress bar or indicator.  To receive these "
6007 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6008 "guestfs_set_progress_callback>."
6009 msgstr ""
6010
6011 # type: textblock
6012 #: ../src/guestfs-actions.pod:1047 ../src/guestfs-actions.pod:3634
6013 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:6396
6014 #: ../src/guestfs-actions.pod:6416 ../src/guestfs-actions.pod:6503
6015 msgid "(Added in 1.0.87)"
6016 msgstr ""
6017
6018 # type: =head2
6019 #: ../src/guestfs-actions.pod:1049
6020 msgid "guestfs_cp"
6021 msgstr ""
6022
6023 # type: verbatim
6024 #: ../src/guestfs-actions.pod:1051
6025 #, no-wrap
6026 msgid ""
6027 " int\n"
6028 " guestfs_cp (guestfs_h *g,\n"
6029 "             const char *src,\n"
6030 "             const char *dest);\n"
6031 "\n"
6032 msgstr ""
6033
6034 # type: textblock
6035 #: ../src/guestfs-actions.pod:1056 ../fish/guestfish-actions.pod:723
6036 msgid ""
6037 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6038 "destination filename or destination directory."
6039 msgstr ""
6040
6041 # type: textblock
6042 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1075
6043 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1260
6044 #: ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:4238
6045 #: ../src/guestfs-actions.pod:4616
6046 msgid "(Added in 1.0.18)"
6047 msgstr ""
6048
6049 # type: =head2
6050 #: ../src/guestfs-actions.pod:1063
6051 msgid "guestfs_cp_a"
6052 msgstr ""
6053
6054 # type: verbatim
6055 #: ../src/guestfs-actions.pod:1065
6056 #, no-wrap
6057 msgid ""
6058 " int\n"
6059 " guestfs_cp_a (guestfs_h *g,\n"
6060 "               const char *src,\n"
6061 "               const char *dest);\n"
6062 "\n"
6063 msgstr ""
6064
6065 # type: textblock
6066 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:730
6067 msgid ""
6068 "This copies a file or directory from C<src> to C<dest> recursively using the "
6069 "C<cp -a> command."
6070 msgstr ""
6071
6072 # type: =head2
6073 #: ../src/guestfs-actions.pod:1077
6074 msgid "guestfs_dd"
6075 msgstr ""
6076
6077 # type: verbatim
6078 #: ../src/guestfs-actions.pod:1079
6079 #, no-wrap
6080 msgid ""
6081 " int\n"
6082 " guestfs_dd (guestfs_h *g,\n"
6083 "             const char *src,\n"
6084 "             const char *dest);\n"
6085 "\n"
6086 msgstr ""
6087
6088 # type: textblock
6089 #: ../src/guestfs-actions.pod:1084 ../fish/guestfish-actions.pod:737
6090 msgid ""
6091 "This command copies from one source device or file C<src> to another "
6092 "destination device or file C<dest>.  Normally you would use this to copy to "
6093 "or from a device or partition, for example to duplicate a filesystem."
6094 msgstr ""
6095
6096 # type: textblock
6097 #: ../src/guestfs-actions.pod:1089
6098 msgid ""
6099 "If the destination is a device, it must be as large or larger than the "
6100 "source file or device, otherwise the copy will fail.  This command cannot do "
6101 "partial copies (see C<guestfs_copy_size>)."
6102 msgstr ""
6103
6104 # type: =head2
6105 #: ../src/guestfs-actions.pod:1097
6106 msgid "guestfs_debug"
6107 msgstr ""
6108
6109 # type: verbatim
6110 #: ../src/guestfs-actions.pod:1099
6111 #, no-wrap
6112 msgid ""
6113 " char *\n"
6114 " guestfs_debug (guestfs_h *g,\n"
6115 "                const char *subcmd,\n"
6116 "                char *const *extraargs);\n"
6117 "\n"
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1104
6122 msgid ""
6123 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
6124 "guestfs daemon) that runs inside the qemu subprocess."
6125 msgstr ""
6126
6127 # type: textblock
6128 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:754
6129 msgid ""
6130 "There is no comprehensive help for this command.  You have to look at the "
6131 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
6132 msgstr ""
6133
6134 # type: textblock
6135 #: ../src/guestfs-actions.pod:1115
6136 msgid "(Added in 1.0.11)"
6137 msgstr ""
6138
6139 # type: =head2
6140 #: ../src/guestfs-actions.pod:1117
6141 msgid "guestfs_debug_upload"
6142 msgstr ""
6143
6144 # type: verbatim
6145 #: ../src/guestfs-actions.pod:1119
6146 #, no-wrap
6147 msgid ""
6148 " int\n"
6149 " guestfs_debug_upload (guestfs_h *g,\n"
6150 "                       const char *filename,\n"
6151 "                       const char *tmpname,\n"
6152 "                       int mode);\n"
6153 "\n"
6154 msgstr ""
6155
6156 # type: textblock
6157 #: ../src/guestfs-actions.pod:1125
6158 msgid ""
6159 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
6160 "appliance."
6161 msgstr ""
6162
6163 # type: textblock
6164 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:765
6165 msgid ""
6166 "There is no comprehensive help for this command.  You have to look at the "
6167 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
6168 msgstr ""
6169
6170 # type: =head2
6171 #: ../src/guestfs-actions.pod:1136
6172 msgid "guestfs_df"
6173 msgstr ""
6174
6175 # type: verbatim
6176 #: ../src/guestfs-actions.pod:1138
6177 #, no-wrap
6178 msgid ""
6179 " char *\n"
6180 " guestfs_df (guestfs_h *g);\n"
6181 "\n"
6182 msgstr ""
6183
6184 # type: textblock
6185 #: ../src/guestfs-actions.pod:1141 ../fish/guestfish-actions.pod:775
6186 msgid "This command runs the C<df> command to report disk space used."
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1160
6191 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
6192 msgid ""
6193 "This command is mostly useful for interactive sessions.  It is I<not> "
6194 "intended that you try to parse the output string.  Use C<statvfs> from "
6195 "programs."
6196 msgstr ""
6197
6198 # type: textblock
6199 #: ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1167
6200 #: ../src/guestfs-actions.pod:1280 ../src/guestfs-actions.pod:2205
6201 #: ../src/guestfs-actions.pod:2229 ../src/guestfs-actions.pod:2297
6202 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:4138
6203 #: ../src/guestfs-actions.pod:5903 ../src/guestfs-actions.pod:5927
6204 #: ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6549
6205 #: ../src/guestfs-actions.pod:6562
6206 msgid "(Added in 1.0.54)"
6207 msgstr ""
6208
6209 # type: =head2
6210 #: ../src/guestfs-actions.pod:1152
6211 msgid "guestfs_df_h"
6212 msgstr ""
6213
6214 # type: verbatim
6215 #: ../src/guestfs-actions.pod:1154
6216 #, no-wrap
6217 msgid ""
6218 " char *\n"
6219 " guestfs_df_h (guestfs_h *g);\n"
6220 "\n"
6221 msgstr ""
6222
6223 # type: textblock
6224 #: ../src/guestfs-actions.pod:1157 ../fish/guestfish-actions.pod:785
6225 msgid ""
6226 "This command runs the C<df -h> command to report disk space used in human-"
6227 "readable format."
6228 msgstr ""
6229
6230 # type: =head2
6231 #: ../src/guestfs-actions.pod:1169
6232 msgid "guestfs_dmesg"
6233 msgstr ""
6234
6235 # type: verbatim
6236 #: ../src/guestfs-actions.pod:1171
6237 #, no-wrap
6238 msgid ""
6239 " char *\n"
6240 " guestfs_dmesg (guestfs_h *g);\n"
6241 "\n"
6242 msgstr ""
6243
6244 # type: textblock
6245 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:796
6246 msgid ""
6247 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6248 "This is sometimes useful for extended debugging of problems."
6249 msgstr ""
6250
6251 # type: textblock
6252 #: ../src/guestfs-actions.pod:1178
6253 msgid ""
6254 "Another way to get the same information is to enable verbose messages with "
6255 "C<guestfs_set_verbose> or by setting the environment variable "
6256 "C<LIBGUESTFS_DEBUG=1> before running the program."
6257 msgstr ""
6258
6259 # type: =head2
6260 #: ../src/guestfs-actions.pod:1188
6261 msgid "guestfs_download"
6262 msgstr ""
6263
6264 # type: verbatim
6265 #: ../src/guestfs-actions.pod:1190
6266 #, no-wrap
6267 msgid ""
6268 " int\n"
6269 " guestfs_download (guestfs_h *g,\n"
6270 "                   const char *remotefilename,\n"
6271 "                   const char *filename);\n"
6272 "\n"
6273 msgstr ""
6274
6275 # type: textblock
6276 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1220
6277 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
6278 msgid ""
6279 "Download file C<remotefilename> and save it as C<filename> on the local "
6280 "machine."
6281 msgstr ""
6282
6283 # type: textblock
6284 #: ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:6159
6285 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4090
6286 msgid "C<filename> can also be a named pipe."
6287 msgstr ""
6288
6289 # type: textblock
6290 #: ../src/guestfs-actions.pod:1200
6291 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6292 msgstr ""
6293
6294 # type: =head2
6295 #: ../src/guestfs-actions.pod:1211
6296 msgid "guestfs_download_offset"
6297 msgstr ""
6298
6299 # type: verbatim
6300 #: ../src/guestfs-actions.pod:1213
6301 #, no-wrap
6302 msgid ""
6303 " int\n"
6304 " guestfs_download_offset (guestfs_h *g,\n"
6305 "                          const char *remotefilename,\n"
6306 "                          const char *filename,\n"
6307 "                          int64_t offset,\n"
6308 "                          int64_t size);\n"
6309 "\n"
6310 msgstr ""
6311
6312 # type: textblock
6313 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:825
6314 msgid ""
6315 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6316 "region must be within the file or device)."
6317 msgstr ""
6318
6319 # type: textblock
6320 #: ../src/guestfs-actions.pod:1226
6321 msgid ""
6322 "Note that there is no limit on the amount of data that can be downloaded "
6323 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6324 "full amount unless an error occurs."
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1231
6329 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6330 msgstr ""
6331
6332 # type: textblock
6333 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:6194
6334 msgid "(Added in 1.5.17)"
6335 msgstr ""
6336
6337 # type: =head2
6338 #: ../src/guestfs-actions.pod:1242
6339 msgid "guestfs_drop_caches"
6340 msgstr ""
6341
6342 # type: verbatim
6343 #: ../src/guestfs-actions.pod:1244
6344 #, no-wrap
6345 msgid ""
6346 " int\n"
6347 " guestfs_drop_caches (guestfs_h *g,\n"
6348 "                      int whattodrop);\n"
6349 "\n"
6350 msgstr ""
6351
6352 # type: textblock
6353 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:841
6354 msgid ""
6355 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6356 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6357 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6358 msgstr ""
6359
6360 # type: textblock
6361 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:846
6362 msgid "Setting C<whattodrop> to 3 should drop everything."
6363 msgstr ""
6364
6365 # type: textblock
6366 #: ../src/guestfs-actions.pod:1255 ../fish/guestfish-actions.pod:848
6367 msgid ""
6368 "This automatically calls L<sync(2)> before the operation, so that the "
6369 "maximum guest memory is freed."
6370 msgstr ""
6371
6372 # type: =head2
6373 #: ../src/guestfs-actions.pod:1262
6374 msgid "guestfs_du"
6375 msgstr ""
6376
6377 # type: verbatim
6378 #: ../src/guestfs-actions.pod:1264
6379 #, no-wrap
6380 msgid ""
6381 " int64_t\n"
6382 " guestfs_du (guestfs_h *g,\n"
6383 "             const char *path);\n"
6384 "\n"
6385 msgstr ""
6386
6387 # type: textblock
6388 #: ../src/guestfs-actions.pod:1268 ../fish/guestfish-actions.pod:855
6389 msgid ""
6390 "This command runs the C<du -s> command to estimate file space usage for "
6391 "C<path>."
6392 msgstr ""
6393
6394 # type: textblock
6395 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:858
6396 msgid ""
6397 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6398 "estimate includes the contents of the directory and all subdirectories "
6399 "(recursively)."
6400 msgstr ""
6401
6402 # type: textblock
6403 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:862
6404 msgid ""
6405 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6406 msgstr ""
6407
6408 # type: =head2
6409 #: ../src/guestfs-actions.pod:1282
6410 msgid "guestfs_e2fsck_f"
6411 msgstr ""
6412
6413 # type: verbatim
6414 #: ../src/guestfs-actions.pod:1284
6415 #, no-wrap
6416 msgid ""
6417 " int\n"
6418 " guestfs_e2fsck_f (guestfs_h *g,\n"
6419 "                   const char *device);\n"
6420 "\n"
6421 msgstr ""
6422
6423 # type: textblock
6424 #: ../src/guestfs-actions.pod:1288 ../fish/guestfish-actions.pod:869
6425 msgid ""
6426 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6427 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6428 "clean (C<-f>)."
6429 msgstr ""
6430
6431 # type: textblock
6432 #: ../src/guestfs-actions.pod:1292
6433 msgid ""
6434 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6435 "Normally you should use C<guestfs_fsck>."
6436 msgstr ""
6437
6438 # type: textblock
6439 #: ../src/guestfs-actions.pod:1297
6440 msgid "(Added in 1.0.29)"
6441 msgstr ""
6442
6443 # type: =head2
6444 #: ../src/guestfs-actions.pod:1299
6445 msgid "guestfs_echo_daemon"
6446 msgstr ""
6447
6448 # type: verbatim
6449 #: ../src/guestfs-actions.pod:1301
6450 #, no-wrap
6451 msgid ""
6452 " char *\n"
6453 " guestfs_echo_daemon (guestfs_h *g,\n"
6454 "                      char *const *words);\n"
6455 "\n"
6456 msgstr ""
6457
6458 # type: textblock
6459 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:880
6460 msgid ""
6461 "This command concatenates the list of C<words> passed with single spaces "
6462 "between them and returns the resulting string."
6463 msgstr ""
6464
6465 # type: textblock
6466 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:883
6467 msgid "You can use this command to test the connection through to the daemon."
6468 msgstr ""
6469
6470 # type: textblock
6471 #: ../src/guestfs-actions.pod:1310
6472 msgid "See also C<guestfs_ping_daemon>."
6473 msgstr ""
6474
6475 # type: textblock
6476 #: ../src/guestfs-actions.pod:1315 ../src/guestfs-actions.pod:2042
6477 #: ../src/guestfs-actions.pod:5407
6478 msgid "(Added in 1.0.69)"
6479 msgstr ""
6480
6481 # type: =head2
6482 #: ../src/guestfs-actions.pod:1317
6483 msgid "guestfs_egrep"
6484 msgstr ""
6485
6486 # type: verbatim
6487 #: ../src/guestfs-actions.pod:1319
6488 #, no-wrap
6489 msgid ""
6490 " char **\n"
6491 " guestfs_egrep (guestfs_h *g,\n"
6492 "                const char *regex,\n"
6493 "                const char *path);\n"
6494 "\n"
6495 msgstr ""
6496
6497 # type: textblock
6498 #: ../src/guestfs-actions.pod:1324 ../fish/guestfish-actions.pod:891
6499 msgid ""
6500 "This calls the external C<egrep> program and returns the matching lines."
6501 msgstr ""
6502
6503 # type: textblock
6504 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:1353
6505 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1456
6506 #: ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:2143
6507 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2318
6508 #: ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:2346
6509 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2415
6510 #: ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:3125
6511 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3152
6512 #: ../src/guestfs-actions.pod:3166 ../src/guestfs-actions.pod:4073
6513 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:5001
6514 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5783
6515 #: ../src/guestfs-actions.pod:5796 ../src/guestfs-actions.pod:5809
6516 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:5844
6517 #: ../src/guestfs-actions.pod:5857 ../src/guestfs-actions.pod:5870
6518 #: ../src/guestfs-actions.pod:6632 ../src/guestfs-actions.pod:6651
6519 #: ../src/guestfs-actions.pod:6736 ../src/guestfs-actions.pod:6755
6520 #: ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6820
6521 msgid "(Added in 1.0.66)"
6522 msgstr ""
6523
6524 # type: =head2
6525 #: ../src/guestfs-actions.pod:1336
6526 msgid "guestfs_egrepi"
6527 msgstr ""
6528
6529 # type: verbatim
6530 #: ../src/guestfs-actions.pod:1338
6531 #, no-wrap
6532 msgid ""
6533 " char **\n"
6534 " guestfs_egrepi (guestfs_h *g,\n"
6535 "                 const char *regex,\n"
6536 "                 const char *path);\n"
6537 "\n"
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1343 ../fish/guestfish-actions.pod:901
6542 msgid ""
6543 "This calls the external C<egrep -i> program and returns the matching lines."
6544 msgstr ""
6545
6546 # type: =head2
6547 #: ../src/guestfs-actions.pod:1355
6548 msgid "guestfs_equal"
6549 msgstr ""
6550
6551 # type: verbatim
6552 #: ../src/guestfs-actions.pod:1357
6553 #, no-wrap
6554 msgid ""
6555 " int\n"
6556 " guestfs_equal (guestfs_h *g,\n"
6557 "                const char *file1,\n"
6558 "                const char *file2);\n"
6559 "\n"
6560 msgstr ""
6561
6562 # type: textblock
6563 #: ../src/guestfs-actions.pod:1362 ../fish/guestfish-actions.pod:911
6564 msgid ""
6565 "This compares the two files C<file1> and C<file2> and returns true if their "
6566 "content is exactly equal, or false otherwise."
6567 msgstr ""
6568
6569 # type: textblock
6570 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:914
6571 msgid "The external L<cmp(1)> program is used for the comparison."
6572 msgstr ""
6573
6574 # type: =head2
6575 #: ../src/guestfs-actions.pod:1371
6576 msgid "guestfs_exists"
6577 msgstr ""
6578
6579 # type: verbatim
6580 #: ../src/guestfs-actions.pod:1373
6581 #, no-wrap
6582 msgid ""
6583 " int\n"
6584 " guestfs_exists (guestfs_h *g,\n"
6585 "                 const char *path);\n"
6586 "\n"
6587 msgstr ""
6588
6589 # type: textblock
6590 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:920
6591 msgid ""
6592 "This returns C<true> if and only if there is a file, directory (or anything) "
6593 "with the given C<path> name."
6594 msgstr ""
6595
6596 # type: textblock
6597 #: ../src/guestfs-actions.pod:1380
6598 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6599 msgstr ""
6600
6601 # type: =head2
6602 #: ../src/guestfs-actions.pod:1386
6603 msgid "guestfs_fallocate"
6604 msgstr ""
6605
6606 # type: verbatim
6607 #: ../src/guestfs-actions.pod:1388
6608 #, no-wrap
6609 msgid ""
6610 " int\n"
6611 " guestfs_fallocate (guestfs_h *g,\n"
6612 "                    const char *path,\n"
6613 "                    int len);\n"
6614 "\n"
6615 msgstr ""
6616
6617 # type: textblock
6618 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1419
6619 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6620 msgid ""
6621 "This command preallocates a file (containing zero bytes) named C<path> of "
6622 "size C<len> bytes.  If the file exists already, it is overwritten."
6623 msgstr ""
6624
6625 # type: textblock
6626 #: ../src/guestfs-actions.pod:1397 ../fish/guestfish-actions.pod:933
6627 msgid ""
6628 "Do not confuse this with the guestfish-specific C<alloc> command which "
6629 "allocates a file in the host and attaches it as a device."
6630 msgstr ""
6631
6632 # type: textblock
6633 #: ../src/guestfs-actions.pod:1403 ../fish/guestfish-actions.pod:937
6634 msgid ""
6635 "This function is deprecated.  In new code, use the C<fallocate64> call "
6636 "instead."
6637 msgstr ""
6638
6639 # type: =head2
6640 #: ../src/guestfs-actions.pod:1412
6641 msgid "guestfs_fallocate64"
6642 msgstr ""
6643
6644 # type: verbatim
6645 #: ../src/guestfs-actions.pod:1414
6646 #, no-wrap
6647 msgid ""
6648 " int\n"
6649 " guestfs_fallocate64 (guestfs_h *g,\n"
6650 "                      const char *path,\n"
6651 "                      int64_t len);\n"
6652 "\n"
6653 msgstr ""
6654
6655 # type: textblock
6656 #: ../src/guestfs-actions.pod:1423
6657 msgid ""
6658 "Note that this call allocates disk blocks for the file.  To create a sparse "
6659 "file use C<guestfs_truncate_size> instead."
6660 msgstr ""
6661
6662 # type: textblock
6663 #: ../src/guestfs-actions.pod:1426
6664 msgid ""
6665 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6666 "oversight it only allowed 30 bit lengths to be specified, effectively "
6667 "limiting the maximum size of files created through that call to 1GB."
6668 msgstr ""
6669
6670 # type: textblock
6671 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:960
6672 msgid ""
6673 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6674 "commands which create a file in the host and attach it as a device."
6675 msgstr ""
6676
6677 # type: textblock
6678 #: ../src/guestfs-actions.pod:1437
6679 msgid "(Added in 1.3.17)"
6680 msgstr ""
6681
6682 # type: =head2
6683 #: ../src/guestfs-actions.pod:1439
6684 msgid "guestfs_fgrep"
6685 msgstr ""
6686
6687 # type: verbatim
6688 #: ../src/guestfs-actions.pod:1441
6689 #, no-wrap
6690 msgid ""
6691 " char **\n"
6692 " guestfs_fgrep (guestfs_h *g,\n"
6693 "                const char *pattern,\n"
6694 "                const char *path);\n"
6695 "\n"
6696 msgstr ""
6697
6698 # type: textblock
6699 #: ../src/guestfs-actions.pod:1446 ../fish/guestfish-actions.pod:968
6700 msgid ""
6701 "This calls the external C<fgrep> program and returns the matching lines."
6702 msgstr ""
6703
6704 # type: =head2
6705 #: ../src/guestfs-actions.pod:1458
6706 msgid "guestfs_fgrepi"
6707 msgstr ""
6708
6709 # type: verbatim
6710 #: ../src/guestfs-actions.pod:1460
6711 #, no-wrap
6712 msgid ""
6713 " char **\n"
6714 " guestfs_fgrepi (guestfs_h *g,\n"
6715 "                 const char *pattern,\n"
6716 "                 const char *path);\n"
6717 "\n"
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1465 ../fish/guestfish-actions.pod:978
6722 msgid ""
6723 "This calls the external C<fgrep -i> program and returns the matching lines."
6724 msgstr ""
6725
6726 # type: =head2
6727 #: ../src/guestfs-actions.pod:1477
6728 msgid "guestfs_file"
6729 msgstr ""
6730
6731 # type: verbatim
6732 #: ../src/guestfs-actions.pod:1479
6733 #, no-wrap
6734 msgid ""
6735 " char *\n"
6736 " guestfs_file (guestfs_h *g,\n"
6737 "               const char *path);\n"
6738 "\n"
6739 msgstr ""
6740
6741 # type: textblock
6742 #: ../src/guestfs-actions.pod:1483 ../fish/guestfish-actions.pod:988
6743 msgid ""
6744 "This call uses the standard L<file(1)> command to determine the type or "
6745 "contents of the file."
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:991
6750 msgid ""
6751 "This call will also transparently look inside various types of compressed "
6752 "file."
6753 msgstr ""
6754
6755 # type: textblock
6756 #: ../src/guestfs-actions.pod:1489 ../fish/guestfish-actions.pod:994
6757 msgid ""
6758 "The exact command which runs is C<file -zb path>.  Note in particular that "
6759 "the filename is not prepended to the output (the C<-b> option)."
6760 msgstr ""
6761
6762 # type: textblock
6763 #: ../src/guestfs-actions.pod:1493
6764 msgid ""
6765 "This command can also be used on C</dev/> devices (and partitions, LV "
6766 "names).  You can for example use this to determine if a device contains a "
6767 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6768 msgstr ""
6769
6770 # type: textblock
6771 #: ../src/guestfs-actions.pod:1498 ../fish/guestfish-actions.pod:1003
6772 msgid ""
6773 "If the C<path> does not begin with C</dev/> then this command only works for "
6774 "the content of regular files.  For other file types (directory, symbolic "
6775 "link etc) it will just return the string C<directory> etc."
6776 msgstr ""
6777
6778 # type: =head2
6779 #: ../src/guestfs-actions.pod:1508
6780 msgid "guestfs_file_architecture"
6781 msgstr ""
6782
6783 # type: verbatim
6784 #: ../src/guestfs-actions.pod:1510
6785 #, no-wrap
6786 msgid ""
6787 " char *\n"
6788 " guestfs_file_architecture (guestfs_h *g,\n"
6789 "                            const char *filename);\n"
6790 "\n"
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:1012
6795 msgid ""
6796 "This detects the architecture of the binary C<filename>, and returns it if "
6797 "known."
6798 msgstr ""
6799
6800 # type: textblock
6801 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1015
6802 msgid "Currently defined architectures are:"
6803 msgstr ""
6804
6805 # type: =item
6806 #: ../src/guestfs-actions.pod:1521 ../fish/guestfish-actions.pod:1019
6807 msgid "\"i386\""
6808 msgstr ""
6809
6810 # type: textblock
6811 #: ../src/guestfs-actions.pod:1523 ../fish/guestfish-actions.pod:1021
6812 msgid ""
6813 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6814 "irrespective of the precise processor requirements of the binary."
6815 msgstr ""
6816
6817 # type: =item
6818 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1024
6819 msgid "\"x86_64\""
6820 msgstr ""
6821
6822 # type: textblock
6823 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1026
6824 msgid "64 bit x86-64."
6825 msgstr ""
6826
6827 # type: =item
6828 #: ../src/guestfs-actions.pod:1530 ../fish/guestfish-actions.pod:1028
6829 msgid "\"sparc\""
6830 msgstr ""
6831
6832 # type: textblock
6833 #: ../src/guestfs-actions.pod:1532 ../fish/guestfish-actions.pod:1030
6834 msgid "32 bit SPARC."
6835 msgstr ""
6836
6837 # type: =item
6838 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1032
6839 msgid "\"sparc64\""
6840 msgstr ""
6841
6842 # type: textblock
6843 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1034
6844 msgid "64 bit SPARC V9 and above."
6845 msgstr ""
6846
6847 # type: =item
6848 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1036
6849 msgid "\"ia64\""
6850 msgstr ""
6851
6852 # type: textblock
6853 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1038
6854 msgid "Intel Itanium."
6855 msgstr ""
6856
6857 # type: =item
6858 #: ../src/guestfs-actions.pod:1542 ../fish/guestfish-actions.pod:1040
6859 msgid "\"ppc\""
6860 msgstr ""
6861
6862 # type: textblock
6863 #: ../src/guestfs-actions.pod:1544 ../fish/guestfish-actions.pod:1042
6864 msgid "32 bit Power PC."
6865 msgstr ""
6866
6867 # type: =item
6868 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1044
6869 msgid "\"ppc64\""
6870 msgstr ""
6871
6872 # type: textblock
6873 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1046
6874 msgid "64 bit Power PC."
6875 msgstr ""
6876
6877 # type: textblock
6878 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1050
6879 msgid "Libguestfs may return other architecture strings in future."
6880 msgstr ""
6881
6882 # type: textblock
6883 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1052
6884 msgid "The function works on at least the following types of files:"
6885 msgstr ""
6886
6887 # type: textblock
6888 #: ../src/guestfs-actions.pod:1560 ../fish/guestfish-actions.pod:1058
6889 msgid "many types of Un*x and Linux binary"
6890 msgstr ""
6891
6892 # type: textblock
6893 #: ../src/guestfs-actions.pod:1564 ../fish/guestfish-actions.pod:1062
6894 msgid "many types of Un*x and Linux shared library"
6895 msgstr ""
6896
6897 # type: textblock
6898 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1066
6899 msgid "Windows Win32 and Win64 binaries"
6900 msgstr ""
6901
6902 # type: textblock
6903 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1070
6904 msgid "Windows Win32 and Win64 DLLs"
6905 msgstr ""
6906
6907 # type: textblock
6908 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1072
6909 msgid "Win32 binaries and DLLs return C<i386>."
6910 msgstr ""
6911
6912 # type: textblock
6913 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1074
6914 msgid "Win64 binaries and DLLs return C<x86_64>."
6915 msgstr ""
6916
6917 # type: textblock
6918 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1078
6919 msgid "Linux kernel modules"
6920 msgstr ""
6921
6922 # type: textblock
6923 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1082
6924 msgid "Linux new-style initrd images"
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1086
6929 msgid "some non-x86 Linux vmlinuz kernels"
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1090
6934 msgid "What it can't do currently:"
6935 msgstr ""
6936
6937 # type: textblock
6938 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1096
6939 msgid "static libraries (libfoo.a)"
6940 msgstr ""
6941
6942 # type: textblock
6943 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1100
6944 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6945 msgstr ""
6946
6947 # type: textblock
6948 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1104
6949 msgid "x86 Linux vmlinuz kernels"
6950 msgstr ""
6951
6952 # type: textblock
6953 #: ../src/guestfs-actions.pod:1608 ../fish/guestfish-actions.pod:1106
6954 msgid ""
6955 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6956 "compressed code, and are horribly hard to unpack.  If you want to find the "
6957 "architecture of a kernel, use the architecture of the associated initrd or "
6958 "kernel module(s) instead."
6959 msgstr ""
6960
6961 # type: textblock
6962 #: ../src/guestfs-actions.pod:1618 ../src/guestfs-actions.pod:1781
6963 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:2451
6964 #: ../src/guestfs-actions.pod:2524 ../src/guestfs-actions.pod:2550
6965 #: ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:2598
6966 #: ../src/guestfs-actions.pod:2631 ../src/guestfs-actions.pod:2655
6967 #: ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2777
6968 #: ../src/guestfs-actions.pod:2909
6969 msgid "(Added in 1.5.3)"
6970 msgstr ""
6971
6972 # type: =head2
6973 #: ../src/guestfs-actions.pod:1620
6974 msgid "guestfs_filesize"
6975 msgstr ""
6976
6977 # type: verbatim
6978 #: ../src/guestfs-actions.pod:1622
6979 #, no-wrap
6980 msgid ""
6981 " int64_t\n"
6982 " guestfs_filesize (guestfs_h *g,\n"
6983 "                   const char *file);\n"
6984 "\n"
6985 msgstr ""
6986
6987 # type: textblock
6988 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1117
6989 msgid "This command returns the size of C<file> in bytes."
6990 msgstr ""
6991
6992 # type: textblock
6993 #: ../src/guestfs-actions.pod:1628
6994 msgid ""
6995 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6996 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6997 "devices, use C<guestfs_blockdev_getsize64>."
6998 msgstr ""
6999
7000 # type: textblock
7001 #: ../src/guestfs-actions.pod:1634
7002 msgid "(Added in 1.0.82)"
7003 msgstr ""
7004
7005 # type: =head2
7006 #: ../src/guestfs-actions.pod:1636
7007 msgid "guestfs_fill"
7008 msgstr ""
7009
7010 # type: verbatim
7011 #: ../src/guestfs-actions.pod:1638
7012 #, no-wrap
7013 msgid ""
7014 " int\n"
7015 " guestfs_fill (guestfs_h *g,\n"
7016 "               int c,\n"
7017 "               int len,\n"
7018 "               const char *path);\n"
7019 "\n"
7020 msgstr ""
7021
7022 # type: textblock
7023 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1127
7024 msgid ""
7025 "This command creates a new file called C<path>.  The initial content of the "
7026 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7027 "[0..255]>."
7028 msgstr ""
7029
7030 # type: textblock
7031 #: ../src/guestfs-actions.pod:1648
7032 msgid ""
7033 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7034 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7035 "bytes use C<guestfs_fill_pattern>."
7036 msgstr ""
7037
7038 # type: textblock
7039 #: ../src/guestfs-actions.pod:1660
7040 msgid "(Added in 1.0.79)"
7041 msgstr ""
7042
7043 # type: =head2
7044 #: ../src/guestfs-actions.pod:1662
7045 msgid "guestfs_fill_pattern"
7046 msgstr ""
7047
7048 # type: verbatim
7049 #: ../src/guestfs-actions.pod:1664
7050 #, no-wrap
7051 msgid ""
7052 " int\n"
7053 " guestfs_fill_pattern (guestfs_h *g,\n"
7054 "                       const char *pattern,\n"
7055 "                       int len,\n"
7056 "                       const char *path);\n"
7057 "\n"
7058 msgstr ""
7059
7060 # type: textblock
7061 #: ../src/guestfs-actions.pod:1670
7062 msgid ""
7063 "This function is like C<guestfs_fill> except that it creates a new file of "
7064 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7065 "pattern is truncated if necessary to ensure the length of the file is "
7066 "exactly C<len> bytes."
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1682
7071 msgid "(Added in 1.3.12)"
7072 msgstr ""
7073
7074 # type: =head2
7075 #: ../src/guestfs-actions.pod:1684
7076 msgid "guestfs_find"
7077 msgstr ""
7078
7079 # type: verbatim
7080 #: ../src/guestfs-actions.pod:1686
7081 #, no-wrap
7082 msgid ""
7083 " char **\n"
7084 " guestfs_find (guestfs_h *g,\n"
7085 "               const char *directory);\n"
7086 "\n"
7087 msgstr ""
7088
7089 # type: textblock
7090 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1149
7091 msgid ""
7092 "This command lists out all files and directories, recursively, starting at "
7093 "C<directory>.  It is essentially equivalent to running the shell command "
7094 "C<find directory -print> but some post-processing happens on the output, "
7095 "described below."
7096 msgstr ""
7097
7098 # type: textblock
7099 #: ../src/guestfs-actions.pod:1695 ../fish/guestfish-actions.pod:1154
7100 msgid ""
7101 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7102 "structure was:"
7103 msgstr ""
7104
7105 # type: verbatim
7106 #: ../src/guestfs-actions.pod:1698 ../fish/guestfish-actions.pod:1157
7107 #, no-wrap
7108 msgid ""
7109 " /tmp/a\n"
7110 " /tmp/b\n"
7111 " /tmp/c/d\n"
7112 "\n"
7113 msgstr ""
7114
7115 # type: textblock
7116 #: ../src/guestfs-actions.pod:1702
7117 msgid ""
7118 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7119 msgstr ""
7120
7121 # type: verbatim
7122 #: ../src/guestfs-actions.pod:1705 ../fish/guestfish-actions.pod:1164
7123 #, no-wrap
7124 msgid ""
7125 " a\n"
7126 " b\n"
7127 " c\n"
7128 " c/d\n"
7129 "\n"
7130 msgstr ""
7131
7132 # type: textblock
7133 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1169
7134 msgid "If C<directory> is not a directory, then this command returns an error."
7135 msgstr ""
7136
7137 # type: textblock
7138 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1172
7139 msgid "The returned list is sorted."
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:1715
7144 msgid "See also C<guestfs_find0>."
7145 msgstr ""
7146
7147 # type: textblock
7148 #: ../src/guestfs-actions.pod:1724 ../src/guestfs-actions.pod:3570
7149 #: ../src/guestfs-actions.pod:5036
7150 msgid "(Added in 1.0.27)"
7151 msgstr ""
7152
7153 # type: =head2
7154 #: ../src/guestfs-actions.pod:1726
7155 msgid "guestfs_find0"
7156 msgstr ""
7157
7158 # type: verbatim
7159 #: ../src/guestfs-actions.pod:1728
7160 #, no-wrap
7161 msgid ""
7162 " int\n"
7163 " guestfs_find0 (guestfs_h *g,\n"
7164 "                const char *directory,\n"
7165 "                const char *files);\n"
7166 "\n"
7167 msgstr ""
7168
7169 # type: textblock
7170 #: ../src/guestfs-actions.pod:1733 ../fish/guestfish-actions.pod:1183
7171 msgid ""
7172 "This command lists out all files and directories, recursively, starting at "
7173 "C<directory>, placing the resulting list in the external file called "
7174 "C<files>."
7175 msgstr ""
7176
7177 # type: textblock
7178 #: ../src/guestfs-actions.pod:1737
7179 msgid ""
7180 "This command works the same way as C<guestfs_find> with the following "
7181 "exceptions:"
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1194
7186 msgid "The resulting list is written to an external file."
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1198
7191 msgid ""
7192 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7193 "L<find(1)> option I<-print0>."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1753 ../fish/guestfish-actions.pod:1203
7198 msgid "This command is not limited in the number of names that it can return."
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1208
7203 msgid "The result list is not sorted."
7204 msgstr ""
7205
7206 # type: textblock
7207 #: ../src/guestfs-actions.pod:1764
7208 msgid "(Added in 1.0.74)"
7209 msgstr ""
7210
7211 # type: =head2
7212 #: ../src/guestfs-actions.pod:1766
7213 msgid "guestfs_findfs_label"
7214 msgstr ""
7215
7216 # type: verbatim
7217 #: ../src/guestfs-actions.pod:1768
7218 #, no-wrap
7219 msgid ""
7220 " char *\n"
7221 " guestfs_findfs_label (guestfs_h *g,\n"
7222 "                       const char *label);\n"
7223 "\n"
7224 msgstr ""
7225
7226 # type: textblock
7227 #: ../src/guestfs-actions.pod:1772 ../fish/guestfish-actions.pod:1218
7228 msgid ""
7229 "This command searches the filesystems and returns the one which has the "
7230 "given label.  An error is returned if no such filesystem can be found."
7231 msgstr ""
7232
7233 # type: textblock
7234 #: ../src/guestfs-actions.pod:1776
7235 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7236 msgstr ""
7237
7238 # type: =head2
7239 #: ../src/guestfs-actions.pod:1783
7240 msgid "guestfs_findfs_uuid"
7241 msgstr ""
7242
7243 # type: verbatim
7244 #: ../src/guestfs-actions.pod:1785
7245 #, no-wrap
7246 msgid ""
7247 " char *\n"
7248 " guestfs_findfs_uuid (guestfs_h *g,\n"
7249 "                      const char *uuid);\n"
7250 "\n"
7251 msgstr ""
7252
7253 # type: textblock
7254 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1228
7255 msgid ""
7256 "This command searches the filesystems and returns the one which has the "
7257 "given UUID.  An error is returned if no such filesystem can be found."
7258 msgstr ""
7259
7260 # type: textblock
7261 #: ../src/guestfs-actions.pod:1793
7262 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7263 msgstr ""
7264
7265 # type: =head2
7266 #: ../src/guestfs-actions.pod:1800
7267 msgid "guestfs_fsck"
7268 msgstr ""
7269
7270 # type: verbatim
7271 #: ../src/guestfs-actions.pod:1802
7272 #, no-wrap
7273 msgid ""
7274 " int\n"
7275 " guestfs_fsck (guestfs_h *g,\n"
7276 "               const char *fstype,\n"
7277 "               const char *device);\n"
7278 "\n"
7279 msgstr ""
7280
7281 # type: textblock
7282 #: ../src/guestfs-actions.pod:1807 ../fish/guestfish-actions.pod:1238
7283 msgid ""
7284 "This runs the filesystem checker (fsck) on C<device> which should have "
7285 "filesystem type C<fstype>."
7286 msgstr ""
7287
7288 # type: textblock
7289 #: ../src/guestfs-actions.pod:1810 ../fish/guestfish-actions.pod:1241
7290 msgid ""
7291 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7292 "codes from C<fsck>."
7293 msgstr ""
7294
7295 # type: textblock
7296 #: ../src/guestfs-actions.pod:1819 ../fish/guestfish-actions.pod:1250
7297 msgid "Multiple status codes can be summed together."
7298 msgstr ""
7299
7300 # type: textblock
7301 #: ../src/guestfs-actions.pod:1823 ../fish/guestfish-actions.pod:1254
7302 msgid ""
7303 "A non-zero return code can mean \"success\", for example if errors have been "
7304 "corrected on the filesystem."
7305 msgstr ""
7306
7307 # type: textblock
7308 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1259
7309 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7310 msgstr ""
7311
7312 # type: textblock
7313 #: ../src/guestfs-actions.pod:1833 ../fish/guestfish-actions.pod:1264
7314 msgid ""
7315 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1837 ../src/guestfs-actions.pod:6674
7320 msgid "(Added in 1.0.16)"
7321 msgstr ""
7322
7323 # type: =head2
7324 #: ../src/guestfs-actions.pod:1839
7325 msgid "guestfs_get_append"
7326 msgstr ""
7327
7328 # type: verbatim
7329 #: ../src/guestfs-actions.pod:1841
7330 #, no-wrap
7331 msgid ""
7332 " const char *\n"
7333 " guestfs_get_append (guestfs_h *g);\n"
7334 "\n"
7335 msgstr ""
7336
7337 # type: textblock
7338 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:1270
7339 msgid ""
7340 "Return the additional kernel options which are added to the guest kernel "
7341 "command line."
7342 msgstr ""
7343
7344 # type: textblock
7345 #: ../src/guestfs-actions.pod:1847 ../fish/guestfish-actions.pod:1273
7346 msgid "If C<NULL> then no options are added."
7347 msgstr ""
7348
7349 # type: textblock
7350 #: ../src/guestfs-actions.pod:1849
7351 msgid ""
7352 "This function returns a string which may be NULL.  There is no way to return "
7353 "an error from this function.  The string is owned by the guest handle and "
7354 "must I<not> be freed."
7355 msgstr ""
7356
7357 # type: textblock
7358 #: ../src/guestfs-actions.pod:1853 ../src/guestfs-actions.pod:4712
7359 #: ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5545
7360 #: ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5580
7361 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:6344
7362 #: ../src/guestfs-actions.pod:6362 ../src/guestfs-actions.pod:6717
7363 msgid "(Added in 1.0.26)"
7364 msgstr ""
7365
7366 # type: =head2
7367 #: ../src/guestfs-actions.pod:1855
7368 msgid "guestfs_get_autosync"
7369 msgstr ""
7370
7371 # type: verbatim
7372 #: ../src/guestfs-actions.pod:1857
7373 #, no-wrap
7374 msgid ""
7375 " int\n"
7376 " guestfs_get_autosync (guestfs_h *g);\n"
7377 "\n"
7378 msgstr ""
7379
7380 # type: textblock
7381 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1279
7382 msgid "Get the autosync flag."
7383 msgstr ""
7384
7385 # type: =head2
7386 #: ../src/guestfs-actions.pod:1866
7387 msgid "guestfs_get_direct"
7388 msgstr ""
7389
7390 # type: verbatim
7391 #: ../src/guestfs-actions.pod:1868
7392 #, no-wrap
7393 msgid ""
7394 " int\n"
7395 " guestfs_get_direct (guestfs_h *g);\n"
7396 "\n"
7397 msgstr ""
7398
7399 # type: textblock
7400 #: ../src/guestfs-actions.pod:1871 ../fish/guestfish-actions.pod:1285
7401 msgid "Return the direct appliance mode flag."
7402 msgstr ""
7403
7404 # type: textblock
7405 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:5218
7406 msgid "(Added in 1.0.72)"
7407 msgstr ""
7408
7409 # type: =head2
7410 #: ../src/guestfs-actions.pod:1877
7411 msgid "guestfs_get_e2label"
7412 msgstr ""
7413
7414 # type: verbatim
7415 #: ../src/guestfs-actions.pod:1879
7416 #, no-wrap
7417 msgid ""
7418 " char *\n"
7419 " guestfs_get_e2label (guestfs_h *g,\n"
7420 "                      const char *device);\n"
7421 "\n"
7422 msgstr ""
7423
7424 # type: textblock
7425 #: ../src/guestfs-actions.pod:1883 ../fish/guestfish-actions.pod:1291
7426 msgid ""
7427 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7428 msgstr ""
7429
7430 # type: textblock
7431 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1294
7432 msgid ""
7433 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7434 msgstr ""
7435
7436 # type: textblock
7437 #: ../src/guestfs-actions.pod:1896 ../src/guestfs-actions.pod:1917
7438 #: ../src/guestfs-actions.pod:5236 ../src/guestfs-actions.pod:5255
7439 msgid "(Added in 1.0.15)"
7440 msgstr ""
7441
7442 # type: =head2
7443 #: ../src/guestfs-actions.pod:1898
7444 msgid "guestfs_get_e2uuid"
7445 msgstr ""
7446
7447 # type: verbatim
7448 #: ../src/guestfs-actions.pod:1900
7449 #, no-wrap
7450 msgid ""
7451 " char *\n"
7452 " guestfs_get_e2uuid (guestfs_h *g,\n"
7453 "                     const char *device);\n"
7454 "\n"
7455 msgstr ""
7456
7457 # type: textblock
7458 #: ../src/guestfs-actions.pod:1904 ../fish/guestfish-actions.pod:1305
7459 msgid ""
7460 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7461 msgstr ""
7462
7463 # type: textblock
7464 #: ../src/guestfs-actions.pod:1910 ../fish/guestfish-actions.pod:1308
7465 msgid ""
7466 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7467 msgstr ""
7468
7469 # type: =head2
7470 #: ../src/guestfs-actions.pod:1919
7471 msgid "guestfs_get_memsize"
7472 msgstr ""
7473
7474 # type: verbatim
7475 #: ../src/guestfs-actions.pod:1921
7476 #, no-wrap
7477 msgid ""
7478 " int\n"
7479 " guestfs_get_memsize (guestfs_h *g);\n"
7480 "\n"
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:1924 ../fish/guestfish-actions.pod:1319
7485 msgid ""
7486 "This gets the memory size in megabytes allocated to the qemu subprocess."
7487 msgstr ""
7488
7489 # type: textblock
7490 #: ../src/guestfs-actions.pod:1927
7491 msgid ""
7492 "If C<guestfs_set_memsize> was not called on this handle, and if "
7493 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7494 "value for memsize."
7495 msgstr ""
7496
7497 # type: textblock
7498 #: ../src/guestfs-actions.pod:1931 ../src/guestfs-actions.pod:2012
7499 #: ../src/guestfs-actions.pod:5271 ../src/guestfs-actions.pod:5378
7500 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7501 #: ../fish/guestfish-actions.pod:3497 ../fish/guestfish-actions.pod:3584
7502 msgid ""
7503 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7504 msgstr ""
7505
7506 # type: textblock
7507 #: ../src/guestfs-actions.pod:1936 ../src/guestfs-actions.pod:3863
7508 #: ../src/guestfs-actions.pod:3978 ../src/guestfs-actions.pod:3997
7509 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4028
7510 #: ../src/guestfs-actions.pod:4045 ../src/guestfs-actions.pod:4058
7511 #: ../src/guestfs-actions.pod:4939 ../src/guestfs-actions.pod:5276
7512 #: ../src/guestfs-actions.pod:5519 ../src/guestfs-actions.pod:6120
7513 msgid "(Added in 1.0.55)"
7514 msgstr ""
7515
7516 # type: =head2
7517 #: ../src/guestfs-actions.pod:1938
7518 msgid "guestfs_get_network"
7519 msgstr ""
7520
7521 # type: verbatim
7522 #: ../src/guestfs-actions.pod:1940
7523 #, no-wrap
7524 msgid ""
7525 " int\n"
7526 " guestfs_get_network (guestfs_h *g);\n"
7527 "\n"
7528 msgstr ""
7529
7530 # type: textblock
7531 #: ../src/guestfs-actions.pod:1943 ../fish/guestfish-actions.pod:1333
7532 msgid "This returns the enable network flag."
7533 msgstr ""
7534
7535 # type: textblock
7536 #: ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:5295
7537 msgid "(Added in 1.5.4)"
7538 msgstr ""
7539
7540 # type: =head2
7541 #: ../src/guestfs-actions.pod:1949
7542 msgid "guestfs_get_path"
7543 msgstr ""
7544
7545 # type: verbatim
7546 #: ../src/guestfs-actions.pod:1951
7547 #, no-wrap
7548 msgid ""
7549 " const char *\n"
7550 " guestfs_get_path (guestfs_h *g);\n"
7551 "\n"
7552 msgstr ""
7553
7554 # type: textblock
7555 #: ../src/guestfs-actions.pod:1954 ../fish/guestfish-actions.pod:1339
7556 msgid "Return the current search path."
7557 msgstr ""
7558
7559 # type: textblock
7560 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1341
7561 msgid ""
7562 "This is always non-NULL.  If it wasn't set already, then this will return "
7563 "the default path."
7564 msgstr ""
7565
7566 # type: textblock
7567 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:1988
7568 msgid ""
7569 "This function returns a string, or NULL on error.  The string is owned by "
7570 "the guest handle and must I<not> be freed."
7571 msgstr ""
7572
7573 # type: =head2
7574 #: ../src/guestfs-actions.pod:1964
7575 msgid "guestfs_get_pid"
7576 msgstr ""
7577
7578 # type: verbatim
7579 #: ../src/guestfs-actions.pod:1966
7580 #, no-wrap
7581 msgid ""
7582 " int\n"
7583 " guestfs_get_pid (guestfs_h *g);\n"
7584 "\n"
7585 msgstr ""
7586
7587 # type: textblock
7588 #: ../src/guestfs-actions.pod:1969 ../fish/guestfish-actions.pod:1350
7589 msgid ""
7590 "Return the process ID of the qemu subprocess.  If there is no qemu "
7591 "subprocess, then this will return an error."
7592 msgstr ""
7593
7594 # type: textblock
7595 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1353
7596 msgid "This is an internal call used for debugging and testing."
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:1976
7601 msgid "(Added in 1.0.56)"
7602 msgstr ""
7603
7604 # type: =head2
7605 #: ../src/guestfs-actions.pod:1978
7606 msgid "guestfs_get_qemu"
7607 msgstr ""
7608
7609 # type: verbatim
7610 #: ../src/guestfs-actions.pod:1980
7611 #, no-wrap
7612 msgid ""
7613 " const char *\n"
7614 " guestfs_get_qemu (guestfs_h *g);\n"
7615 "\n"
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1359
7620 msgid "Return the current qemu binary."
7621 msgstr ""
7622
7623 # type: textblock
7624 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1361
7625 msgid ""
7626 "This is always non-NULL.  If it wasn't set already, then this will return "
7627 "the default qemu binary name."
7628 msgstr ""
7629
7630 # type: textblock
7631 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:5340
7632 msgid "(Added in 1.0.6)"
7633 msgstr ""
7634
7635 # type: =head2
7636 #: ../src/guestfs-actions.pod:1993
7637 msgid "guestfs_get_recovery_proc"
7638 msgstr ""
7639
7640 # type: verbatim
7641 #: ../src/guestfs-actions.pod:1995
7642 #, no-wrap
7643 msgid ""
7644 " int\n"
7645 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7646 "\n"
7647 msgstr ""
7648
7649 # type: textblock
7650 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1368
7651 msgid "Return the recovery process enabled flag."
7652 msgstr ""
7653
7654 # type: textblock
7655 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2999
7656 #: ../src/guestfs-actions.pod:3268 ../src/guestfs-actions.pod:3670
7657 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:4642
7658 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5364
7659 #: ../src/guestfs-actions.pod:6023 ../src/guestfs-actions.pod:6043
7660 #: ../src/guestfs-actions.pod:6225
7661 msgid "(Added in 1.0.77)"
7662 msgstr ""
7663
7664 # type: =head2
7665 #: ../src/guestfs-actions.pod:2004
7666 msgid "guestfs_get_selinux"
7667 msgstr ""
7668
7669 # type: verbatim
7670 #: ../src/guestfs-actions.pod:2006
7671 #, no-wrap
7672 msgid ""
7673 " int\n"
7674 " guestfs_get_selinux (guestfs_h *g);\n"
7675 "\n"
7676 msgstr ""
7677
7678 # type: textblock
7679 #: ../src/guestfs-actions.pod:2009
7680 msgid ""
7681 "This returns the current setting of the selinux flag which is passed to the "
7682 "appliance at boot time.  See C<guestfs_set_selinux>."
7683 msgstr ""
7684
7685 # type: textblock
7686 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2080
7687 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5437
7688 msgid "(Added in 1.0.67)"
7689 msgstr ""
7690
7691 # type: =head2
7692 #: ../src/guestfs-actions.pod:2019
7693 msgid "guestfs_get_state"
7694 msgstr ""
7695
7696 # type: verbatim
7697 #: ../src/guestfs-actions.pod:2021
7698 #, no-wrap
7699 msgid ""
7700 " int\n"
7701 " guestfs_get_state (guestfs_h *g);\n"
7702 "\n"
7703 msgstr ""
7704
7705 # type: textblock
7706 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1384
7707 msgid ""
7708 "This returns the current state as an opaque integer.  This is only useful "
7709 "for printing debug and internal error messages."
7710 msgstr ""
7711
7712 # type: textblock
7713 #: ../src/guestfs-actions.pod:2027 ../src/guestfs-actions.pod:2802
7714 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2892
7715 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:1387
7716 #: ../fish/guestfish-actions.pod:1930 ../fish/guestfish-actions.pod:1948
7717 #: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2002
7718 msgid "For more information on states, see L<guestfs(3)>."
7719 msgstr ""
7720
7721 # type: =head2
7722 #: ../src/guestfs-actions.pod:2033
7723 msgid "guestfs_get_trace"
7724 msgstr ""
7725
7726 # type: verbatim
7727 #: ../src/guestfs-actions.pod:2035
7728 #, no-wrap
7729 msgid ""
7730 " int\n"
7731 " guestfs_get_trace (guestfs_h *g);\n"
7732 "\n"
7733 msgstr ""
7734
7735 # type: textblock
7736 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1393
7737 msgid "Return the command trace flag."
7738 msgstr ""
7739
7740 # type: =head2
7741 #: ../src/guestfs-actions.pod:2044
7742 msgid "guestfs_get_umask"
7743 msgstr ""
7744
7745 # type: verbatim
7746 #: ../src/guestfs-actions.pod:2046
7747 #, no-wrap
7748 msgid ""
7749 " int\n"
7750 " guestfs_get_umask (guestfs_h *g);\n"
7751 "\n"
7752 msgstr ""
7753
7754 # type: textblock
7755 #: ../src/guestfs-actions.pod:2049
7756 msgid ""
7757 "Return the current umask.  By default the umask is C<022> unless it has been "
7758 "set by calling C<guestfs_umask>."
7759 msgstr ""
7760
7761 # type: =head2
7762 #: ../src/guestfs-actions.pod:2056
7763 msgid "guestfs_get_verbose"
7764 msgstr ""
7765
7766 # type: verbatim
7767 #: ../src/guestfs-actions.pod:2058
7768 #, no-wrap
7769 msgid ""
7770 " int\n"
7771 " guestfs_get_verbose (guestfs_h *g);\n"
7772 "\n"
7773 msgstr ""
7774
7775 # type: textblock
7776 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1406
7777 msgid "This returns the verbose messages flag."
7778 msgstr ""
7779
7780 # type: =head2
7781 #: ../src/guestfs-actions.pod:2067
7782 msgid "guestfs_getcon"
7783 msgstr ""
7784
7785 # type: verbatim
7786 #: ../src/guestfs-actions.pod:2069
7787 #, no-wrap
7788 msgid ""
7789 " char *\n"
7790 " guestfs_getcon (guestfs_h *g);\n"
7791 "\n"
7792 msgstr ""
7793
7794 # type: textblock
7795 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1412
7796 msgid "This gets the SELinux security context of the daemon."
7797 msgstr ""
7798
7799 # type: textblock
7800 #: ../src/guestfs-actions.pod:2074
7801 msgid ""
7802 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7803 msgstr ""
7804
7805 # type: =head2
7806 #: ../src/guestfs-actions.pod:2082
7807 msgid "guestfs_getxattrs"
7808 msgstr ""
7809
7810 # type: verbatim
7811 #: ../src/guestfs-actions.pod:2084
7812 #, no-wrap
7813 msgid ""
7814 " struct guestfs_xattr_list *\n"
7815 " guestfs_getxattrs (guestfs_h *g,\n"
7816 "                    const char *path);\n"
7817 "\n"
7818 msgstr ""
7819
7820 # type: textblock
7821 #: ../src/guestfs-actions.pod:2088 ../fish/guestfish-actions.pod:1421
7822 msgid ""
7823 "This call lists the extended attributes of the file or directory C<path>."
7824 msgstr ""
7825
7826 # type: textblock
7827 #: ../src/guestfs-actions.pod:2091 ../fish/guestfish-actions.pod:1424
7828 msgid ""
7829 "At the system call level, this is a combination of the L<listxattr(2)> and "
7830 "L<getxattr(2)> calls."
7831 msgstr ""
7832
7833 # type: textblock
7834 #: ../src/guestfs-actions.pod:2094
7835 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7836 msgstr ""
7837
7838 # type: textblock
7839 #: ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:3011
7840 #: ../src/guestfs-actions.pod:3665
7841 msgid ""
7842 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7843 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7844 "C<guestfs_free_xattr_list> after use>."
7845 msgstr ""
7846
7847 # type: textblock
7848 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:3016
7849 #: ../src/guestfs-actions.pod:3181 ../src/guestfs-actions.pod:3217
7850 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5456
7851 #: ../src/guestfs-actions.pod:6782
7852 msgid "(Added in 1.0.59)"
7853 msgstr ""
7854
7855 # type: =head2
7856 #: ../src/guestfs-actions.pod:2103
7857 msgid "guestfs_glob_expand"
7858 msgstr ""
7859
7860 # type: verbatim
7861 #: ../src/guestfs-actions.pod:2105
7862 #, no-wrap
7863 msgid ""
7864 " char **\n"
7865 " guestfs_glob_expand (guestfs_h *g,\n"
7866 "                      const char *pattern);\n"
7867 "\n"
7868 msgstr ""
7869
7870 # type: textblock
7871 #: ../src/guestfs-actions.pod:2109 ../fish/guestfish-actions.pod:1433
7872 msgid ""
7873 "This command searches for all the pathnames matching C<pattern> according to "
7874 "the wildcard expansion rules used by the shell."
7875 msgstr ""
7876
7877 # type: textblock
7878 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1437
7879 msgid ""
7880 "If no paths match, then this returns an empty list (note: not an error)."
7881 msgstr ""
7882
7883 # type: textblock
7884 #: ../src/guestfs-actions.pod:2116 ../fish/guestfish-actions.pod:1440
7885 msgid ""
7886 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7887 "GLOB_BRACE>.  See that manual page for more details."
7888 msgstr ""
7889
7890 # type: textblock
7891 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:5621
7892 #: ../src/guestfs-actions.pod:5638
7893 msgid "(Added in 1.0.50)"
7894 msgstr ""
7895
7896 # type: =head2
7897 #: ../src/guestfs-actions.pod:2126
7898 msgid "guestfs_grep"
7899 msgstr ""
7900
7901 # type: verbatim
7902 #: ../src/guestfs-actions.pod:2128
7903 #, no-wrap
7904 msgid ""
7905 " char **\n"
7906 " guestfs_grep (guestfs_h *g,\n"
7907 "               const char *regex,\n"
7908 "               const char *path);\n"
7909 "\n"
7910 msgstr ""
7911
7912 # type: textblock
7913 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1448
7914 msgid "This calls the external C<grep> program and returns the matching lines."
7915 msgstr ""
7916
7917 # type: =head2
7918 #: ../src/guestfs-actions.pod:2145
7919 msgid "guestfs_grepi"
7920 msgstr ""
7921
7922 # type: verbatim
7923 #: ../src/guestfs-actions.pod:2147
7924 #, no-wrap
7925 msgid ""
7926 " char **\n"
7927 " guestfs_grepi (guestfs_h *g,\n"
7928 "                const char *regex,\n"
7929 "                const char *path);\n"
7930 "\n"
7931 msgstr ""
7932
7933 # type: textblock
7934 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1458
7935 msgid ""
7936 "This calls the external C<grep -i> program and returns the matching lines."
7937 msgstr ""
7938
7939 # type: =head2
7940 #: ../src/guestfs-actions.pod:2164
7941 msgid "guestfs_grub_install"
7942 msgstr ""
7943
7944 # type: verbatim
7945 #: ../src/guestfs-actions.pod:2166
7946 #, no-wrap
7947 msgid ""
7948 " int\n"
7949 " guestfs_grub_install (guestfs_h *g,\n"
7950 "                       const char *root,\n"
7951 "                       const char *device);\n"
7952 "\n"
7953 msgstr ""
7954
7955 # type: textblock
7956 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
7957 msgid ""
7958 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7959 "the root directory being C<root>."
7960 msgstr ""
7961
7962 # type: textblock
7963 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
7964 msgid ""
7965 "Note: If grub-install reports the error \"No suitable drive was found in the "
7966 "generated device map.\" it may be that you need to create a C</boot/grub/"
7967 "device.map> file first that contains the mapping between grub device names "
7968 "and Linux device names.  It is usually sufficient to create a file "
7969 "containing:"
7970 msgstr ""
7971
7972 # type: verbatim
7973 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1478
7974 #, no-wrap
7975 msgid ""
7976 " (hd0) /dev/vda\n"
7977 "\n"
7978 msgstr ""
7979
7980 # type: textblock
7981 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1480
7982 msgid "replacing C</dev/vda> with the name of the installation device."
7983 msgstr ""
7984
7985 # type: textblock
7986 #: ../src/guestfs-actions.pod:2187
7987 msgid "(Added in 1.0.17)"
7988 msgstr ""
7989
7990 # type: =head2
7991 #: ../src/guestfs-actions.pod:2189
7992 msgid "guestfs_head"
7993 msgstr ""
7994
7995 # type: verbatim
7996 #: ../src/guestfs-actions.pod:2191
7997 #, no-wrap
7998 msgid ""
7999 " char **\n"
8000 " guestfs_head (guestfs_h *g,\n"
8001 "               const char *path);\n"
8002 "\n"
8003 msgstr ""
8004
8005 # type: textblock
8006 #: ../src/guestfs-actions.pod:2195 ../fish/guestfish-actions.pod:1486
8007 msgid ""
8008 "This command returns up to the first 10 lines of a file as a list of strings."
8009 msgstr ""
8010
8011 # type: =head2
8012 #: ../src/guestfs-actions.pod:2207
8013 msgid "guestfs_head_n"
8014 msgstr ""
8015
8016 # type: verbatim
8017 #: ../src/guestfs-actions.pod:2209
8018 #, no-wrap
8019 msgid ""
8020 " char **\n"
8021 " guestfs_head_n (guestfs_h *g,\n"
8022 "                 int nrlines,\n"
8023 "                 const char *path);\n"
8024 "\n"
8025 msgstr ""
8026
8027 # type: textblock
8028 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1496
8029 msgid ""
8030 "If the parameter C<nrlines> is a positive number, this returns the first "
8031 "C<nrlines> lines of the file C<path>."
8032 msgstr ""
8033
8034 # type: textblock
8035 #: ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1499
8036 msgid ""
8037 "If the parameter C<nrlines> is a negative number, this returns lines from "
8038 "the file C<path>, excluding the last C<nrlines> lines."
8039 msgstr ""
8040
8041 # type: textblock
8042 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:5918
8043 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3930
8044 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8045 msgstr ""
8046
8047 # type: =head2
8048 #: ../src/guestfs-actions.pod:2231
8049 msgid "guestfs_hexdump"
8050 msgstr ""
8051
8052 # type: verbatim
8053 #: ../src/guestfs-actions.pod:2233
8054 #, no-wrap
8055 msgid ""
8056 " char *\n"
8057 " guestfs_hexdump (guestfs_h *g,\n"
8058 "                  const char *path);\n"
8059 "\n"
8060 msgstr ""
8061
8062 # type: textblock
8063 #: ../src/guestfs-actions.pod:2237 ../fish/guestfish-actions.pod:1511
8064 msgid ""
8065 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8066 "readable, canonical hex dump of the file."
8067 msgstr ""
8068
8069 # type: textblock
8070 #: ../src/guestfs-actions.pod:2246 ../src/guestfs-actions.pod:5702
8071 #: ../src/guestfs-actions.pod:5757
8072 msgid "(Added in 1.0.22)"
8073 msgstr ""
8074
8075 # type: =head2
8076 #: ../src/guestfs-actions.pod:2248
8077 msgid "guestfs_initrd_cat"
8078 msgstr ""
8079
8080 # type: verbatim
8081 #: ../src/guestfs-actions.pod:2250
8082 #, no-wrap
8083 msgid ""
8084 " char *\n"
8085 " guestfs_initrd_cat (guestfs_h *g,\n"
8086 "                     const char *initrdpath,\n"
8087 "                     const char *filename,\n"
8088 "                     size_t *size_r);\n"
8089 "\n"
8090 msgstr ""
8091
8092 # type: textblock
8093 #: ../src/guestfs-actions.pod:2256 ../fish/guestfish-actions.pod:1521
8094 msgid ""
8095 "This command unpacks the file C<filename> from the initrd file called "
8096 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8097 "character."
8098 msgstr ""
8099
8100 # type: textblock
8101 #: ../src/guestfs-actions.pod:2260 ../fish/guestfish-actions.pod:1525
8102 msgid ""
8103 "For example, in guestfish you could use the following command to examine the "
8104 "boot script (usually called C</init>)  contained in a Linux initrd or "
8105 "initramfs image:"
8106 msgstr ""
8107
8108 # type: verbatim
8109 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1529
8110 #, no-wrap
8111 msgid ""
8112 " initrd-cat /boot/initrd-<version>.img init\n"
8113 "\n"
8114 msgstr ""
8115
8116 # type: textblock
8117 #: ../src/guestfs-actions.pod:2266
8118 msgid "See also C<guestfs_initrd_list>."
8119 msgstr ""
8120
8121 # type: textblock
8122 #: ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:4635
8123 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4843
8124 msgid ""
8125 "This function returns a buffer, or NULL on error.  The size of the returned "
8126 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8127 "after use>."
8128 msgstr ""
8129
8130 # type: =head2
8131 #: ../src/guestfs-actions.pod:2277
8132 msgid "guestfs_initrd_list"
8133 msgstr ""
8134
8135 # type: verbatim
8136 #: ../src/guestfs-actions.pod:2279
8137 #, no-wrap
8138 msgid ""
8139 " char **\n"
8140 " guestfs_initrd_list (guestfs_h *g,\n"
8141 "                      const char *path);\n"
8142 "\n"
8143 msgstr ""
8144
8145 # type: textblock
8146 #: ../src/guestfs-actions.pod:2283 ../fish/guestfish-actions.pod:1540
8147 msgid "This command lists out files contained in an initrd."
8148 msgstr ""
8149
8150 # type: textblock
8151 #: ../src/guestfs-actions.pod:2285 ../fish/guestfish-actions.pod:1542
8152 msgid ""
8153 "The files are listed without any initial C</> character.  The files are "
8154 "listed in the order they appear (not necessarily alphabetical).  Directory "
8155 "names are listed as separate items."
8156 msgstr ""
8157
8158 # type: textblock
8159 #: ../src/guestfs-actions.pod:2289 ../fish/guestfish-actions.pod:1546
8160 msgid ""
8161 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8162 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8163 "files)."
8164 msgstr ""
8165
8166 # type: =head2
8167 #: ../src/guestfs-actions.pod:2299
8168 msgid "guestfs_inotify_add_watch"
8169 msgstr ""
8170
8171 # type: verbatim
8172 #: ../src/guestfs-actions.pod:2301
8173 #, no-wrap
8174 msgid ""
8175 " int64_t\n"
8176 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8177 "                            const char *path,\n"
8178 "                            int mask);\n"
8179 "\n"
8180 msgstr ""
8181
8182 # type: textblock
8183 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1554
8184 msgid "Watch C<path> for the events listed in C<mask>."
8185 msgstr ""
8186
8187 # type: textblock
8188 #: ../src/guestfs-actions.pod:2308 ../fish/guestfish-actions.pod:1556
8189 msgid ""
8190 "Note that if C<path> is a directory then events within that directory are "
8191 "watched, but this does I<not> happen recursively (in subdirectories)."
8192 msgstr ""
8193
8194 # type: textblock
8195 #: ../src/guestfs-actions.pod:2312 ../fish/guestfish-actions.pod:1560
8196 msgid ""
8197 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8198 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8199 msgstr ""
8200
8201 # type: =head2
8202 #: ../src/guestfs-actions.pod:2320
8203 msgid "guestfs_inotify_close"
8204 msgstr ""
8205
8206 # type: verbatim
8207 #: ../src/guestfs-actions.pod:2322
8208 #, no-wrap
8209 msgid ""
8210 " int\n"
8211 " guestfs_inotify_close (guestfs_h *g);\n"
8212 "\n"
8213 msgstr ""
8214
8215 # type: textblock
8216 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1568
8217 msgid ""
8218 "This closes the inotify handle which was previously opened by inotify_init.  "
8219 "It removes all watches, throws away any pending events, and deallocates all "
8220 "resources."
8221 msgstr ""
8222
8223 # type: =head2
8224 #: ../src/guestfs-actions.pod:2333
8225 msgid "guestfs_inotify_files"
8226 msgstr ""
8227
8228 # type: verbatim
8229 #: ../src/guestfs-actions.pod:2335
8230 #, no-wrap
8231 msgid ""
8232 " char **\n"
8233 " guestfs_inotify_files (guestfs_h *g);\n"
8234 "\n"
8235 msgstr ""
8236
8237 # type: textblock
8238 #: ../src/guestfs-actions.pod:2338
8239 msgid ""
8240 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8241 "returns a list of pathnames of objects that were touched.  The returned "
8242 "pathnames are sorted and deduplicated."
8243 msgstr ""
8244
8245 # type: =head2
8246 #: ../src/guestfs-actions.pod:2348
8247 msgid "guestfs_inotify_init"
8248 msgstr ""
8249
8250 # type: verbatim
8251 #: ../src/guestfs-actions.pod:2350
8252 #, no-wrap
8253 msgid ""
8254 " int\n"
8255 " guestfs_inotify_init (guestfs_h *g,\n"
8256 "                       int maxevents);\n"
8257 "\n"
8258 msgstr ""
8259
8260 # type: textblock
8261 #: ../src/guestfs-actions.pod:2354 ../fish/guestfish-actions.pod:1584
8262 msgid ""
8263 "This command creates a new inotify handle.  The inotify subsystem can be "
8264 "used to notify events which happen to objects in the guest filesystem."
8265 msgstr ""
8266
8267 # type: textblock
8268 #: ../src/guestfs-actions.pod:2358
8269 msgid ""
8270 "C<maxevents> is the maximum number of events which will be queued up between "
8271 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8272 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8273 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8274 "throws away events, but records the fact that it threw them away by setting "
8275 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8276 "C<guestfs_inotify_read>)."
8277 msgstr ""
8278
8279 # type: textblock
8280 #: ../src/guestfs-actions.pod:2368
8281 msgid ""
8282 "Before any events are generated, you have to add some watches to the "
8283 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8284 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8285 msgstr ""
8286
8287 # type: textblock
8288 #: ../src/guestfs-actions.pod:2374
8289 msgid ""
8290 "Queued up events should be read periodically by calling "
8291 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8292 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8293 "often enough then you risk the internal queue overflowing."
8294 msgstr ""
8295
8296 # type: textblock
8297 #: ../src/guestfs-actions.pod:2381
8298 msgid ""
8299 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8300 "This also removes any watches automatically."
8301 msgstr ""
8302
8303 # type: textblock
8304 #: ../src/guestfs-actions.pod:2385 ../fish/guestfish-actions.pod:1615
8305 msgid ""
8306 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8307 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8308 "that there is one global inotify handle per libguestfs instance."
8309 msgstr ""
8310
8311 # type: =head2
8312 #: ../src/guestfs-actions.pod:2394
8313 msgid "guestfs_inotify_read"
8314 msgstr ""
8315
8316 # type: verbatim
8317 #: ../src/guestfs-actions.pod:2396
8318 #, no-wrap
8319 msgid ""
8320 " struct guestfs_inotify_event_list *\n"
8321 " guestfs_inotify_read (guestfs_h *g);\n"
8322 "\n"
8323 msgstr ""
8324
8325 # type: textblock
8326 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1624
8327 msgid ""
8328 "Return the complete queue of events that have happened since the previous "
8329 "read call."
8330 msgstr ""
8331
8332 # type: textblock
8333 #: ../src/guestfs-actions.pod:2402 ../fish/guestfish-actions.pod:1627
8334 msgid "If no events have happened, this returns an empty list."
8335 msgstr ""
8336
8337 # type: textblock
8338 #: ../src/guestfs-actions.pod:2404 ../fish/guestfish-actions.pod:1629
8339 msgid ""
8340 "I<Note>: In order to make sure that all events have been read, you must call "
8341 "this function repeatedly until it returns an empty list.  The reason is that "
8342 "the call will read events up to the maximum appliance-to-host message size "
8343 "and leave remaining events in the queue."
8344 msgstr ""
8345
8346 # type: textblock
8347 #: ../src/guestfs-actions.pod:2410
8348 msgid ""
8349 "This function returns a C<struct guestfs_inotify_event_list *> (see "
8350 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8351 "must call C<guestfs_free_inotify_event_list> after use>."
8352 msgstr ""
8353
8354 # type: =head2
8355 #: ../src/guestfs-actions.pod:2417
8356 msgid "guestfs_inotify_rm_watch"
8357 msgstr ""
8358
8359 # type: verbatim
8360 #: ../src/guestfs-actions.pod:2419
8361 #, no-wrap
8362 msgid ""
8363 " int\n"
8364 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8365 "                           int wd);\n"
8366 "\n"
8367 msgstr ""
8368
8369 # type: textblock
8370 #: ../src/guestfs-actions.pod:2423
8371 msgid ""
8372 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8373 msgstr ""
8374
8375 # type: =head2
8376 #: ../src/guestfs-actions.pod:2430
8377 msgid "guestfs_inspect_get_arch"
8378 msgstr ""
8379
8380 # type: verbatim
8381 #: ../src/guestfs-actions.pod:2432
8382 #, no-wrap
8383 msgid ""
8384 " char *\n"
8385 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8386 "                           const char *root);\n"
8387 "\n"
8388 msgstr ""
8389
8390 # type: textblock
8391 #: ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2459
8392 #: ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2558
8393 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2606
8394 #: ../src/guestfs-actions.pod:2639 ../src/guestfs-actions.pod:2681
8395 #: ../src/guestfs-actions.pod:2719
8396 msgid ""
8397 "This function should only be called with a root device string as returned by "
8398 "C<guestfs_inspect_os>."
8399 msgstr ""
8400
8401 # type: textblock
8402 #: ../src/guestfs-actions.pod:2439
8403 msgid ""
8404 "This returns the architecture of the inspected operating system.  The "
8405 "possible return values are listed under C<guestfs_file_architecture>."
8406 msgstr ""
8407
8408 # type: textblock
8409 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1653
8410 msgid ""
8411 "If the architecture could not be determined, then the string C<unknown> is "
8412 "returned."
8413 msgstr ""
8414
8415 # type: textblock
8416 #: ../src/guestfs-actions.pod:2446 ../src/guestfs-actions.pod:2519
8417 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2650
8418 #: ../src/guestfs-actions.pod:2669 ../src/guestfs-actions.pod:2706
8419 #: ../src/guestfs-actions.pod:2729 ../src/guestfs-actions.pod:2769
8420 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1722
8421 #: ../fish/guestfish-actions.pod:1761 ../fish/guestfish-actions.pod:1816
8422 #: ../fish/guestfish-actions.pod:1829 ../fish/guestfish-actions.pod:1860
8423 #: ../fish/guestfish-actions.pod:1876 ../fish/guestfish-actions.pod:1910
8424 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8425 msgstr ""
8426
8427 # type: =head2
8428 #: ../src/guestfs-actions.pod:2453
8429 msgid "guestfs_inspect_get_distro"
8430 msgstr ""
8431
8432 # type: verbatim
8433 #: ../src/guestfs-actions.pod:2455
8434 #, no-wrap
8435 msgid ""
8436 " char *\n"
8437 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8438 "                             const char *root);\n"
8439 "\n"
8440 msgstr ""
8441
8442 # type: textblock
8443 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1665
8444 msgid ""
8445 "This returns the distro (distribution) of the inspected operating system."
8446 msgstr ""
8447
8448 # type: textblock
8449 #: ../src/guestfs-actions.pod:2465 ../fish/guestfish-actions.pod:1668
8450 msgid "Currently defined distros are:"
8451 msgstr ""
8452
8453 # type: =item
8454 #: ../src/guestfs-actions.pod:2469 ../fish/guestfish-actions.pod:1672
8455 msgid "\"archlinux\""
8456 msgstr ""
8457
8458 # type: textblock
8459 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1674
8460 msgid "Arch Linux."
8461 msgstr ""
8462
8463 # type: =item
8464 #: ../src/guestfs-actions.pod:2473 ../fish/guestfish-actions.pod:1676
8465 msgid "\"debian\""
8466 msgstr ""
8467
8468 # type: textblock
8469 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1678
8470 msgid "Debian or a Debian-derived distro such as Ubuntu."
8471 msgstr ""
8472
8473 # type: =item
8474 #: ../src/guestfs-actions.pod:2477 ../fish/guestfish-actions.pod:1680
8475 msgid "\"fedora\""
8476 msgstr ""
8477
8478 # type: textblock
8479 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1682
8480 msgid "Fedora."
8481 msgstr ""
8482
8483 # type: =item
8484 #: ../src/guestfs-actions.pod:2481 ../fish/guestfish-actions.pod:1684
8485 msgid "\"gentoo\""
8486 msgstr ""
8487
8488 # type: textblock
8489 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1686
8490 msgid "Gentoo."
8491 msgstr ""
8492
8493 # type: =item
8494 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1688
8495 msgid "\"meego\""
8496 msgstr ""
8497
8498 # type: textblock
8499 #: ../src/guestfs-actions.pod:2487 ../fish/guestfish-actions.pod:1690
8500 msgid "MeeGo."
8501 msgstr ""
8502
8503 # type: =item
8504 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1692
8505 msgid "\"pardus\""
8506 msgstr ""
8507
8508 # type: textblock
8509 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1694
8510 msgid "Pardus."
8511 msgstr ""
8512
8513 # type: =item
8514 #: ../src/guestfs-actions.pod:2493 ../fish/guestfish-actions.pod:1696
8515 msgid "\"redhat-based\""
8516 msgstr ""
8517
8518 # type: textblock
8519 #: ../src/guestfs-actions.pod:2495 ../fish/guestfish-actions.pod:1698
8520 msgid "Some Red Hat-derived distro."
8521 msgstr ""
8522
8523 # type: =item
8524 #: ../src/guestfs-actions.pod:2497 ../fish/guestfish-actions.pod:1700
8525 msgid "\"rhel\""
8526 msgstr ""
8527
8528 # type: textblock
8529 #: ../src/guestfs-actions.pod:2499 ../fish/guestfish-actions.pod:1702
8530 msgid "Red Hat Enterprise Linux and some derivatives."
8531 msgstr ""
8532
8533 # type: =item
8534 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2693
8535 #: ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1847
8536 msgid "\"windows\""
8537 msgstr ""
8538
8539 # type: textblock
8540 #: ../src/guestfs-actions.pod:2503 ../fish/guestfish-actions.pod:1706
8541 msgid ""
8542 "Windows does not have distributions.  This string is returned if the OS type "
8543 "is Windows."
8544 msgstr ""
8545
8546 # type: =item
8547 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1709
8548 msgid "\"ubuntu\""
8549 msgstr ""
8550
8551 # type: textblock
8552 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1711
8553 msgid "Ubuntu."
8554 msgstr ""
8555
8556 # type: =item
8557 #: ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2697
8558 #: ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1851
8559 msgid "\"unknown\""
8560 msgstr ""
8561
8562 # type: textblock
8563 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1715
8564 msgid "The distro could not be determined."
8565 msgstr ""
8566
8567 # type: textblock
8568 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2703
8569 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1857
8570 msgid ""
8571 "Future versions of libguestfs may return other strings here.  The caller "
8572 "should be prepared to handle any string."
8573 msgstr ""
8574
8575 # type: =head2
8576 #: ../src/guestfs-actions.pod:2526
8577 msgid "guestfs_inspect_get_filesystems"
8578 msgstr ""
8579
8580 # type: verbatim
8581 #: ../src/guestfs-actions.pod:2528
8582 #, no-wrap
8583 msgid ""
8584 " char **\n"
8585 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8586 "                                  const char *root);\n"
8587 "\n"
8588 msgstr ""
8589
8590 # type: textblock
8591 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1731
8592 msgid ""
8593 "This returns a list of all the filesystems that we think are associated with "
8594 "this operating system.  This includes the root filesystem, other ordinary "
8595 "filesystems, and non-mounted devices like swap partitions."
8596 msgstr ""
8597
8598 # type: textblock
8599 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1736
8600 msgid ""
8601 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8602 "to be shared between operating systems."
8603 msgstr ""
8604
8605 # type: textblock
8606 #: ../src/guestfs-actions.pod:2543
8607 msgid ""
8608 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8609 "C<guestfs_inspect_get_mountpoints>."
8610 msgstr ""
8611
8612 # type: =head2
8613 #: ../src/guestfs-actions.pod:2552
8614 msgid "guestfs_inspect_get_major_version"
8615 msgstr ""
8616
8617 # type: verbatim
8618 #: ../src/guestfs-actions.pod:2554
8619 #, no-wrap
8620 msgid ""
8621 " int\n"
8622 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8623 "                                    const char *root);\n"
8624 "\n"
8625 msgstr ""
8626
8627 # type: textblock
8628 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1749
8629 msgid ""
8630 "This returns the major version number of the inspected operating system."
8631 msgstr ""
8632
8633 # type: textblock
8634 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1752
8635 msgid ""
8636 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8637 "popular public names used by the operating system.  Notably the operating "
8638 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8639 "1).  You can find out the real versions corresponding to releases of Windows "
8640 "by consulting Wikipedia or MSDN."
8641 msgstr ""
8642
8643 # type: textblock
8644 #: ../src/guestfs-actions.pod:2571 ../src/guestfs-actions.pod:2591
8645 #: ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
8646 msgid "If the version could not be determined, then C<0> is returned."
8647 msgstr ""
8648
8649 # type: =head2
8650 #: ../src/guestfs-actions.pod:2579
8651 msgid "guestfs_inspect_get_minor_version"
8652 msgstr ""
8653
8654 # type: verbatim
8655 #: ../src/guestfs-actions.pod:2581
8656 #, no-wrap
8657 msgid ""
8658 " int\n"
8659 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8660 "                                    const char *root);\n"
8661 "\n"
8662 msgstr ""
8663
8664 # type: textblock
8665 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1770
8666 msgid ""
8667 "This returns the minor version number of the inspected operating system."
8668 msgstr ""
8669
8670 # type: textblock
8671 #: ../src/guestfs-actions.pod:2593
8672 msgid ""
8673 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8674 "C<guestfs_inspect_get_major_version>."
8675 msgstr ""
8676
8677 # type: =head2
8678 #: ../src/guestfs-actions.pod:2600
8679 msgid "guestfs_inspect_get_mountpoints"
8680 msgstr ""
8681
8682 # type: verbatim
8683 #: ../src/guestfs-actions.pod:2602
8684 #, no-wrap
8685 msgid ""
8686 " char **\n"
8687 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8688 "                                  const char *root);\n"
8689 "\n"
8690 msgstr ""
8691
8692 # type: textblock
8693 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1785
8694 msgid ""
8695 "This returns a hash of where we think the filesystems associated with this "
8696 "operating system should be mounted.  Callers should note that this is at "
8697 "best an educated guess made by reading configuration files such as C</etc/"
8698 "fstab>."
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2614 ../fish/guestfish-actions.pod:1790
8703 msgid ""
8704 "Each element in the returned hashtable has a key which is the path of the "
8705 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8706 "mounted there (eg. C</dev/sda1>)."
8707 msgstr ""
8708
8709 # type: textblock
8710 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1795
8711 msgid ""
8712 "Non-mounted devices such as swap devices are I<not> returned in this list."
8713 msgstr ""
8714
8715 # type: textblock
8716 #: ../src/guestfs-actions.pod:2622
8717 msgid ""
8718 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8719 "C<guestfs_inspect_get_filesystems>."
8720 msgstr ""
8721
8722 # type: textblock
8723 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3069
8724 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:6059
8725 msgid ""
8726 "This function returns a NULL-terminated array of strings, or NULL if there "
8727 "was an error.  The array of strings will always have length C<2n+1>, where "
8728 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8729 "caller must free the strings and the array after use>."
8730 msgstr ""
8731
8732 # type: =head2
8733 #: ../src/guestfs-actions.pod:2633
8734 msgid "guestfs_inspect_get_product_name"
8735 msgstr ""
8736
8737 # type: verbatim
8738 #: ../src/guestfs-actions.pod:2635
8739 #, no-wrap
8740 msgid ""
8741 " char *\n"
8742 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8743 "                                   const char *root);\n"
8744 "\n"
8745 msgstr ""
8746
8747 # type: textblock
8748 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1808
8749 msgid ""
8750 "This returns the product name of the inspected operating system.  The "
8751 "product name is generally some freeform string which can be displayed to the "
8752 "user, but should not be parsed by programs."
8753 msgstr ""
8754
8755 # type: textblock
8756 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1813
8757 msgid ""
8758 "If the product name could not be determined, then the string C<unknown> is "
8759 "returned."
8760 msgstr ""
8761
8762 # type: =head2
8763 #: ../src/guestfs-actions.pod:2657
8764 msgid "guestfs_inspect_get_roots"
8765 msgstr ""
8766
8767 # type: verbatim
8768 #: ../src/guestfs-actions.pod:2659
8769 #, no-wrap
8770 msgid ""
8771 " char **\n"
8772 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8773 "\n"
8774 msgstr ""
8775
8776 # type: textblock
8777 #: ../src/guestfs-actions.pod:2662
8778 msgid ""
8779 "This function is a convenient way to get the list of root devices, as "
8780 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8781 "the whole inspection process."
8782 msgstr ""
8783
8784 # type: textblock
8785 #: ../src/guestfs-actions.pod:2666
8786 msgid ""
8787 "This returns an empty list if either no root devices were found or the "
8788 "caller has not called C<guestfs_inspect_os>."
8789 msgstr ""
8790
8791 # type: =head2
8792 #: ../src/guestfs-actions.pod:2675
8793 msgid "guestfs_inspect_get_type"
8794 msgstr ""
8795
8796 # type: verbatim
8797 #: ../src/guestfs-actions.pod:2677
8798 #, no-wrap
8799 msgid ""
8800 " char *\n"
8801 " guestfs_inspect_get_type (guestfs_h *g,\n"
8802 "                           const char *root);\n"
8803 "\n"
8804 msgstr ""
8805
8806 # type: textblock
8807 #: ../src/guestfs-actions.pod:2684 ../fish/guestfish-actions.pod:1838
8808 msgid ""
8809 "This returns the type of the inspected operating system.  Currently defined "
8810 "types are:"
8811 msgstr ""
8812
8813 # type: =item
8814 #: ../src/guestfs-actions.pod:2689 ../fish/guestfish-actions.pod:1843
8815 msgid "\"linux\""
8816 msgstr ""
8817
8818 # type: textblock
8819 #: ../src/guestfs-actions.pod:2691 ../fish/guestfish-actions.pod:1845
8820 msgid "Any Linux-based operating system."
8821 msgstr ""
8822
8823 # type: textblock
8824 #: ../src/guestfs-actions.pod:2695 ../fish/guestfish-actions.pod:1849
8825 msgid "Any Microsoft Windows operating system."
8826 msgstr ""
8827
8828 # type: textblock
8829 #: ../src/guestfs-actions.pod:2699 ../fish/guestfish-actions.pod:1853
8830 msgid "The operating system type could not be determined."
8831 msgstr ""
8832
8833 # type: =head2
8834 #: ../src/guestfs-actions.pod:2713
8835 msgid "guestfs_inspect_get_windows_systemroot"
8836 msgstr ""
8837
8838 # type: verbatim
8839 #: ../src/guestfs-actions.pod:2715
8840 #, no-wrap
8841 msgid ""
8842 " char *\n"
8843 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8844 "                                         const char *root);\n"
8845 "\n"
8846 msgstr ""
8847
8848 # type: textblock
8849 #: ../src/guestfs-actions.pod:2722 ../fish/guestfish-actions.pod:1869
8850 msgid ""
8851 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8852 "is a directory path such as C</WINDOWS>."
8853 msgstr ""
8854
8855 # type: textblock
8856 #: ../src/guestfs-actions.pod:2725 ../fish/guestfish-actions.pod:1872
8857 msgid ""
8858 "This call assumes that the guest is Windows and that the systemroot could be "
8859 "determined by inspection.  If this is not the case then an error is returned."
8860 msgstr ""
8861
8862 # type: textblock
8863 #: ../src/guestfs-actions.pod:2734
8864 msgid "(Added in 1.5.25)"
8865 msgstr ""
8866
8867 # type: =head2
8868 #: ../src/guestfs-actions.pod:2736
8869 msgid "guestfs_inspect_os"
8870 msgstr ""
8871
8872 # type: verbatim
8873 #: ../src/guestfs-actions.pod:2738
8874 #, no-wrap
8875 msgid ""
8876 " char **\n"
8877 " guestfs_inspect_os (guestfs_h *g);\n"
8878 "\n"
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2741 ../fish/guestfish-actions.pod:1882
8883 msgid ""
8884 "This function uses other libguestfs functions and certain heuristics to "
8885 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8886 "for operating systems."
8887 msgstr ""
8888
8889 # type: textblock
8890 #: ../src/guestfs-actions.pod:2745 ../fish/guestfish-actions.pod:1886
8891 msgid "The list returned is empty if no operating systems were found."
8892 msgstr ""
8893
8894 # type: textblock
8895 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1888
8896 msgid ""
8897 "If one operating system was found, then this returns a list with a single "
8898 "element, which is the name of the root filesystem of this operating system.  "
8899 "It is also possible for this function to return a list containing more than "
8900 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8901 "element being the root filesystem of one of the operating systems."
8902 msgstr ""
8903
8904 # type: textblock
8905 #: ../src/guestfs-actions.pod:2754
8906 msgid ""
8907 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8908 "functions in order to query further information about each operating system, "
8909 "such as the name and version."
8910 msgstr ""
8911
8912 # type: textblock
8913 #: ../src/guestfs-actions.pod:2759
8914 msgid ""
8915 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8916 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8917 "the contents.  This should be called with no disks currently mounted.  The "
8918 "function may also use Augeas, so any existing Augeas handle will be closed."
8919 msgstr ""
8920
8921 # type: textblock
8922 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1906
8923 msgid ""
8924 "This function cannot decrypt encrypted disks.  The caller must do that first "
8925 "(supplying the necessary keys) if the disk is encrypted."
8926 msgstr ""
8927
8928 # type: textblock
8929 #: ../src/guestfs-actions.pod:2771 ../src/guestfs-actions.pod:3027
8930 #: ../src/guestfs-actions.pod:3089
8931 msgid "See also C<guestfs_list_filesystems>."
8932 msgstr ""
8933
8934 # type: =head2
8935 #: ../src/guestfs-actions.pod:2779
8936 msgid "guestfs_is_blockdev"
8937 msgstr ""
8938
8939 # type: verbatim
8940 #: ../src/guestfs-actions.pod:2781
8941 #, no-wrap
8942 msgid ""
8943 " int\n"
8944 " guestfs_is_blockdev (guestfs_h *g,\n"
8945 "                      const char *path);\n"
8946 "\n"
8947 msgstr ""
8948
8949 # type: textblock
8950 #: ../src/guestfs-actions.pod:2785 ../fish/guestfish-actions.pod:1918
8951 msgid ""
8952 "This returns C<true> if and only if there is a block device with the given "
8953 "C<path> name."
8954 msgstr ""
8955
8956 # type: textblock
8957 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2817
8958 #: ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2862
8959 #: ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2934
8960 #: ../src/guestfs-actions.pod:2949
8961 msgid "See also C<guestfs_stat>."
8962 msgstr ""
8963
8964 # type: textblock
8965 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2821
8966 #: ../src/guestfs-actions.pod:2866 ../src/guestfs-actions.pod:2938
8967 #: ../src/guestfs-actions.pod:2953
8968 msgid "(Added in 1.5.10)"
8969 msgstr ""
8970
8971 # type: =head2
8972 #: ../src/guestfs-actions.pod:2794
8973 msgid "guestfs_is_busy"
8974 msgstr ""
8975
8976 # type: verbatim
8977 #: ../src/guestfs-actions.pod:2796
8978 #, no-wrap
8979 msgid ""
8980 " int\n"
8981 " guestfs_is_busy (guestfs_h *g);\n"
8982 "\n"
8983 msgstr ""
8984
8985 # type: textblock
8986 #: ../src/guestfs-actions.pod:2799 ../fish/guestfish-actions.pod:1927
8987 msgid ""
8988 "This returns true iff this handle is busy processing a command (in the "
8989 "C<BUSY> state)."
8990 msgstr ""
8991
8992 # type: =head2
8993 #: ../src/guestfs-actions.pod:2808
8994 msgid "guestfs_is_chardev"
8995 msgstr ""
8996
8997 # type: verbatim
8998 #: ../src/guestfs-actions.pod:2810
8999 #, no-wrap
9000 msgid ""
9001 " int\n"
9002 " guestfs_is_chardev (guestfs_h *g,\n"
9003 "                     const char *path);\n"
9004 "\n"
9005 msgstr ""
9006
9007 # type: textblock
9008 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1936
9009 msgid ""
9010 "This returns C<true> if and only if there is a character device with the "
9011 "given C<path> name."
9012 msgstr ""
9013
9014 # type: =head2
9015 #: ../src/guestfs-actions.pod:2823
9016 msgid "guestfs_is_config"
9017 msgstr ""
9018
9019 # type: verbatim
9020 #: ../src/guestfs-actions.pod:2825
9021 #, no-wrap
9022 msgid ""
9023 " int\n"
9024 " guestfs_is_config (guestfs_h *g);\n"
9025 "\n"
9026 msgstr ""
9027
9028 # type: textblock
9029 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1945
9030 msgid ""
9031 "This returns true iff this handle is being configured (in the C<CONFIG> "
9032 "state)."
9033 msgstr ""
9034
9035 # type: =head2
9036 #: ../src/guestfs-actions.pod:2837
9037 msgid "guestfs_is_dir"
9038 msgstr ""
9039
9040 # type: verbatim
9041 #: ../src/guestfs-actions.pod:2839
9042 #, no-wrap
9043 msgid ""
9044 " int\n"
9045 " guestfs_is_dir (guestfs_h *g,\n"
9046 "                 const char *path);\n"
9047 "\n"
9048 msgstr ""
9049
9050 # type: textblock
9051 #: ../src/guestfs-actions.pod:2843 ../fish/guestfish-actions.pod:1954
9052 msgid ""
9053 "This returns C<true> if and only if there is a directory with the given "
9054 "C<path> name.  Note that it returns false for other objects like files."
9055 msgstr ""
9056
9057 # type: =head2
9058 #: ../src/guestfs-actions.pod:2853
9059 msgid "guestfs_is_fifo"
9060 msgstr ""
9061
9062 # type: verbatim
9063 #: ../src/guestfs-actions.pod:2855
9064 #, no-wrap
9065 msgid ""
9066 " int\n"
9067 " guestfs_is_fifo (guestfs_h *g,\n"
9068 "                  const char *path);\n"
9069 "\n"
9070 msgstr ""
9071
9072 # type: textblock
9073 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1964
9074 msgid ""
9075 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9076 "given C<path> name."
9077 msgstr ""
9078
9079 # type: =head2
9080 #: ../src/guestfs-actions.pod:2868
9081 msgid "guestfs_is_file"
9082 msgstr ""
9083
9084 # type: verbatim
9085 #: ../src/guestfs-actions.pod:2870
9086 #, no-wrap
9087 msgid ""
9088 " int\n"
9089 " guestfs_is_file (guestfs_h *g,\n"
9090 "                  const char *path);\n"
9091 "\n"
9092 msgstr ""
9093
9094 # type: textblock
9095 #: ../src/guestfs-actions.pod:2874 ../fish/guestfish-actions.pod:1973
9096 msgid ""
9097 "This returns C<true> if and only if there is a regular file with the given "
9098 "C<path> name.  Note that it returns false for other objects like directories."
9099 msgstr ""
9100
9101 # type: =head2
9102 #: ../src/guestfs-actions.pod:2884
9103 msgid "guestfs_is_launching"
9104 msgstr ""
9105
9106 # type: verbatim
9107 #: ../src/guestfs-actions.pod:2886
9108 #, no-wrap
9109 msgid ""
9110 " int\n"
9111 " guestfs_is_launching (guestfs_h *g);\n"
9112 "\n"
9113 msgstr ""
9114
9115 # type: textblock
9116 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1983
9117 msgid ""
9118 "This returns true iff this handle is launching the subprocess (in the "
9119 "C<LAUNCHING> state)."
9120 msgstr ""
9121
9122 # type: =head2
9123 #: ../src/guestfs-actions.pod:2898
9124 msgid "guestfs_is_lv"
9125 msgstr ""
9126
9127 # type: verbatim
9128 #: ../src/guestfs-actions.pod:2900
9129 #, no-wrap
9130 msgid ""
9131 " int\n"
9132 " guestfs_is_lv (guestfs_h *g,\n"
9133 "                const char *device);\n"
9134 "\n"
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:1992
9139 msgid ""
9140 "This command tests whether C<device> is a logical volume, and returns true "
9141 "iff this is the case."
9142 msgstr ""
9143
9144 # type: =head2
9145 #: ../src/guestfs-actions.pod:2911
9146 msgid "guestfs_is_ready"
9147 msgstr ""
9148
9149 # type: verbatim
9150 #: ../src/guestfs-actions.pod:2913
9151 #, no-wrap
9152 msgid ""
9153 " int\n"
9154 " guestfs_is_ready (guestfs_h *g);\n"
9155 "\n"
9156 msgstr ""
9157
9158 # type: textblock
9159 #: ../src/guestfs-actions.pod:2916 ../fish/guestfish-actions.pod:1999
9160 msgid ""
9161 "This returns true iff this handle is ready to accept commands (in the "
9162 "C<READY> state)."
9163 msgstr ""
9164
9165 # type: =head2
9166 #: ../src/guestfs-actions.pod:2925
9167 msgid "guestfs_is_socket"
9168 msgstr ""
9169
9170 # type: verbatim
9171 #: ../src/guestfs-actions.pod:2927
9172 #, no-wrap
9173 msgid ""
9174 " int\n"
9175 " guestfs_is_socket (guestfs_h *g,\n"
9176 "                    const char *path);\n"
9177 "\n"
9178 msgstr ""
9179
9180 # type: textblock
9181 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:2008
9182 msgid ""
9183 "This returns C<true> if and only if there is a Unix domain socket with the "
9184 "given C<path> name."
9185 msgstr ""
9186
9187 # type: =head2
9188 #: ../src/guestfs-actions.pod:2940
9189 msgid "guestfs_is_symlink"
9190 msgstr ""
9191
9192 # type: verbatim
9193 #: ../src/guestfs-actions.pod:2942
9194 #, no-wrap
9195 msgid ""
9196 " int\n"
9197 " guestfs_is_symlink (guestfs_h *g,\n"
9198 "                     const char *path);\n"
9199 "\n"
9200 msgstr ""
9201
9202 # type: textblock
9203 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2017
9204 msgid ""
9205 "This returns C<true> if and only if there is a symbolic link with the given "
9206 "C<path> name."
9207 msgstr ""
9208
9209 # type: =head2
9210 #: ../src/guestfs-actions.pod:2955
9211 msgid "guestfs_kill_subprocess"
9212 msgstr ""
9213
9214 # type: verbatim
9215 #: ../src/guestfs-actions.pod:2957
9216 #, no-wrap
9217 msgid ""
9218 " int\n"
9219 " guestfs_kill_subprocess (guestfs_h *g);\n"
9220 "\n"
9221 msgstr ""
9222
9223 # type: textblock
9224 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2026
9225 msgid "This kills the qemu subprocess.  You should never need to call this."
9226 msgstr ""
9227
9228 # type: =head2
9229 #: ../src/guestfs-actions.pod:2966
9230 msgid "guestfs_launch"
9231 msgstr ""
9232
9233 # type: verbatim
9234 #: ../src/guestfs-actions.pod:2968
9235 #, no-wrap
9236 msgid ""
9237 " int\n"
9238 " guestfs_launch (guestfs_h *g);\n"
9239 "\n"
9240 msgstr ""
9241
9242 # type: textblock
9243 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2034
9244 msgid ""
9245 "Internally libguestfs is implemented by running a virtual machine using "
9246 "L<qemu(1)>."
9247 msgstr ""
9248
9249 # type: textblock
9250 #: ../src/guestfs-actions.pod:2974 ../fish/guestfish-actions.pod:2037
9251 msgid ""
9252 "You should call this after configuring the handle (eg. adding drives) but "
9253 "before performing any actions."
9254 msgstr ""
9255
9256 # type: =head2
9257 #: ../src/guestfs-actions.pod:2981
9258 msgid "guestfs_lchown"
9259 msgstr ""
9260
9261 # type: verbatim
9262 #: ../src/guestfs-actions.pod:2983
9263 #, no-wrap
9264 msgid ""
9265 " int\n"
9266 " guestfs_lchown (guestfs_h *g,\n"
9267 "                 int owner,\n"
9268 "                 int group,\n"
9269 "                 const char *path);\n"
9270 "\n"
9271 msgstr ""
9272
9273 # type: textblock
9274 #: ../src/guestfs-actions.pod:2989
9275 msgid ""
9276 "Change the file owner to C<owner> and group to C<group>.  This is like "
9277 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9278 "changed, not the target."
9279 msgstr ""
9280
9281 # type: =head2
9282 #: ../src/guestfs-actions.pod:3001
9283 msgid "guestfs_lgetxattrs"
9284 msgstr ""
9285
9286 # type: verbatim
9287 #: ../src/guestfs-actions.pod:3003
9288 #, no-wrap
9289 msgid ""
9290 " struct guestfs_xattr_list *\n"
9291 " guestfs_lgetxattrs (guestfs_h *g,\n"
9292 "                     const char *path);\n"
9293 "\n"
9294 msgstr ""
9295
9296 # type: textblock
9297 #: ../src/guestfs-actions.pod:3007
9298 msgid ""
9299 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9300 "then it returns the extended attributes of the link itself."
9301 msgstr ""
9302
9303 # type: =head2
9304 #: ../src/guestfs-actions.pod:3018
9305 msgid "guestfs_list_devices"
9306 msgstr ""
9307
9308 # type: verbatim
9309 #: ../src/guestfs-actions.pod:3020
9310 #, no-wrap
9311 msgid ""
9312 " char **\n"
9313 " guestfs_list_devices (guestfs_h *g);\n"
9314 "\n"
9315 msgstr ""
9316
9317 # type: textblock
9318 #: ../src/guestfs-actions.pod:3023 ../fish/guestfish-actions.pod:2064
9319 msgid "List all the block devices."
9320 msgstr ""
9321
9322 # type: textblock
9323 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2066
9324 msgid "The full block device names are returned, eg. C</dev/sda>."
9325 msgstr ""
9326
9327 # type: =head2
9328 #: ../src/guestfs-actions.pod:3035
9329 msgid "guestfs_list_filesystems"
9330 msgstr ""
9331
9332 # type: verbatim
9333 #: ../src/guestfs-actions.pod:3037
9334 #, no-wrap
9335 msgid ""
9336 " char **\n"
9337 " guestfs_list_filesystems (guestfs_h *g);\n"
9338 "\n"
9339 msgstr ""
9340
9341 # type: textblock
9342 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2074
9343 msgid ""
9344 "This inspection command looks for filesystems on partitions, block devices "
9345 "and logical volumes, returning a list of devices containing filesystems and "
9346 "their type."
9347 msgstr ""
9348
9349 # type: textblock
9350 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2078
9351 msgid ""
9352 "The return value is a hash, where the keys are the devices containing "
9353 "filesystems, and the values are the filesystem types.  For example:"
9354 msgstr ""
9355
9356 # type: verbatim
9357 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2082
9358 #, no-wrap
9359 msgid ""
9360 " \"/dev/sda1\" => \"ntfs\"\n"
9361 " \"/dev/sda2\" => \"ext2\"\n"
9362 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9363 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9364 "\n"
9365 msgstr ""
9366
9367 # type: textblock
9368 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2087
9369 msgid ""
9370 "The value can have the special value \"unknown\", meaning the content of the "
9371 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9372 msgstr ""
9373
9374 # type: textblock
9375 #: ../src/guestfs-actions.pod:3057
9376 msgid ""
9377 "This command runs other libguestfs commands, which might include "
9378 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9379 "soon after launch and only when nothing is mounted."
9380 msgstr ""
9381
9382 # type: textblock
9383 #: ../src/guestfs-actions.pod:3061
9384 msgid ""
9385 "Not all of the filesystems returned will be mountable.  In particular, swap "
9386 "partitions are returned in the list.  Also this command does not check that "
9387 "each filesystem found is valid and mountable, and some filesystems might be "
9388 "mountable but require special options.  Filesystems may not all belong to a "
9389 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
9390 msgstr ""
9391
9392 # type: textblock
9393 #: ../src/guestfs-actions.pod:3075 ../src/guestfs-actions.pod:4602
9394 msgid "(Added in 1.5.15)"
9395 msgstr ""
9396
9397 # type: =head2
9398 #: ../src/guestfs-actions.pod:3077
9399 msgid "guestfs_list_partitions"
9400 msgstr ""
9401
9402 # type: verbatim
9403 #: ../src/guestfs-actions.pod:3079
9404 #, no-wrap
9405 msgid ""
9406 " char **\n"
9407 " guestfs_list_partitions (guestfs_h *g);\n"
9408 "\n"
9409 msgstr ""
9410
9411 # type: textblock
9412 #: ../src/guestfs-actions.pod:3082 ../fish/guestfish-actions.pod:2107
9413 msgid "List all the partitions detected on all block devices."
9414 msgstr ""
9415
9416 # type: textblock
9417 #: ../src/guestfs-actions.pod:3084 ../fish/guestfish-actions.pod:2109
9418 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9419 msgstr ""
9420
9421 # type: textblock
9422 #: ../src/guestfs-actions.pod:3086
9423 msgid ""
9424 "This does not return logical volumes.  For that you will need to call "
9425 "C<guestfs_lvs>."
9426 msgstr ""
9427
9428 # type: =head2
9429 #: ../src/guestfs-actions.pod:3097
9430 msgid "guestfs_ll"
9431 msgstr ""
9432
9433 # type: verbatim
9434 #: ../src/guestfs-actions.pod:3099
9435 #, no-wrap
9436 msgid ""
9437 " char *\n"
9438 " guestfs_ll (guestfs_h *g,\n"
9439 "             const char *directory);\n"
9440 "\n"
9441 msgstr ""
9442
9443 # type: textblock
9444 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2120
9445 msgid ""
9446 "List the files in C<directory> (relative to the root directory, there is no "
9447 "cwd) in the format of 'ls -la'."
9448 msgstr ""
9449
9450 # type: textblock
9451 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2123
9452 msgid ""
9453 "This command is mostly useful for interactive sessions.  It is I<not> "
9454 "intended that you try to parse the output string."
9455 msgstr ""
9456
9457 # type: =head2
9458 #: ../src/guestfs-actions.pod:3114
9459 msgid "guestfs_ln"
9460 msgstr ""
9461
9462 # type: verbatim
9463 #: ../src/guestfs-actions.pod:3116
9464 #, no-wrap
9465 msgid ""
9466 " int\n"
9467 " guestfs_ln (guestfs_h *g,\n"
9468 "             const char *target,\n"
9469 "             const char *linkname);\n"
9470 "\n"
9471 msgstr ""
9472
9473 # type: textblock
9474 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2130
9475 msgid "This command creates a hard link using the C<ln> command."
9476 msgstr ""
9477
9478 # type: =head2
9479 #: ../src/guestfs-actions.pod:3127
9480 msgid "guestfs_ln_f"
9481 msgstr ""
9482
9483 # type: verbatim
9484 #: ../src/guestfs-actions.pod:3129
9485 #, no-wrap
9486 msgid ""
9487 " int\n"
9488 " guestfs_ln_f (guestfs_h *g,\n"
9489 "               const char *target,\n"
9490 "               const char *linkname);\n"
9491 "\n"
9492 msgstr ""
9493
9494 # type: textblock
9495 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2136
9496 msgid ""
9497 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9498 "option removes the link (C<linkname>) if it exists already."
9499 msgstr ""
9500
9501 # type: =head2
9502 #: ../src/guestfs-actions.pod:3141
9503 msgid "guestfs_ln_s"
9504 msgstr ""
9505
9506 # type: verbatim
9507 #: ../src/guestfs-actions.pod:3143
9508 #, no-wrap
9509 msgid ""
9510 " int\n"
9511 " guestfs_ln_s (guestfs_h *g,\n"
9512 "               const char *target,\n"
9513 "               const char *linkname);\n"
9514 "\n"
9515 msgstr ""
9516
9517 # type: textblock
9518 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2143
9519 msgid "This command creates a symbolic link using the C<ln -s> command."
9520 msgstr ""
9521
9522 # type: =head2
9523 #: ../src/guestfs-actions.pod:3154
9524 msgid "guestfs_ln_sf"
9525 msgstr ""
9526
9527 # type: verbatim
9528 #: ../src/guestfs-actions.pod:3156
9529 #, no-wrap
9530 msgid ""
9531 " int\n"
9532 " guestfs_ln_sf (guestfs_h *g,\n"
9533 "                const char *target,\n"
9534 "                const char *linkname);\n"
9535 "\n"
9536 msgstr ""
9537
9538 # type: textblock
9539 #: ../src/guestfs-actions.pod:3161 ../fish/guestfish-actions.pod:2149
9540 msgid ""
9541 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9542 "option removes the link (C<linkname>) if it exists already."
9543 msgstr ""
9544
9545 # type: =head2
9546 #: ../src/guestfs-actions.pod:3168
9547 msgid "guestfs_lremovexattr"
9548 msgstr ""
9549
9550 # type: verbatim
9551 #: ../src/guestfs-actions.pod:3170
9552 #, no-wrap
9553 msgid ""
9554 " int\n"
9555 " guestfs_lremovexattr (guestfs_h *g,\n"
9556 "                       const char *xattr,\n"
9557 "                       const char *path);\n"
9558 "\n"
9559 msgstr ""
9560
9561 # type: textblock
9562 #: ../src/guestfs-actions.pod:3175
9563 msgid ""
9564 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9565 "link, then it removes an extended attribute of the link itself."
9566 msgstr ""
9567
9568 # type: =head2
9569 #: ../src/guestfs-actions.pod:3183
9570 msgid "guestfs_ls"
9571 msgstr ""
9572
9573 # type: verbatim
9574 #: ../src/guestfs-actions.pod:3185
9575 #, no-wrap
9576 msgid ""
9577 " char **\n"
9578 " guestfs_ls (guestfs_h *g,\n"
9579 "             const char *directory);\n"
9580 "\n"
9581 msgstr ""
9582
9583 # type: textblock
9584 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2164
9585 msgid ""
9586 "List the files in C<directory> (relative to the root directory, there is no "
9587 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9588 msgstr ""
9589
9590 # type: textblock
9591 #: ../src/guestfs-actions.pod:3193
9592 msgid ""
9593 "This command is mostly useful for interactive sessions.  Programs should "
9594 "probably use C<guestfs_readdir> instead."
9595 msgstr ""
9596
9597 # type: =head2
9598 #: ../src/guestfs-actions.pod:3202
9599 msgid "guestfs_lsetxattr"
9600 msgstr ""
9601
9602 # type: verbatim
9603 #: ../src/guestfs-actions.pod:3204
9604 #, no-wrap
9605 msgid ""
9606 " int\n"
9607 " guestfs_lsetxattr (guestfs_h *g,\n"
9608 "                    const char *xattr,\n"
9609 "                    const char *val,\n"
9610 "                    int vallen,\n"
9611 "                    const char *path);\n"
9612 "\n"
9613 msgstr ""
9614
9615 # type: textblock
9616 #: ../src/guestfs-actions.pod:3211
9617 msgid ""
9618 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9619 "then it sets an extended attribute of the link itself."
9620 msgstr ""
9621
9622 # type: =head2
9623 #: ../src/guestfs-actions.pod:3219
9624 msgid "guestfs_lstat"
9625 msgstr ""
9626
9627 # type: verbatim
9628 #: ../src/guestfs-actions.pod:3221
9629 #, no-wrap
9630 msgid ""
9631 " struct guestfs_stat *\n"
9632 " guestfs_lstat (guestfs_h *g,\n"
9633 "                const char *path);\n"
9634 "\n"
9635 msgstr ""
9636
9637 # type: textblock
9638 #: ../src/guestfs-actions.pod:3225 ../src/guestfs-actions.pod:5658
9639 #: ../fish/guestfish-actions.pod:2183 ../fish/guestfish-actions.pod:3765
9640 msgid "Returns file information for the given C<path>."
9641 msgstr ""
9642
9643 # type: textblock
9644 #: ../src/guestfs-actions.pod:3227
9645 msgid ""
9646 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9647 "link, then the link is stat-ed, not the file it refers to."
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2189
9652 msgid "This is the same as the C<lstat(2)> system call."
9653 msgstr ""
9654
9655 # type: textblock
9656 #: ../src/guestfs-actions.pod:3233 ../src/guestfs-actions.pod:5662
9657 msgid ""
9658 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9659 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9660 msgstr ""
9661
9662 # type: textblock
9663 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:5666
9664 #: ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6065
9665 msgid "(Added in 0.9.2)"
9666 msgstr ""
9667
9668 # type: =head2
9669 #: ../src/guestfs-actions.pod:3239
9670 msgid "guestfs_lstatlist"
9671 msgstr ""
9672
9673 # type: verbatim
9674 #: ../src/guestfs-actions.pod:3241
9675 #, no-wrap
9676 msgid ""
9677 " struct guestfs_stat_list *\n"
9678 " guestfs_lstatlist (guestfs_h *g,\n"
9679 "                    const char *path,\n"
9680 "                    char *const *names);\n"
9681 "\n"
9682 msgstr ""
9683
9684 # type: textblock
9685 #: ../src/guestfs-actions.pod:3246
9686 msgid ""
9687 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9688 "files, where all files are in the directory C<path>.  C<names> is the list "
9689 "of files from this directory."
9690 msgstr ""
9691
9692 # type: textblock
9693 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2199
9694 msgid ""
9695 "On return you get a list of stat structs, with a one-to-one correspondence "
9696 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9697 "then the C<ino> field of that structure is set to C<-1>."
9698 msgstr ""
9699
9700 # type: textblock
9701 #: ../src/guestfs-actions.pod:3255
9702 msgid ""
9703 "This call is intended for programs that want to efficiently list a directory "
9704 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9705 "for a similarly efficient call for getting extended attributes.  Very long "
9706 "directory listings might cause the protocol message size to be exceeded, "
9707 "causing this call to fail.  The caller must split up such requests into "
9708 "smaller groups of names."
9709 msgstr ""
9710
9711 # type: textblock
9712 #: ../src/guestfs-actions.pod:3263
9713 msgid ""
9714 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
9715 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9716 "C<guestfs_free_stat_list> after use>."
9717 msgstr ""
9718
9719 # type: =head2
9720 #: ../src/guestfs-actions.pod:3270
9721 msgid "guestfs_luks_add_key"
9722 msgstr ""
9723
9724 # type: verbatim
9725 #: ../src/guestfs-actions.pod:3272
9726 #, no-wrap
9727 msgid ""
9728 " int\n"
9729 " guestfs_luks_add_key (guestfs_h *g,\n"
9730 "                       const char *device,\n"
9731 "                       const char *key,\n"
9732 "                       const char *newkey,\n"
9733 "                       int keyslot);\n"
9734 "\n"
9735 msgstr ""
9736
9737 # type: textblock
9738 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2216
9739 msgid ""
9740 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9741 "existing key, and is used to access the device.  C<newkey> is the new key to "
9742 "add.  C<keyslot> is the key slot that will be replaced."
9743 msgstr ""
9744
9745 # type: textblock
9746 #: ../src/guestfs-actions.pod:3284
9747 msgid ""
9748 "Note that if C<keyslot> already contains a key, then this command will "
9749 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9750 msgstr ""
9751
9752 # type: textblock
9753 #: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3330
9754 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3373
9755 #: ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3424
9756 msgid ""
9757 "This function takes a key or passphrase parameter which could contain "
9758 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9759 "information."
9760 msgstr ""
9761
9762 # type: textblock
9763 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:3334
9764 #: ../src/guestfs-actions.pod:3357 ../src/guestfs-actions.pod:3377
9765 msgid "(Added in 1.5.2)"
9766 msgstr ""
9767
9768 # type: =head2
9769 #: ../src/guestfs-actions.pod:3296
9770 msgid "guestfs_luks_close"
9771 msgstr ""
9772
9773 # type: verbatim
9774 #: ../src/guestfs-actions.pod:3298
9775 #, no-wrap
9776 msgid ""
9777 " int\n"
9778 " guestfs_luks_close (guestfs_h *g,\n"
9779 "                     const char *device);\n"
9780 "\n"
9781 msgstr ""
9782
9783 # type: textblock
9784 #: ../src/guestfs-actions.pod:3302
9785 msgid ""
9786 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9787 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9788 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9789 "underlying block device."
9790 msgstr ""
9791
9792 # type: textblock
9793 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3409
9794 #: ../src/guestfs-actions.pod:3428 ../src/guestfs-actions.pod:3478
9795 #: ../src/guestfs-actions.pod:3526
9796 msgid "(Added in 1.5.1)"
9797 msgstr ""
9798
9799 # type: =head2
9800 #: ../src/guestfs-actions.pod:3312
9801 msgid "guestfs_luks_format"
9802 msgstr ""
9803
9804 # type: verbatim
9805 #: ../src/guestfs-actions.pod:3314
9806 #, no-wrap
9807 msgid ""
9808 " int\n"
9809 " guestfs_luks_format (guestfs_h *g,\n"
9810 "                      const char *device,\n"
9811 "                      const char *key,\n"
9812 "                      int keyslot);\n"
9813 "\n"
9814 msgstr ""
9815
9816 # type: textblock
9817 #: ../src/guestfs-actions.pod:3320 ../fish/guestfish-actions.pod:2242
9818 msgid ""
9819 "This command erases existing data on C<device> and formats the device as a "
9820 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9821 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3350
9826 #: ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:4352
9827 #: ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5493
9828 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5542
9829 #: ../src/guestfs-actions.pod:6693 ../fish/guestfish-actions.pod:2250
9830 #: ../fish/guestfish-actions.pod:2263 ../fish/guestfish-actions.pod:2347
9831 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:3384
9832 #: ../fish/guestfish-actions.pod:3664 ../fish/guestfish-actions.pod:3680
9833 #: ../fish/guestfish-actions.pod:3695 ../fish/guestfish-actions.pod:4410
9834 msgid ""
9835 "B<This command is dangerous.  Without careful use you can easily destroy all "
9836 "your data>."
9837 msgstr ""
9838
9839 # type: =head2
9840 #: ../src/guestfs-actions.pod:3336
9841 msgid "guestfs_luks_format_cipher"
9842 msgstr ""
9843
9844 # type: verbatim
9845 #: ../src/guestfs-actions.pod:3338
9846 #, no-wrap
9847 msgid ""
9848 " int\n"
9849 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9850 "                             const char *device,\n"
9851 "                             const char *key,\n"
9852 "                             int keyslot,\n"
9853 "                             const char *cipher);\n"
9854 "\n"
9855 msgstr ""
9856
9857 # type: textblock
9858 #: ../src/guestfs-actions.pod:3345
9859 msgid ""
9860 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9861 "set the C<cipher> used."
9862 msgstr ""
9863
9864 # type: =head2
9865 #: ../src/guestfs-actions.pod:3359
9866 msgid "guestfs_luks_kill_slot"
9867 msgstr ""
9868
9869 # type: verbatim
9870 #: ../src/guestfs-actions.pod:3361
9871 #, no-wrap
9872 msgid ""
9873 " int\n"
9874 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9875 "                         const char *device,\n"
9876 "                         const char *key,\n"
9877 "                         int keyslot);\n"
9878 "\n"
9879 msgstr ""
9880
9881 # type: textblock
9882 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2270
9883 msgid ""
9884 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9885 "device C<device>.  C<key> must be one of the I<other> keys."
9886 msgstr ""
9887
9888 # type: =head2
9889 #: ../src/guestfs-actions.pod:3379
9890 msgid "guestfs_luks_open"
9891 msgstr ""
9892
9893 # type: verbatim
9894 #: ../src/guestfs-actions.pod:3381
9895 #, no-wrap
9896 msgid ""
9897 " int\n"
9898 " guestfs_luks_open (guestfs_h *g,\n"
9899 "                    const char *device,\n"
9900 "                    const char *key,\n"
9901 "                    const char *mapname);\n"
9902 "\n"
9903 msgstr ""
9904
9905 # type: textblock
9906 #: ../src/guestfs-actions.pod:3387 ../fish/guestfish-actions.pod:2281
9907 msgid ""
9908 "This command opens a block device which has been encrypted according to the "
9909 "Linux Unified Key Setup (LUKS) standard."
9910 msgstr ""
9911
9912 # type: textblock
9913 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2284
9914 msgid "C<device> is the encrypted block device or partition."
9915 msgstr ""
9916
9917 # type: textblock
9918 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2286
9919 msgid ""
9920 "The caller must supply one of the keys associated with the LUKS block "
9921 "device, in the C<key> parameter."
9922 msgstr ""
9923
9924 # type: textblock
9925 #: ../src/guestfs-actions.pod:3395 ../fish/guestfish-actions.pod:2289
9926 msgid ""
9927 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9928 "writes to this block device are decrypted from and encrypted to the "
9929 "underlying C<device> respectively."
9930 msgstr ""
9931
9932 # type: textblock
9933 #: ../src/guestfs-actions.pod:3399
9934 msgid ""
9935 "If this block device contains LVM volume groups, then calling "
9936 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9937 "visible."
9938 msgstr ""
9939
9940 # type: =head2
9941 #: ../src/guestfs-actions.pod:3411
9942 msgid "guestfs_luks_open_ro"
9943 msgstr ""
9944
9945 # type: verbatim
9946 #: ../src/guestfs-actions.pod:3413
9947 #, no-wrap
9948 msgid ""
9949 " int\n"
9950 " guestfs_luks_open_ro (guestfs_h *g,\n"
9951 "                       const char *device,\n"
9952 "                       const char *key,\n"
9953 "                       const char *mapname);\n"
9954 "\n"
9955 msgstr ""
9956
9957 # type: textblock
9958 #: ../src/guestfs-actions.pod:3419
9959 msgid ""
9960 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9961 "created."
9962 msgstr ""
9963
9964 # type: =head2
9965 #: ../src/guestfs-actions.pod:3430
9966 msgid "guestfs_lvcreate"
9967 msgstr ""
9968
9969 # type: verbatim
9970 #: ../src/guestfs-actions.pod:3432
9971 #, no-wrap
9972 msgid ""
9973 " int\n"
9974 " guestfs_lvcreate (guestfs_h *g,\n"
9975 "                   const char *logvol,\n"
9976 "                   const char *volgroup,\n"
9977 "                   int mbytes);\n"
9978 "\n"
9979 msgstr ""
9980
9981 # type: textblock
9982 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2314
9983 msgid ""
9984 "This creates an LVM logical volume called C<logvol> on the volume group "
9985 "C<volgroup>, with C<size> megabytes."
9986 msgstr ""
9987
9988 # type: =head2
9989 #: ../src/guestfs-actions.pod:3445
9990 msgid "guestfs_lvm_canonical_lv_name"
9991 msgstr ""
9992
9993 # type: verbatim
9994 #: ../src/guestfs-actions.pod:3447
9995 #, no-wrap
9996 msgid ""
9997 " char *\n"
9998 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9999 "                                const char *lvname);\n"
10000 "\n"
10001 msgstr ""
10002
10003 # type: textblock
10004 #: ../src/guestfs-actions.pod:3451 ../fish/guestfish-actions.pod:2321
10005 msgid ""
10006 "This converts alternative naming schemes for LVs that you might find to the "
10007 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10008 "LV>."
10009 msgstr ""
10010
10011 # type: textblock
10012 #: ../src/guestfs-actions.pod:3455 ../fish/guestfish-actions.pod:2325
10013 msgid ""
10014 "This command returns an error if the C<lvname> parameter does not refer to a "
10015 "logical volume."
10016 msgstr ""
10017
10018 # type: textblock
10019 #: ../src/guestfs-actions.pod:3458
10020 msgid "See also C<guestfs_is_lv>."
10021 msgstr ""
10022
10023 # type: textblock
10024 #: ../src/guestfs-actions.pod:3463
10025 msgid "(Added in 1.5.24)"
10026 msgstr ""
10027
10028 # type: =head2
10029 #: ../src/guestfs-actions.pod:3465
10030 msgid "guestfs_lvm_clear_filter"
10031 msgstr ""
10032
10033 # type: verbatim
10034 #: ../src/guestfs-actions.pod:3467
10035 #, no-wrap
10036 msgid ""
10037 " int\n"
10038 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10039 "\n"
10040 msgstr ""
10041
10042 # type: textblock
10043 #: ../src/guestfs-actions.pod:3470
10044 msgid ""
10045 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10046 "see every block device."
10047 msgstr ""
10048
10049 # type: textblock
10050 #: ../src/guestfs-actions.pod:3473 ../src/guestfs-actions.pod:3515
10051 #: ../fish/guestfish-actions.pod:2337 ../fish/guestfish-actions.pod:2368
10052 msgid ""
10053 "This command also clears the LVM cache and performs a volume group scan."
10054 msgstr ""
10055
10056 # type: =head2
10057 #: ../src/guestfs-actions.pod:3480
10058 msgid "guestfs_lvm_remove_all"
10059 msgstr ""
10060
10061 # type: verbatim
10062 #: ../src/guestfs-actions.pod:3482
10063 #, no-wrap
10064 msgid ""
10065 " int\n"
10066 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10067 "\n"
10068 msgstr ""
10069
10070 # type: textblock
10071 #: ../src/guestfs-actions.pod:3485 ../fish/guestfish-actions.pod:2344
10072 msgid ""
10073 "This command removes all LVM logical volumes, volume groups and physical "
10074 "volumes."
10075 msgstr ""
10076
10077 # type: =head2
10078 #: ../src/guestfs-actions.pod:3495
10079 msgid "guestfs_lvm_set_filter"
10080 msgstr ""
10081
10082 # type: verbatim
10083 #: ../src/guestfs-actions.pod:3497
10084 #, no-wrap
10085 msgid ""
10086 " int\n"
10087 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10088 "                         char *const *devices);\n"
10089 "\n"
10090 msgstr ""
10091
10092 # type: textblock
10093 #: ../src/guestfs-actions.pod:3501 ../fish/guestfish-actions.pod:2354
10094 msgid ""
10095 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10096 "block devices in the list C<devices>, and will ignore all other attached "
10097 "block devices."
10098 msgstr ""
10099
10100 # type: textblock
10101 #: ../src/guestfs-actions.pod:3505 ../fish/guestfish-actions.pod:2358
10102 msgid ""
10103 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10104 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10105 "there are two types of duplication possible: either cloned PVs/VGs which "
10106 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10107 "same name.  In normal operation you cannot create this situation, but you "
10108 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10109 "inside the LVM metadata."
10110 msgstr ""
10111
10112 # type: textblock
10113 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2371
10114 msgid "You can filter whole block devices or individual partitions."
10115 msgstr ""
10116
10117 # type: textblock
10118 #: ../src/guestfs-actions.pod:3520 ../fish/guestfish-actions.pod:2373
10119 msgid ""
10120 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10121 "filesystem), even if you are not filtering out that VG."
10122 msgstr ""
10123
10124 # type: =head2
10125 #: ../src/guestfs-actions.pod:3528
10126 msgid "guestfs_lvremove"
10127 msgstr ""
10128
10129 # type: verbatim
10130 #: ../src/guestfs-actions.pod:3530
10131 #, no-wrap
10132 msgid ""
10133 " int\n"
10134 " guestfs_lvremove (guestfs_h *g,\n"
10135 "                   const char *device);\n"
10136 "\n"
10137 msgstr ""
10138
10139 # type: textblock
10140 #: ../src/guestfs-actions.pod:3534 ../fish/guestfish-actions.pod:2381
10141 msgid ""
10142 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10143 "LV, such as C</dev/VG/LV>."
10144 msgstr ""
10145
10146 # type: textblock
10147 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2384
10148 msgid ""
10149 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10150 "dev/VG>."
10151 msgstr ""
10152
10153 # type: textblock
10154 #: ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:4699
10155 #: ../src/guestfs-actions.pod:6431
10156 msgid "(Added in 1.0.13)"
10157 msgstr ""
10158
10159 # type: =head2
10160 #: ../src/guestfs-actions.pod:3544
10161 msgid "guestfs_lvrename"
10162 msgstr ""
10163
10164 # type: verbatim
10165 #: ../src/guestfs-actions.pod:3546
10166 #, no-wrap
10167 msgid ""
10168 " int\n"
10169 " guestfs_lvrename (guestfs_h *g,\n"
10170 "                   const char *logvol,\n"
10171 "                   const char *newlogvol);\n"
10172 "\n"
10173 msgstr ""
10174
10175 # type: textblock
10176 #: ../src/guestfs-actions.pod:3551 ../fish/guestfish-actions.pod:2391
10177 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10178 msgstr ""
10179
10180 # type: textblock
10181 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:6444
10182 msgid "(Added in 1.0.83)"
10183 msgstr ""
10184
10185 # type: =head2
10186 #: ../src/guestfs-actions.pod:3557
10187 msgid "guestfs_lvresize"
10188 msgstr ""
10189
10190 # type: verbatim
10191 #: ../src/guestfs-actions.pod:3559
10192 #, no-wrap
10193 msgid ""
10194 " int\n"
10195 " guestfs_lvresize (guestfs_h *g,\n"
10196 "                   const char *device,\n"
10197 "                   int mbytes);\n"
10198 "\n"
10199 msgstr ""
10200
10201 # type: textblock
10202 #: ../src/guestfs-actions.pod:3564 ../fish/guestfish-actions.pod:2397
10203 msgid ""
10204 "This resizes (expands or shrinks) an existing LVM logical volume to "
10205 "C<mbytes>.  When reducing, data in the reduced part is lost."
10206 msgstr ""
10207
10208 # type: =head2
10209 #: ../src/guestfs-actions.pod:3572
10210 msgid "guestfs_lvresize_free"
10211 msgstr ""
10212
10213 # type: verbatim
10214 #: ../src/guestfs-actions.pod:3574
10215 #, no-wrap
10216 msgid ""
10217 " int\n"
10218 " guestfs_lvresize_free (guestfs_h *g,\n"
10219 "                        const char *lv,\n"
10220 "                        int percent);\n"
10221 "\n"
10222 msgstr ""
10223
10224 # type: textblock
10225 #: ../src/guestfs-actions.pod:3579 ../fish/guestfish-actions.pod:2405
10226 msgid ""
10227 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10228 "remaining free space in the volume group.  Commonly you would call this with "
10229 "pc = 100 which expands the logical volume as much as possible, using all "
10230 "remaining free space in the volume group."
10231 msgstr ""
10232
10233 # type: textblock
10234 #: ../src/guestfs-actions.pod:3587
10235 msgid "(Added in 1.3.3)"
10236 msgstr ""
10237
10238 # type: =head2
10239 #: ../src/guestfs-actions.pod:3589
10240 msgid "guestfs_lvs"
10241 msgstr ""
10242
10243 # type: verbatim
10244 #: ../src/guestfs-actions.pod:3591
10245 #, no-wrap
10246 msgid ""
10247 " char **\n"
10248 " guestfs_lvs (guestfs_h *g);\n"
10249 "\n"
10250 msgstr ""
10251
10252 # type: textblock
10253 #: ../src/guestfs-actions.pod:3594 ../fish/guestfish-actions.pod:2415
10254 msgid ""
10255 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10256 "(8)> command."
10257 msgstr ""
10258
10259 # type: textblock
10260 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2418
10261 msgid ""
10262 "This returns a list of the logical volume device names (eg. C</dev/"
10263 "VolGroup00/LogVol00>)."
10264 msgstr ""
10265
10266 # type: textblock
10267 #: ../src/guestfs-actions.pod:3600
10268 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10269 msgstr ""
10270
10271 # type: =head2
10272 #: ../src/guestfs-actions.pod:3608
10273 msgid "guestfs_lvs_full"
10274 msgstr ""
10275
10276 # type: verbatim
10277 #: ../src/guestfs-actions.pod:3610
10278 #, no-wrap
10279 msgid ""
10280 " struct guestfs_lvm_lv_list *\n"
10281 " guestfs_lvs_full (guestfs_h *g);\n"
10282 "\n"
10283 msgstr ""
10284
10285 # type: textblock
10286 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2427
10287 msgid ""
10288 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10289 "(8)> command.  The \"full\" version includes all fields."
10290 msgstr ""
10291
10292 # type: textblock
10293 #: ../src/guestfs-actions.pod:3616
10294 msgid ""
10295 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
10296 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10297 "C<guestfs_free_lvm_lv_list> after use>."
10298 msgstr ""
10299
10300 # type: =head2
10301 #: ../src/guestfs-actions.pod:3623
10302 msgid "guestfs_lvuuid"
10303 msgstr ""
10304
10305 # type: verbatim
10306 #: ../src/guestfs-actions.pod:3625
10307 #, no-wrap
10308 msgid ""
10309 " char *\n"
10310 " guestfs_lvuuid (guestfs_h *g,\n"
10311 "                 const char *device);\n"
10312 "\n"
10313 msgstr ""
10314
10315 # type: textblock
10316 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2434
10317 msgid "This command returns the UUID of the LVM LV C<device>."
10318 msgstr ""
10319
10320 # type: =head2
10321 #: ../src/guestfs-actions.pod:3636
10322 msgid "guestfs_lxattrlist"
10323 msgstr ""
10324
10325 # type: verbatim
10326 #: ../src/guestfs-actions.pod:3638
10327 #, no-wrap
10328 msgid ""
10329 " struct guestfs_xattr_list *\n"
10330 " guestfs_lxattrlist (guestfs_h *g,\n"
10331 "                     const char *path,\n"
10332 "                     char *const *names);\n"
10333 "\n"
10334 msgstr ""
10335
10336 # type: textblock
10337 #: ../src/guestfs-actions.pod:3643 ../fish/guestfish-actions.pod:2440
10338 msgid ""
10339 "This call allows you to get the extended attributes of multiple files, where "
10340 "all files are in the directory C<path>.  C<names> is the list of files from "
10341 "this directory."
10342 msgstr ""
10343
10344 # type: textblock
10345 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2444
10346 msgid ""
10347 "On return you get a flat list of xattr structs which must be interpreted "
10348 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10349 "C<attrval> in this struct is zero-length to indicate there was an error "
10350 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10351 "number (the number of following attributes for this file, which could be C<"
10352 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10353 "for the first named file.  This repeats for the second and subsequent files."
10354 msgstr ""
10355
10356 # type: textblock
10357 #: ../src/guestfs-actions.pod:3657
10358 msgid ""
10359 "This call is intended for programs that want to efficiently list a directory "
10360 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10361 "a similarly efficient call for getting standard stats.  Very long directory "
10362 "listings might cause the protocol message size to be exceeded, causing this "
10363 "call to fail.  The caller must split up such requests into smaller groups of "
10364 "names."
10365 msgstr ""
10366
10367 # type: =head2
10368 #: ../src/guestfs-actions.pod:3672
10369 msgid "guestfs_mkdir"
10370 msgstr ""
10371
10372 # type: verbatim
10373 #: ../src/guestfs-actions.pod:3674
10374 #, no-wrap
10375 msgid ""
10376 " int\n"
10377 " guestfs_mkdir (guestfs_h *g,\n"
10378 "                const char *path);\n"
10379 "\n"
10380 msgstr ""
10381
10382 # type: textblock
10383 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2466
10384 msgid "Create a directory named C<path>."
10385 msgstr ""
10386
10387 # type: =head2
10388 #: ../src/guestfs-actions.pod:3684
10389 msgid "guestfs_mkdir_mode"
10390 msgstr ""
10391
10392 # type: verbatim
10393 #: ../src/guestfs-actions.pod:3686
10394 #, no-wrap
10395 msgid ""
10396 " int\n"
10397 " guestfs_mkdir_mode (guestfs_h *g,\n"
10398 "                     const char *path,\n"
10399 "                     int mode);\n"
10400 "\n"
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3691 ../fish/guestfish-actions.pod:2472
10405 msgid ""
10406 "This command creates a directory, setting the initial permissions of the "
10407 "directory to C<mode>."
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3694 ../fish/guestfish-actions.pod:2475
10412 msgid ""
10413 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10414 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10415 "other ways."
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3698
10420 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10421 msgstr ""
10422
10423 # type: =head2
10424 #: ../src/guestfs-actions.pod:3704
10425 msgid "guestfs_mkdir_p"
10426 msgstr ""
10427
10428 # type: verbatim
10429 #: ../src/guestfs-actions.pod:3706
10430 #, no-wrap
10431 msgid ""
10432 " int\n"
10433 " guestfs_mkdir_p (guestfs_h *g,\n"
10434 "                  const char *path);\n"
10435 "\n"
10436 msgstr ""
10437
10438 # type: textblock
10439 #: ../src/guestfs-actions.pod:3710 ../fish/guestfish-actions.pod:2485
10440 msgid ""
10441 "Create a directory named C<path>, creating any parent directories as "
10442 "necessary.  This is like the C<mkdir -p> shell command."
10443 msgstr ""
10444
10445 # type: =head2
10446 #: ../src/guestfs-actions.pod:3717
10447 msgid "guestfs_mkdtemp"
10448 msgstr ""
10449
10450 # type: verbatim
10451 #: ../src/guestfs-actions.pod:3719
10452 #, no-wrap
10453 msgid ""
10454 " char *\n"
10455 " guestfs_mkdtemp (guestfs_h *g,\n"
10456 "                  const char *template);\n"
10457 "\n"
10458 msgstr ""
10459
10460 # type: textblock
10461 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2492
10462 msgid ""
10463 "This command creates a temporary directory.  The C<template> parameter "
10464 "should be a full pathname for the temporary directory name with the final "
10465 "six characters being \"XXXXXX\"."
10466 msgstr ""
10467
10468 # type: textblock
10469 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2497
10470 msgid ""
10471 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10472 "being suitable for Windows filesystems."
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2500
10477 msgid "The name of the temporary directory that was created is returned."
10478 msgstr ""
10479
10480 # type: textblock
10481 #: ../src/guestfs-actions.pod:3734 ../fish/guestfish-actions.pod:2503
10482 msgid "The temporary directory is created with mode 0700 and is owned by root."
10483 msgstr ""
10484
10485 # type: textblock
10486 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2506
10487 msgid ""
10488 "The caller is responsible for deleting the temporary directory and its "
10489 "contents after use."
10490 msgstr ""
10491
10492 # type: textblock
10493 #: ../src/guestfs-actions.pod:3740 ../fish/guestfish-actions.pod:2509
10494 msgid "See also: L<mkdtemp(3)>"
10495 msgstr ""
10496
10497 # type: =head2
10498 #: ../src/guestfs-actions.pod:3747
10499 msgid "guestfs_mke2fs_J"
10500 msgstr ""
10501
10502 # type: verbatim
10503 #: ../src/guestfs-actions.pod:3749
10504 #, no-wrap
10505 msgid ""
10506 " int\n"
10507 " guestfs_mke2fs_J (guestfs_h *g,\n"
10508 "                   const char *fstype,\n"
10509 "                   int blocksize,\n"
10510 "                   const char *device,\n"
10511 "                   const char *journal);\n"
10512 "\n"
10513 msgstr ""
10514
10515 # type: textblock
10516 #: ../src/guestfs-actions.pod:3756 ../fish/guestfish-actions.pod:2515
10517 msgid ""
10518 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10519 "C<journal>.  It is equivalent to the command:"
10520 msgstr ""
10521
10522 # type: verbatim
10523 #: ../src/guestfs-actions.pod:3760 ../fish/guestfish-actions.pod:2519
10524 #, no-wrap
10525 msgid ""
10526 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10527 "\n"
10528 msgstr ""
10529
10530 # type: textblock
10531 #: ../src/guestfs-actions.pod:3762
10532 msgid "See also C<guestfs_mke2journal>."
10533 msgstr ""
10534
10535 # type: textblock
10536 #: ../src/guestfs-actions.pod:3766 ../src/guestfs-actions.pod:3784
10537 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:3818
10538 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3846
10539 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4088
10540 msgid "(Added in 1.0.68)"
10541 msgstr ""
10542
10543 # type: =head2
10544 #: ../src/guestfs-actions.pod:3768
10545 msgid "guestfs_mke2fs_JL"
10546 msgstr ""
10547
10548 # type: verbatim
10549 #: ../src/guestfs-actions.pod:3770
10550 #, no-wrap
10551 msgid ""
10552 " int\n"
10553 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10554 "                    const char *fstype,\n"
10555 "                    int blocksize,\n"
10556 "                    const char *device,\n"
10557 "                    const char *label);\n"
10558 "\n"
10559 msgstr ""
10560
10561 # type: textblock
10562 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2527
10563 msgid ""
10564 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10565 "the journal labeled C<label>."
10566 msgstr ""
10567
10568 # type: textblock
10569 #: ../src/guestfs-actions.pod:3780
10570 msgid "See also C<guestfs_mke2journal_L>."
10571 msgstr ""
10572
10573 # type: =head2
10574 #: ../src/guestfs-actions.pod:3786
10575 msgid "guestfs_mke2fs_JU"
10576 msgstr ""
10577
10578 # type: verbatim
10579 #: ../src/guestfs-actions.pod:3788
10580 #, no-wrap
10581 msgid ""
10582 " int\n"
10583 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10584 "                    const char *fstype,\n"
10585 "                    int blocksize,\n"
10586 "                    const char *device,\n"
10587 "                    const char *uuid);\n"
10588 "\n"
10589 msgstr ""
10590
10591 # type: textblock
10592 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2536
10593 msgid ""
10594 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10595 "the journal with UUID C<uuid>."
10596 msgstr ""
10597
10598 # type: textblock
10599 #: ../src/guestfs-actions.pod:3798
10600 msgid "See also C<guestfs_mke2journal_U>."
10601 msgstr ""
10602
10603 # type: =head2
10604 #: ../src/guestfs-actions.pod:3804
10605 msgid "guestfs_mke2journal"
10606 msgstr ""
10607
10608 # type: verbatim
10609 #: ../src/guestfs-actions.pod:3806
10610 #, no-wrap
10611 msgid ""
10612 " int\n"
10613 " guestfs_mke2journal (guestfs_h *g,\n"
10614 "                      int blocksize,\n"
10615 "                      const char *device);\n"
10616 "\n"
10617 msgstr ""
10618
10619 # type: textblock
10620 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2545
10621 msgid ""
10622 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10623 "command:"
10624 msgstr ""
10625
10626 # type: verbatim
10627 #: ../src/guestfs-actions.pod:3814 ../fish/guestfish-actions.pod:2548
10628 #, no-wrap
10629 msgid ""
10630 " mke2fs -O journal_dev -b blocksize device\n"
10631 "\n"
10632 msgstr ""
10633
10634 # type: =head2
10635 #: ../src/guestfs-actions.pod:3820
10636 msgid "guestfs_mke2journal_L"
10637 msgstr ""
10638
10639 # type: verbatim
10640 #: ../src/guestfs-actions.pod:3822
10641 #, no-wrap
10642 msgid ""
10643 " int\n"
10644 " guestfs_mke2journal_L (guestfs_h *g,\n"
10645 "                        int blocksize,\n"
10646 "                        const char *label,\n"
10647 "                        const char *device);\n"
10648 "\n"
10649 msgstr ""
10650
10651 # type: textblock
10652 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2554
10653 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10654 msgstr ""
10655
10656 # type: =head2
10657 #: ../src/guestfs-actions.pod:3834
10658 msgid "guestfs_mke2journal_U"
10659 msgstr ""
10660
10661 # type: verbatim
10662 #: ../src/guestfs-actions.pod:3836
10663 #, no-wrap
10664 msgid ""
10665 " int\n"
10666 " guestfs_mke2journal_U (guestfs_h *g,\n"
10667 "                        int blocksize,\n"
10668 "                        const char *uuid,\n"
10669 "                        const char *device);\n"
10670 "\n"
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2560
10675 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10676 msgstr ""
10677
10678 # type: =head2
10679 #: ../src/guestfs-actions.pod:3848
10680 msgid "guestfs_mkfifo"
10681 msgstr ""
10682
10683 # type: verbatim
10684 #: ../src/guestfs-actions.pod:3850
10685 #, no-wrap
10686 msgid ""
10687 " int\n"
10688 " guestfs_mkfifo (guestfs_h *g,\n"
10689 "                 int mode,\n"
10690 "                 const char *path);\n"
10691 "\n"
10692 msgstr ""
10693
10694 # type: textblock
10695 #: ../src/guestfs-actions.pod:3855
10696 msgid ""
10697 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10698 "is just a convenient wrapper around C<guestfs_mknod>."
10699 msgstr ""
10700
10701 # type: =head2
10702 #: ../src/guestfs-actions.pod:3865
10703 msgid "guestfs_mkfs"
10704 msgstr ""
10705
10706 # type: verbatim
10707 #: ../src/guestfs-actions.pod:3867
10708 #, no-wrap
10709 msgid ""
10710 " int\n"
10711 " guestfs_mkfs (guestfs_h *g,\n"
10712 "               const char *fstype,\n"
10713 "               const char *device);\n"
10714 "\n"
10715 msgstr ""
10716
10717 # type: textblock
10718 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2576
10719 msgid ""
10720 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10721 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10722 msgstr ""
10723
10724 # type: =head2
10725 #: ../src/guestfs-actions.pod:3880
10726 msgid "guestfs_mkfs_b"
10727 msgstr ""
10728
10729 # type: verbatim
10730 #: ../src/guestfs-actions.pod:3882
10731 #, no-wrap
10732 msgid ""
10733 " int\n"
10734 " guestfs_mkfs_b (guestfs_h *g,\n"
10735 "                 const char *fstype,\n"
10736 "                 int blocksize,\n"
10737 "                 const char *device);\n"
10738 "\n"
10739 msgstr ""
10740
10741 # type: textblock
10742 #: ../src/guestfs-actions.pod:3888
10743 msgid ""
10744 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10745 "block size of the resulting filesystem.  Supported block sizes depend on the "
10746 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10747 msgstr ""
10748
10749 # type: textblock
10750 #: ../src/guestfs-actions.pod:3893 ../fish/guestfish-actions.pod:2589
10751 msgid ""
10752 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10753 "cluster size."
10754 msgstr ""
10755
10756 # type: =head2
10757 #: ../src/guestfs-actions.pod:3900
10758 msgid "guestfs_mkmountpoint"
10759 msgstr ""
10760
10761 # type: verbatim
10762 #: ../src/guestfs-actions.pod:3902
10763 #, no-wrap
10764 msgid ""
10765 " int\n"
10766 " guestfs_mkmountpoint (guestfs_h *g,\n"
10767 "                       const char *exemptpath);\n"
10768 "\n"
10769 msgstr ""
10770
10771 # type: textblock
10772 #: ../src/guestfs-actions.pod:3906
10773 msgid ""
10774 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10775 "that can be used to create extra mountpoints before mounting the first "
10776 "filesystem."
10777 msgstr ""
10778
10779 # type: textblock
10780 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2600
10781 msgid ""
10782 "These calls are I<only> necessary in some very limited circumstances, mainly "
10783 "the case where you want to mount a mix of unrelated and/or read-only "
10784 "filesystems together."
10785 msgstr ""
10786
10787 # type: textblock
10788 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2604
10789 msgid ""
10790 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10791 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10792 "inside that.  You can unpack this as follows in guestfish:"
10793 msgstr ""
10794
10795 # type: verbatim
10796 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2609
10797 #, no-wrap
10798 msgid ""
10799 " add-ro Fedora-11-i686-Live.iso\n"
10800 " run\n"
10801 " mkmountpoint /cd\n"
10802 " mkmountpoint /sqsh\n"
10803 " mkmountpoint /ext3fs\n"
10804 " mount /dev/sda /cd\n"
10805 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10806 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10807 "\n"
10808 msgstr ""
10809
10810 # type: textblock
10811 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2618
10812 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10813 msgstr ""
10814
10815 # type: textblock
10816 #: ../src/guestfs-actions.pod:3930
10817 msgid ""
10818 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10819 "may get unexpected errors if you try to mix these calls.  It is safest to "
10820 "manually unmount filesystems and remove mountpoints after use."
10821 msgstr ""
10822
10823 # type: textblock
10824 #: ../src/guestfs-actions.pod:3934
10825 msgid ""
10826 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10827 "first, so for this to work for manual mountpoints, you must ensure that the "
10828 "innermost mountpoints have the longest pathnames, as in the example code "
10829 "above."
10830 msgstr ""
10831
10832 # type: textblock
10833 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2629
10834 msgid ""
10835 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10836 msgstr ""
10837
10838 # type: textblock
10839 #: ../src/guestfs-actions.pod:3941
10840 msgid ""
10841 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10842 "means that C<guestfs_umount_all> is called when the handle is closed which "
10843 "can also trigger these issues."
10844 msgstr ""
10845
10846 # type: textblock
10847 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4206
10848 #: ../src/guestfs-actions.pod:5102
10849 msgid "(Added in 1.0.62)"
10850 msgstr ""
10851
10852 # type: =head2
10853 #: ../src/guestfs-actions.pod:3949
10854 msgid "guestfs_mknod"
10855 msgstr ""
10856
10857 # type: verbatim
10858 #: ../src/guestfs-actions.pod:3951
10859 #, no-wrap
10860 msgid ""
10861 " int\n"
10862 " guestfs_mknod (guestfs_h *g,\n"
10863 "                int mode,\n"
10864 "                int devmajor,\n"
10865 "                int devminor,\n"
10866 "                const char *path);\n"
10867 "\n"
10868 msgstr ""
10869
10870 # type: textblock
10871 #: ../src/guestfs-actions.pod:3958 ../fish/guestfish-actions.pod:2639
10872 msgid ""
10873 "This call creates block or character special devices, or named pipes (FIFOs)."
10874 msgstr ""
10875
10876 # type: textblock
10877 #: ../src/guestfs-actions.pod:3961 ../fish/guestfish-actions.pod:2642
10878 msgid ""
10879 "The C<mode> parameter should be the mode, using the standard constants.  "
10880 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10881 "used when creating block and character special devices."
10882 msgstr ""
10883
10884 # type: textblock
10885 #: ../src/guestfs-actions.pod:3966
10886 msgid ""
10887 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10888 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10889 "regular file).  These constants are available in the standard Linux header "
10890 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10891 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10892 "the appropriate constant for you."
10893 msgstr ""
10894
10895 # type: =head2
10896 #: ../src/guestfs-actions.pod:3980
10897 msgid "guestfs_mknod_b"
10898 msgstr ""
10899
10900 # type: verbatim
10901 #: ../src/guestfs-actions.pod:3982
10902 #, no-wrap
10903 msgid ""
10904 " int\n"
10905 " guestfs_mknod_b (guestfs_h *g,\n"
10906 "                  int mode,\n"
10907 "                  int devmajor,\n"
10908 "                  int devminor,\n"
10909 "                  const char *path);\n"
10910 "\n"
10911 msgstr ""
10912
10913 # type: textblock
10914 #: ../src/guestfs-actions.pod:3989
10915 msgid ""
10916 "This call creates a block device node called C<path> with mode C<mode> and "
10917 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10918 "wrapper around C<guestfs_mknod>."
10919 msgstr ""
10920
10921 # type: =head2
10922 #: ../src/guestfs-actions.pod:3999
10923 msgid "guestfs_mknod_c"
10924 msgstr ""
10925
10926 # type: verbatim
10927 #: ../src/guestfs-actions.pod:4001
10928 #, no-wrap
10929 msgid ""
10930 " int\n"
10931 " guestfs_mknod_c (guestfs_h *g,\n"
10932 "                  int mode,\n"
10933 "                  int devmajor,\n"
10934 "                  int devminor,\n"
10935 "                  const char *path);\n"
10936 "\n"
10937 msgstr ""
10938
10939 # type: textblock
10940 #: ../src/guestfs-actions.pod:4008
10941 msgid ""
10942 "This call creates a char device node called C<path> with mode C<mode> and "
10943 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10944 "wrapper around C<guestfs_mknod>."
10945 msgstr ""
10946
10947 # type: =head2
10948 #: ../src/guestfs-actions.pod:4018
10949 msgid "guestfs_mkswap"
10950 msgstr ""
10951
10952 # type: verbatim
10953 #: ../src/guestfs-actions.pod:4020
10954 #, no-wrap
10955 msgid ""
10956 " int\n"
10957 " guestfs_mkswap (guestfs_h *g,\n"
10958 "                 const char *device);\n"
10959 "\n"
10960 msgstr ""
10961
10962 # type: textblock
10963 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2681
10964 msgid "Create a swap partition on C<device>."
10965 msgstr ""
10966
10967 # type: =head2
10968 #: ../src/guestfs-actions.pod:4030
10969 msgid "guestfs_mkswap_L"
10970 msgstr ""
10971
10972 # type: verbatim
10973 #: ../src/guestfs-actions.pod:4032
10974 #, no-wrap
10975 msgid ""
10976 " int\n"
10977 " guestfs_mkswap_L (guestfs_h *g,\n"
10978 "                   const char *label,\n"
10979 "                   const char *device);\n"
10980 "\n"
10981 msgstr ""
10982
10983 # type: textblock
10984 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:2687
10985 msgid "Create a swap partition on C<device> with label C<label>."
10986 msgstr ""
10987
10988 # type: textblock
10989 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2689
10990 msgid ""
10991 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10992 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10993 "or swap tools."
10994 msgstr ""
10995
10996 # type: =head2
10997 #: ../src/guestfs-actions.pod:4047
10998 msgid "guestfs_mkswap_U"
10999 msgstr ""
11000
11001 # type: verbatim
11002 #: ../src/guestfs-actions.pod:4049
11003 #, no-wrap
11004 msgid ""
11005 " int\n"
11006 " guestfs_mkswap_U (guestfs_h *g,\n"
11007 "                   const char *uuid,\n"
11008 "                   const char *device);\n"
11009 "\n"
11010 msgstr ""
11011
11012 # type: textblock
11013 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:2697
11014 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11015 msgstr ""
11016
11017 # type: =head2
11018 #: ../src/guestfs-actions.pod:4060
11019 msgid "guestfs_mkswap_file"
11020 msgstr ""
11021
11022 # type: verbatim
11023 #: ../src/guestfs-actions.pod:4062
11024 #, no-wrap
11025 msgid ""
11026 " int\n"
11027 " guestfs_mkswap_file (guestfs_h *g,\n"
11028 "                      const char *path);\n"
11029 "\n"
11030 msgstr ""
11031
11032 # type: textblock
11033 #: ../src/guestfs-actions.pod:4066 ../fish/guestfish-actions.pod:2703
11034 msgid "Create a swap file."
11035 msgstr ""
11036
11037 # type: textblock
11038 #: ../src/guestfs-actions.pod:4068
11039 msgid ""
11040 "This command just writes a swap file signature to an existing file.  To "
11041 "create the file itself, use something like C<guestfs_fallocate>."
11042 msgstr ""
11043
11044 # type: =head2
11045 #: ../src/guestfs-actions.pod:4075
11046 msgid "guestfs_modprobe"
11047 msgstr ""
11048
11049 # type: verbatim
11050 #: ../src/guestfs-actions.pod:4077
11051 #, no-wrap
11052 msgid ""
11053 " int\n"
11054 " guestfs_modprobe (guestfs_h *g,\n"
11055 "                   const char *modulename);\n"
11056 "\n"
11057 msgstr ""
11058
11059 # type: textblock
11060 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:2712
11061 msgid "This loads a kernel module in the appliance."
11062 msgstr ""
11063
11064 # type: textblock
11065 #: ../src/guestfs-actions.pod:4083 ../fish/guestfish-actions.pod:2714
11066 msgid ""
11067 "The kernel module must have been whitelisted when libguestfs was built (see "
11068 "C<appliance/kmod.whitelist.in> in the source)."
11069 msgstr ""
11070
11071 # type: =head2
11072 #: ../src/guestfs-actions.pod:4090
11073 msgid "guestfs_mount"
11074 msgstr ""
11075
11076 # type: verbatim
11077 #: ../src/guestfs-actions.pod:4092
11078 #, no-wrap
11079 msgid ""
11080 " int\n"
11081 " guestfs_mount (guestfs_h *g,\n"
11082 "                const char *device,\n"
11083 "                const char *mountpoint);\n"
11084 "\n"
11085 msgstr ""
11086
11087 # type: textblock
11088 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:2721
11089 msgid ""
11090 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11091 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11092 "those block devices contain partitions, they will have the usual names (eg. "
11093 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11094 msgstr ""
11095
11096 # type: textblock
11097 #: ../src/guestfs-actions.pod:4103 ../fish/guestfish-actions.pod:2727
11098 msgid ""
11099 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11100 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11101 "mounted on directories which already exist."
11102 msgstr ""
11103
11104 # type: textblock
11105 #: ../src/guestfs-actions.pod:4108 ../fish/guestfish-actions.pod:2732
11106 msgid ""
11107 "The mounted filesystem is writable, if we have sufficient permissions on the "
11108 "underlying device."
11109 msgstr ""
11110
11111 # type: textblock
11112 #: ../src/guestfs-actions.pod:4111
11113 msgid ""
11114 "B<Important note:> When you use this call, the filesystem options C<sync> "
11115 "and C<noatime> are set implicitly.  This was originally done because we "
11116 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11117 "very large negative performance impact and negligible effect on "
11118 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11119 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11120 "(use an empty string for the first parameter if you don't want any options)."
11121 msgstr ""
11122
11123 # type: =head2
11124 #: ../src/guestfs-actions.pod:4125
11125 msgid "guestfs_mount_loop"
11126 msgstr ""
11127
11128 # type: verbatim
11129 #: ../src/guestfs-actions.pod:4127
11130 #, no-wrap
11131 msgid ""
11132 " int\n"
11133 " guestfs_mount_loop (guestfs_h *g,\n"
11134 "                     const char *file,\n"
11135 "                     const char *mountpoint);\n"
11136 "\n"
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:2749
11141 msgid ""
11142 "This command lets you mount C<file> (a filesystem image in a file) on a "
11143 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11144 "mountpoint>."
11145 msgstr ""
11146
11147 # type: =head2
11148 #: ../src/guestfs-actions.pod:4140
11149 msgid "guestfs_mount_options"
11150 msgstr ""
11151
11152 # type: verbatim
11153 #: ../src/guestfs-actions.pod:4142
11154 #, no-wrap
11155 msgid ""
11156 " int\n"
11157 " guestfs_mount_options (guestfs_h *g,\n"
11158 "                        const char *options,\n"
11159 "                        const char *device,\n"
11160 "                        const char *mountpoint);\n"
11161 "\n"
11162 msgstr ""
11163
11164 # type: textblock
11165 #: ../src/guestfs-actions.pod:4148
11166 msgid ""
11167 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11168 "the mount options as for the L<mount(8)> I<-o> flag."
11169 msgstr ""
11170
11171 # type: textblock
11172 #: ../src/guestfs-actions.pod:4152 ../fish/guestfish-actions.pod:2761
11173 msgid ""
11174 "If the C<options> parameter is an empty string, then no options are passed "
11175 "(all options default to whatever the filesystem uses)."
11176 msgstr ""
11177
11178 # type: textblock
11179 #: ../src/guestfs-actions.pod:4158 ../src/guestfs-actions.pod:4172
11180 #: ../src/guestfs-actions.pod:4189
11181 msgid "(Added in 1.0.10)"
11182 msgstr ""
11183
11184 # type: =head2
11185 #: ../src/guestfs-actions.pod:4160
11186 msgid "guestfs_mount_ro"
11187 msgstr ""
11188
11189 # type: verbatim
11190 #: ../src/guestfs-actions.pod:4162
11191 #, no-wrap
11192 msgid ""
11193 " int\n"
11194 " guestfs_mount_ro (guestfs_h *g,\n"
11195 "                   const char *device,\n"
11196 "                   const char *mountpoint);\n"
11197 "\n"
11198 msgstr ""
11199
11200 # type: textblock
11201 #: ../src/guestfs-actions.pod:4167
11202 msgid ""
11203 "This is the same as the C<guestfs_mount> command, but it mounts the "
11204 "filesystem with the read-only (I<-o ro>) flag."
11205 msgstr ""
11206
11207 # type: =head2
11208 #: ../src/guestfs-actions.pod:4174
11209 msgid "guestfs_mount_vfs"
11210 msgstr ""
11211
11212 # type: verbatim
11213 #: ../src/guestfs-actions.pod:4176
11214 #, no-wrap
11215 msgid ""
11216 " int\n"
11217 " guestfs_mount_vfs (guestfs_h *g,\n"
11218 "                    const char *options,\n"
11219 "                    const char *vfstype,\n"
11220 "                    const char *device,\n"
11221 "                    const char *mountpoint);\n"
11222 "\n"
11223 msgstr ""
11224
11225 # type: textblock
11226 #: ../src/guestfs-actions.pod:4183
11227 msgid ""
11228 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11229 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11230 "t> flags."
11231 msgstr ""
11232
11233 # type: =head2
11234 #: ../src/guestfs-actions.pod:4191
11235 msgid "guestfs_mountpoints"
11236 msgstr ""
11237
11238 # type: verbatim
11239 #: ../src/guestfs-actions.pod:4193
11240 #, no-wrap
11241 msgid ""
11242 " char **\n"
11243 " guestfs_mountpoints (guestfs_h *g);\n"
11244 "\n"
11245 msgstr ""
11246
11247 # type: textblock
11248 #: ../src/guestfs-actions.pod:4196
11249 msgid ""
11250 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11251 "devices.  This one returns a hash table (map) of device name to directory "
11252 "where the device is mounted."
11253 msgstr ""
11254
11255 # type: =head2
11256 #: ../src/guestfs-actions.pod:4208
11257 msgid "guestfs_mounts"
11258 msgstr ""
11259
11260 # type: verbatim
11261 #: ../src/guestfs-actions.pod:4210
11262 #, no-wrap
11263 msgid ""
11264 " char **\n"
11265 " guestfs_mounts (guestfs_h *g);\n"
11266 "\n"
11267 msgstr ""
11268
11269 # type: textblock
11270 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2792
11271 msgid ""
11272 "This returns the list of currently mounted filesystems.  It returns the list "
11273 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11274 msgstr ""
11275
11276 # type: textblock
11277 #: ../src/guestfs-actions.pod:4216 ../fish/guestfish-actions.pod:2795
11278 msgid "Some internal mounts are not shown."
11279 msgstr ""
11280
11281 # type: textblock
11282 #: ../src/guestfs-actions.pod:4218
11283 msgid "See also: C<guestfs_mountpoints>"
11284 msgstr ""
11285
11286 # type: =head2
11287 #: ../src/guestfs-actions.pod:4226
11288 msgid "guestfs_mv"
11289 msgstr ""
11290
11291 # type: verbatim
11292 #: ../src/guestfs-actions.pod:4228
11293 #, no-wrap
11294 msgid ""
11295 " int\n"
11296 " guestfs_mv (guestfs_h *g,\n"
11297 "             const char *src,\n"
11298 "             const char *dest);\n"
11299 "\n"
11300 msgstr ""
11301
11302 # type: textblock
11303 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2803
11304 msgid ""
11305 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11306 "destination filename or destination directory."
11307 msgstr ""
11308
11309 # type: =head2
11310 #: ../src/guestfs-actions.pod:4240
11311 msgid "guestfs_ntfs_3g_probe"
11312 msgstr ""
11313
11314 # type: verbatim
11315 #: ../src/guestfs-actions.pod:4242
11316 #, no-wrap
11317 msgid ""
11318 " int\n"
11319 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11320 "                        int rw,\n"
11321 "                        const char *device);\n"
11322 "\n"
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4247 ../fish/guestfish-actions.pod:2810
11327 msgid ""
11328 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11329 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11330 "write, and some cannot be mounted at all)."
11331 msgstr ""
11332
11333 # type: textblock
11334 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2814
11335 msgid ""
11336 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11337 "can be mounted read-write.  Set it to false if you want to test if the "
11338 "volume can be mounted read-only."
11339 msgstr ""
11340
11341 # type: textblock
11342 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2818
11343 msgid ""
11344 "The return value is an integer which C<0> if the operation would succeed, or "
11345 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4261
11350 msgid "(Added in 1.0.43)"
11351 msgstr ""
11352
11353 # type: =head2
11354 #: ../src/guestfs-actions.pod:4263
11355 msgid "guestfs_ntfsresize"
11356 msgstr ""
11357
11358 # type: verbatim
11359 #: ../src/guestfs-actions.pod:4265
11360 #, no-wrap
11361 msgid ""
11362 " int\n"
11363 " guestfs_ntfsresize (guestfs_h *g,\n"
11364 "                     const char *device);\n"
11365 "\n"
11366 msgstr ""
11367
11368 # type: textblock
11369 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:2826
11370 msgid ""
11371 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11372 "size of the underlying device.  See also L<ntfsresize(8)>."
11373 msgstr ""
11374
11375 # type: =head2
11376 #: ../src/guestfs-actions.pod:4277
11377 msgid "guestfs_ntfsresize_size"
11378 msgstr ""
11379
11380 # type: verbatim
11381 #: ../src/guestfs-actions.pod:4279
11382 #, no-wrap
11383 msgid ""
11384 " int\n"
11385 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11386 "                          const char *device,\n"
11387 "                          int64_t size);\n"
11388 "\n"
11389 msgstr ""
11390
11391 # type: textblock
11392 #: ../src/guestfs-actions.pod:4284
11393 msgid ""
11394 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11395 "to specify the new size (in bytes) explicitly."
11396 msgstr ""
11397
11398 # type: textblock
11399 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4726
11400 #: ../src/guestfs-actions.pod:4800 ../src/guestfs-actions.pod:5050
11401 msgid "(Added in 1.3.14)"
11402 msgstr ""
11403
11404 # type: =head2
11405 #: ../src/guestfs-actions.pod:4291
11406 msgid "guestfs_part_add"
11407 msgstr ""
11408
11409 # type: verbatim
11410 #: ../src/guestfs-actions.pod:4293
11411 #, no-wrap
11412 msgid ""
11413 " int\n"
11414 " guestfs_part_add (guestfs_h *g,\n"
11415 "                   const char *device,\n"
11416 "                   const char *prlogex,\n"
11417 "                   int64_t startsect,\n"
11418 "                   int64_t endsect);\n"
11419 "\n"
11420 msgstr ""
11421
11422 # type: textblock
11423 #: ../src/guestfs-actions.pod:4300
11424 msgid ""
11425 "This command adds a partition to C<device>.  If there is no partition table "
11426 "on the device, call C<guestfs_part_init> first."
11427 msgstr ""
11428
11429 # type: textblock
11430 #: ../src/guestfs-actions.pod:4303 ../fish/guestfish-actions.pod:2844
11431 msgid ""
11432 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11433 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11434 "C<logical>) and C<e> (or C<extended>) partition types."
11435 msgstr ""
11436
11437 # type: textblock
11438 #: ../src/guestfs-actions.pod:4308 ../fish/guestfish-actions.pod:2849
11439 msgid ""
11440 "C<startsect> and C<endsect> are the start and end of the partition in "
11441 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11442 "from the end of the disk (C<-1> is the last sector)."
11443 msgstr ""
11444
11445 # type: textblock
11446 #: ../src/guestfs-actions.pod:4312
11447 msgid ""
11448 "Creating a partition which covers the whole disk is not so easy.  Use "
11449 "C<guestfs_part_disk> to do that."
11450 msgstr ""
11451
11452 # type: textblock
11453 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4355
11454 #: ../src/guestfs-actions.pod:4408 ../src/guestfs-actions.pod:4486
11455 #: ../src/guestfs-actions.pod:4525 ../src/guestfs-actions.pod:4544
11456 #: ../src/guestfs-actions.pod:4584
11457 msgid "(Added in 1.0.78)"
11458 msgstr ""
11459
11460 # type: =head2
11461 #: ../src/guestfs-actions.pod:4319
11462 msgid "guestfs_part_del"
11463 msgstr ""
11464
11465 # type: verbatim
11466 #: ../src/guestfs-actions.pod:4321
11467 #, no-wrap
11468 msgid ""
11469 " int\n"
11470 " guestfs_part_del (guestfs_h *g,\n"
11471 "                   const char *device,\n"
11472 "                   int partnum);\n"
11473 "\n"
11474 msgstr ""
11475
11476 # type: textblock
11477 #: ../src/guestfs-actions.pod:4326 ../fish/guestfish-actions.pod:2860
11478 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11479 msgstr ""
11480
11481 # type: textblock
11482 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:2862
11483 msgid ""
11484 "Note that in the case of MBR partitioning, deleting an extended partition "
11485 "also deletes any logical partitions it contains."
11486 msgstr ""
11487
11488 # type: =head2
11489 #: ../src/guestfs-actions.pod:4336
11490 msgid "guestfs_part_disk"
11491 msgstr ""
11492
11493 # type: verbatim
11494 #: ../src/guestfs-actions.pod:4338
11495 #, no-wrap
11496 msgid ""
11497 " int\n"
11498 " guestfs_part_disk (guestfs_h *g,\n"
11499 "                    const char *device,\n"
11500 "                    const char *parttype);\n"
11501 "\n"
11502 msgstr ""
11503
11504 # type: textblock
11505 #: ../src/guestfs-actions.pod:4343
11506 msgid ""
11507 "This command is simply a combination of C<guestfs_part_init> followed by "
11508 "C<guestfs_part_add> to create a single primary partition covering the whole "
11509 "disk."
11510 msgstr ""
11511
11512 # type: textblock
11513 #: ../src/guestfs-actions.pod:4347
11514 msgid ""
11515 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11516 "possible values are described in C<guestfs_part_init>."
11517 msgstr ""
11518
11519 # type: =head2
11520 #: ../src/guestfs-actions.pod:4357
11521 msgid "guestfs_part_get_bootable"
11522 msgstr ""
11523
11524 # type: verbatim
11525 #: ../src/guestfs-actions.pod:4359
11526 #, no-wrap
11527 msgid ""
11528 " int\n"
11529 " guestfs_part_get_bootable (guestfs_h *g,\n"
11530 "                            const char *device,\n"
11531 "                            int partnum);\n"
11532 "\n"
11533 msgstr ""
11534
11535 # type: textblock
11536 #: ../src/guestfs-actions.pod:4364 ../fish/guestfish-actions.pod:2884
11537 msgid ""
11538 "This command returns true if the partition C<partnum> on C<device> has the "
11539 "bootable flag set."
11540 msgstr ""
11541
11542 # type: textblock
11543 #: ../src/guestfs-actions.pod:4367
11544 msgid "See also C<guestfs_part_set_bootable>."
11545 msgstr ""
11546
11547 # type: =head2
11548 #: ../src/guestfs-actions.pod:4373
11549 msgid "guestfs_part_get_mbr_id"
11550 msgstr ""
11551
11552 # type: verbatim
11553 #: ../src/guestfs-actions.pod:4375
11554 #, no-wrap
11555 msgid ""
11556 " int\n"
11557 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11558 "                          const char *device,\n"
11559 "                          int partnum);\n"
11560 "\n"
11561 msgstr ""
11562
11563 # type: textblock
11564 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2893
11565 msgid ""
11566 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11567 "partition C<partnum>."
11568 msgstr ""
11569
11570 # type: textblock
11571 #: ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4560
11572 msgid ""
11573 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11574 "undefined results for other partition table types (see "
11575 "C<guestfs_part_get_parttype>)."
11576 msgstr ""
11577
11578 # type: =head2
11579 #: ../src/guestfs-actions.pod:4391
11580 msgid "guestfs_part_get_parttype"
11581 msgstr ""
11582
11583 # type: verbatim
11584 #: ../src/guestfs-actions.pod:4393
11585 #, no-wrap
11586 msgid ""
11587 " char *\n"
11588 " guestfs_part_get_parttype (guestfs_h *g,\n"
11589 "                            const char *device);\n"
11590 "\n"
11591 msgstr ""
11592
11593 # type: textblock
11594 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2904
11595 msgid ""
11596 "This command examines the partition table on C<device> and returns the "
11597 "partition table type (format) being used."
11598 msgstr ""
11599
11600 # type: textblock
11601 #: ../src/guestfs-actions.pod:4400
11602 msgid ""
11603 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11604 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11605 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11606 msgstr ""
11607
11608 # type: =head2
11609 #: ../src/guestfs-actions.pod:4410
11610 msgid "guestfs_part_init"
11611 msgstr ""
11612
11613 # type: verbatim
11614 #: ../src/guestfs-actions.pod:4412
11615 #, no-wrap
11616 msgid ""
11617 " int\n"
11618 " guestfs_part_init (guestfs_h *g,\n"
11619 "                    const char *device,\n"
11620 "                    const char *parttype);\n"
11621 "\n"
11622 msgstr ""
11623
11624 # type: textblock
11625 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:2916
11626 msgid ""
11627 "This creates an empty partition table on C<device> of one of the partition "
11628 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11629 "(for large disks)."
11630 msgstr ""
11631
11632 # type: textblock
11633 #: ../src/guestfs-actions.pod:4421
11634 msgid ""
11635 "Initially there are no partitions.  Following this, you should call "
11636 "C<guestfs_part_add> for each partition required."
11637 msgstr ""
11638
11639 # type: textblock
11640 #: ../src/guestfs-actions.pod:4424 ../fish/guestfish-actions.pod:2923
11641 msgid "Possible values for C<parttype> are:"
11642 msgstr ""
11643
11644 # type: =item
11645 #: ../src/guestfs-actions.pod:4428 ../fish/guestfish-actions.pod:2927
11646 msgid "B<efi> | B<gpt>"
11647 msgstr ""
11648
11649 # type: textblock
11650 #: ../src/guestfs-actions.pod:4430 ../fish/guestfish-actions.pod:2929
11651 msgid "Intel EFI / GPT partition table."
11652 msgstr ""
11653
11654 # type: textblock
11655 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2931
11656 msgid ""
11657 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11658 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11659 "the C<mbr> format."
11660 msgstr ""
11661
11662 # type: =item
11663 #: ../src/guestfs-actions.pod:4436 ../fish/guestfish-actions.pod:2935
11664 msgid "B<mbr> | B<msdos>"
11665 msgstr ""
11666
11667 # type: textblock
11668 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:2937
11669 msgid ""
11670 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11671 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11672 "TB.  For large disks we recommend using C<gpt>."
11673 msgstr ""
11674
11675 # type: textblock
11676 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:2944
11677 msgid ""
11678 "Other partition table types that may work but are not supported include:"
11679 msgstr ""
11680
11681 # type: =item
11682 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:2949
11683 msgid "B<aix>"
11684 msgstr ""
11685
11686 # type: textblock
11687 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:2951
11688 msgid "AIX disk labels."
11689 msgstr ""
11690
11691 # type: =item
11692 #: ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:2953
11693 msgid "B<amiga> | B<rdb>"
11694 msgstr ""
11695
11696 # type: textblock
11697 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2955
11698 msgid "Amiga \"Rigid Disk Block\" format."
11699 msgstr ""
11700
11701 # type: =item
11702 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2957
11703 msgid "B<bsd>"
11704 msgstr ""
11705
11706 # type: textblock
11707 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:2959
11708 msgid "BSD disk labels."
11709 msgstr ""
11710
11711 # type: =item
11712 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2961
11713 msgid "B<dasd>"
11714 msgstr ""
11715
11716 # type: textblock
11717 #: ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:2963
11718 msgid "DASD, used on IBM mainframes."
11719 msgstr ""
11720
11721 # type: =item
11722 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:2965
11723 msgid "B<dvh>"
11724 msgstr ""
11725
11726 # type: textblock
11727 #: ../src/guestfs-actions.pod:4468 ../fish/guestfish-actions.pod:2967
11728 msgid "MIPS/SGI volumes."
11729 msgstr ""
11730
11731 # type: =item
11732 #: ../src/guestfs-actions.pod:4470 ../fish/guestfish-actions.pod:2969
11733 msgid "B<mac>"
11734 msgstr ""
11735
11736 # type: textblock
11737 #: ../src/guestfs-actions.pod:4472 ../fish/guestfish-actions.pod:2971
11738 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11739 msgstr ""
11740
11741 # type: =item
11742 #: ../src/guestfs-actions.pod:4474 ../fish/guestfish-actions.pod:2973
11743 msgid "B<pc98>"
11744 msgstr ""
11745
11746 # type: textblock
11747 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:2975
11748 msgid "NEC PC-98 format, common in Japan apparently."
11749 msgstr ""
11750
11751 # type: =item
11752 #: ../src/guestfs-actions.pod:4478 ../fish/guestfish-actions.pod:2977
11753 msgid "B<sun>"
11754 msgstr ""
11755
11756 # type: textblock
11757 #: ../src/guestfs-actions.pod:4480 ../fish/guestfish-actions.pod:2979
11758 msgid "Sun disk labels."
11759 msgstr ""
11760
11761 # type: =head2
11762 #: ../src/guestfs-actions.pod:4488
11763 msgid "guestfs_part_list"
11764 msgstr ""
11765
11766 # type: verbatim
11767 #: ../src/guestfs-actions.pod:4490
11768 #, no-wrap
11769 msgid ""
11770 " struct guestfs_partition_list *\n"
11771 " guestfs_part_list (guestfs_h *g,\n"
11772 "                    const char *device);\n"
11773 "\n"
11774 msgstr ""
11775
11776 # type: textblock
11777 #: ../src/guestfs-actions.pod:4494 ../fish/guestfish-actions.pod:2987
11778 msgid ""
11779 "This command parses the partition table on C<device> and returns the list of "
11780 "partitions found."
11781 msgstr ""
11782
11783 # type: textblock
11784 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:2990
11785 msgid "The fields in the returned structure are:"
11786 msgstr ""
11787
11788 # type: =item
11789 #: ../src/guestfs-actions.pod:4501 ../fish/guestfish-actions.pod:2994
11790 msgid "B<part_num>"
11791 msgstr ""
11792
11793 # type: textblock
11794 #: ../src/guestfs-actions.pod:4503 ../fish/guestfish-actions.pod:2996
11795 msgid "Partition number, counting from 1."
11796 msgstr ""
11797
11798 # type: =item
11799 #: ../src/guestfs-actions.pod:4505 ../fish/guestfish-actions.pod:2998
11800 msgid "B<part_start>"
11801 msgstr ""
11802
11803 # type: textblock
11804 #: ../src/guestfs-actions.pod:4507
11805 msgid ""
11806 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11807 "the device's sector size, see C<guestfs_blockdev_getss>."
11808 msgstr ""
11809
11810 # type: =item
11811 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3003
11812 msgid "B<part_end>"
11813 msgstr ""
11814
11815 # type: textblock
11816 #: ../src/guestfs-actions.pod:4512 ../fish/guestfish-actions.pod:3005
11817 msgid "End of the partition in bytes."
11818 msgstr ""
11819
11820 # type: =item
11821 #: ../src/guestfs-actions.pod:4514 ../fish/guestfish-actions.pod:3007
11822 msgid "B<part_size>"
11823 msgstr ""
11824
11825 # type: textblock
11826 #: ../src/guestfs-actions.pod:4516 ../fish/guestfish-actions.pod:3009
11827 msgid "Size of the partition in bytes."
11828 msgstr ""
11829
11830 # type: textblock
11831 #: ../src/guestfs-actions.pod:4520
11832 msgid ""
11833 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
11834 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11835 "C<guestfs_free_partition_list> after use>."
11836 msgstr ""
11837
11838 # type: =head2
11839 #: ../src/guestfs-actions.pod:4527
11840 msgid "guestfs_part_set_bootable"
11841 msgstr ""
11842
11843 # type: verbatim
11844 #: ../src/guestfs-actions.pod:4529
11845 #, no-wrap
11846 msgid ""
11847 " int\n"
11848 " guestfs_part_set_bootable (guestfs_h *g,\n"
11849 "                            const char *device,\n"
11850 "                            int partnum,\n"
11851 "                            int bootable);\n"
11852 "\n"
11853 msgstr ""
11854
11855 # type: textblock
11856 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3017
11857 msgid ""
11858 "This sets the bootable flag on partition numbered C<partnum> on device "
11859 "C<device>.  Note that partitions are numbered from 1."
11860 msgstr ""
11861
11862 # type: textblock
11863 #: ../src/guestfs-actions.pod:4538 ../fish/guestfish-actions.pod:3020
11864 msgid ""
11865 "The bootable flag is used by some operating systems (notably Windows) to "
11866 "determine which partition to boot from.  It is by no means universally "
11867 "recognized."
11868 msgstr ""
11869
11870 # type: =head2
11871 #: ../src/guestfs-actions.pod:4546
11872 msgid "guestfs_part_set_mbr_id"
11873 msgstr ""
11874
11875 # type: verbatim
11876 #: ../src/guestfs-actions.pod:4548
11877 #, no-wrap
11878 msgid ""
11879 " int\n"
11880 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11881 "                          const char *device,\n"
11882 "                          int partnum,\n"
11883 "                          int idbyte);\n"
11884 "\n"
11885 msgstr ""
11886
11887 # type: textblock
11888 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3028
11889 msgid ""
11890 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11891 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11892 "documentation are in fact hexadecimal numbers, but usually documented "
11893 "without any leading \"0x\" which might be confusing."
11894 msgstr ""
11895
11896 # type: =head2
11897 #: ../src/guestfs-actions.pod:4568
11898 msgid "guestfs_part_set_name"
11899 msgstr ""
11900
11901 # type: verbatim
11902 #: ../src/guestfs-actions.pod:4570
11903 #, no-wrap
11904 msgid ""
11905 " int\n"
11906 " guestfs_part_set_name (guestfs_h *g,\n"
11907 "                        const char *device,\n"
11908 "                        int partnum,\n"
11909 "                        const char *name);\n"
11910 "\n"
11911 msgstr ""
11912
11913 # type: textblock
11914 #: ../src/guestfs-actions.pod:4576 ../fish/guestfish-actions.pod:3042
11915 msgid ""
11916 "This sets the partition name on partition numbered C<partnum> on device "
11917 "C<device>.  Note that partitions are numbered from 1."
11918 msgstr ""
11919
11920 # type: textblock
11921 #: ../src/guestfs-actions.pod:4579 ../fish/guestfish-actions.pod:3045
11922 msgid ""
11923 "The partition name can only be set on certain types of partition table.  "
11924 "This works on C<gpt> but not on C<mbr> partitions."
11925 msgstr ""
11926
11927 # type: =head2
11928 #: ../src/guestfs-actions.pod:4586
11929 msgid "guestfs_part_to_dev"
11930 msgstr ""
11931
11932 # type: verbatim
11933 #: ../src/guestfs-actions.pod:4588
11934 #, no-wrap
11935 msgid ""
11936 " char *\n"
11937 " guestfs_part_to_dev (guestfs_h *g,\n"
11938 "                      const char *partition);\n"
11939 "\n"
11940 msgstr ""
11941
11942 # type: textblock
11943 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3052
11944 msgid ""
11945 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11946 "partition number, returning the device name (eg. \"/dev/sdb\")."
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4596
11951 msgid ""
11952 "The named partition must exist, for example as a string returned from "
11953 "C<guestfs_list_partitions>."
11954 msgstr ""
11955
11956 # type: =head2
11957 #: ../src/guestfs-actions.pod:4604
11958 msgid "guestfs_ping_daemon"
11959 msgstr ""
11960
11961 # type: verbatim
11962 #: ../src/guestfs-actions.pod:4606
11963 #, no-wrap
11964 msgid ""
11965 " int\n"
11966 " guestfs_ping_daemon (guestfs_h *g);\n"
11967 "\n"
11968 msgstr ""
11969
11970 # type: textblock
11971 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3063
11972 msgid ""
11973 "This is a test probe into the guestfs daemon running inside the qemu "
11974 "subprocess.  Calling this function checks that the daemon responds to the "
11975 "ping message, without affecting the daemon or attached block device(s) in "
11976 "any other way."
11977 msgstr ""
11978
11979 # type: =head2
11980 #: ../src/guestfs-actions.pod:4618
11981 msgid "guestfs_pread"
11982 msgstr ""
11983
11984 # type: verbatim
11985 #: ../src/guestfs-actions.pod:4620
11986 #, no-wrap
11987 msgid ""
11988 " char *\n"
11989 " guestfs_pread (guestfs_h *g,\n"
11990 "                const char *path,\n"
11991 "                int count,\n"
11992 "                int64_t offset,\n"
11993 "                size_t *size_r);\n"
11994 "\n"
11995 msgstr ""
11996
11997 # type: textblock
11998 #: ../src/guestfs-actions.pod:4627 ../fish/guestfish-actions.pod:3072
11999 msgid ""
12000 "This command lets you read part of a file.  It reads C<count> bytes of the "
12001 "file, starting at C<offset>, from file C<path>."
12002 msgstr ""
12003
12004 # type: textblock
12005 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4656
12006 #: ../fish/guestfish-actions.pod:3075 ../fish/guestfish-actions.pod:3090
12007 msgid ""
12008 "This may read fewer bytes than requested.  For further details see the "
12009 "L<pread(2)> system call."
12010 msgstr ""
12011
12012 # type: textblock
12013 #: ../src/guestfs-actions.pod:4633
12014 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12015 msgstr ""
12016
12017 # type: =head2
12018 #: ../src/guestfs-actions.pod:4644
12019 msgid "guestfs_pread_device"
12020 msgstr ""
12021
12022 # type: verbatim
12023 #: ../src/guestfs-actions.pod:4646
12024 #, no-wrap
12025 msgid ""
12026 " char *\n"
12027 " guestfs_pread_device (guestfs_h *g,\n"
12028 "                       const char *device,\n"
12029 "                       int count,\n"
12030 "                       int64_t offset,\n"
12031 "                       size_t *size_r);\n"
12032 "\n"
12033 msgstr ""
12034
12035 # type: textblock
12036 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3087
12037 msgid ""
12038 "This command lets you read part of a file.  It reads C<count> bytes of "
12039 "C<device>, starting at C<offset>."
12040 msgstr ""
12041
12042 # type: textblock
12043 #: ../src/guestfs-actions.pod:4659
12044 msgid "See also C<guestfs_pread>."
12045 msgstr ""
12046
12047 # type: textblock
12048 #: ../src/guestfs-actions.pod:4668
12049 msgid "(Added in 1.5.21)"
12050 msgstr ""
12051
12052 # type: =head2
12053 #: ../src/guestfs-actions.pod:4670
12054 msgid "guestfs_pvcreate"
12055 msgstr ""
12056
12057 # type: verbatim
12058 #: ../src/guestfs-actions.pod:4672
12059 #, no-wrap
12060 msgid ""
12061 " int\n"
12062 " guestfs_pvcreate (guestfs_h *g,\n"
12063 "                   const char *device);\n"
12064 "\n"
12065 msgstr ""
12066
12067 # type: textblock
12068 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3102
12069 msgid ""
12070 "This creates an LVM physical volume on the named C<device>, where C<device> "
12071 "should usually be a partition name such as C</dev/sda1>."
12072 msgstr ""
12073
12074 # type: =head2
12075 #: ../src/guestfs-actions.pod:4684
12076 msgid "guestfs_pvremove"
12077 msgstr ""
12078
12079 # type: verbatim
12080 #: ../src/guestfs-actions.pod:4686
12081 #, no-wrap
12082 msgid ""
12083 " int\n"
12084 " guestfs_pvremove (guestfs_h *g,\n"
12085 "                   const char *device);\n"
12086 "\n"
12087 msgstr ""
12088
12089 # type: textblock
12090 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3110
12091 msgid ""
12092 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12093 "it."
12094 msgstr ""
12095
12096 # type: textblock
12097 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3113
12098 msgid ""
12099 "The implementation uses the C<pvremove> command which refuses to wipe "
12100 "physical volumes that contain any volume groups, so you have to remove those "
12101 "first."
12102 msgstr ""
12103
12104 # type: =head2
12105 #: ../src/guestfs-actions.pod:4701
12106 msgid "guestfs_pvresize"
12107 msgstr ""
12108
12109 # type: verbatim
12110 #: ../src/guestfs-actions.pod:4703
12111 #, no-wrap
12112 msgid ""
12113 " int\n"
12114 " guestfs_pvresize (guestfs_h *g,\n"
12115 "                   const char *device);\n"
12116 "\n"
12117 msgstr ""
12118
12119 # type: textblock
12120 #: ../src/guestfs-actions.pod:4707 ../fish/guestfish-actions.pod:3121
12121 msgid ""
12122 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12123 "the new size of the underlying device."
12124 msgstr ""
12125
12126 # type: =head2
12127 #: ../src/guestfs-actions.pod:4714
12128 msgid "guestfs_pvresize_size"
12129 msgstr ""
12130
12131 # type: verbatim
12132 #: ../src/guestfs-actions.pod:4716
12133 #, no-wrap
12134 msgid ""
12135 " int\n"
12136 " guestfs_pvresize_size (guestfs_h *g,\n"
12137 "                        const char *device,\n"
12138 "                        int64_t size);\n"
12139 "\n"
12140 msgstr ""
12141
12142 # type: textblock
12143 #: ../src/guestfs-actions.pod:4721
12144 msgid ""
12145 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12146 "specify the new size (in bytes) explicitly."
12147 msgstr ""
12148
12149 # type: =head2
12150 #: ../src/guestfs-actions.pod:4728
12151 msgid "guestfs_pvs"
12152 msgstr ""
12153
12154 # type: verbatim
12155 #: ../src/guestfs-actions.pod:4730
12156 #, no-wrap
12157 msgid ""
12158 " char **\n"
12159 " guestfs_pvs (guestfs_h *g);\n"
12160 "\n"
12161 msgstr ""
12162
12163 # type: textblock
12164 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3135
12165 msgid ""
12166 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12167 "(8)> command."
12168 msgstr ""
12169
12170 # type: textblock
12171 #: ../src/guestfs-actions.pod:4736 ../fish/guestfish-actions.pod:3138
12172 msgid ""
12173 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12174 "sda2>)."
12175 msgstr ""
12176
12177 # type: textblock
12178 #: ../src/guestfs-actions.pod:4739
12179 msgid "See also C<guestfs_pvs_full>."
12180 msgstr ""
12181
12182 # type: =head2
12183 #: ../src/guestfs-actions.pod:4747
12184 msgid "guestfs_pvs_full"
12185 msgstr ""
12186
12187 # type: verbatim
12188 #: ../src/guestfs-actions.pod:4749
12189 #, no-wrap
12190 msgid ""
12191 " struct guestfs_lvm_pv_list *\n"
12192 " guestfs_pvs_full (guestfs_h *g);\n"
12193 "\n"
12194 msgstr ""
12195
12196 # type: textblock
12197 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3147
12198 msgid ""
12199 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12200 "(8)> command.  The \"full\" version includes all fields."
12201 msgstr ""
12202
12203 # type: textblock
12204 #: ../src/guestfs-actions.pod:4755
12205 msgid ""
12206 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
12207 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
12208 "C<guestfs_free_lvm_pv_list> after use>."
12209 msgstr ""
12210
12211 # type: =head2
12212 #: ../src/guestfs-actions.pod:4762
12213 msgid "guestfs_pvuuid"
12214 msgstr ""
12215
12216 # type: verbatim
12217 #: ../src/guestfs-actions.pod:4764
12218 #, no-wrap
12219 msgid ""
12220 " char *\n"
12221 " guestfs_pvuuid (guestfs_h *g,\n"
12222 "                 const char *device);\n"
12223 "\n"
12224 msgstr ""
12225
12226 # type: textblock
12227 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3154
12228 msgid "This command returns the UUID of the LVM PV C<device>."
12229 msgstr ""
12230
12231 # type: =head2
12232 #: ../src/guestfs-actions.pod:4775
12233 msgid "guestfs_pwrite"
12234 msgstr ""
12235
12236 # type: verbatim
12237 #: ../src/guestfs-actions.pod:4777
12238 #, no-wrap
12239 msgid ""
12240 " int\n"
12241 " guestfs_pwrite (guestfs_h *g,\n"
12242 "                 const char *path,\n"
12243 "                 const char *content,\n"
12244 "                 size_t content_size,\n"
12245 "                 int64_t offset);\n"
12246 "\n"
12247 msgstr ""
12248
12249 # type: textblock
12250 #: ../src/guestfs-actions.pod:4784 ../fish/guestfish-actions.pod:3160
12251 msgid ""
12252 "This command writes to part of a file.  It writes the data buffer C<content> "
12253 "to the file C<path> starting at offset C<offset>."
12254 msgstr ""
12255
12256 # type: textblock
12257 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3163
12258 msgid ""
12259 "This command implements the L<pwrite(2)> system call, and like that system "
12260 "call it may not write the full data requested.  The return value is the "
12261 "number of bytes that were actually written to the file.  This could even be "
12262 "0, although short writes are unlikely for regular files in ordinary "
12263 "circumstances."
12264 msgstr ""
12265
12266 # type: textblock
12267 #: ../src/guestfs-actions.pod:4793
12268 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12269 msgstr ""
12270
12271 # type: =head2
12272 #: ../src/guestfs-actions.pod:4802
12273 msgid "guestfs_pwrite_device"
12274 msgstr ""
12275
12276 # type: verbatim
12277 #: ../src/guestfs-actions.pod:4804
12278 #, no-wrap
12279 msgid ""
12280 " int\n"
12281 " guestfs_pwrite_device (guestfs_h *g,\n"
12282 "                        const char *device,\n"
12283 "                        const char *content,\n"
12284 "                        size_t content_size,\n"
12285 "                        int64_t offset);\n"
12286 "\n"
12287 msgstr ""
12288
12289 # type: textblock
12290 #: ../src/guestfs-actions.pod:4811 ../fish/guestfish-actions.pod:3178
12291 msgid ""
12292 "This command writes to part of a device.  It writes the data buffer "
12293 "C<content> to C<device> starting at offset C<offset>."
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3181
12298 msgid ""
12299 "This command implements the L<pwrite(2)> system call, and like that system "
12300 "call it may not write the full data requested (although short writes to disk "
12301 "devices and partitions are probably impossible with standard Linux kernels)."
12302 msgstr ""
12303
12304 # type: textblock
12305 #: ../src/guestfs-actions.pod:4819
12306 msgid "See also C<guestfs_pwrite>."
12307 msgstr ""
12308
12309 # type: textblock
12310 #: ../src/guestfs-actions.pod:4826
12311 msgid "(Added in 1.5.20)"
12312 msgstr ""
12313
12314 # type: =head2
12315 #: ../src/guestfs-actions.pod:4828
12316 msgid "guestfs_read_file"
12317 msgstr ""
12318
12319 # type: verbatim
12320 #: ../src/guestfs-actions.pod:4830
12321 #, no-wrap
12322 msgid ""
12323 " char *\n"
12324 " guestfs_read_file (guestfs_h *g,\n"
12325 "                    const char *path,\n"
12326 "                    size_t *size_r);\n"
12327 "\n"
12328 msgstr ""
12329
12330 # type: textblock
12331 #: ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:3195
12332 msgid "This calls returns the contents of the file C<path> as a buffer."
12333 msgstr ""
12334
12335 # type: textblock
12336 #: ../src/guestfs-actions.pod:4838
12337 msgid ""
12338 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12339 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12340 "function is limited in the total size of file that can be handled."
12341 msgstr ""
12342
12343 # type: textblock
12344 #: ../src/guestfs-actions.pod:4850
12345 msgid "(Added in 1.0.63)"
12346 msgstr ""
12347
12348 # type: =head2
12349 #: ../src/guestfs-actions.pod:4852
12350 msgid "guestfs_read_lines"
12351 msgstr ""
12352
12353 # type: verbatim
12354 #: ../src/guestfs-actions.pod:4854
12355 #, no-wrap
12356 msgid ""
12357 " char **\n"
12358 " guestfs_read_lines (guestfs_h *g,\n"
12359 "                     const char *path);\n"
12360 "\n"
12361 msgstr ""
12362
12363 # type: textblock
12364 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3212
12365 msgid ""
12366 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12367 "C<CRLF> character sequences are I<not> returned."
12368 msgstr ""
12369
12370 # type: textblock
12371 #: ../src/guestfs-actions.pod:4863
12372 msgid ""
12373 "Note that this function cannot correctly handle binary files (specifically, "
12374 "files containing C<\\0> character which is treated as end of line).  For "
12375 "those you need to use the C<guestfs_read_file> function which has a more "
12376 "complex interface."
12377 msgstr ""
12378
12379 # type: =head2
12380 #: ../src/guestfs-actions.pod:4874
12381 msgid "guestfs_readdir"
12382 msgstr ""
12383
12384 # type: verbatim
12385 #: ../src/guestfs-actions.pod:4876
12386 #, no-wrap
12387 msgid ""
12388 " struct guestfs_dirent_list *\n"
12389 " guestfs_readdir (guestfs_h *g,\n"
12390 "                  const char *dir);\n"
12391 "\n"
12392 msgstr ""
12393
12394 # type: textblock
12395 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3224
12396 msgid "This returns the list of directory entries in directory C<dir>."
12397 msgstr ""
12398
12399 # type: textblock
12400 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3226
12401 msgid ""
12402 "All entries in the directory are returned, including C<.> and C<..>.  The "
12403 "entries are I<not> sorted, but returned in the same order as the underlying "
12404 "filesystem."
12405 msgstr ""
12406
12407 # type: textblock
12408 #: ../src/guestfs-actions.pod:4886 ../fish/guestfish-actions.pod:3230
12409 msgid ""
12410 "Also this call returns basic file type information about each file.  The "
12411 "C<ftyp> field will contain one of the following characters:"
12412 msgstr ""
12413
12414 # type: =item
12415 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3235
12416 msgid "'b'"
12417 msgstr ""
12418
12419 # type: textblock
12420 #: ../src/guestfs-actions.pod:4893 ../fish/guestfish-actions.pod:3237
12421 msgid "Block special"
12422 msgstr ""
12423
12424 # type: =item
12425 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3239
12426 msgid "'c'"
12427 msgstr ""
12428
12429 # type: textblock
12430 #: ../src/guestfs-actions.pod:4897 ../fish/guestfish-actions.pod:3241
12431 msgid "Char special"
12432 msgstr ""
12433
12434 # type: =item
12435 #: ../src/guestfs-actions.pod:4899 ../fish/guestfish-actions.pod:3243
12436 msgid "'d'"
12437 msgstr ""
12438
12439 # type: textblock
12440 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3245
12441 msgid "Directory"
12442 msgstr ""
12443
12444 # type: =item
12445 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3247
12446 msgid "'f'"
12447 msgstr ""
12448
12449 # type: textblock
12450 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3249
12451 msgid "FIFO (named pipe)"
12452 msgstr ""
12453
12454 # type: =item
12455 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3251
12456 msgid "'l'"
12457 msgstr ""
12458
12459 # type: textblock
12460 #: ../src/guestfs-actions.pod:4909 ../fish/guestfish-actions.pod:3253
12461 msgid "Symbolic link"
12462 msgstr ""
12463
12464 # type: =item
12465 #: ../src/guestfs-actions.pod:4911 ../fish/guestfish-actions.pod:3255
12466 msgid "'r'"
12467 msgstr ""
12468
12469 # type: textblock
12470 #: ../src/guestfs-actions.pod:4913 ../fish/guestfish-actions.pod:3257
12471 msgid "Regular file"
12472 msgstr ""
12473
12474 # type: =item
12475 #: ../src/guestfs-actions.pod:4915 ../fish/guestfish-actions.pod:3259
12476 msgid "'s'"
12477 msgstr ""
12478
12479 # type: textblock
12480 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3261
12481 msgid "Socket"
12482 msgstr ""
12483
12484 # type: =item
12485 #: ../src/guestfs-actions.pod:4919 ../fish/guestfish-actions.pod:3263
12486 msgid "'u'"
12487 msgstr ""
12488
12489 # type: textblock
12490 #: ../src/guestfs-actions.pod:4921 ../fish/guestfish-actions.pod:3265
12491 msgid "Unknown file type"
12492 msgstr ""
12493
12494 # type: =item
12495 #: ../src/guestfs-actions.pod:4923 ../fish/guestfish-actions.pod:3267
12496 msgid "'?'"
12497 msgstr ""
12498
12499 # type: textblock
12500 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3269
12501 msgid ""
12502 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12503 msgstr ""
12504
12505 # type: textblock
12506 #: ../src/guestfs-actions.pod:4930
12507 msgid ""
12508 "This function is primarily intended for use by programs.  To get a simple "
12509 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12510 "consumption, use C<guestfs_ll>."
12511 msgstr ""
12512
12513 # type: textblock
12514 #: ../src/guestfs-actions.pod:4934
12515 msgid ""
12516 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
12517 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
12518 "C<guestfs_free_dirent_list> after use>."
12519 msgstr ""
12520
12521 # type: =head2
12522 #: ../src/guestfs-actions.pod:4941
12523 msgid "guestfs_readlink"
12524 msgstr ""
12525
12526 # type: verbatim
12527 #: ../src/guestfs-actions.pod:4943
12528 #, no-wrap
12529 msgid ""
12530 " char *\n"
12531 " guestfs_readlink (guestfs_h *g,\n"
12532 "                   const char *path);\n"
12533 "\n"
12534 msgstr ""
12535
12536 # type: textblock
12537 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3282
12538 msgid "This command reads the target of a symbolic link."
12539 msgstr ""
12540
12541 # type: =head2
12542 #: ../src/guestfs-actions.pod:4954
12543 msgid "guestfs_readlinklist"
12544 msgstr ""
12545
12546 # type: verbatim
12547 #: ../src/guestfs-actions.pod:4956
12548 #, no-wrap
12549 msgid ""
12550 " char **\n"
12551 " guestfs_readlinklist (guestfs_h *g,\n"
12552 "                       const char *path,\n"
12553 "                       char *const *names);\n"
12554 "\n"
12555 msgstr ""
12556
12557 # type: textblock
12558 #: ../src/guestfs-actions.pod:4961 ../fish/guestfish-actions.pod:3288
12559 msgid ""
12560 "This call allows you to do a C<readlink> operation on multiple files, where "
12561 "all files are in the directory C<path>.  C<names> is the list of files from "
12562 "this directory."
12563 msgstr ""
12564
12565 # type: textblock
12566 #: ../src/guestfs-actions.pod:4965 ../fish/guestfish-actions.pod:3292
12567 msgid ""
12568 "On return you get a list of strings, with a one-to-one correspondence to the "
12569 "C<names> list.  Each string is the value of the symbolic link."
12570 msgstr ""
12571
12572 # type: textblock
12573 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3296
12574 msgid ""
12575 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12576 "result string is the empty string C<\"\">.  However the whole operation is "
12577 "completed even if there were C<readlink(2)> errors, and so you can call this "
12578 "function with names where you don't know if they are symbolic links already "
12579 "(albeit slightly less efficient)."
12580 msgstr ""
12581
12582 # type: textblock
12583 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3303
12584 msgid ""
12585 "This call is intended for programs that want to efficiently list a directory "
12586 "contents without making many round-trips.  Very long directory listings "
12587 "might cause the protocol message size to be exceeded, causing this call to "
12588 "fail.  The caller must split up such requests into smaller groups of names."
12589 msgstr ""
12590
12591 # type: =head2
12592 #: ../src/guestfs-actions.pod:4989
12593 msgid "guestfs_realpath"
12594 msgstr ""
12595
12596 # type: verbatim
12597 #: ../src/guestfs-actions.pod:4991
12598 #, no-wrap
12599 msgid ""
12600 " char *\n"
12601 " guestfs_realpath (guestfs_h *g,\n"
12602 "                   const char *path);\n"
12603 "\n"
12604 msgstr ""
12605
12606 # type: textblock
12607 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3314
12608 msgid ""
12609 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12610 "has no C<.>, C<..> or symbolic link path elements."
12611 msgstr ""
12612
12613 # type: =head2
12614 #: ../src/guestfs-actions.pod:5003
12615 msgid "guestfs_removexattr"
12616 msgstr ""
12617
12618 # type: verbatim
12619 #: ../src/guestfs-actions.pod:5005
12620 #, no-wrap
12621 msgid ""
12622 " int\n"
12623 " guestfs_removexattr (guestfs_h *g,\n"
12624 "                      const char *xattr,\n"
12625 "                      const char *path);\n"
12626 "\n"
12627 msgstr ""
12628
12629 # type: textblock
12630 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3321
12631 msgid ""
12632 "This call removes the extended attribute named C<xattr> of the file C<path>."
12633 msgstr ""
12634
12635 # type: textblock
12636 #: ../src/guestfs-actions.pod:5013
12637 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12638 msgstr ""
12639
12640 # type: =head2
12641 #: ../src/guestfs-actions.pod:5019
12642 msgid "guestfs_resize2fs"
12643 msgstr ""
12644
12645 # type: verbatim
12646 #: ../src/guestfs-actions.pod:5021
12647 #, no-wrap
12648 msgid ""
12649 " int\n"
12650 " guestfs_resize2fs (guestfs_h *g,\n"
12651 "                    const char *device);\n"
12652 "\n"
12653 msgstr ""
12654
12655 # type: textblock
12656 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3330
12657 msgid ""
12658 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12659 "underlying device."
12660 msgstr ""
12661
12662 # type: textblock
12663 #: ../src/guestfs-actions.pod:5028
12664 msgid ""
12665 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12666 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12667 "sometimes gives an error about this and sometimes not.  In any case, it is "
12668 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12669 msgstr ""
12670
12671 # type: =head2
12672 #: ../src/guestfs-actions.pod:5038
12673 msgid "guestfs_resize2fs_size"
12674 msgstr ""
12675
12676 # type: verbatim
12677 #: ../src/guestfs-actions.pod:5040
12678 #, no-wrap
12679 msgid ""
12680 " int\n"
12681 " guestfs_resize2fs_size (guestfs_h *g,\n"
12682 "                         const char *device,\n"
12683 "                         int64_t size);\n"
12684 "\n"
12685 msgstr ""
12686
12687 # type: textblock
12688 #: ../src/guestfs-actions.pod:5045
12689 msgid ""
12690 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12691 "to specify the new size (in bytes) explicitly."
12692 msgstr ""
12693
12694 # type: =head2
12695 #: ../src/guestfs-actions.pod:5052
12696 msgid "guestfs_rm"
12697 msgstr ""
12698
12699 # type: verbatim
12700 #: ../src/guestfs-actions.pod:5054
12701 #, no-wrap
12702 msgid ""
12703 " int\n"
12704 " guestfs_rm (guestfs_h *g,\n"
12705 "             const char *path);\n"
12706 "\n"
12707 msgstr ""
12708
12709 # type: textblock
12710 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3350
12711 msgid "Remove the single file C<path>."
12712 msgstr ""
12713
12714 # type: =head2
12715 #: ../src/guestfs-actions.pod:5064
12716 msgid "guestfs_rm_rf"
12717 msgstr ""
12718
12719 # type: verbatim
12720 #: ../src/guestfs-actions.pod:5066
12721 #, no-wrap
12722 msgid ""
12723 " int\n"
12724 " guestfs_rm_rf (guestfs_h *g,\n"
12725 "                const char *path);\n"
12726 "\n"
12727 msgstr ""
12728
12729 # type: textblock
12730 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3356
12731 msgid ""
12732 "Remove the file or directory C<path>, recursively removing the contents if "
12733 "its a directory.  This is like the C<rm -rf> shell command."
12734 msgstr ""
12735
12736 # type: =head2
12737 #: ../src/guestfs-actions.pod:5078
12738 msgid "guestfs_rmdir"
12739 msgstr ""
12740
12741 # type: verbatim
12742 #: ../src/guestfs-actions.pod:5080
12743 #, no-wrap
12744 msgid ""
12745 " int\n"
12746 " guestfs_rmdir (guestfs_h *g,\n"
12747 "                const char *path);\n"
12748 "\n"
12749 msgstr ""
12750
12751 # type: textblock
12752 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3364
12753 msgid "Remove the single directory C<path>."
12754 msgstr ""
12755
12756 # type: =head2
12757 #: ../src/guestfs-actions.pod:5090
12758 msgid "guestfs_rmmountpoint"
12759 msgstr ""
12760
12761 # type: verbatim
12762 #: ../src/guestfs-actions.pod:5092
12763 #, no-wrap
12764 msgid ""
12765 " int\n"
12766 " guestfs_rmmountpoint (guestfs_h *g,\n"
12767 "                       const char *exemptpath);\n"
12768 "\n"
12769 msgstr ""
12770
12771 # type: textblock
12772 #: ../src/guestfs-actions.pod:5096
12773 msgid ""
12774 "This calls removes a mountpoint that was previously created with "
12775 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12776 msgstr ""
12777
12778 # type: =head2
12779 #: ../src/guestfs-actions.pod:5104
12780 msgid "guestfs_scrub_device"
12781 msgstr ""
12782
12783 # type: verbatim
12784 #: ../src/guestfs-actions.pod:5106
12785 #, no-wrap
12786 msgid ""
12787 " int\n"
12788 " guestfs_scrub_device (guestfs_h *g,\n"
12789 "                       const char *device);\n"
12790 "\n"
12791 msgstr ""
12792
12793 # type: textblock
12794 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3378
12795 msgid ""
12796 "This command writes patterns over C<device> to make data retrieval more "
12797 "difficult."
12798 msgstr ""
12799
12800 # type: textblock
12801 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:5134
12802 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3381
12803 #: ../fish/guestfish-actions.pod:3396 ../fish/guestfish-actions.pod:3409
12804 msgid ""
12805 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12806 "more details."
12807 msgstr ""
12808
12809 # type: textblock
12810 #: ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:5139
12811 #: ../src/guestfs-actions.pod:5158
12812 msgid "(Added in 1.0.52)"
12813 msgstr ""
12814
12815 # type: =head2
12816 #: ../src/guestfs-actions.pod:5123
12817 msgid "guestfs_scrub_file"
12818 msgstr ""
12819
12820 # type: verbatim
12821 #: ../src/guestfs-actions.pod:5125
12822 #, no-wrap
12823 msgid ""
12824 " int\n"
12825 " guestfs_scrub_file (guestfs_h *g,\n"
12826 "                     const char *file);\n"
12827 "\n"
12828 msgstr ""
12829
12830 # type: textblock
12831 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3391
12832 msgid ""
12833 "This command writes patterns over a file to make data retrieval more "
12834 "difficult."
12835 msgstr ""
12836
12837 # type: textblock
12838 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3394
12839 msgid "The file is I<removed> after scrubbing."
12840 msgstr ""
12841
12842 # type: =head2
12843 #: ../src/guestfs-actions.pod:5141
12844 msgid "guestfs_scrub_freespace"
12845 msgstr ""
12846
12847 # type: verbatim
12848 #: ../src/guestfs-actions.pod:5143
12849 #, no-wrap
12850 msgid ""
12851 " int\n"
12852 " guestfs_scrub_freespace (guestfs_h *g,\n"
12853 "                          const char *dir);\n"
12854 "\n"
12855 msgstr ""
12856
12857 # type: textblock
12858 #: ../src/guestfs-actions.pod:5147
12859 msgid ""
12860 "This command creates the directory C<dir> and then fills it with files until "
12861 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12862 "and deletes them.  The intention is to scrub any free space on the partition "
12863 "containing C<dir>."
12864 msgstr ""
12865
12866 # type: =head2
12867 #: ../src/guestfs-actions.pod:5160
12868 msgid "guestfs_set_append"
12869 msgstr ""
12870
12871 # type: verbatim
12872 #: ../src/guestfs-actions.pod:5162
12873 #, no-wrap
12874 msgid ""
12875 " int\n"
12876 " guestfs_set_append (guestfs_h *g,\n"
12877 "                     const char *append);\n"
12878 "\n"
12879 msgstr ""
12880
12881 # type: textblock
12882 #: ../src/guestfs-actions.pod:5166 ../fish/guestfish-actions.pod:3418
12883 msgid ""
12884 "This function is used to add additional options to the guest kernel command "
12885 "line."
12886 msgstr ""
12887
12888 # type: textblock
12889 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3421
12890 msgid ""
12891 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12892 "environment variable."
12893 msgstr ""
12894
12895 # type: textblock
12896 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3424
12897 msgid ""
12898 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12899 "(libguestfs always adds a few of its own)."
12900 msgstr ""
12901
12902 # type: =head2
12903 #: ../src/guestfs-actions.pod:5179
12904 msgid "guestfs_set_autosync"
12905 msgstr ""
12906
12907 # type: verbatim
12908 #: ../src/guestfs-actions.pod:5181
12909 #, no-wrap
12910 msgid ""
12911 " int\n"
12912 " guestfs_set_autosync (guestfs_h *g,\n"
12913 "                       int autosync);\n"
12914 "\n"
12915 msgstr ""
12916
12917 # type: textblock
12918 #: ../src/guestfs-actions.pod:5185
12919 msgid ""
12920 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12921 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12922 "the handle is closed (also if the program exits without closing handles)."
12923 msgstr ""
12924
12925 # type: textblock
12926 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3438
12927 msgid ""
12928 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12929 "disabled by default)."
12930 msgstr ""
12931
12932 # type: =head2
12933 #: ../src/guestfs-actions.pod:5197
12934 msgid "guestfs_set_direct"
12935 msgstr ""
12936
12937 # type: verbatim
12938 #: ../src/guestfs-actions.pod:5199
12939 #, no-wrap
12940 msgid ""
12941 " int\n"
12942 " guestfs_set_direct (guestfs_h *g,\n"
12943 "                     int direct);\n"
12944 "\n"
12945 msgstr ""
12946
12947 # type: textblock
12948 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3447
12949 msgid ""
12950 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12951 "passed directly through to the appliance once it is launched."
12952 msgstr ""
12953
12954 # type: textblock
12955 #: ../src/guestfs-actions.pod:5207
12956 msgid ""
12957 "One consequence of this is that log messages aren't caught by the library "
12958 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12959 "stdout."
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3455
12964 msgid "You probably don't want to use this unless you know what you are doing."
12965 msgstr ""
12966
12967 # type: textblock
12968 #: ../src/guestfs-actions.pod:5214 ../fish/guestfish-actions.pod:3458
12969 msgid "The default is disabled."
12970 msgstr ""
12971
12972 # type: =head2
12973 #: ../src/guestfs-actions.pod:5220
12974 msgid "guestfs_set_e2label"
12975 msgstr ""
12976
12977 # type: verbatim
12978 #: ../src/guestfs-actions.pod:5222
12979 #, no-wrap
12980 msgid ""
12981 " int\n"
12982 " guestfs_set_e2label (guestfs_h *g,\n"
12983 "                      const char *device,\n"
12984 "                      const char *label);\n"
12985 "\n"
12986 msgstr ""
12987
12988 # type: textblock
12989 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:3464
12990 msgid ""
12991 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12992 "C<label>.  Filesystem labels are limited to 16 characters."
12993 msgstr ""
12994
12995 # type: textblock
12996 #: ../src/guestfs-actions.pod:5231
12997 msgid ""
12998 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12999 "the existing label on a filesystem."
13000 msgstr ""
13001
13002 # type: =head2
13003 #: ../src/guestfs-actions.pod:5238
13004 msgid "guestfs_set_e2uuid"
13005 msgstr ""
13006
13007 # type: verbatim
13008 #: ../src/guestfs-actions.pod:5240
13009 #, no-wrap
13010 msgid ""
13011 " int\n"
13012 " guestfs_set_e2uuid (guestfs_h *g,\n"
13013 "                     const char *device,\n"
13014 "                     const char *uuid);\n"
13015 "\n"
13016 msgstr ""
13017
13018 # type: textblock
13019 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3475
13020 msgid ""
13021 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13022 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13023 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13024 msgstr ""
13025
13026 # type: textblock
13027 #: ../src/guestfs-actions.pod:5250
13028 msgid ""
13029 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13030 "the existing UUID of a filesystem."
13031 msgstr ""
13032
13033 # type: =head2
13034 #: ../src/guestfs-actions.pod:5257
13035 msgid "guestfs_set_memsize"
13036 msgstr ""
13037
13038 # type: verbatim
13039 #: ../src/guestfs-actions.pod:5259
13040 #, no-wrap
13041 msgid ""
13042 " int\n"
13043 " guestfs_set_memsize (guestfs_h *g,\n"
13044 "                      int memsize);\n"
13045 "\n"
13046 msgstr ""
13047
13048 # type: textblock
13049 #: ../src/guestfs-actions.pod:5263
13050 msgid ""
13051 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13052 "This only has any effect if called before C<guestfs_launch>."
13053 msgstr ""
13054
13055 # type: textblock
13056 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3493
13057 msgid ""
13058 "You can also change this by setting the environment variable "
13059 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13060 msgstr ""
13061
13062 # type: =head2
13063 #: ../src/guestfs-actions.pod:5278
13064 msgid "guestfs_set_network"
13065 msgstr ""
13066
13067 # type: verbatim
13068 #: ../src/guestfs-actions.pod:5280
13069 #, no-wrap
13070 msgid ""
13071 " int\n"
13072 " guestfs_set_network (guestfs_h *g,\n"
13073 "                      int network);\n"
13074 "\n"
13075 msgstr ""
13076
13077 # type: textblock
13078 #: ../src/guestfs-actions.pod:5284 ../fish/guestfish-actions.pod:3506
13079 msgid ""
13080 "If C<network> is true, then the network is enabled in the libguestfs "
13081 "appliance.  The default is false."
13082 msgstr ""
13083
13084 # type: textblock
13085 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3509
13086 msgid ""
13087 "This affects whether commands are able to access the network (see L<guestfs"
13088 "(3)/RUNNING COMMANDS>)."
13089 msgstr ""
13090
13091 # type: textblock
13092 #: ../src/guestfs-actions.pod:5290
13093 msgid ""
13094 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13095 "effect."
13096 msgstr ""
13097
13098 # type: =head2
13099 #: ../src/guestfs-actions.pod:5297
13100 msgid "guestfs_set_path"
13101 msgstr ""
13102
13103 # type: verbatim
13104 #: ../src/guestfs-actions.pod:5299
13105 #, no-wrap
13106 msgid ""
13107 " int\n"
13108 " guestfs_set_path (guestfs_h *g,\n"
13109 "                   const char *searchpath);\n"
13110 "\n"
13111 msgstr ""
13112
13113 # type: textblock
13114 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3521
13115 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13116 msgstr ""
13117
13118 # type: textblock
13119 #: ../src/guestfs-actions.pod:5305 ../fish/guestfish-actions.pod:3523
13120 msgid ""
13121 "The default is C<$libdir/guestfs> unless overridden by setting "
13122 "C<LIBGUESTFS_PATH> environment variable."
13123 msgstr ""
13124
13125 # type: textblock
13126 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3526
13127 msgid "Setting C<path> to C<NULL> restores the default path."
13128 msgstr ""
13129
13130 # type: =head2
13131 #: ../src/guestfs-actions.pod:5314
13132 msgid "guestfs_set_qemu"
13133 msgstr ""
13134
13135 # type: verbatim
13136 #: ../src/guestfs-actions.pod:5316
13137 #, no-wrap
13138 msgid ""
13139 " int\n"
13140 " guestfs_set_qemu (guestfs_h *g,\n"
13141 "                   const char *qemu);\n"
13142 "\n"
13143 msgstr ""
13144
13145 # type: textblock
13146 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:3534
13147 msgid "Set the qemu binary that we will use."
13148 msgstr ""
13149
13150 # type: textblock
13151 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3536
13152 msgid ""
13153 "The default is chosen when the library was compiled by the configure script."
13154 msgstr ""
13155
13156 # type: textblock
13157 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3539
13158 msgid ""
13159 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13160 "variable."
13161 msgstr ""
13162
13163 # type: textblock
13164 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:3542
13165 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13166 msgstr ""
13167
13168 # type: textblock
13169 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:3544
13170 msgid ""
13171 "Note that you should call this function as early as possible after creating "
13172 "the handle.  This is because some pre-launch operations depend on testing "
13173 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13174 "don't retest features, and so you might see inconsistent results.  Using the "
13175 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13176 "the qemu binary at the same time as the handle is created."
13177 msgstr ""
13178
13179 # type: =head2
13180 #: ../src/guestfs-actions.pod:5342
13181 msgid "guestfs_set_recovery_proc"
13182 msgstr ""
13183
13184 # type: verbatim
13185 #: ../src/guestfs-actions.pod:5344
13186 #, no-wrap
13187 msgid ""
13188 " int\n"
13189 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13190 "                            int recoveryproc);\n"
13191 "\n"
13192 msgstr ""
13193
13194 # type: textblock
13195 #: ../src/guestfs-actions.pod:5348
13196 msgid ""
13197 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13198 "not create a recovery process.  The purpose of the recovery process is to "
13199 "stop runaway qemu processes in the case where the main program aborts "
13200 "abruptly."
13201 msgstr ""
13202
13203 # type: textblock
13204 #: ../src/guestfs-actions.pod:5353
13205 msgid ""
13206 "This only has any effect if called before C<guestfs_launch>, and the default "
13207 "is true."
13208 msgstr ""
13209
13210 # type: textblock
13211 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:3566
13212 msgid ""
13213 "About the only time when you would want to disable this is if the main "
13214 "process will fork itself into the background (\"daemonize\" itself).  In "
13215 "this case the recovery process thinks that the main program has disappeared "
13216 "and so kills qemu, which is not very helpful."
13217 msgstr ""
13218
13219 # type: =head2
13220 #: ../src/guestfs-actions.pod:5366
13221 msgid "guestfs_set_selinux"
13222 msgstr ""
13223
13224 # type: verbatim
13225 #: ../src/guestfs-actions.pod:5368
13226 #, no-wrap
13227 msgid ""
13228 " int\n"
13229 " guestfs_set_selinux (guestfs_h *g,\n"
13230 "                      int selinux);\n"
13231 "\n"
13232 msgstr ""
13233
13234 # type: textblock
13235 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3578
13236 msgid ""
13237 "This sets the selinux flag that is passed to the appliance at boot time.  "
13238 "The default is C<selinux=0> (disabled)."
13239 msgstr ""
13240
13241 # type: textblock
13242 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3581
13243 msgid ""
13244 "Note that if SELinux is enabled, it is always in Permissive mode "
13245 "(C<enforcing=0>)."
13246 msgstr ""
13247
13248 # type: =head2
13249 #: ../src/guestfs-actions.pod:5385
13250 msgid "guestfs_set_trace"
13251 msgstr ""
13252
13253 # type: verbatim
13254 #: ../src/guestfs-actions.pod:5387
13255 #, no-wrap
13256 msgid ""
13257 " int\n"
13258 " guestfs_set_trace (guestfs_h *g,\n"
13259 "                    int trace);\n"
13260 "\n"
13261 msgstr ""
13262
13263 # type: textblock
13264 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:3593
13265 msgid ""
13266 "If the command trace flag is set to 1, then commands are printed on stderr "
13267 "before they are executed in a format which is very similar to the one used "
13268 "by guestfish.  In other words, you can run a program with this enabled, and "
13269 "you will get out a script which you can feed to guestfish to perform the "
13270 "same set of actions."
13271 msgstr ""
13272
13273 # type: textblock
13274 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3600
13275 msgid ""
13276 "If you want to trace C API calls into libguestfs (and other libraries) then "
13277 "possibly a better way is to use the external ltrace(1) command."
13278 msgstr ""
13279
13280 # type: textblock
13281 #: ../src/guestfs-actions.pod:5402 ../fish/guestfish-actions.pod:3604
13282 msgid ""
13283 "Command traces are disabled unless the environment variable "
13284 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13285 msgstr ""
13286
13287 # type: =head2
13288 #: ../src/guestfs-actions.pod:5409
13289 msgid "guestfs_set_verbose"
13290 msgstr ""
13291
13292 # type: verbatim
13293 #: ../src/guestfs-actions.pod:5411
13294 #, no-wrap
13295 msgid ""
13296 " int\n"
13297 " guestfs_set_verbose (guestfs_h *g,\n"
13298 "                      int verbose);\n"
13299 "\n"
13300 msgstr ""
13301
13302 # type: textblock
13303 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3613
13304 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13305 msgstr ""
13306
13307 # type: textblock
13308 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3615
13309 msgid ""
13310 "Verbose messages are disabled unless the environment variable "
13311 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13312 msgstr ""
13313
13314 # type: =head2
13315 #: ../src/guestfs-actions.pod:5424
13316 msgid "guestfs_setcon"
13317 msgstr ""
13318
13319 # type: verbatim
13320 #: ../src/guestfs-actions.pod:5426
13321 #, no-wrap
13322 msgid ""
13323 " int\n"
13324 " guestfs_setcon (guestfs_h *g,\n"
13325 "                 const char *context);\n"
13326 "\n"
13327 msgstr ""
13328
13329 # type: textblock
13330 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3622
13331 msgid ""
13332 "This sets the SELinux security context of the daemon to the string "
13333 "C<context>."
13334 msgstr ""
13335
13336 # type: textblock
13337 #: ../src/guestfs-actions.pod:5433 ../fish/guestfish-actions.pod:3625
13338 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13339 msgstr ""
13340
13341 # type: =head2
13342 #: ../src/guestfs-actions.pod:5439
13343 msgid "guestfs_setxattr"
13344 msgstr ""
13345
13346 # type: verbatim
13347 #: ../src/guestfs-actions.pod:5441
13348 #, no-wrap
13349 msgid ""
13350 " int\n"
13351 " guestfs_setxattr (guestfs_h *g,\n"
13352 "                   const char *xattr,\n"
13353 "                   const char *val,\n"
13354 "                   int vallen,\n"
13355 "                   const char *path);\n"
13356 "\n"
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3631
13361 msgid ""
13362 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13363 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13364 msgstr ""
13365
13366 # type: textblock
13367 #: ../src/guestfs-actions.pod:5452
13368 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13369 msgstr ""
13370
13371 # type: =head2
13372 #: ../src/guestfs-actions.pod:5458
13373 msgid "guestfs_sfdisk"
13374 msgstr ""
13375
13376 # type: verbatim
13377 #: ../src/guestfs-actions.pod:5460
13378 #, no-wrap
13379 msgid ""
13380 " int\n"
13381 " guestfs_sfdisk (guestfs_h *g,\n"
13382 "                 const char *device,\n"
13383 "                 int cyls,\n"
13384 "                 int heads,\n"
13385 "                 int sectors,\n"
13386 "                 char *const *lines);\n"
13387 "\n"
13388 msgstr ""
13389
13390 # type: textblock
13391 #: ../src/guestfs-actions.pod:5468 ../fish/guestfish-actions.pod:3641
13392 msgid ""
13393 "This is a direct interface to the L<sfdisk(8)> program for creating "
13394 "partitions on block devices."
13395 msgstr ""
13396
13397 # type: textblock
13398 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3644
13399 msgid "C<device> should be a block device, for example C</dev/sda>."
13400 msgstr ""
13401
13402 # type: textblock
13403 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:3646
13404 msgid ""
13405 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13406 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13407 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13408 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13409 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13410 "the kernel) cannot work out the right geometry and you will need to tell it."
13411 msgstr ""
13412
13413 # type: textblock
13414 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:3654
13415 msgid ""
13416 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13417 "refer to the L<sfdisk(8)> manpage."
13418 msgstr ""
13419
13420 # type: textblock
13421 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:3657
13422 msgid ""
13423 "To create a single partition occupying the whole disk, you would pass "
13424 "C<lines> as a single element list, when the single element being the string "
13425 "C<,> (comma)."
13426 msgstr ""
13427
13428 # type: textblock
13429 #: ../src/guestfs-actions.pod:5488
13430 msgid ""
13431 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13432 msgstr ""
13433
13434 # type: =head2
13435 #: ../src/guestfs-actions.pod:5498
13436 msgid "guestfs_sfdiskM"
13437 msgstr ""
13438
13439 # type: verbatim
13440 #: ../src/guestfs-actions.pod:5500
13441 #, no-wrap
13442 msgid ""
13443 " int\n"
13444 " guestfs_sfdiskM (guestfs_h *g,\n"
13445 "                  const char *device,\n"
13446 "                  char *const *lines);\n"
13447 "\n"
13448 msgstr ""
13449
13450 # type: textblock
13451 #: ../src/guestfs-actions.pod:5505
13452 msgid ""
13453 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13454 "partition sizes are specified in megabytes only (rounded to the nearest "
13455 "cylinder) and you don't need to specify the cyls, heads and sectors "
13456 "parameters which were rarely if ever used anyway."
13457 msgstr ""
13458
13459 # type: textblock
13460 #: ../src/guestfs-actions.pod:5511
13461 msgid ""
13462 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13463 "C<guestfs_part_disk>"
13464 msgstr ""
13465
13466 # type: =head2
13467 #: ../src/guestfs-actions.pod:5521
13468 msgid "guestfs_sfdisk_N"
13469 msgstr ""
13470
13471 # type: verbatim
13472 #: ../src/guestfs-actions.pod:5523
13473 #, no-wrap
13474 msgid ""
13475 " int\n"
13476 " guestfs_sfdisk_N (guestfs_h *g,\n"
13477 "                   const char *device,\n"
13478 "                   int partnum,\n"
13479 "                   int cyls,\n"
13480 "                   int heads,\n"
13481 "                   int sectors,\n"
13482 "                   const char *line);\n"
13483 "\n"
13484 msgstr ""
13485
13486 # type: textblock
13487 #: ../src/guestfs-actions.pod:5532 ../fish/guestfish-actions.pod:3687
13488 msgid ""
13489 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13490 "(note: C<n> counts from 1)."
13491 msgstr ""
13492
13493 # type: textblock
13494 #: ../src/guestfs-actions.pod:5535
13495 msgid ""
13496 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13497 "for the cyls/heads/sectors parameters."
13498 msgstr ""
13499
13500 # type: textblock
13501 #: ../src/guestfs-actions.pod:5538
13502 msgid "See also: C<guestfs_part_add>"
13503 msgstr ""
13504
13505 # type: =head2
13506 #: ../src/guestfs-actions.pod:5547
13507 msgid "guestfs_sfdisk_disk_geometry"
13508 msgstr ""
13509
13510 # type: verbatim
13511 #: ../src/guestfs-actions.pod:5549
13512 #, no-wrap
13513 msgid ""
13514 " char *\n"
13515 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13516 "                               const char *device);\n"
13517 "\n"
13518 msgstr ""
13519
13520 # type: textblock
13521 #: ../src/guestfs-actions.pod:5553
13522 msgid ""
13523 "This displays the disk geometry of C<device> read from the partition table.  "
13524 "Especially in the case where the underlying block device has been resized, "
13525 "this can be different from the kernel's idea of the geometry (see "
13526 "C<guestfs_sfdisk_kernel_geometry>)."
13527 msgstr ""
13528
13529 # type: textblock
13530 #: ../src/guestfs-actions.pod:5558 ../src/guestfs-actions.pod:5574
13531 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3716
13532 msgid "The result is in human-readable format, and not designed to be parsed."
13533 msgstr ""
13534
13535 # type: =head2
13536 #: ../src/guestfs-actions.pod:5566
13537 msgid "guestfs_sfdisk_kernel_geometry"
13538 msgstr ""
13539
13540 # type: verbatim
13541 #: ../src/guestfs-actions.pod:5568
13542 #, no-wrap
13543 msgid ""
13544 " char *\n"
13545 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13546 "                                 const char *device);\n"
13547 "\n"
13548 msgstr ""
13549
13550 # type: textblock
13551 #: ../src/guestfs-actions.pod:5572 ../fish/guestfish-actions.pod:3714
13552 msgid "This displays the kernel's idea of the geometry of C<device>."
13553 msgstr ""
13554
13555 # type: =head2
13556 #: ../src/guestfs-actions.pod:5582
13557 msgid "guestfs_sfdisk_l"
13558 msgstr ""
13559
13560 # type: verbatim
13561 #: ../src/guestfs-actions.pod:5584
13562 #, no-wrap
13563 msgid ""
13564 " char *\n"
13565 " guestfs_sfdisk_l (guestfs_h *g,\n"
13566 "                   const char *device);\n"
13567 "\n"
13568 msgstr ""
13569
13570 # type: textblock
13571 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3723
13572 msgid ""
13573 "This displays the partition table on C<device>, in the human-readable output "
13574 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13575 msgstr ""
13576
13577 # type: textblock
13578 #: ../src/guestfs-actions.pod:5592
13579 msgid "See also: C<guestfs_part_list>"
13580 msgstr ""
13581
13582 # type: =head2
13583 #: ../src/guestfs-actions.pod:5599
13584 msgid "guestfs_sh"
13585 msgstr ""
13586
13587 # type: verbatim
13588 #: ../src/guestfs-actions.pod:5601
13589 #, no-wrap
13590 msgid ""
13591 " char *\n"
13592 " guestfs_sh (guestfs_h *g,\n"
13593 "             const char *command);\n"
13594 "\n"
13595 msgstr ""
13596
13597 # type: textblock
13598 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:3733
13599 msgid ""
13600 "This call runs a command from the guest filesystem via the guest's C</bin/"
13601 "sh>."
13602 msgstr ""
13603
13604 # type: textblock
13605 #: ../src/guestfs-actions.pod:5608
13606 msgid "This is like C<guestfs_command>, but passes the command to:"
13607 msgstr ""
13608
13609 # type: verbatim
13610 #: ../src/guestfs-actions.pod:5610 ../fish/guestfish-actions.pod:3738
13611 #, no-wrap
13612 msgid ""
13613 " /bin/sh -c \"command\"\n"
13614 "\n"
13615 msgstr ""
13616
13617 # type: textblock
13618 #: ../src/guestfs-actions.pod:5612 ../fish/guestfish-actions.pod:3740
13619 msgid ""
13620 "Depending on the guest's shell, this usually results in wildcards being "
13621 "expanded, shell expressions being interpolated and so on."
13622 msgstr ""
13623
13624 # type: textblock
13625 #: ../src/guestfs-actions.pod:5616
13626 msgid "All the provisos about C<guestfs_command> apply to this call."
13627 msgstr ""
13628
13629 # type: =head2
13630 #: ../src/guestfs-actions.pod:5623
13631 msgid "guestfs_sh_lines"
13632 msgstr ""
13633
13634 # type: verbatim
13635 #: ../src/guestfs-actions.pod:5625
13636 #, no-wrap
13637 msgid ""
13638 " char **\n"
13639 " guestfs_sh_lines (guestfs_h *g,\n"
13640 "                   const char *command);\n"
13641 "\n"
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5629
13646 msgid ""
13647 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13648 "lines."
13649 msgstr ""
13650
13651 # type: textblock
13652 #: ../src/guestfs-actions.pod:5632
13653 msgid "See also: C<guestfs_command_lines>"
13654 msgstr ""
13655
13656 # type: =head2
13657 #: ../src/guestfs-actions.pod:5640
13658 msgid "guestfs_sleep"
13659 msgstr ""
13660
13661 # type: verbatim
13662 #: ../src/guestfs-actions.pod:5642
13663 #, no-wrap
13664 msgid ""
13665 " int\n"
13666 " guestfs_sleep (guestfs_h *g,\n"
13667 "                int secs);\n"
13668 "\n"
13669 msgstr ""
13670
13671 # type: textblock
13672 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3759
13673 msgid "Sleep for C<secs> seconds."
13674 msgstr ""
13675
13676 # type: textblock
13677 #: ../src/guestfs-actions.pod:5650
13678 msgid "(Added in 1.0.41)"
13679 msgstr ""
13680
13681 # type: =head2
13682 #: ../src/guestfs-actions.pod:5652 ../src/guestfs-structs.pod:109
13683 msgid "guestfs_stat"
13684 msgstr ""
13685
13686 # type: verbatim
13687 #: ../src/guestfs-actions.pod:5654
13688 #, no-wrap
13689 msgid ""
13690 " struct guestfs_stat *\n"
13691 " guestfs_stat (guestfs_h *g,\n"
13692 "               const char *path);\n"
13693 "\n"
13694 msgstr ""
13695
13696 # type: textblock
13697 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3767
13698 msgid "This is the same as the C<stat(2)> system call."
13699 msgstr ""
13700
13701 # type: =head2
13702 #: ../src/guestfs-actions.pod:5668 ../src/guestfs-structs.pod:135
13703 msgid "guestfs_statvfs"
13704 msgstr ""
13705
13706 # type: verbatim
13707 #: ../src/guestfs-actions.pod:5670
13708 #, no-wrap
13709 msgid ""
13710 " struct guestfs_statvfs *\n"
13711 " guestfs_statvfs (guestfs_h *g,\n"
13712 "                  const char *path);\n"
13713 "\n"
13714 msgstr ""
13715
13716 # type: textblock
13717 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3773
13718 msgid ""
13719 "Returns file system statistics for any mounted file system.  C<path> should "
13720 "be a file or directory in the mounted file system (typically it is the mount "
13721 "point itself, but it doesn't need to be)."
13722 msgstr ""
13723
13724 # type: textblock
13725 #: ../src/guestfs-actions.pod:5678 ../fish/guestfish-actions.pod:3777
13726 msgid "This is the same as the C<statvfs(2)> system call."
13727 msgstr ""
13728
13729 # type: textblock
13730 #: ../src/guestfs-actions.pod:5680
13731 msgid ""
13732 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13733 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13734 msgstr ""
13735
13736 # type: =head2
13737 #: ../src/guestfs-actions.pod:5686
13738 msgid "guestfs_strings"
13739 msgstr ""
13740
13741 # type: verbatim
13742 #: ../src/guestfs-actions.pod:5688
13743 #, no-wrap
13744 msgid ""
13745 " char **\n"
13746 " guestfs_strings (guestfs_h *g,\n"
13747 "                  const char *path);\n"
13748 "\n"
13749 msgstr ""
13750
13751 # type: textblock
13752 #: ../src/guestfs-actions.pod:5692 ../fish/guestfish-actions.pod:3783
13753 msgid ""
13754 "This runs the L<strings(1)> command on a file and returns the list of "
13755 "printable strings found."
13756 msgstr ""
13757
13758 # type: =head2
13759 #: ../src/guestfs-actions.pod:5704
13760 msgid "guestfs_strings_e"
13761 msgstr ""
13762
13763 # type: verbatim
13764 #: ../src/guestfs-actions.pod:5706
13765 #, no-wrap
13766 msgid ""
13767 " char **\n"
13768 " guestfs_strings_e (guestfs_h *g,\n"
13769 "                    const char *encoding,\n"
13770 "                    const char *path);\n"
13771 "\n"
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5711
13776 msgid ""
13777 "This is like the C<guestfs_strings> command, but allows you to specify the "
13778 "encoding of strings that are looked for in the source file C<path>."
13779 msgstr ""
13780
13781 # type: textblock
13782 #: ../src/guestfs-actions.pod:5715 ../fish/guestfish-actions.pod:3797
13783 msgid "Allowed encodings are:"
13784 msgstr ""
13785
13786 # type: =item
13787 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3801
13788 msgid "s"
13789 msgstr ""
13790
13791 # type: textblock
13792 #: ../src/guestfs-actions.pod:5721
13793 msgid ""
13794 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13795 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13796 msgstr ""
13797
13798 # type: =item
13799 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3806
13800 msgid "S"
13801 msgstr ""
13802
13803 # type: textblock
13804 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3808
13805 msgid "Single 8-bit-byte characters."
13806 msgstr ""
13807
13808 # type: =item
13809 #: ../src/guestfs-actions.pod:5728 ../fish/guestfish-actions.pod:3810
13810 msgid "b"
13811 msgstr ""
13812
13813 # type: textblock
13814 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3812
13815 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13816 msgstr ""
13817
13818 # type: =item
13819 #: ../src/guestfs-actions.pod:5733 ../fish/guestfish-actions.pod:3815
13820 msgid "l (lower case letter L)"
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5735 ../fish/guestfish-actions.pod:3817
13825 msgid ""
13826 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13827 "examining binaries in Windows guests."
13828 msgstr ""
13829
13830 # type: =item
13831 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3820
13832 msgid "B"
13833 msgstr ""
13834
13835 # type: textblock
13836 #: ../src/guestfs-actions.pod:5740 ../fish/guestfish-actions.pod:3822
13837 msgid "32-bit big endian such as UCS-4BE."
13838 msgstr ""
13839
13840 # type: =item
13841 #: ../src/guestfs-actions.pod:5742 ../fish/guestfish-actions.pod:3824
13842 msgid "L"
13843 msgstr ""
13844
13845 # type: textblock
13846 #: ../src/guestfs-actions.pod:5744 ../fish/guestfish-actions.pod:3826
13847 msgid "32-bit little endian such as UCS-4LE."
13848 msgstr ""
13849
13850 # type: textblock
13851 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3830
13852 msgid "The returned strings are transcoded to UTF-8."
13853 msgstr ""
13854
13855 # type: =head2
13856 #: ../src/guestfs-actions.pod:5759
13857 msgid "guestfs_swapoff_device"
13858 msgstr ""
13859
13860 # type: verbatim
13861 #: ../src/guestfs-actions.pod:5761
13862 #, no-wrap
13863 msgid ""
13864 " int\n"
13865 " guestfs_swapoff_device (guestfs_h *g,\n"
13866 "                         const char *device);\n"
13867 "\n"
13868 msgstr ""
13869
13870 # type: textblock
13871 #: ../src/guestfs-actions.pod:5765
13872 msgid ""
13873 "This command disables the libguestfs appliance swap device or partition "
13874 "named C<device>.  See C<guestfs_swapon_device>."
13875 msgstr ""
13876
13877 # type: =head2
13878 #: ../src/guestfs-actions.pod:5773
13879 msgid "guestfs_swapoff_file"
13880 msgstr ""
13881
13882 # type: verbatim
13883 #: ../src/guestfs-actions.pod:5775
13884 #, no-wrap
13885 msgid ""
13886 " int\n"
13887 " guestfs_swapoff_file (guestfs_h *g,\n"
13888 "                       const char *file);\n"
13889 "\n"
13890 msgstr ""
13891
13892 # type: textblock
13893 #: ../src/guestfs-actions.pod:5779 ../fish/guestfish-actions.pod:3847
13894 msgid "This command disables the libguestfs appliance swap on file."
13895 msgstr ""
13896
13897 # type: =head2
13898 #: ../src/guestfs-actions.pod:5785
13899 msgid "guestfs_swapoff_label"
13900 msgstr ""
13901
13902 # type: verbatim
13903 #: ../src/guestfs-actions.pod:5787
13904 #, no-wrap
13905 msgid ""
13906 " int\n"
13907 " guestfs_swapoff_label (guestfs_h *g,\n"
13908 "                        const char *label);\n"
13909 "\n"
13910 msgstr ""
13911
13912 # type: textblock
13913 #: ../src/guestfs-actions.pod:5791 ../fish/guestfish-actions.pod:3853
13914 msgid ""
13915 "This command disables the libguestfs appliance swap on labeled swap "
13916 "partition."
13917 msgstr ""
13918
13919 # type: =head2
13920 #: ../src/guestfs-actions.pod:5798
13921 msgid "guestfs_swapoff_uuid"
13922 msgstr ""
13923
13924 # type: verbatim
13925 #: ../src/guestfs-actions.pod:5800
13926 #, no-wrap
13927 msgid ""
13928 " int\n"
13929 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13930 "                       const char *uuid);\n"
13931 "\n"
13932 msgstr ""
13933
13934 # type: textblock
13935 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3860
13936 msgid ""
13937 "This command disables the libguestfs appliance swap partition with the given "
13938 "UUID."
13939 msgstr ""
13940
13941 # type: =head2
13942 #: ../src/guestfs-actions.pod:5811
13943 msgid "guestfs_swapon_device"
13944 msgstr ""
13945
13946 # type: verbatim
13947 #: ../src/guestfs-actions.pod:5813
13948 #, no-wrap
13949 msgid ""
13950 " int\n"
13951 " guestfs_swapon_device (guestfs_h *g,\n"
13952 "                        const char *device);\n"
13953 "\n"
13954 msgstr ""
13955
13956 # type: textblock
13957 #: ../src/guestfs-actions.pod:5817
13958 msgid ""
13959 "This command enables the libguestfs appliance to use the swap device or "
13960 "partition named C<device>.  The increased memory is made available for all "
13961 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13962 msgstr ""
13963
13964 # type: textblock
13965 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3872
13966 msgid ""
13967 "Note that you should not swap to existing guest swap partitions unless you "
13968 "know what you are doing.  They may contain hibernation information, or other "
13969 "information that the guest doesn't want you to trash.  You also risk leaking "
13970 "information about the host to the guest this way.  Instead, attach a new "
13971 "host device to the guest and swap on that."
13972 msgstr ""
13973
13974 # type: =head2
13975 #: ../src/guestfs-actions.pod:5833
13976 msgid "guestfs_swapon_file"
13977 msgstr ""
13978
13979 # type: verbatim
13980 #: ../src/guestfs-actions.pod:5835
13981 #, no-wrap
13982 msgid ""
13983 " int\n"
13984 " guestfs_swapon_file (guestfs_h *g,\n"
13985 "                      const char *file);\n"
13986 "\n"
13987 msgstr ""
13988
13989 # type: textblock
13990 #: ../src/guestfs-actions.pod:5839
13991 msgid ""
13992 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13993 "notes."
13994 msgstr ""
13995
13996 # type: =head2
13997 #: ../src/guestfs-actions.pod:5846
13998 msgid "guestfs_swapon_label"
13999 msgstr ""
14000
14001 # type: verbatim
14002 #: ../src/guestfs-actions.pod:5848
14003 #, no-wrap
14004 msgid ""
14005 " int\n"
14006 " guestfs_swapon_label (guestfs_h *g,\n"
14007 "                       const char *label);\n"
14008 "\n"
14009 msgstr ""
14010
14011 # type: textblock
14012 #: ../src/guestfs-actions.pod:5852
14013 msgid ""
14014 "This command enables swap to a labeled swap partition.  See "
14015 "C<guestfs_swapon_device> for other notes."
14016 msgstr ""
14017
14018 # type: =head2
14019 #: ../src/guestfs-actions.pod:5859
14020 msgid "guestfs_swapon_uuid"
14021 msgstr ""
14022
14023 # type: verbatim
14024 #: ../src/guestfs-actions.pod:5861
14025 #, no-wrap
14026 msgid ""
14027 " int\n"
14028 " guestfs_swapon_uuid (guestfs_h *g,\n"
14029 "                      const char *uuid);\n"
14030 "\n"
14031 msgstr ""
14032
14033 # type: textblock
14034 #: ../src/guestfs-actions.pod:5865
14035 msgid ""
14036 "This command enables swap to a swap partition with the given UUID.  See "
14037 "C<guestfs_swapon_device> for other notes."
14038 msgstr ""
14039
14040 # type: =head2
14041 #: ../src/guestfs-actions.pod:5872
14042 msgid "guestfs_sync"
14043 msgstr ""
14044
14045 # type: verbatim
14046 #: ../src/guestfs-actions.pod:5874
14047 #, no-wrap
14048 msgid ""
14049 " int\n"
14050 " guestfs_sync (guestfs_h *g);\n"
14051 "\n"
14052 msgstr ""
14053
14054 # type: textblock
14055 #: ../src/guestfs-actions.pod:5877 ../fish/guestfish-actions.pod:3904
14056 msgid ""
14057 "This syncs the disk, so that any writes are flushed through to the "
14058 "underlying disk image."
14059 msgstr ""
14060
14061 # type: textblock
14062 #: ../src/guestfs-actions.pod:5880 ../fish/guestfish-actions.pod:3907
14063 msgid ""
14064 "You should always call this if you have modified a disk image, before "
14065 "closing the handle."
14066 msgstr ""
14067
14068 # type: =head2
14069 #: ../src/guestfs-actions.pod:5887
14070 msgid "guestfs_tail"
14071 msgstr ""
14072
14073 # type: verbatim
14074 #: ../src/guestfs-actions.pod:5889
14075 #, no-wrap
14076 msgid ""
14077 " char **\n"
14078 " guestfs_tail (guestfs_h *g,\n"
14079 "               const char *path);\n"
14080 "\n"
14081 msgstr ""
14082
14083 # type: textblock
14084 #: ../src/guestfs-actions.pod:5893 ../fish/guestfish-actions.pod:3914
14085 msgid ""
14086 "This command returns up to the last 10 lines of a file as a list of strings."
14087 msgstr ""
14088
14089 # type: =head2
14090 #: ../src/guestfs-actions.pod:5905
14091 msgid "guestfs_tail_n"
14092 msgstr ""
14093
14094 # type: verbatim
14095 #: ../src/guestfs-actions.pod:5907
14096 #, no-wrap
14097 msgid ""
14098 " char **\n"
14099 " guestfs_tail_n (guestfs_h *g,\n"
14100 "                 int nrlines,\n"
14101 "                 const char *path);\n"
14102 "\n"
14103 msgstr ""
14104
14105 # type: textblock
14106 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3924
14107 msgid ""
14108 "If the parameter C<nrlines> is a positive number, this returns the last "
14109 "C<nrlines> lines of the file C<path>."
14110 msgstr ""
14111
14112 # type: textblock
14113 #: ../src/guestfs-actions.pod:5915 ../fish/guestfish-actions.pod:3927
14114 msgid ""
14115 "If the parameter C<nrlines> is a negative number, this returns lines from "
14116 "the file C<path>, starting with the C<-nrlines>th line."
14117 msgstr ""
14118
14119 # type: =head2
14120 #: ../src/guestfs-actions.pod:5929
14121 msgid "guestfs_tar_in"
14122 msgstr ""
14123
14124 # type: verbatim
14125 #: ../src/guestfs-actions.pod:5931
14126 #, no-wrap
14127 msgid ""
14128 " int\n"
14129 " guestfs_tar_in (guestfs_h *g,\n"
14130 "                 const char *tarfile,\n"
14131 "                 const char *directory);\n"
14132 "\n"
14133 msgstr ""
14134
14135 # type: textblock
14136 #: ../src/guestfs-actions.pod:5936 ../fish/guestfish-actions.pod:3939
14137 msgid ""
14138 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14139 "tar file) into C<directory>."
14140 msgstr ""
14141
14142 # type: textblock
14143 #: ../src/guestfs-actions.pod:5939
14144 msgid ""
14145 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14146 msgstr ""
14147
14148 # type: textblock
14149 #: ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:5961
14150 #: ../src/guestfs-actions.pod:5977 ../src/guestfs-actions.pod:5993
14151 msgid "(Added in 1.0.3)"
14152 msgstr ""
14153
14154 # type: =head2
14155 #: ../src/guestfs-actions.pod:5946
14156 msgid "guestfs_tar_out"
14157 msgstr ""
14158
14159 # type: verbatim
14160 #: ../src/guestfs-actions.pod:5948
14161 #, no-wrap
14162 msgid ""
14163 " int\n"
14164 " guestfs_tar_out (guestfs_h *g,\n"
14165 "                  const char *directory,\n"
14166 "                  const char *tarfile);\n"
14167 "\n"
14168 msgstr ""
14169
14170 # type: textblock
14171 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3951
14172 msgid ""
14173 "This command packs the contents of C<directory> and downloads it to local "
14174 "file C<tarfile>."
14175 msgstr ""
14176
14177 # type: textblock
14178 #: ../src/guestfs-actions.pod:5956
14179 msgid ""
14180 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14181 "C<guestfs_txz_out>."
14182 msgstr ""
14183
14184 # type: =head2
14185 #: ../src/guestfs-actions.pod:5963
14186 msgid "guestfs_tgz_in"
14187 msgstr ""
14188
14189 # type: verbatim
14190 #: ../src/guestfs-actions.pod:5965
14191 #, no-wrap
14192 msgid ""
14193 " int\n"
14194 " guestfs_tgz_in (guestfs_h *g,\n"
14195 "                 const char *tarball,\n"
14196 "                 const char *directory);\n"
14197 "\n"
14198 msgstr ""
14199
14200 # type: textblock
14201 #: ../src/guestfs-actions.pod:5970 ../fish/guestfish-actions.pod:3963
14202 msgid ""
14203 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14204 "tar file) into C<directory>."
14205 msgstr ""
14206
14207 # type: textblock
14208 #: ../src/guestfs-actions.pod:5973
14209 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14210 msgstr ""
14211
14212 # type: =head2
14213 #: ../src/guestfs-actions.pod:5979
14214 msgid "guestfs_tgz_out"
14215 msgstr ""
14216
14217 # type: verbatim
14218 #: ../src/guestfs-actions.pod:5981
14219 #, no-wrap
14220 msgid ""
14221 " int\n"
14222 " guestfs_tgz_out (guestfs_h *g,\n"
14223 "                  const char *directory,\n"
14224 "                  const char *tarball);\n"
14225 "\n"
14226 msgstr ""
14227
14228 # type: textblock
14229 #: ../src/guestfs-actions.pod:5986 ../fish/guestfish-actions.pod:3974
14230 msgid ""
14231 "This command packs the contents of C<directory> and downloads it to local "
14232 "file C<tarball>."
14233 msgstr ""
14234
14235 # type: textblock
14236 #: ../src/guestfs-actions.pod:5989
14237 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14238 msgstr ""
14239
14240 # type: =head2
14241 #: ../src/guestfs-actions.pod:5995
14242 msgid "guestfs_touch"
14243 msgstr ""
14244
14245 # type: verbatim
14246 #: ../src/guestfs-actions.pod:5997
14247 #, no-wrap
14248 msgid ""
14249 " int\n"
14250 " guestfs_touch (guestfs_h *g,\n"
14251 "                const char *path);\n"
14252 "\n"
14253 msgstr ""
14254
14255 # type: textblock
14256 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:3985
14257 msgid ""
14258 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14259 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14260 "length file."
14261 msgstr ""
14262
14263 # type: textblock
14264 #: ../src/guestfs-actions.pod:6005 ../fish/guestfish-actions.pod:3989
14265 msgid ""
14266 "This command only works on regular files, and will fail on other file types "
14267 "such as directories, symbolic links, block special etc."
14268 msgstr ""
14269
14270 # type: =head2
14271 #: ../src/guestfs-actions.pod:6012
14272 msgid "guestfs_truncate"
14273 msgstr ""
14274
14275 # type: verbatim
14276 #: ../src/guestfs-actions.pod:6014
14277 #, no-wrap
14278 msgid ""
14279 " int\n"
14280 " guestfs_truncate (guestfs_h *g,\n"
14281 "                   const char *path);\n"
14282 "\n"
14283 msgstr ""
14284
14285 # type: textblock
14286 #: ../src/guestfs-actions.pod:6018 ../fish/guestfish-actions.pod:3996
14287 msgid ""
14288 "This command truncates C<path> to a zero-length file.  The file must exist "
14289 "already."
14290 msgstr ""
14291
14292 # type: =head2
14293 #: ../src/guestfs-actions.pod:6025
14294 msgid "guestfs_truncate_size"
14295 msgstr ""
14296
14297 # type: verbatim
14298 #: ../src/guestfs-actions.pod:6027
14299 #, no-wrap
14300 msgid ""
14301 " int\n"
14302 " guestfs_truncate_size (guestfs_h *g,\n"
14303 "                        const char *path,\n"
14304 "                        int64_t size);\n"
14305 "\n"
14306 msgstr ""
14307
14308 # type: textblock
14309 #: ../src/guestfs-actions.pod:6032 ../fish/guestfish-actions.pod:4003
14310 msgid ""
14311 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14312 "already."
14313 msgstr ""
14314
14315 # type: textblock
14316 #: ../src/guestfs-actions.pod:6035
14317 msgid ""
14318 "If the current file size is less than C<size> then the file is extended to "
14319 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14320 "blocks are not allocated for the file until you write to it).  To create a "
14321 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14322 msgstr ""
14323
14324 # type: =head2
14325 #: ../src/guestfs-actions.pod:6045
14326 msgid "guestfs_tune2fs_l"
14327 msgstr ""
14328
14329 # type: verbatim
14330 #: ../src/guestfs-actions.pod:6047
14331 #, no-wrap
14332 msgid ""
14333 " char **\n"
14334 " guestfs_tune2fs_l (guestfs_h *g,\n"
14335 "                    const char *device);\n"
14336 "\n"
14337 msgstr ""
14338
14339 # type: textblock
14340 #: ../src/guestfs-actions.pod:6051 ../fish/guestfish-actions.pod:4016
14341 msgid ""
14342 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14343 "C<device>."
14344 msgstr ""
14345
14346 # type: textblock
14347 #: ../src/guestfs-actions.pod:6054 ../fish/guestfish-actions.pod:4019
14348 msgid ""
14349 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14350 "for more details.  The list of fields returned isn't clearly defined, and "
14351 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14352 "and the filesystem itself."
14353 msgstr ""
14354
14355 # type: =head2
14356 #: ../src/guestfs-actions.pod:6067
14357 msgid "guestfs_txz_in"
14358 msgstr ""
14359
14360 # type: verbatim
14361 #: ../src/guestfs-actions.pod:6069
14362 #, no-wrap
14363 msgid ""
14364 " int\n"
14365 " guestfs_txz_in (guestfs_h *g,\n"
14366 "                 const char *tarball,\n"
14367 "                 const char *directory);\n"
14368 "\n"
14369 msgstr ""
14370
14371 # type: textblock
14372 #: ../src/guestfs-actions.pod:6074 ../fish/guestfish-actions.pod:4028
14373 msgid ""
14374 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14375 "tar file) into C<directory>."
14376 msgstr ""
14377
14378 # type: =head2
14379 #: ../src/guestfs-actions.pod:6081
14380 msgid "guestfs_txz_out"
14381 msgstr ""
14382
14383 # type: verbatim
14384 #: ../src/guestfs-actions.pod:6083
14385 #, no-wrap
14386 msgid ""
14387 " int\n"
14388 " guestfs_txz_out (guestfs_h *g,\n"
14389 "                  const char *directory,\n"
14390 "                  const char *tarball);\n"
14391 "\n"
14392 msgstr ""
14393
14394 # type: textblock
14395 #: ../src/guestfs-actions.pod:6088 ../fish/guestfish-actions.pod:4037
14396 msgid ""
14397 "This command packs the contents of C<directory> and downloads it to local "
14398 "file C<tarball> (as an xz compressed tar archive)."
14399 msgstr ""
14400
14401 # type: =head2
14402 #: ../src/guestfs-actions.pod:6095
14403 msgid "guestfs_umask"
14404 msgstr ""
14405
14406 # type: verbatim
14407 #: ../src/guestfs-actions.pod:6097
14408 #, no-wrap
14409 msgid ""
14410 " int\n"
14411 " guestfs_umask (guestfs_h *g,\n"
14412 "                int mask);\n"
14413 "\n"
14414 msgstr ""
14415
14416 # type: textblock
14417 #: ../src/guestfs-actions.pod:6101 ../fish/guestfish-actions.pod:4046
14418 msgid ""
14419 "This function sets the mask used for creating new files and device nodes to "
14420 "C<mask & 0777>."
14421 msgstr ""
14422
14423 # type: textblock
14424 #: ../src/guestfs-actions.pod:6104 ../fish/guestfish-actions.pod:4049
14425 msgid ""
14426 "Typical umask values would be C<022> which creates new files with "
14427 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14428 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14429 msgstr ""
14430
14431 # type: textblock
14432 #: ../src/guestfs-actions.pod:6109 ../fish/guestfish-actions.pod:4054
14433 msgid ""
14434 "The default umask is C<022>.  This is important because it means that "
14435 "directories and device nodes will be created with C<0644> or C<0755> mode "
14436 "even if you specify C<0777>."
14437 msgstr ""
14438
14439 # type: textblock
14440 #: ../src/guestfs-actions.pod:6113
14441 msgid ""
14442 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14443 "C<guestfs_mkdir>."
14444 msgstr ""
14445
14446 # type: textblock
14447 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4061
14448 msgid "This call returns the previous umask."
14449 msgstr ""
14450
14451 # type: =head2
14452 #: ../src/guestfs-actions.pod:6122
14453 msgid "guestfs_umount"
14454 msgstr ""
14455
14456 # type: verbatim
14457 #: ../src/guestfs-actions.pod:6124
14458 #, no-wrap
14459 msgid ""
14460 " int\n"
14461 " guestfs_umount (guestfs_h *g,\n"
14462 "                 const char *pathordevice);\n"
14463 "\n"
14464 msgstr ""
14465
14466 # type: textblock
14467 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4069
14468 msgid ""
14469 "This unmounts the given filesystem.  The filesystem may be specified either "
14470 "by its mountpoint (path) or the device which contains the filesystem."
14471 msgstr ""
14472
14473 # type: =head2
14474 #: ../src/guestfs-actions.pod:6136
14475 msgid "guestfs_umount_all"
14476 msgstr ""
14477
14478 # type: verbatim
14479 #: ../src/guestfs-actions.pod:6138
14480 #, no-wrap
14481 msgid ""
14482 " int\n"
14483 " guestfs_umount_all (guestfs_h *g);\n"
14484 "\n"
14485 msgstr ""
14486
14487 # type: textblock
14488 #: ../src/guestfs-actions.pod:6141 ../fish/guestfish-actions.pod:4079
14489 msgid "This unmounts all mounted filesystems."
14490 msgstr ""
14491
14492 # type: textblock
14493 #: ../src/guestfs-actions.pod:6143 ../fish/guestfish-actions.pod:4081
14494 msgid "Some internal mounts are not unmounted by this call."
14495 msgstr ""
14496
14497 # type: =head2
14498 #: ../src/guestfs-actions.pod:6149
14499 msgid "guestfs_upload"
14500 msgstr ""
14501
14502 # type: verbatim
14503 #: ../src/guestfs-actions.pod:6151
14504 #, no-wrap
14505 msgid ""
14506 " int\n"
14507 " guestfs_upload (guestfs_h *g,\n"
14508 "                 const char *filename,\n"
14509 "                 const char *remotefilename);\n"
14510 "\n"
14511 msgstr ""
14512
14513 # type: textblock
14514 #: ../src/guestfs-actions.pod:6156 ../src/guestfs-actions.pod:6175
14515 #: ../fish/guestfish-actions.pod:4087 ../fish/guestfish-actions.pod:4100
14516 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14517 msgstr ""
14518
14519 # type: textblock
14520 #: ../src/guestfs-actions.pod:6161
14521 msgid "See also C<guestfs_download>."
14522 msgstr ""
14523
14524 # type: =head2
14525 #: ../src/guestfs-actions.pod:6167
14526 msgid "guestfs_upload_offset"
14527 msgstr ""
14528
14529 # type: verbatim
14530 #: ../src/guestfs-actions.pod:6169
14531 #, no-wrap
14532 msgid ""
14533 " int\n"
14534 " guestfs_upload_offset (guestfs_h *g,\n"
14535 "                        const char *filename,\n"
14536 "                        const char *remotefilename,\n"
14537 "                        int64_t offset);\n"
14538 "\n"
14539 msgstr ""
14540
14541 # type: textblock
14542 #: ../src/guestfs-actions.pod:6178 ../fish/guestfish-actions.pod:4103
14543 msgid ""
14544 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14545 "The intention is to overwrite parts of existing files or devices, although "
14546 "if a non-existant file is specified then it is created with a \"hole\" "
14547 "before C<offset>.  The size of the data written is implicit in the size of "
14548 "the source C<filename>."
14549 msgstr ""
14550
14551 # type: textblock
14552 #: ../src/guestfs-actions.pod:6185
14553 msgid ""
14554 "Note that there is no limit on the amount of data that can be uploaded with "
14555 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14556 "full amount unless an error occurs."
14557 msgstr ""
14558
14559 # type: textblock
14560 #: ../src/guestfs-actions.pod:6190
14561 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14562 msgstr ""
14563
14564 # type: =head2
14565 #: ../src/guestfs-actions.pod:6196
14566 msgid "guestfs_utimens"
14567 msgstr ""
14568
14569 # type: verbatim
14570 #: ../src/guestfs-actions.pod:6198
14571 #, no-wrap
14572 msgid ""
14573 " int\n"
14574 " guestfs_utimens (guestfs_h *g,\n"
14575 "                  const char *path,\n"
14576 "                  int64_t atsecs,\n"
14577 "                  int64_t atnsecs,\n"
14578 "                  int64_t mtsecs,\n"
14579 "                  int64_t mtnsecs);\n"
14580 "\n"
14581 msgstr ""
14582
14583 # type: textblock
14584 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4123
14585 msgid "This command sets the timestamps of a file with nanosecond precision."
14586 msgstr ""
14587
14588 # type: textblock
14589 #: ../src/guestfs-actions.pod:6209 ../fish/guestfish-actions.pod:4126
14590 msgid ""
14591 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14592 "from the epoch."
14593 msgstr ""
14594
14595 # type: textblock
14596 #: ../src/guestfs-actions.pod:6212 ../fish/guestfish-actions.pod:4129
14597 msgid ""
14598 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14599 "nanoseconds from the epoch."
14600 msgstr ""
14601
14602 # type: textblock
14603 #: ../src/guestfs-actions.pod:6215 ../fish/guestfish-actions.pod:4132
14604 msgid ""
14605 "If the C<*nsecs> field contains the special value C<-1> then the "
14606 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14607 "ignored in this case)."
14608 msgstr ""
14609
14610 # type: textblock
14611 #: ../src/guestfs-actions.pod:6219 ../fish/guestfish-actions.pod:4136
14612 msgid ""
14613 "If the C<*nsecs> field contains the special value C<-2> then the "
14614 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14615 "in this case)."
14616 msgstr ""
14617
14618 # type: =head2
14619 #: ../src/guestfs-actions.pod:6227 ../src/guestfs-structs.pod:175
14620 msgid "guestfs_version"
14621 msgstr ""
14622
14623 # type: verbatim
14624 #: ../src/guestfs-actions.pod:6229
14625 #, no-wrap
14626 msgid ""
14627 " struct guestfs_version *\n"
14628 " guestfs_version (guestfs_h *g);\n"
14629 "\n"
14630 msgstr ""
14631
14632 # type: textblock
14633 #: ../src/guestfs-actions.pod:6232 ../fish/guestfish-actions.pod:4144
14634 msgid ""
14635 "Return the libguestfs version number that the program is linked against."
14636 msgstr ""
14637
14638 # type: textblock
14639 #: ../src/guestfs-actions.pod:6235 ../fish/guestfish-actions.pod:4147
14640 msgid ""
14641 "Note that because of dynamic linking this is not necessarily the version of "
14642 "libguestfs that you compiled against.  You can compile the program, and then "
14643 "at runtime dynamically link against a completely different C<libguestfs.so> "
14644 "library."
14645 msgstr ""
14646
14647 # type: textblock
14648 #: ../src/guestfs-actions.pod:6240 ../fish/guestfish-actions.pod:4152
14649 msgid ""
14650 "This call was added in version C<1.0.58>.  In previous versions of "
14651 "libguestfs there was no way to get the version number.  From C code you can "
14652 "use dynamic linker functions to find out if this symbol exists (if it "
14653 "doesn't, then it's an earlier version)."
14654 msgstr ""
14655
14656 # type: textblock
14657 #: ../src/guestfs-actions.pod:6246 ../fish/guestfish-actions.pod:4158
14658 msgid ""
14659 "The call returns a structure with four elements.  The first three (C<major>, "
14660 "C<minor> and C<release>) are numbers and correspond to the usual version "
14661 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14662 "but may be used for distro-specific information."
14663 msgstr ""
14664
14665 # type: textblock
14666 #: ../src/guestfs-actions.pod:6252 ../fish/guestfish-actions.pod:4164
14667 msgid ""
14668 "To construct the original version string: C<$major.$minor.$release$extra>"
14669 msgstr ""
14670
14671 # type: textblock
14672 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4167
14673 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14674 msgstr ""
14675
14676 # type: textblock
14677 #: ../src/guestfs-actions.pod:6257
14678 msgid ""
14679 "I<Note:> Don't use this call to test for availability of features.  In "
14680 "enterprise distributions we backport features from later versions into "
14681 "earlier versions, making this an unreliable way to test for features.  Use "
14682 "C<guestfs_available> instead."
14683 msgstr ""
14684
14685 # type: textblock
14686 #: ../src/guestfs-actions.pod:6263
14687 msgid ""
14688 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14689 "error.  I<The caller must call C<guestfs_free_version> after use>."
14690 msgstr ""
14691
14692 # type: textblock
14693 #: ../src/guestfs-actions.pod:6267
14694 msgid "(Added in 1.0.58)"
14695 msgstr ""
14696
14697 # type: =head2
14698 #: ../src/guestfs-actions.pod:6269
14699 msgid "guestfs_vfs_label"
14700 msgstr ""
14701
14702 # type: verbatim
14703 #: ../src/guestfs-actions.pod:6271
14704 #, no-wrap
14705 msgid ""
14706 " char *\n"
14707 " guestfs_vfs_label (guestfs_h *g,\n"
14708 "                    const char *device);\n"
14709 "\n"
14710 msgstr ""
14711
14712 # type: textblock
14713 #: ../src/guestfs-actions.pod:6275 ../fish/guestfish-actions.pod:4179
14714 msgid "This returns the filesystem label of the filesystem on C<device>."
14715 msgstr ""
14716
14717 # type: textblock
14718 #: ../src/guestfs-actions.pod:6278 ../fish/guestfish-actions.pod:4182
14719 msgid "If the filesystem is unlabeled, this returns the empty string."
14720 msgstr ""
14721
14722 # type: textblock
14723 #: ../src/guestfs-actions.pod:6280
14724 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14725 msgstr ""
14726
14727 # type: textblock
14728 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6322
14729 msgid "(Added in 1.3.18)"
14730 msgstr ""
14731
14732 # type: =head2
14733 #: ../src/guestfs-actions.pod:6287
14734 msgid "guestfs_vfs_type"
14735 msgstr ""
14736
14737 # type: verbatim
14738 #: ../src/guestfs-actions.pod:6289
14739 #, no-wrap
14740 msgid ""
14741 " char *\n"
14742 " guestfs_vfs_type (guestfs_h *g,\n"
14743 "                   const char *device);\n"
14744 "\n"
14745 msgstr ""
14746
14747 # type: textblock
14748 #: ../src/guestfs-actions.pod:6293 ../fish/guestfish-actions.pod:4190
14749 msgid ""
14750 "This command gets the filesystem type corresponding to the filesystem on "
14751 "C<device>."
14752 msgstr ""
14753
14754 # type: textblock
14755 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4193
14756 msgid ""
14757 "For most filesystems, the result is the name of the Linux VFS module which "
14758 "would be used to mount this filesystem if you mounted it without specifying "
14759 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14760 msgstr ""
14761
14762 # type: =head2
14763 #: ../src/guestfs-actions.pod:6306
14764 msgid "guestfs_vfs_uuid"
14765 msgstr ""
14766
14767 # type: verbatim
14768 #: ../src/guestfs-actions.pod:6308
14769 #, no-wrap
14770 msgid ""
14771 " char *\n"
14772 " guestfs_vfs_uuid (guestfs_h *g,\n"
14773 "                   const char *device);\n"
14774 "\n"
14775 msgstr ""
14776
14777 # type: textblock
14778 #: ../src/guestfs-actions.pod:6312 ../fish/guestfish-actions.pod:4202
14779 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14780 msgstr ""
14781
14782 # type: textblock
14783 #: ../src/guestfs-actions.pod:6315 ../fish/guestfish-actions.pod:4205
14784 msgid "If the filesystem does not have a UUID, this returns the empty string."
14785 msgstr ""
14786
14787 # type: textblock
14788 #: ../src/guestfs-actions.pod:6317
14789 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14790 msgstr ""
14791
14792 # type: =head2
14793 #: ../src/guestfs-actions.pod:6324
14794 msgid "guestfs_vg_activate"
14795 msgstr ""
14796
14797 # type: verbatim
14798 #: ../src/guestfs-actions.pod:6326
14799 #, no-wrap
14800 msgid ""
14801 " int\n"
14802 " guestfs_vg_activate (guestfs_h *g,\n"
14803 "                      int activate,\n"
14804 "                      char *const *volgroups);\n"
14805 "\n"
14806 msgstr ""
14807
14808 # type: textblock
14809 #: ../src/guestfs-actions.pod:6331 ../fish/guestfish-actions.pod:4213
14810 msgid ""
14811 "This command activates or (if C<activate> is false) deactivates all logical "
14812 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14813 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14814 "deactivated, then those devices disappear."
14815 msgstr ""
14816
14817 # type: textblock
14818 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4219
14819 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../src/guestfs-actions.pod:6339 ../fish/guestfish-actions.pod:4221
14824 msgid ""
14825 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14826 "activated or deactivated."
14827 msgstr ""
14828
14829 # type: =head2
14830 #: ../src/guestfs-actions.pod:6346
14831 msgid "guestfs_vg_activate_all"
14832 msgstr ""
14833
14834 # type: verbatim
14835 #: ../src/guestfs-actions.pod:6348
14836 #, no-wrap
14837 msgid ""
14838 " int\n"
14839 " guestfs_vg_activate_all (guestfs_h *g,\n"
14840 "                          int activate);\n"
14841 "\n"
14842 msgstr ""
14843
14844 # type: textblock
14845 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4228
14846 msgid ""
14847 "This command activates or (if C<activate> is false) deactivates all logical "
14848 "volumes in all volume groups.  If activated, then they are made known to the "
14849 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14850 "those devices disappear."
14851 msgstr ""
14852
14853 # type: textblock
14854 #: ../src/guestfs-actions.pod:6358 ../fish/guestfish-actions.pod:4234
14855 msgid "This command is the same as running C<vgchange -a y|n>"
14856 msgstr ""
14857
14858 # type: =head2
14859 #: ../src/guestfs-actions.pod:6364
14860 msgid "guestfs_vgcreate"
14861 msgstr ""
14862
14863 # type: verbatim
14864 #: ../src/guestfs-actions.pod:6366
14865 #, no-wrap
14866 msgid ""
14867 " int\n"
14868 " guestfs_vgcreate (guestfs_h *g,\n"
14869 "                   const char *volgroup,\n"
14870 "                   char *const *physvols);\n"
14871 "\n"
14872 msgstr ""
14873
14874 # type: textblock
14875 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4240
14876 msgid ""
14877 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14878 "of physical volumes C<physvols>."
14879 msgstr ""
14880
14881 # type: =head2
14882 #: ../src/guestfs-actions.pod:6378
14883 msgid "guestfs_vglvuuids"
14884 msgstr ""
14885
14886 # type: verbatim
14887 #: ../src/guestfs-actions.pod:6380
14888 #, no-wrap
14889 msgid ""
14890 " char **\n"
14891 " guestfs_vglvuuids (guestfs_h *g,\n"
14892 "                    const char *vgname);\n"
14893 "\n"
14894 msgstr ""
14895
14896 # type: textblock
14897 #: ../src/guestfs-actions.pod:6384 ../fish/guestfish-actions.pod:4247
14898 msgid ""
14899 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14900 "volumes created in this volume group."
14901 msgstr ""
14902
14903 # type: textblock
14904 #: ../src/guestfs-actions.pod:6387
14905 msgid ""
14906 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14907 "associate logical volumes and volume groups."
14908 msgstr ""
14909
14910 # type: textblock
14911 #: ../src/guestfs-actions.pod:6390
14912 msgid "See also C<guestfs_vgpvuuids>."
14913 msgstr ""
14914
14915 # type: =head2
14916 #: ../src/guestfs-actions.pod:6398
14917 msgid "guestfs_vgpvuuids"
14918 msgstr ""
14919
14920 # type: verbatim
14921 #: ../src/guestfs-actions.pod:6400
14922 #, no-wrap
14923 msgid ""
14924 " char **\n"
14925 " guestfs_vgpvuuids (guestfs_h *g,\n"
14926 "                    const char *vgname);\n"
14927 "\n"
14928 msgstr ""
14929
14930 # type: textblock
14931 #: ../src/guestfs-actions.pod:6404 ../fish/guestfish-actions.pod:4259
14932 msgid ""
14933 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14934 "volumes that this volume group resides on."
14935 msgstr ""
14936
14937 # type: textblock
14938 #: ../src/guestfs-actions.pod:6407
14939 msgid ""
14940 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14941 "associate physical volumes and volume groups."
14942 msgstr ""
14943
14944 # type: textblock
14945 #: ../src/guestfs-actions.pod:6410
14946 msgid "See also C<guestfs_vglvuuids>."
14947 msgstr ""
14948
14949 # type: =head2
14950 #: ../src/guestfs-actions.pod:6418
14951 msgid "guestfs_vgremove"
14952 msgstr ""
14953
14954 # type: verbatim
14955 #: ../src/guestfs-actions.pod:6420
14956 #, no-wrap
14957 msgid ""
14958 " int\n"
14959 " guestfs_vgremove (guestfs_h *g,\n"
14960 "                   const char *vgname);\n"
14961 "\n"
14962 msgstr ""
14963
14964 # type: textblock
14965 #: ../src/guestfs-actions.pod:6424 ../fish/guestfish-actions.pod:4271
14966 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14967 msgstr ""
14968
14969 # type: textblock
14970 #: ../src/guestfs-actions.pod:6426 ../fish/guestfish-actions.pod:4273
14971 msgid ""
14972 "This also forcibly removes all logical volumes in the volume group (if any)."
14973 msgstr ""
14974
14975 # type: =head2
14976 #: ../src/guestfs-actions.pod:6433
14977 msgid "guestfs_vgrename"
14978 msgstr ""
14979
14980 # type: verbatim
14981 #: ../src/guestfs-actions.pod:6435
14982 #, no-wrap
14983 msgid ""
14984 " int\n"
14985 " guestfs_vgrename (guestfs_h *g,\n"
14986 "                   const char *volgroup,\n"
14987 "                   const char *newvolgroup);\n"
14988 "\n"
14989 msgstr ""
14990
14991 # type: textblock
14992 #: ../src/guestfs-actions.pod:6440 ../fish/guestfish-actions.pod:4280
14993 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14994 msgstr ""
14995
14996 # type: =head2
14997 #: ../src/guestfs-actions.pod:6446
14998 msgid "guestfs_vgs"
14999 msgstr ""
15000
15001 # type: verbatim
15002 #: ../src/guestfs-actions.pod:6448
15003 #, no-wrap
15004 msgid ""
15005 " char **\n"
15006 " guestfs_vgs (guestfs_h *g);\n"
15007 "\n"
15008 msgstr ""
15009
15010 # type: textblock
15011 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4286
15012 msgid ""
15013 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15014 "> command."
15015 msgstr ""
15016
15017 # type: textblock
15018 #: ../src/guestfs-actions.pod:6454 ../fish/guestfish-actions.pod:4289
15019 msgid ""
15020 "This returns a list of just the volume group names that were detected (eg. "
15021 "C<VolGroup00>)."
15022 msgstr ""
15023
15024 # type: textblock
15025 #: ../src/guestfs-actions.pod:6457
15026 msgid "See also C<guestfs_vgs_full>."
15027 msgstr ""
15028
15029 # type: =head2
15030 #: ../src/guestfs-actions.pod:6465
15031 msgid "guestfs_vgs_full"
15032 msgstr ""
15033
15034 # type: verbatim
15035 #: ../src/guestfs-actions.pod:6467
15036 #, no-wrap
15037 msgid ""
15038 " struct guestfs_lvm_vg_list *\n"
15039 " guestfs_vgs_full (guestfs_h *g);\n"
15040 "\n"
15041 msgstr ""
15042
15043 # type: textblock
15044 #: ../src/guestfs-actions.pod:6470 ../fish/guestfish-actions.pod:4298
15045 msgid ""
15046 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15047 "> command.  The \"full\" version includes all fields."
15048 msgstr ""
15049
15050 # type: textblock
15051 #: ../src/guestfs-actions.pod:6473
15052 msgid ""
15053 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
15054 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
15055 "C<guestfs_free_lvm_vg_list> after use>."
15056 msgstr ""
15057
15058 # type: =head2
15059 #: ../src/guestfs-actions.pod:6480
15060 msgid "guestfs_vgscan"
15061 msgstr ""
15062
15063 # type: verbatim
15064 #: ../src/guestfs-actions.pod:6482
15065 #, no-wrap
15066 msgid ""
15067 " int\n"
15068 " guestfs_vgscan (guestfs_h *g);\n"
15069 "\n"
15070 msgstr ""
15071
15072 # type: textblock
15073 #: ../src/guestfs-actions.pod:6485 ../fish/guestfish-actions.pod:4305
15074 msgid ""
15075 "This rescans all block devices and rebuilds the list of LVM physical "
15076 "volumes, volume groups and logical volumes."
15077 msgstr ""
15078
15079 # type: =head2
15080 #: ../src/guestfs-actions.pod:6492
15081 msgid "guestfs_vguuid"
15082 msgstr ""
15083
15084 # type: verbatim
15085 #: ../src/guestfs-actions.pod:6494
15086 #, no-wrap
15087 msgid ""
15088 " char *\n"
15089 " guestfs_vguuid (guestfs_h *g,\n"
15090 "                 const char *vgname);\n"
15091 "\n"
15092 msgstr ""
15093
15094 # type: textblock
15095 #: ../src/guestfs-actions.pod:6498 ../fish/guestfish-actions.pod:4312
15096 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15097 msgstr ""
15098
15099 # type: =head2
15100 #: ../src/guestfs-actions.pod:6505
15101 msgid "guestfs_wait_ready"
15102 msgstr ""
15103
15104 # type: verbatim
15105 #: ../src/guestfs-actions.pod:6507
15106 #, no-wrap
15107 msgid ""
15108 " int\n"
15109 " guestfs_wait_ready (guestfs_h *g);\n"
15110 "\n"
15111 msgstr ""
15112
15113 # type: textblock
15114 #: ../src/guestfs-actions.pod:6510
15115 msgid "This function is a no op."
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../src/guestfs-actions.pod:6512
15120 msgid ""
15121 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15122 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15123 "is no longer necessary because C<guestfs_launch> now does the waiting."
15124 msgstr ""
15125
15126 # type: textblock
15127 #: ../src/guestfs-actions.pod:6517
15128 msgid ""
15129 "If you see any calls to this function in code then you can just remove them, "
15130 "unless you want to retain compatibility with older versions of the API."
15131 msgstr ""
15132
15133 # type: =head2
15134 #: ../src/guestfs-actions.pod:6525
15135 msgid "guestfs_wc_c"
15136 msgstr ""
15137
15138 # type: verbatim
15139 #: ../src/guestfs-actions.pod:6527
15140 #, no-wrap
15141 msgid ""
15142 " int\n"
15143 " guestfs_wc_c (guestfs_h *g,\n"
15144 "               const char *path);\n"
15145 "\n"
15146 msgstr ""
15147
15148 # type: textblock
15149 #: ../src/guestfs-actions.pod:6531 ../fish/guestfish-actions.pod:4318
15150 msgid ""
15151 "This command counts the characters in a file, using the C<wc -c> external "
15152 "command."
15153 msgstr ""
15154
15155 # type: =head2
15156 #: ../src/guestfs-actions.pod:6538
15157 msgid "guestfs_wc_l"
15158 msgstr ""
15159
15160 # type: verbatim
15161 #: ../src/guestfs-actions.pod:6540
15162 #, no-wrap
15163 msgid ""
15164 " int\n"
15165 " guestfs_wc_l (guestfs_h *g,\n"
15166 "               const char *path);\n"
15167 "\n"
15168 msgstr ""
15169
15170 # type: textblock
15171 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4325
15172 msgid ""
15173 "This command counts the lines in a file, using the C<wc -l> external command."
15174 msgstr ""
15175
15176 # type: =head2
15177 #: ../src/guestfs-actions.pod:6551
15178 msgid "guestfs_wc_w"
15179 msgstr ""
15180
15181 # type: verbatim
15182 #: ../src/guestfs-actions.pod:6553
15183 #, no-wrap
15184 msgid ""
15185 " int\n"
15186 " guestfs_wc_w (guestfs_h *g,\n"
15187 "               const char *path);\n"
15188 "\n"
15189 msgstr ""
15190
15191 # type: textblock
15192 #: ../src/guestfs-actions.pod:6557 ../fish/guestfish-actions.pod:4332
15193 msgid ""
15194 "This command counts the words in a file, using the C<wc -w> external command."
15195 msgstr ""
15196
15197 # type: =head2
15198 #: ../src/guestfs-actions.pod:6564
15199 msgid "guestfs_write"
15200 msgstr ""
15201
15202 # type: verbatim
15203 #: ../src/guestfs-actions.pod:6566
15204 #, no-wrap
15205 msgid ""
15206 " int\n"
15207 " guestfs_write (guestfs_h *g,\n"
15208 "                const char *path,\n"
15209 "                const char *content,\n"
15210 "                size_t content_size);\n"
15211 "\n"
15212 msgstr ""
15213
15214 # type: textblock
15215 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4339
15216 msgid ""
15217 "This call creates a file called C<path>.  The content of the file is the "
15218 "string C<content> (which can contain any 8 bit data)."
15219 msgstr ""
15220
15221 # type: =head2
15222 #: ../src/guestfs-actions.pod:6582
15223 msgid "guestfs_write_file"
15224 msgstr ""
15225
15226 # type: verbatim
15227 #: ../src/guestfs-actions.pod:6584
15228 #, no-wrap
15229 msgid ""
15230 " int\n"
15231 " guestfs_write_file (guestfs_h *g,\n"
15232 "                     const char *path,\n"
15233 "                     const char *content,\n"
15234 "                     int size);\n"
15235 "\n"
15236 msgstr ""
15237
15238 # type: textblock
15239 #: ../src/guestfs-actions.pod:6590 ../fish/guestfish-actions.pod:4349
15240 msgid ""
15241 "This call creates a file called C<path>.  The contents of the file is the "
15242 "string C<content> (which can contain any 8 bit data), with length C<size>."
15243 msgstr ""
15244
15245 # type: textblock
15246 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4353
15247 msgid ""
15248 "As a special case, if C<size> is C<0> then the length is calculated using "
15249 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15250 msgstr ""
15251
15252 # type: textblock
15253 #: ../src/guestfs-actions.pod:6598 ../fish/guestfish-actions.pod:4357
15254 msgid ""
15255 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15256 "I<not> work, even if the length is specified."
15257 msgstr ""
15258
15259 # type: textblock
15260 #: ../src/guestfs-actions.pod:6606 ../fish/guestfish-actions.pod:4363
15261 msgid ""
15262 "This function is deprecated.  In new code, use the C<write> call instead."
15263 msgstr ""
15264
15265 # type: =head2
15266 #: ../src/guestfs-actions.pod:6615
15267 msgid "guestfs_zegrep"
15268 msgstr ""
15269
15270 # type: verbatim
15271 #: ../src/guestfs-actions.pod:6617
15272 #, no-wrap
15273 msgid ""
15274 " char **\n"
15275 " guestfs_zegrep (guestfs_h *g,\n"
15276 "                 const char *regex,\n"
15277 "                 const char *path);\n"
15278 "\n"
15279 msgstr ""
15280
15281 # type: textblock
15282 #: ../src/guestfs-actions.pod:6622 ../fish/guestfish-actions.pod:4374
15283 msgid ""
15284 "This calls the external C<zegrep> program and returns the matching lines."
15285 msgstr ""
15286
15287 # type: =head2
15288 #: ../src/guestfs-actions.pod:6634
15289 msgid "guestfs_zegrepi"
15290 msgstr ""
15291
15292 # type: verbatim
15293 #: ../src/guestfs-actions.pod:6636
15294 #, no-wrap
15295 msgid ""
15296 " char **\n"
15297 " guestfs_zegrepi (guestfs_h *g,\n"
15298 "                  const char *regex,\n"
15299 "                  const char *path);\n"
15300 "\n"
15301 msgstr ""
15302
15303 # type: textblock
15304 #: ../src/guestfs-actions.pod:6641 ../fish/guestfish-actions.pod:4384
15305 msgid ""
15306 "This calls the external C<zegrep -i> program and returns the matching lines."
15307 msgstr ""
15308
15309 # type: =head2
15310 #: ../src/guestfs-actions.pod:6653
15311 msgid "guestfs_zero"
15312 msgstr ""
15313
15314 # type: verbatim
15315 #: ../src/guestfs-actions.pod:6655
15316 #, no-wrap
15317 msgid ""
15318 " int\n"
15319 " guestfs_zero (guestfs_h *g,\n"
15320 "               const char *device);\n"
15321 "\n"
15322 msgstr ""
15323
15324 # type: textblock
15325 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4394
15326 msgid "This command writes zeroes over the first few blocks of C<device>."
15327 msgstr ""
15328
15329 # type: textblock
15330 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4396
15331 msgid ""
15332 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15333 "securely wipe the device).  It should be sufficient to remove any partition "
15334 "tables, filesystem superblocks and so on."
15335 msgstr ""
15336
15337 # type: textblock
15338 #: ../src/guestfs-actions.pod:6665
15339 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15340 msgstr ""
15341
15342 # type: =head2
15343 #: ../src/guestfs-actions.pod:6676
15344 msgid "guestfs_zero_device"
15345 msgstr ""
15346
15347 # type: verbatim
15348 #: ../src/guestfs-actions.pod:6678
15349 #, no-wrap
15350 msgid ""
15351 " int\n"
15352 " guestfs_zero_device (guestfs_h *g,\n"
15353 "                      const char *device);\n"
15354 "\n"
15355 msgstr ""
15356
15357 # type: textblock
15358 #: ../src/guestfs-actions.pod:6682
15359 msgid ""
15360 "This command writes zeroes over the entire C<device>.  Compare with "
15361 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15362 msgstr ""
15363
15364 # type: textblock
15365 #: ../src/guestfs-actions.pod:6696
15366 msgid "(Added in 1.3.1)"
15367 msgstr ""
15368
15369 # type: =head2
15370 #: ../src/guestfs-actions.pod:6698
15371 msgid "guestfs_zerofree"
15372 msgstr ""
15373
15374 # type: verbatim
15375 #: ../src/guestfs-actions.pod:6700
15376 #, no-wrap
15377 msgid ""
15378 " int\n"
15379 " guestfs_zerofree (guestfs_h *g,\n"
15380 "                   const char *device);\n"
15381 "\n"
15382 msgstr ""
15383
15384 # type: textblock
15385 #: ../src/guestfs-actions.pod:6704 ../fish/guestfish-actions.pod:4417
15386 msgid ""
15387 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15388 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15389 "possible to compress the filesystem more effectively."
15390 msgstr ""
15391
15392 # type: textblock
15393 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4422
15394 msgid "You should B<not> run this program if the filesystem is mounted."
15395 msgstr ""
15396
15397 # type: textblock
15398 #: ../src/guestfs-actions.pod:6712 ../fish/guestfish-actions.pod:4425
15399 msgid ""
15400 "It is possible that using this program can damage the filesystem or data on "
15401 "the filesystem."
15402 msgstr ""
15403
15404 # type: =head2
15405 #: ../src/guestfs-actions.pod:6719
15406 msgid "guestfs_zfgrep"
15407 msgstr ""
15408
15409 # type: verbatim
15410 #: ../src/guestfs-actions.pod:6721
15411 #, no-wrap
15412 msgid ""
15413 " char **\n"
15414 " guestfs_zfgrep (guestfs_h *g,\n"
15415 "                 const char *pattern,\n"
15416 "                 const char *path);\n"
15417 "\n"
15418 msgstr ""
15419
15420 # type: textblock
15421 #: ../src/guestfs-actions.pod:6726 ../fish/guestfish-actions.pod:4432
15422 msgid ""
15423 "This calls the external C<zfgrep> program and returns the matching lines."
15424 msgstr ""
15425
15426 # type: =head2
15427 #: ../src/guestfs-actions.pod:6738
15428 msgid "guestfs_zfgrepi"
15429 msgstr ""
15430
15431 # type: verbatim
15432 #: ../src/guestfs-actions.pod:6740
15433 #, no-wrap
15434 msgid ""
15435 " char **\n"
15436 " guestfs_zfgrepi (guestfs_h *g,\n"
15437 "                  const char *pattern,\n"
15438 "                  const char *path);\n"
15439 "\n"
15440 msgstr ""
15441
15442 # type: textblock
15443 #: ../src/guestfs-actions.pod:6745 ../fish/guestfish-actions.pod:4442
15444 msgid ""
15445 "This calls the external C<zfgrep -i> program and returns the matching lines."
15446 msgstr ""
15447
15448 # type: =head2
15449 #: ../src/guestfs-actions.pod:6757
15450 msgid "guestfs_zfile"
15451 msgstr ""
15452
15453 # type: verbatim
15454 #: ../src/guestfs-actions.pod:6759
15455 #, no-wrap
15456 msgid ""
15457 " char *\n"
15458 " guestfs_zfile (guestfs_h *g,\n"
15459 "                const char *meth,\n"
15460 "                const char *path);\n"
15461 "\n"
15462 msgstr ""
15463
15464 # type: textblock
15465 #: ../src/guestfs-actions.pod:6764 ../fish/guestfish-actions.pod:4452
15466 msgid ""
15467 "This command runs C<file> after first decompressing C<path> using C<method>."
15468 msgstr ""
15469
15470 # type: textblock
15471 #: ../src/guestfs-actions.pod:6767 ../fish/guestfish-actions.pod:4455
15472 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15473 msgstr ""
15474
15475 # type: textblock
15476 #: ../src/guestfs-actions.pod:6769
15477 msgid ""
15478 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15479 "files."
15480 msgstr ""
15481
15482 # type: textblock
15483 #: ../src/guestfs-actions.pod:6775 ../fish/guestfish-actions.pod:4460
15484 msgid ""
15485 "This function is deprecated.  In new code, use the C<file> call instead."
15486 msgstr ""
15487
15488 # type: =head2
15489 #: ../src/guestfs-actions.pod:6784
15490 msgid "guestfs_zgrep"
15491 msgstr ""
15492
15493 # type: verbatim
15494 #: ../src/guestfs-actions.pod:6786
15495 #, no-wrap
15496 msgid ""
15497 " char **\n"
15498 " guestfs_zgrep (guestfs_h *g,\n"
15499 "                const char *regex,\n"
15500 "                const char *path);\n"
15501 "\n"
15502 msgstr ""
15503
15504 # type: textblock
15505 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4471
15506 msgid ""
15507 "This calls the external C<zgrep> program and returns the matching lines."
15508 msgstr ""
15509
15510 # type: =head2
15511 #: ../src/guestfs-actions.pod:6803
15512 msgid "guestfs_zgrepi"
15513 msgstr ""
15514
15515 # type: verbatim
15516 #: ../src/guestfs-actions.pod:6805
15517 #, no-wrap
15518 msgid ""
15519 " char **\n"
15520 " guestfs_zgrepi (guestfs_h *g,\n"
15521 "                 const char *regex,\n"
15522 "                 const char *path);\n"
15523 "\n"
15524 msgstr ""
15525
15526 # type: textblock
15527 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4481
15528 msgid ""
15529 "This calls the external C<zgrep -i> program and returns the matching lines."
15530 msgstr ""
15531
15532 # type: =item
15533 #: ../src/guestfs-availability.pod:3
15534 msgid "B<augeas>"
15535 msgstr ""
15536
15537 # type: textblock
15538 #: ../src/guestfs-availability.pod:5
15539 msgid ""
15540 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
15541 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
15542 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
15543 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
15544 "L</guestfs_aug_save> L</guestfs_aug_set>"
15545 msgstr ""
15546
15547 # type: =item
15548 #: ../src/guestfs-availability.pod:21
15549 msgid "B<inotify>"
15550 msgstr ""
15551
15552 # type: textblock
15553 #: ../src/guestfs-availability.pod:23
15554 msgid ""
15555 "The following functions: L</guestfs_inotify_add_watch> L</"
15556 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
15557 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15558 msgstr ""
15559
15560 # type: =item
15561 #: ../src/guestfs-availability.pod:31
15562 msgid "B<linuxfsuuid>"
15563 msgstr ""
15564
15565 # type: textblock
15566 #: ../src/guestfs-availability.pod:33
15567 msgid ""
15568 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
15569 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15570 msgstr ""
15571
15572 # type: =item
15573 #: ../src/guestfs-availability.pod:40
15574 msgid "B<linuxmodules>"
15575 msgstr ""
15576
15577 # type: textblock
15578 #: ../src/guestfs-availability.pod:42
15579 msgid "The following functions: L</guestfs_modprobe>"
15580 msgstr ""
15581
15582 # type: =item
15583 #: ../src/guestfs-availability.pod:45
15584 msgid "B<linuxxattrs>"
15585 msgstr ""
15586
15587 # type: textblock
15588 #: ../src/guestfs-availability.pod:47
15589 msgid ""
15590 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
15591 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
15592 "guestfs_removexattr> L</guestfs_setxattr>"
15593 msgstr ""
15594
15595 # type: =item
15596 #: ../src/guestfs-availability.pod:56
15597 msgid "B<luks>"
15598 msgstr ""
15599
15600 # type: textblock
15601 #: ../src/guestfs-availability.pod:58
15602 msgid ""
15603 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
15604 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
15605 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15606 msgstr ""
15607
15608 # type: =item
15609 #: ../src/guestfs-availability.pod:67
15610 msgid "B<lvm2>"
15611 msgstr ""
15612
15613 # type: textblock
15614 #: ../src/guestfs-availability.pod:69
15615 msgid ""
15616 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
15617 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
15618 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
15619 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
15620 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
15621 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
15622 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
15623 msgstr ""
15624
15625 # type: =item
15626 #: ../src/guestfs-availability.pod:92
15627 msgid "B<mknod>"
15628 msgstr ""
15629
15630 # type: textblock
15631 #: ../src/guestfs-availability.pod:94
15632 msgid ""
15633 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
15634 "guestfs_mknod_b> L</guestfs_mknod_c>"
15635 msgstr ""
15636
15637 # type: =item
15638 #: ../src/guestfs-availability.pod:100
15639 msgid "B<ntfs3g>"
15640 msgstr ""
15641
15642 # type: textblock
15643 #: ../src/guestfs-availability.pod:102
15644 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15645 msgstr ""
15646
15647 # type: =item
15648 #: ../src/guestfs-availability.pod:105
15649 msgid "B<ntfsprogs>"
15650 msgstr ""
15651
15652 # type: textblock
15653 #: ../src/guestfs-availability.pod:107
15654 msgid ""
15655 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15656 msgstr ""
15657
15658 # type: =item
15659 #: ../src/guestfs-availability.pod:111
15660 msgid "B<realpath>"
15661 msgstr ""
15662
15663 # type: textblock
15664 #: ../src/guestfs-availability.pod:113
15665 msgid "The following functions: L</guestfs_realpath>"
15666 msgstr ""
15667
15668 # type: =item
15669 #: ../src/guestfs-availability.pod:116
15670 msgid "B<scrub>"
15671 msgstr ""
15672
15673 # type: textblock
15674 #: ../src/guestfs-availability.pod:118
15675 msgid ""
15676 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
15677 "guestfs_scrub_freespace>"
15678 msgstr ""
15679
15680 # type: =item
15681 #: ../src/guestfs-availability.pod:123
15682 msgid "B<selinux>"
15683 msgstr ""
15684
15685 # type: textblock
15686 #: ../src/guestfs-availability.pod:125
15687 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15688 msgstr ""
15689
15690 # type: =item
15691 #: ../src/guestfs-availability.pod:129
15692 msgid "B<xz>"
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../src/guestfs-availability.pod:131
15697 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15698 msgstr ""
15699
15700 # type: =item
15701 #: ../src/guestfs-availability.pod:135
15702 msgid "B<zerofree>"
15703 msgstr ""
15704
15705 # type: textblock
15706 #: ../src/guestfs-availability.pod:137
15707 msgid "The following functions: L</guestfs_zerofree>"
15708 msgstr ""
15709
15710 # type: =head2
15711 #: ../src/guestfs-structs.pod:1
15712 msgid "guestfs_int_bool"
15713 msgstr ""
15714
15715 # type: verbatim
15716 #: ../src/guestfs-structs.pod:3
15717 #, no-wrap
15718 msgid ""
15719 " struct guestfs_int_bool {\n"
15720 "   int32_t i;\n"
15721 "   int32_t b;\n"
15722 " };\n"
15723 " \n"
15724 msgstr ""
15725
15726 # type: verbatim
15727 #: ../src/guestfs-structs.pod:8
15728 #, no-wrap
15729 msgid ""
15730 " struct guestfs_int_bool_list {\n"
15731 "   uint32_t len; /* Number of elements in list. */\n"
15732 "   struct guestfs_int_bool *val; /* Elements. */\n"
15733 " };\n"
15734 " \n"
15735 msgstr ""
15736
15737 # type: verbatim
15738 #: ../src/guestfs-structs.pod:13
15739 #, no-wrap
15740 msgid ""
15741 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15742 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15743 "\n"
15744 msgstr ""
15745
15746 # type: =head2
15747 #: ../src/guestfs-structs.pod:16
15748 msgid "guestfs_lvm_pv"
15749 msgstr ""
15750
15751 # type: verbatim
15752 #: ../src/guestfs-structs.pod:18
15753 #, no-wrap
15754 msgid ""
15755 " struct guestfs_lvm_pv {\n"
15756 "   char *pv_name;\n"
15757 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15758 "   char pv_uuid[32];\n"
15759 "   char *pv_fmt;\n"
15760 "   uint64_t pv_size;\n"
15761 "   uint64_t dev_size;\n"
15762 "   uint64_t pv_free;\n"
15763 "   uint64_t pv_used;\n"
15764 "   char *pv_attr;\n"
15765 "   int64_t pv_pe_count;\n"
15766 "   int64_t pv_pe_alloc_count;\n"
15767 "   char *pv_tags;\n"
15768 "   uint64_t pe_start;\n"
15769 "   int64_t pv_mda_count;\n"
15770 "   uint64_t pv_mda_free;\n"
15771 " };\n"
15772 " \n"
15773 msgstr ""
15774
15775 # type: verbatim
15776 #: ../src/guestfs-structs.pod:36
15777 #, no-wrap
15778 msgid ""
15779 " struct guestfs_lvm_pv_list {\n"
15780 "   uint32_t len; /* Number of elements in list. */\n"
15781 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15782 " };\n"
15783 " \n"
15784 msgstr ""
15785
15786 # type: verbatim
15787 #: ../src/guestfs-structs.pod:41
15788 #, no-wrap
15789 msgid ""
15790 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15791 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15792 "\n"
15793 msgstr ""
15794
15795 # type: =head2
15796 #: ../src/guestfs-structs.pod:44
15797 msgid "guestfs_lvm_vg"
15798 msgstr ""
15799
15800 # type: verbatim
15801 #: ../src/guestfs-structs.pod:46
15802 #, no-wrap
15803 msgid ""
15804 " struct guestfs_lvm_vg {\n"
15805 "   char *vg_name;\n"
15806 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15807 "   char vg_uuid[32];\n"
15808 "   char *vg_fmt;\n"
15809 "   char *vg_attr;\n"
15810 "   uint64_t vg_size;\n"
15811 "   uint64_t vg_free;\n"
15812 "   char *vg_sysid;\n"
15813 "   uint64_t vg_extent_size;\n"
15814 "   int64_t vg_extent_count;\n"
15815 "   int64_t vg_free_count;\n"
15816 "   int64_t max_lv;\n"
15817 "   int64_t max_pv;\n"
15818 "   int64_t pv_count;\n"
15819 "   int64_t lv_count;\n"
15820 "   int64_t snap_count;\n"
15821 "   int64_t vg_seqno;\n"
15822 "   char *vg_tags;\n"
15823 "   int64_t vg_mda_count;\n"
15824 "   uint64_t vg_mda_free;\n"
15825 " };\n"
15826 " \n"
15827 msgstr ""
15828
15829 # type: verbatim
15830 #: ../src/guestfs-structs.pod:69
15831 #, no-wrap
15832 msgid ""
15833 " struct guestfs_lvm_vg_list {\n"
15834 "   uint32_t len; /* Number of elements in list. */\n"
15835 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15836 " };\n"
15837 " \n"
15838 msgstr ""
15839
15840 # type: verbatim
15841 #: ../src/guestfs-structs.pod:74
15842 #, no-wrap
15843 msgid ""
15844 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15845 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15846 "\n"
15847 msgstr ""
15848
15849 # type: =head2
15850 #: ../src/guestfs-structs.pod:77
15851 msgid "guestfs_lvm_lv"
15852 msgstr ""
15853
15854 # type: verbatim
15855 #: ../src/guestfs-structs.pod:79
15856 #, no-wrap
15857 msgid ""
15858 " struct guestfs_lvm_lv {\n"
15859 "   char *lv_name;\n"
15860 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15861 "   char lv_uuid[32];\n"
15862 "   char *lv_attr;\n"
15863 "   int64_t lv_major;\n"
15864 "   int64_t lv_minor;\n"
15865 "   int64_t lv_kernel_major;\n"
15866 "   int64_t lv_kernel_minor;\n"
15867 "   uint64_t lv_size;\n"
15868 "   int64_t seg_count;\n"
15869 "   char *origin;\n"
15870 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15871 "   float snap_percent;\n"
15872 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15873 "   float copy_percent;\n"
15874 "   char *move_pv;\n"
15875 "   char *lv_tags;\n"
15876 "   char *mirror_log;\n"
15877 "   char *modules;\n"
15878 " };\n"
15879 " \n"
15880 msgstr ""
15881
15882 # type: verbatim
15883 #: ../src/guestfs-structs.pod:101
15884 #, no-wrap
15885 msgid ""
15886 " struct guestfs_lvm_lv_list {\n"
15887 "   uint32_t len; /* Number of elements in list. */\n"
15888 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15889 " };\n"
15890 " \n"
15891 msgstr ""
15892
15893 # type: verbatim
15894 #: ../src/guestfs-structs.pod:106
15895 #, no-wrap
15896 msgid ""
15897 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15898 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15899 "\n"
15900 msgstr ""
15901
15902 # type: verbatim
15903 #: ../src/guestfs-structs.pod:111
15904 #, no-wrap
15905 msgid ""
15906 " struct guestfs_stat {\n"
15907 "   int64_t dev;\n"
15908 "   int64_t ino;\n"
15909 "   int64_t mode;\n"
15910 "   int64_t nlink;\n"
15911 "   int64_t uid;\n"
15912 "   int64_t gid;\n"
15913 "   int64_t rdev;\n"
15914 "   int64_t size;\n"
15915 "   int64_t blksize;\n"
15916 "   int64_t blocks;\n"
15917 "   int64_t atime;\n"
15918 "   int64_t mtime;\n"
15919 "   int64_t ctime;\n"
15920 " };\n"
15921 " \n"
15922 msgstr ""
15923
15924 # type: verbatim
15925 #: ../src/guestfs-structs.pod:127
15926 #, no-wrap
15927 msgid ""
15928 " struct guestfs_stat_list {\n"
15929 "   uint32_t len; /* Number of elements in list. */\n"
15930 "   struct guestfs_stat *val; /* Elements. */\n"
15931 " };\n"
15932 " \n"
15933 msgstr ""
15934
15935 # type: verbatim
15936 #: ../src/guestfs-structs.pod:132
15937 #, no-wrap
15938 msgid ""
15939 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15940 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15941 "\n"
15942 msgstr ""
15943
15944 # type: verbatim
15945 #: ../src/guestfs-structs.pod:137
15946 #, no-wrap
15947 msgid ""
15948 " struct guestfs_statvfs {\n"
15949 "   int64_t bsize;\n"
15950 "   int64_t frsize;\n"
15951 "   int64_t blocks;\n"
15952 "   int64_t bfree;\n"
15953 "   int64_t bavail;\n"
15954 "   int64_t files;\n"
15955 "   int64_t ffree;\n"
15956 "   int64_t favail;\n"
15957 "   int64_t fsid;\n"
15958 "   int64_t flag;\n"
15959 "   int64_t namemax;\n"
15960 " };\n"
15961 " \n"
15962 msgstr ""
15963
15964 # type: verbatim
15965 #: ../src/guestfs-structs.pod:151
15966 #, no-wrap
15967 msgid ""
15968 " struct guestfs_statvfs_list {\n"
15969 "   uint32_t len; /* Number of elements in list. */\n"
15970 "   struct guestfs_statvfs *val; /* Elements. */\n"
15971 " };\n"
15972 " \n"
15973 msgstr ""
15974
15975 # type: verbatim
15976 #: ../src/guestfs-structs.pod:156
15977 #, no-wrap
15978 msgid ""
15979 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15980 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15981 "\n"
15982 msgstr ""
15983
15984 # type: =head2
15985 #: ../src/guestfs-structs.pod:159
15986 msgid "guestfs_dirent"
15987 msgstr ""
15988
15989 # type: verbatim
15990 #: ../src/guestfs-structs.pod:161
15991 #, no-wrap
15992 msgid ""
15993 " struct guestfs_dirent {\n"
15994 "   int64_t ino;\n"
15995 "   char ftyp;\n"
15996 "   char *name;\n"
15997 " };\n"
15998 " \n"
15999 msgstr ""
16000
16001 # type: verbatim
16002 #: ../src/guestfs-structs.pod:167
16003 #, no-wrap
16004 msgid ""
16005 " struct guestfs_dirent_list {\n"
16006 "   uint32_t len; /* Number of elements in list. */\n"
16007 "   struct guestfs_dirent *val; /* Elements. */\n"
16008 " };\n"
16009 " \n"
16010 msgstr ""
16011
16012 # type: verbatim
16013 #: ../src/guestfs-structs.pod:172
16014 #, no-wrap
16015 msgid ""
16016 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16017 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16018 "\n"
16019 msgstr ""
16020
16021 # type: verbatim
16022 #: ../src/guestfs-structs.pod:177
16023 #, no-wrap
16024 msgid ""
16025 " struct guestfs_version {\n"
16026 "   int64_t major;\n"
16027 "   int64_t minor;\n"
16028 "   int64_t release;\n"
16029 "   char *extra;\n"
16030 " };\n"
16031 " \n"
16032 msgstr ""
16033
16034 # type: verbatim
16035 #: ../src/guestfs-structs.pod:184
16036 #, no-wrap
16037 msgid ""
16038 " struct guestfs_version_list {\n"
16039 "   uint32_t len; /* Number of elements in list. */\n"
16040 "   struct guestfs_version *val; /* Elements. */\n"
16041 " };\n"
16042 " \n"
16043 msgstr ""
16044
16045 # type: verbatim
16046 #: ../src/guestfs-structs.pod:189
16047 #, no-wrap
16048 msgid ""
16049 " void guestfs_free_version (struct guestfs_free_version *);\n"
16050 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16051 "\n"
16052 msgstr ""
16053
16054 # type: =head2
16055 #: ../src/guestfs-structs.pod:192
16056 msgid "guestfs_xattr"
16057 msgstr ""
16058
16059 # type: verbatim
16060 #: ../src/guestfs-structs.pod:194
16061 #, no-wrap
16062 msgid ""
16063 " struct guestfs_xattr {\n"
16064 "   char *attrname;\n"
16065 "   /* The next two fields describe a byte array. */\n"
16066 "   uint32_t attrval_len;\n"
16067 "   char *attrval;\n"
16068 " };\n"
16069 " \n"
16070 msgstr ""
16071
16072 # type: verbatim
16073 #: ../src/guestfs-structs.pod:201
16074 #, no-wrap
16075 msgid ""
16076 " struct guestfs_xattr_list {\n"
16077 "   uint32_t len; /* Number of elements in list. */\n"
16078 "   struct guestfs_xattr *val; /* Elements. */\n"
16079 " };\n"
16080 " \n"
16081 msgstr ""
16082
16083 # type: verbatim
16084 #: ../src/guestfs-structs.pod:206
16085 #, no-wrap
16086 msgid ""
16087 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16088 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16089 "\n"
16090 msgstr ""
16091
16092 # type: =head2
16093 #: ../src/guestfs-structs.pod:209
16094 msgid "guestfs_inotify_event"
16095 msgstr ""
16096
16097 # type: verbatim
16098 #: ../src/guestfs-structs.pod:211
16099 #, no-wrap
16100 msgid ""
16101 " struct guestfs_inotify_event {\n"
16102 "   int64_t in_wd;\n"
16103 "   uint32_t in_mask;\n"
16104 "   uint32_t in_cookie;\n"
16105 "   char *in_name;\n"
16106 " };\n"
16107 " \n"
16108 msgstr ""
16109
16110 # type: verbatim
16111 #: ../src/guestfs-structs.pod:218
16112 #, no-wrap
16113 msgid ""
16114 " struct guestfs_inotify_event_list {\n"
16115 "   uint32_t len; /* Number of elements in list. */\n"
16116 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16117 " };\n"
16118 " \n"
16119 msgstr ""
16120
16121 # type: verbatim
16122 #: ../src/guestfs-structs.pod:223
16123 #, no-wrap
16124 msgid ""
16125 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16126 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16127 "\n"
16128 msgstr ""
16129
16130 # type: =head2
16131 #: ../src/guestfs-structs.pod:226
16132 msgid "guestfs_partition"
16133 msgstr ""
16134
16135 # type: verbatim
16136 #: ../src/guestfs-structs.pod:228
16137 #, no-wrap
16138 msgid ""
16139 " struct guestfs_partition {\n"
16140 "   int32_t part_num;\n"
16141 "   uint64_t part_start;\n"
16142 "   uint64_t part_end;\n"
16143 "   uint64_t part_size;\n"
16144 " };\n"
16145 " \n"
16146 msgstr ""
16147
16148 # type: verbatim
16149 #: ../src/guestfs-structs.pod:235
16150 #, no-wrap
16151 msgid ""
16152 " struct guestfs_partition_list {\n"
16153 "   uint32_t len; /* Number of elements in list. */\n"
16154 "   struct guestfs_partition *val; /* Elements. */\n"
16155 " };\n"
16156 " \n"
16157 msgstr ""
16158
16159 # type: verbatim
16160 #: ../src/guestfs-structs.pod:240
16161 #, no-wrap
16162 msgid ""
16163 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16164 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16165 "\n"
16166 msgstr ""
16167
16168 # type: textblock
16169 #: ../fish/guestfish.pod:5
16170 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16171 msgstr ""
16172
16173 # type: verbatim
16174 #: ../fish/guestfish.pod:9
16175 #, no-wrap
16176 msgid ""
16177 " guestfish [--options] [commands]\n"
16178 "\n"
16179 msgstr ""
16180
16181 # type: verbatim
16182 #: ../fish/guestfish.pod:11
16183 #, no-wrap
16184 msgid ""
16185 " guestfish\n"
16186 "\n"
16187 msgstr ""
16188
16189 # type: verbatim
16190 #: ../fish/guestfish.pod:13
16191 #, no-wrap
16192 msgid ""
16193 " guestfish [--ro|--rw] -a disk.img\n"
16194 "\n"
16195 msgstr ""
16196
16197 # type: verbatim
16198 #: ../fish/guestfish.pod:15
16199 #, no-wrap
16200 msgid ""
16201 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16202 "\n"
16203 msgstr ""
16204
16205 # type: verbatim
16206 #: ../fish/guestfish.pod:17
16207 #, no-wrap
16208 msgid ""
16209 " guestfish -d libvirt-domain\n"
16210 "\n"
16211 msgstr ""
16212
16213 # type: verbatim
16214 #: ../fish/guestfish.pod:19
16215 #, no-wrap
16216 msgid ""
16217 " guestfish [--ro|--rw] -a disk.img -i\n"
16218 "\n"
16219 msgstr ""
16220
16221 # type: verbatim
16222 #: ../fish/guestfish.pod:21
16223 #, no-wrap
16224 msgid ""
16225 " guestfish -d libvirt-domain -i\n"
16226 "\n"
16227 msgstr ""
16228
16229 # type: =head1
16230 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16231 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16232 #: ../tools/virt-rescue.pl:41
16233 msgid "WARNING"
16234 msgstr ""
16235
16236 # type: textblock
16237 #: ../fish/guestfish.pod:25
16238 msgid ""
16239 "Using guestfish in read/write mode on live virtual machines can be "
16240 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16241 "option to use guestfish safely if the disk image or virtual machine might be "
16242 "live."
16243 msgstr ""
16244
16245 # type: textblock
16246 #: ../fish/guestfish.pod:32
16247 msgid ""
16248 "Guestfish is a shell and command-line tool for examining and modifying "
16249 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16250 "functionality of the guestfs API, see L<guestfs(3)>."
16251 msgstr ""
16252
16253 # type: textblock
16254 #: ../fish/guestfish.pod:36
16255 msgid ""
16256 "Guestfish gives you structured access to the libguestfs API, from shell "
16257 "scripts or the command line or interactively.  If you want to rescue a "
16258 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16259 "command."
16260 msgstr ""
16261
16262 # type: =head1
16263 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846
16264 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16265 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
16266 msgid "EXAMPLES"
16267 msgstr ""
16268
16269 # type: =head2
16270 #: ../fish/guestfish.pod:43
16271 msgid "As an interactive shell"
16272 msgstr ""
16273
16274 # type: verbatim
16275 #: ../fish/guestfish.pod:45
16276 #, no-wrap
16277 msgid ""
16278 " $ guestfish\n"
16279 " \n"
16280 msgstr ""
16281
16282 # type: verbatim
16283 #: ../fish/guestfish.pod:47
16284 #, no-wrap
16285 msgid ""
16286 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16287 " editing virtual machine filesystems.\n"
16288 " \n"
16289 msgstr ""
16290
16291 # type: verbatim
16292 #: ../fish/guestfish.pod:50
16293 #, no-wrap
16294 msgid ""
16295 " Type: 'help' for a list of commands\n"
16296 "       'man' to read the manual\n"
16297 "       'quit' to quit the shell\n"
16298 " \n"
16299 msgstr ""
16300
16301 # type: verbatim
16302 #: ../fish/guestfish.pod:54
16303 #, no-wrap
16304 msgid ""
16305 " ><fs> add-ro disk.img\n"
16306 " ><fs> run\n"
16307 " ><fs> list-filesystems\n"
16308 " /dev/sda1: ext4\n"
16309 " /dev/vg_guest/lv_root: ext4\n"
16310 " /dev/vg_guest/lv_swap: swap\n"
16311 " ><fs> mount /dev/vg_guest/lv_root /\n"
16312 " ><fs> cat /etc/fstab\n"
16313 " # /etc/fstab\n"
16314 " # Created by anaconda\n"
16315 " [...]\n"
16316 " ><fs> exit\n"
16317 "\n"
16318 msgstr ""
16319
16320 # type: =head2
16321 #: ../fish/guestfish.pod:67
16322 msgid "From shell scripts"
16323 msgstr ""
16324
16325 # type: textblock
16326 #: ../fish/guestfish.pod:69
16327 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16328 msgstr ""
16329
16330 # type: verbatim
16331 #: ../fish/guestfish.pod:71
16332 #, no-wrap
16333 msgid ""
16334 " guestfish <<_EOF_\n"
16335 " add disk.img\n"
16336 " run\n"
16337 " mount /dev/vg_guest/lv_root /\n"
16338 " write /etc/motd \"Welcome, new users\"\n"
16339 " _EOF_\n"
16340 "\n"
16341 msgstr ""
16342
16343 # type: textblock
16344 #: ../fish/guestfish.pod:78
16345 msgid "List the LVM logical volumes in a disk image:"
16346 msgstr ""
16347
16348 # type: verbatim
16349 #: ../fish/guestfish.pod:80
16350 #, no-wrap
16351 msgid ""
16352 " guestfish -a disk.img --ro <<_EOF_\n"
16353 " run\n"
16354 " lvs\n"
16355 " _EOF_\n"
16356 "\n"
16357 msgstr ""
16358
16359 # type: textblock
16360 #: ../fish/guestfish.pod:85
16361 msgid "List all the filesystems in a disk image:"
16362 msgstr ""
16363
16364 # type: verbatim
16365 #: ../fish/guestfish.pod:87
16366 #, no-wrap
16367 msgid ""
16368 " guestfish -a disk.img --ro <<_EOF_\n"
16369 " run\n"
16370 " list-filesystems\n"
16371 " _EOF_\n"
16372 "\n"
16373 msgstr ""
16374
16375 # type: =head2
16376 #: ../fish/guestfish.pod:92
16377 msgid "On one command line"
16378 msgstr ""
16379
16380 # type: textblock
16381 #: ../fish/guestfish.pod:94
16382 msgid "Update C</etc/resolv.conf> in a guest:"
16383 msgstr ""
16384
16385 # type: verbatim
16386 #: ../fish/guestfish.pod:96
16387 #, no-wrap
16388 msgid ""
16389 " guestfish \\\n"
16390 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16391 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16392 "\n"
16393 msgstr ""
16394
16395 # type: textblock
16396 #: ../fish/guestfish.pod:100
16397 msgid "Edit C</boot/grub/grub.conf> interactively:"
16398 msgstr ""
16399
16400 # type: verbatim
16401 #: ../fish/guestfish.pod:102
16402 #, no-wrap
16403 msgid ""
16404 " guestfish --rw --add disk.img \\\n"
16405 "   --mount /dev/vg_guest/lv_root \\\n"
16406 "   --mount /dev/sda1:/boot \\\n"
16407 "   edit /boot/grub/grub.conf\n"
16408 "\n"
16409 msgstr ""
16410
16411 # type: =head2
16412 #: ../fish/guestfish.pod:107
16413 msgid "Mount disks automatically"
16414 msgstr ""
16415
16416 # type: textblock
16417 #: ../fish/guestfish.pod:109
16418 msgid ""
16419 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16420 msgstr ""
16421
16422 # type: verbatim
16423 #: ../fish/guestfish.pod:112
16424 #, no-wrap
16425 msgid ""
16426 " guestfish --ro -a disk.img -i cat /etc/group\n"
16427 "\n"
16428 msgstr ""
16429
16430 # type: verbatim
16431 #: ../fish/guestfish.pod:114
16432 #, no-wrap
16433 msgid ""
16434 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16435 "\n"
16436 msgstr ""
16437
16438 # type: textblock
16439 #: ../fish/guestfish.pod:116
16440 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16441 msgstr ""
16442
16443 # type: verbatim
16444 #: ../fish/guestfish.pod:118
16445 #, no-wrap
16446 msgid ""
16447 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16448 "\n"
16449 msgstr ""
16450
16451 # type: =head2
16452 #: ../fish/guestfish.pod:120
16453 msgid "As a script interpreter"
16454 msgstr ""
16455
16456 # type: textblock
16457 #: ../fish/guestfish.pod:122
16458 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16459 msgstr ""
16460
16461 # type: verbatim
16462 #: ../fish/guestfish.pod:124
16463 #, no-wrap
16464 msgid ""
16465 " #!/usr/bin/guestfish -f\n"
16466 " sparse test1.img 100M\n"
16467 " run\n"
16468 " part-disk /dev/sda mbr\n"
16469 " mkfs ext2 /dev/sda1\n"
16470 "\n"
16471 msgstr ""
16472
16473 # type: =head2
16474 #: ../fish/guestfish.pod:130
16475 msgid "Start with a prepared disk"
16476 msgstr ""
16477
16478 # type: textblock
16479 #: ../fish/guestfish.pod:132
16480 msgid ""
16481 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16482 "single ext2-formatted partition:"
16483 msgstr ""
16484
16485 # type: verbatim
16486 #: ../fish/guestfish.pod:135
16487 #, no-wrap
16488 msgid ""
16489 " guestfish -N fs\n"
16490 "\n"
16491 msgstr ""
16492
16493 # type: textblock
16494 #: ../fish/guestfish.pod:137
16495 msgid "To list what is available do:"
16496 msgstr ""
16497
16498 # type: verbatim
16499 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16500 #, no-wrap
16501 msgid ""
16502 " guestfish -N help | less\n"
16503 "\n"
16504 msgstr ""
16505
16506 # type: =head2
16507 #: ../fish/guestfish.pod:141
16508 msgid "Remote control"
16509 msgstr ""
16510
16511 # type: verbatim
16512 #: ../fish/guestfish.pod:143
16513 #, no-wrap
16514 msgid ""
16515 " eval \"`guestfish --listen`\"\n"
16516 " guestfish --remote add-ro disk.img\n"
16517 " guestfish --remote run\n"
16518 " guestfish --remote lvs\n"
16519 "\n"
16520 msgstr ""
16521
16522 # type: =head1
16523 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
16524 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
16525 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
16526 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
16527 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79
16528 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
16529 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
16530 msgid "OPTIONS"
16531 msgstr ""
16532
16533 # type: =item
16534 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
16535 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
16536 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
16537 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
16538 #: ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106
16539 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
16540 #: ../tools/virt-list-partitions.pl:59
16541 msgid "B<--help>"
16542 msgstr ""
16543
16544 # type: textblock
16545 #: ../fish/guestfish.pod:154
16546 msgid "Displays general help on options."
16547 msgstr ""
16548
16549 # type: =item
16550 #: ../fish/guestfish.pod:156
16551 msgid "B<-h> | B<--cmd-help>"
16552 msgstr ""
16553
16554 # type: textblock
16555 #: ../fish/guestfish.pod:158
16556 msgid "Lists all available guestfish commands."
16557 msgstr ""
16558
16559 # type: =item
16560 #: ../fish/guestfish.pod:160
16561 msgid "B<-h cmd> | B<--cmd-help cmd>"
16562 msgstr ""
16563
16564 # type: textblock
16565 #: ../fish/guestfish.pod:162
16566 msgid "Displays detailed help on a single command C<cmd>."
16567 msgstr ""
16568
16569 # type: =item
16570 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16571 msgid "B<-a image> | B<--add image>"
16572 msgstr ""
16573
16574 # type: textblock
16575 #: ../fish/guestfish.pod:166
16576 msgid "Add a block device or virtual machine image to the shell."
16577 msgstr ""
16578
16579 # type: textblock
16580 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16581 msgid ""
16582 "The format of the disk image is auto-detected.  To override this and force a "
16583 "particular format use the I<--format=..> option."
16584 msgstr ""
16585
16586 # type: =item
16587 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16588 msgid "B<-c URI> | B<--connect URI>"
16589 msgstr ""
16590
16591 # type: textblock
16592 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16593 msgid ""
16594 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16595 "URI to use.  The default is to use the default libvirt connection."
16596 msgstr ""
16597
16598 # type: =item
16599 #: ../fish/guestfish.pod:177
16600 msgid "B<--csh>"
16601 msgstr ""
16602
16603 # type: textblock
16604 #: ../fish/guestfish.pod:179
16605 msgid ""
16606 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16607 "section L</REMOTE CONTROL AND CSH> below."
16608 msgstr ""
16609
16610 # type: =item
16611 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16612 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16613 msgstr ""
16614
16615 # type: textblock
16616 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16617 msgid ""
16618 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16619 "used, then any libvirt domain can be used.  However in write mode, only "
16620 "libvirt domains which are shut down can be named here."
16621 msgstr ""
16622
16623 # type: =item
16624 #: ../fish/guestfish.pod:188
16625 msgid "B<-D> | B<--no-dest-paths>"
16626 msgstr ""
16627
16628 # type: textblock
16629 #: ../fish/guestfish.pod:190
16630 msgid ""
16631 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16632 "to hit the tab key to complete paths on the guest filesystem, but this "
16633 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16634 "allow this feature to be disabled."
16635 msgstr ""
16636
16637 # type: =item
16638 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16639 msgid "B<--echo-keys>"
16640 msgstr ""
16641
16642 # type: textblock
16643 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16644 msgid ""
16645 "When prompting for keys and passphrases, guestfish normally turns echoing "
16646 "off so you cannot see what you are typing.  If you are not worried about "
16647 "Tempest attacks and there is no one else in the room you can specify this "
16648 "flag to see what you are typing."
16649 msgstr ""
16650
16651 # type: =item
16652 #: ../fish/guestfish.pod:202
16653 msgid "B<-f file> | B<--file file>"
16654 msgstr ""
16655
16656 # type: textblock
16657 #: ../fish/guestfish.pod:204
16658 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16659 msgstr ""
16660
16661 # type: verbatim
16662 #: ../fish/guestfish.pod:207
16663 #, no-wrap
16664 msgid ""
16665 " #!/usr/bin/guestfish -f\n"
16666 "\n"
16667 msgstr ""
16668
16669 # type: =item
16670 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16671 msgid "B<--format=raw|qcow2|..> | B<--format>"
16672 msgstr ""
16673
16674 # type: textblock
16675 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16676 msgid ""
16677 "The default for the I<-a> option is to auto-detect the format of the disk "
16678 "image.  Using this forces the disk format for I<-a> options which follow on "
16679 "the command line.  Using I<--format> with no argument switches back to auto-"
16680 "detection for subsequent I<-a> options."
16681 msgstr ""
16682
16683 # type: textblock
16684 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
16685 #: ../inspector/virt-inspector.pl:549
16686 msgid "For example:"
16687 msgstr ""
16688
16689 # type: verbatim
16690 #: ../fish/guestfish.pod:218
16691 #, no-wrap
16692 msgid ""
16693 " guestfish --format=raw -a disk.img\n"
16694 "\n"
16695 msgstr ""
16696
16697 # type: textblock
16698 #: ../fish/guestfish.pod:220
16699 msgid "forces raw format (no auto-detection) for C<disk.img>."
16700 msgstr ""
16701
16702 # type: verbatim
16703 #: ../fish/guestfish.pod:222
16704 #, no-wrap
16705 msgid ""
16706 " guestfish --format=raw -a disk.img --format -a another.img\n"
16707 "\n"
16708 msgstr ""
16709
16710 # type: textblock
16711 #: ../fish/guestfish.pod:224
16712 msgid ""
16713 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
16714 "detection for C<another.img>."
16715 msgstr ""
16716
16717 # type: textblock
16718 #: ../fish/guestfish.pod:227
16719 msgid ""
16720 "If you have untrusted raw-format guest disk images, you should use this "
16721 "option to specify the disk format.  This avoids a possible security problem "
16722 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16723 msgstr ""
16724
16725 # type: =item
16726 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16727 msgid "B<-i> | B<--inspector>"
16728 msgstr ""
16729
16730 # type: textblock
16731 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16732 msgid ""
16733 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16734 "system and mount filesystems as they would be mounted on the real virtual "
16735 "machine."
16736 msgstr ""
16737
16738 # type: textblock
16739 #: ../fish/guestfish.pod:238
16740 msgid "Typical usage is either:"
16741 msgstr ""
16742
16743 # type: verbatim
16744 #: ../fish/guestfish.pod:240
16745 #, no-wrap
16746 msgid ""
16747 " guestfish -d myguest -i\n"
16748 "\n"
16749 msgstr ""
16750
16751 # type: textblock
16752 #: ../fish/guestfish.pod:242
16753 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16754 msgstr ""
16755
16756 # type: verbatim
16757 #: ../fish/guestfish.pod:244
16758 #, no-wrap
16759 msgid ""
16760 " guestfish --ro -d myguest -i\n"
16761 "\n"
16762 msgstr ""
16763
16764 # type: textblock
16765 #: ../fish/guestfish.pod:246
16766 msgid "(for active domains, readonly), or specify the block device directly:"
16767 msgstr ""
16768
16769 # type: verbatim
16770 #: ../fish/guestfish.pod:248
16771 #, no-wrap
16772 msgid ""
16773 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16774 "\n"
16775 msgstr ""
16776
16777 # type: textblock
16778 #: ../fish/guestfish.pod:250
16779 msgid ""
16780 "Note that the command line syntax changed slightly over older versions of "
16781 "guestfish.  You can still use the old syntax:"
16782 msgstr ""
16783
16784 # type: verbatim
16785 #: ../fish/guestfish.pod:253
16786 #, no-wrap
16787 msgid ""
16788 " guestfish [--ro] -i disk.img\n"
16789 "\n"
16790 msgstr ""
16791
16792 # type: verbatim
16793 #: ../fish/guestfish.pod:255
16794 #, no-wrap
16795 msgid ""
16796 " guestfish [--ro] -i libvirt-domain\n"
16797 "\n"
16798 msgstr ""
16799
16800 # type: =item
16801 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16802 msgid "B<--keys-from-stdin>"
16803 msgstr ""
16804
16805 # type: textblock
16806 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16807 msgid ""
16808 "Read key or passphrase parameters from stdin.  The default is to try to read "
16809 "passphrases from the user by opening C</dev/tty>."
16810 msgstr ""
16811
16812 # type: =item
16813 #: ../fish/guestfish.pod:262
16814 msgid "B<--listen>"
16815 msgstr ""
16816
16817 # type: textblock
16818 #: ../fish/guestfish.pod:264
16819 msgid ""
16820 "Fork into the background and listen for remote commands.  See section L</"
16821 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16822 msgstr ""
16823
16824 # type: =item
16825 #: ../fish/guestfish.pod:267
16826 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16827 msgstr ""
16828
16829 # type: textblock
16830 #: ../fish/guestfish.pod:269
16831 msgid "Mount the named partition or logical volume on the given mountpoint."
16832 msgstr ""
16833
16834 # type: textblock
16835 #: ../fish/guestfish.pod:271
16836 msgid "If the mountpoint is omitted, it defaults to C</>."
16837 msgstr ""
16838
16839 # type: textblock
16840 #: ../fish/guestfish.pod:273
16841 msgid "You have to mount something on C</> before most commands will work."
16842 msgstr ""
16843
16844 # type: textblock
16845 #: ../fish/guestfish.pod:275
16846 msgid ""
16847 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16848 "launched."
16849 msgstr ""
16850
16851 # type: textblock
16852 #: ../fish/guestfish.pod:278
16853 msgid ""
16854 "If you don't know what filesystems a disk image contains, you can either run "
16855 "guestfish without this option, then list the partitions and LVs available "
16856 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
16857 "list-filesystems(1)> program."
16858 msgstr ""
16859
16860 # type: =item
16861 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
16862 msgid "B<-n> | B<--no-sync>"
16863 msgstr ""
16864
16865 # type: textblock
16866 #: ../fish/guestfish.pod:285
16867 msgid ""
16868 "Disable autosync.  This is enabled by default.  See the discussion of "
16869 "autosync in the L<guestfs(3)> manpage."
16870 msgstr ""
16871
16872 # type: =item
16873 #: ../fish/guestfish.pod:288
16874 msgid "B<-N type> | B<--new type> | B<-N help>"
16875 msgstr ""
16876
16877 # type: textblock
16878 #: ../fish/guestfish.pod:290
16879 msgid ""
16880 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16881 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16882 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16883 "IMAGES> below."
16884 msgstr ""
16885
16886 # type: =item
16887 #: ../fish/guestfish.pod:295
16888 msgid "B<--progress-bars>"
16889 msgstr ""
16890
16891 # type: textblock
16892 #: ../fish/guestfish.pod:297
16893 msgid "Enable progress bars, even when guestfish is used non-interactively."
16894 msgstr ""
16895
16896 # type: textblock
16897 #: ../fish/guestfish.pod:299
16898 msgid ""
16899 "Progress bars are enabled by default when guestfish is used as an "
16900 "interactive shell."
16901 msgstr ""
16902
16903 # type: =item
16904 #: ../fish/guestfish.pod:302
16905 msgid "B<--no-progress-bars>"
16906 msgstr ""
16907
16908 # type: textblock
16909 #: ../fish/guestfish.pod:304
16910 msgid "Disable progress bars."
16911 msgstr ""
16912
16913 # type: =item
16914 #: ../fish/guestfish.pod:306
16915 msgid "B<--remote[=pid]>"
16916 msgstr ""
16917
16918 # type: textblock
16919 #: ../fish/guestfish.pod:308
16920 msgid ""
16921 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16922 "CONTROL GUESTFISH OVER A SOCKET> below."
16923 msgstr ""
16924
16925 # type: =item
16926 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
16927 msgid "B<-r> | B<--ro>"
16928 msgstr ""
16929
16930 # type: textblock
16931 #: ../fish/guestfish.pod:313
16932 msgid ""
16933 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16934 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16935 msgstr ""
16936
16937 # type: textblock
16938 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
16939 msgid ""
16940 "The option must always be used if the disk image or virtual machine might be "
16941 "running, and is generally recommended in cases where you don't need write "
16942 "access to the disk."
16943 msgstr ""
16944
16945 # type: textblock
16946 #: ../fish/guestfish.pod:320
16947 msgid ""
16948 "Note that prepared disk images created with I<-N> are not affected by the "
16949 "I<--ro> option."
16950 msgstr ""
16951
16952 # type: textblock
16953 #: ../fish/guestfish.pod:323
16954 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16955 msgstr ""
16956
16957 # type: =item
16958 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208
16959 #: ../tools/virt-rescue.pl:195
16960 msgid "B<--selinux>"
16961 msgstr ""
16962
16963 # type: textblock
16964 #: ../fish/guestfish.pod:327
16965 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16966 msgstr ""
16967
16968 # type: =item
16969 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
16970 msgid "B<-v> | B<--verbose>"
16971 msgstr ""
16972
16973 # type: textblock
16974 #: ../fish/guestfish.pod:331
16975 msgid ""
16976 "Enable very verbose messages.  This is particularly useful if you find a bug."
16977 msgstr ""
16978
16979 # type: =item
16980 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
16981 msgid "B<-V> | B<--version>"
16982 msgstr ""
16983
16984 # type: textblock
16985 #: ../fish/guestfish.pod:336
16986 msgid "Display the guestfish / libguestfs version number and exit."
16987 msgstr ""
16988
16989 # type: =item
16990 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
16991 msgid "B<-w> | B<--rw>"
16992 msgstr ""
16993
16994 # type: textblock
16995 #: ../fish/guestfish.pod:340
16996 msgid ""
16997 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
16998 "WRITE> below."
16999 msgstr ""
17000
17001 # type: =item
17002 #: ../fish/guestfish.pod:343
17003 msgid "B<-x>"
17004 msgstr ""
17005
17006 # type: textblock
17007 #: ../fish/guestfish.pod:345
17008 msgid "Echo each command before executing it."
17009 msgstr ""
17010
17011 # type: =head1
17012 #: ../fish/guestfish.pod:349
17013 msgid "COMMANDS ON COMMAND LINE"
17014 msgstr ""
17015
17016 # type: textblock
17017 #: ../fish/guestfish.pod:351
17018 msgid ""
17019 "Any additional (non-option) arguments are treated as commands to execute."
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:354
17024 msgid ""
17025 "Commands to execute should be separated by a colon (C<:>), where the colon "
17026 "is a separate parameter.  Thus:"
17027 msgstr ""
17028
17029 # type: verbatim
17030 #: ../fish/guestfish.pod:357
17031 #, no-wrap
17032 msgid ""
17033 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17034 "\n"
17035 msgstr ""
17036
17037 # type: textblock
17038 #: ../fish/guestfish.pod:359
17039 msgid ""
17040 "If there are no additional arguments, then we enter a shell, either an "
17041 "interactive shell with a prompt (if the input is a terminal) or a non-"
17042 "interactive shell."
17043 msgstr ""
17044
17045 # type: textblock
17046 #: ../fish/guestfish.pod:363
17047 msgid ""
17048 "In either command line mode or non-interactive shell, the first command that "
17049 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17050 "prompt) if a command fails, you can continue to enter commands."
17051 msgstr ""
17052
17053 # type: =head1
17054 #: ../fish/guestfish.pod:368
17055 msgid "USING launch (OR run)"
17056 msgstr ""
17057
17058 # type: textblock
17059 #: ../fish/guestfish.pod:370
17060 msgid ""
17061 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17062 "then launch it, then mount any disks you need, and finally issue actions/"
17063 "commands.  So the general order of the day is:"
17064 msgstr ""
17065
17066 # type: textblock
17067 #: ../fish/guestfish.pod:378
17068 msgid "add or -a/--add"
17069 msgstr ""
17070
17071 # type: textblock
17072 #: ../fish/guestfish.pod:382
17073 msgid "launch (aka run)"
17074 msgstr ""
17075
17076 # type: textblock
17077 #: ../fish/guestfish.pod:386
17078 msgid "mount or -m/--mount"
17079 msgstr ""
17080
17081 # type: textblock
17082 #: ../fish/guestfish.pod:390
17083 msgid "any other commands"
17084 msgstr ""
17085
17086 # type: textblock
17087 #: ../fish/guestfish.pod:394
17088 msgid ""
17089 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17090 "guest before mounting or performing any other commands."
17091 msgstr ""
17092
17093 # type: textblock
17094 #: ../fish/guestfish.pod:397
17095 msgid ""
17096 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17097 "I<--new> options were given then C<run> is done automatically, simply "
17098 "because guestfish can't perform the action you asked for without doing this."
17099 msgstr ""
17100
17101 # type: =head1
17102 #: ../fish/guestfish.pod:402
17103 msgid "OPENING DISKS FOR READ AND WRITE"
17104 msgstr ""
17105
17106 # type: textblock
17107 #: ../fish/guestfish.pod:404
17108 msgid ""
17109 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17110 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17111 "open disk images read-only or for writing."
17112 msgstr ""
17113
17114 # type: textblock
17115 #: ../fish/guestfish.pod:408
17116 msgid ""
17117 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17118 "disk images supplied on the command line for write.  To open a disk image "
17119 "read-only you have to do I<-a image --ro>."
17120 msgstr ""
17121
17122 # type: textblock
17123 #: ../fish/guestfish.pod:412
17124 msgid ""
17125 "This matters: If you accidentally open a live VM disk image writable then "
17126 "you will cause irreversible disk corruption."
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish.pod:415
17131 msgid ""
17132 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17133 "images will be opened read-only.  You will have to either specify "
17134 "I<guestfish --rw> or change a configuration file in order to get write "
17135 "access for disk images specified by those other command line options."
17136 msgstr ""
17137
17138 # type: textblock
17139 #: ../fish/guestfish.pod:420
17140 msgid ""
17141 "This version of guestfish has a I<--rw> option which does nothing (it is "
17142 "already the default).  However it is highly recommended that you use this "
17143 "option to indicate that guestfish needs write access, and to prepare your "
17144 "scripts for the day when this option will be required for write access."
17145 msgstr ""
17146
17147 # type: textblock
17148 #: ../fish/guestfish.pod:426
17149 msgid ""
17150 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17151 "other libguestfs program apart from guestfish and guestmount."
17152 msgstr ""
17153
17154 # type: =head1
17155 #: ../fish/guestfish.pod:429
17156 msgid "QUOTING"
17157 msgstr ""
17158
17159 # type: textblock
17160 #: ../fish/guestfish.pod:431
17161 msgid ""
17162 "You can quote ordinary parameters using either single or double quotes.  For "
17163 "example:"
17164 msgstr ""
17165
17166 # type: verbatim
17167 #: ../fish/guestfish.pod:434
17168 #, no-wrap
17169 msgid ""
17170 " add \"file with a space.img\"\n"
17171 "\n"
17172 msgstr ""
17173
17174 # type: verbatim
17175 #: ../fish/guestfish.pod:436
17176 #, no-wrap
17177 msgid ""
17178 " rm '/file name'\n"
17179 "\n"
17180 msgstr ""
17181
17182 # type: verbatim
17183 #: ../fish/guestfish.pod:438
17184 #, no-wrap
17185 msgid ""
17186 " rm '/\"'\n"
17187 "\n"
17188 msgstr ""
17189
17190 # type: textblock
17191 #: ../fish/guestfish.pod:440
17192 msgid ""
17193 "A few commands require a list of strings to be passed.  For these, use a "
17194 "whitespace-separated list, enclosed in quotes.  Strings containing "
17195 "whitespace to be passed through must be enclosed in single quotes.  A "
17196 "literal single quote must be escaped with a backslash."
17197 msgstr ""
17198
17199 # type: verbatim
17200 #: ../fish/guestfish.pod:445
17201 #, no-wrap
17202 msgid ""
17203 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17204 " command \"/bin/echo 'foo      bar'\"\n"
17205 " command \"/bin/echo \\'foo\\'\"\n"
17206 "\n"
17207 msgstr ""
17208
17209 # type: =head1
17210 #: ../fish/guestfish.pod:449
17211 msgid "OPTIONAL ARGUMENTS"
17212 msgstr ""
17213
17214 # type: textblock
17215 #: ../fish/guestfish.pod:451
17216 msgid ""
17217 "Some commands take optional arguments.  These arguments appear in this "
17218 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17219 msgstr ""
17220
17221 # type: verbatim
17222 #: ../fish/guestfish.pod:455
17223 #, no-wrap
17224 msgid ""
17225 " add-drive-opts filename\n"
17226 "\n"
17227 msgstr ""
17228
17229 # type: verbatim
17230 #: ../fish/guestfish.pod:457
17231 #, no-wrap
17232 msgid ""
17233 " add-drive-opts filename readonly:true\n"
17234 "\n"
17235 msgstr ""
17236
17237 # type: verbatim
17238 #: ../fish/guestfish.pod:459
17239 #, no-wrap
17240 msgid ""
17241 " add-drive-opts filename format:qcow2 readonly:false\n"
17242 "\n"
17243 msgstr ""
17244
17245 # type: textblock
17246 #: ../fish/guestfish.pod:461
17247 msgid ""
17248 "Each optional argument can appear at most once.  All optional arguments must "
17249 "appear after the required ones."
17250 msgstr ""
17251
17252 # type: =head1
17253 #: ../fish/guestfish.pod:464
17254 msgid "NUMBERS"
17255 msgstr ""
17256
17257 # type: textblock
17258 #: ../fish/guestfish.pod:466
17259 msgid ""
17260 "This section applies to all commands which can take integers as parameters."
17261 msgstr ""
17262
17263 # type: =head2
17264 #: ../fish/guestfish.pod:469
17265 msgid "SIZE SUFFIX"
17266 msgstr ""
17267
17268 # type: textblock
17269 #: ../fish/guestfish.pod:471
17270 msgid ""
17271 "When the command takes a parameter measured in bytes, you can use one of the "
17272 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17273 msgstr ""
17274
17275 # type: =item
17276 #: ../fish/guestfish.pod:477
17277 msgid "B<k> or B<K> or B<KiB>"
17278 msgstr ""
17279
17280 # type: textblock
17281 #: ../fish/guestfish.pod:479
17282 msgid "The size in kilobytes (multiplied by 1024)."
17283 msgstr ""
17284
17285 # type: =item
17286 #: ../fish/guestfish.pod:481
17287 msgid "B<KB>"
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:483
17292 msgid "The size in SI 1000 byte units."
17293 msgstr ""
17294
17295 # type: =item
17296 #: ../fish/guestfish.pod:485
17297 msgid "B<M> or B<MiB>"
17298 msgstr ""
17299
17300 # type: textblock
17301 #: ../fish/guestfish.pod:487
17302 msgid "The size in megabytes (multiplied by 1048576)."
17303 msgstr ""
17304
17305 # type: =item
17306 #: ../fish/guestfish.pod:489
17307 msgid "B<MB>"
17308 msgstr ""
17309
17310 # type: textblock
17311 #: ../fish/guestfish.pod:491
17312 msgid "The size in SI 1000000 byte units."
17313 msgstr ""
17314
17315 # type: =item
17316 #: ../fish/guestfish.pod:493
17317 msgid "B<G> or B<GiB>"
17318 msgstr ""
17319
17320 # type: textblock
17321 #: ../fish/guestfish.pod:495
17322 msgid "The size in gigabytes (multiplied by 2**30)."
17323 msgstr ""
17324
17325 # type: =item
17326 #: ../fish/guestfish.pod:497
17327 msgid "B<GB>"
17328 msgstr ""
17329
17330 # type: textblock
17331 #: ../fish/guestfish.pod:499
17332 msgid "The size in SI 10**9 byte units."
17333 msgstr ""
17334
17335 # type: =item
17336 #: ../fish/guestfish.pod:501
17337 msgid "B<T> or B<TiB>"
17338 msgstr ""
17339
17340 # type: textblock
17341 #: ../fish/guestfish.pod:503
17342 msgid "The size in terabytes (multiplied by 2**40)."
17343 msgstr ""
17344
17345 # type: =item
17346 #: ../fish/guestfish.pod:505
17347 msgid "B<TB>"
17348 msgstr ""
17349
17350 # type: textblock
17351 #: ../fish/guestfish.pod:507
17352 msgid "The size in SI 10**12 byte units."
17353 msgstr ""
17354
17355 # type: =item
17356 #: ../fish/guestfish.pod:509
17357 msgid "B<P> or B<PiB>"
17358 msgstr ""
17359
17360 # type: textblock
17361 #: ../fish/guestfish.pod:511
17362 msgid "The size in petabytes (multiplied by 2**50)."
17363 msgstr ""
17364
17365 # type: =item
17366 #: ../fish/guestfish.pod:513
17367 msgid "B<PB>"
17368 msgstr ""
17369
17370 # type: textblock
17371 #: ../fish/guestfish.pod:515
17372 msgid "The size in SI 10**15 byte units."
17373 msgstr ""
17374
17375 # type: =item
17376 #: ../fish/guestfish.pod:517
17377 msgid "B<E> or B<EiB>"
17378 msgstr ""
17379
17380 # type: textblock
17381 #: ../fish/guestfish.pod:519
17382 msgid "The size in exabytes (multiplied by 2**60)."
17383 msgstr ""
17384
17385 # type: =item
17386 #: ../fish/guestfish.pod:521
17387 msgid "B<EB>"
17388 msgstr ""
17389
17390 # type: textblock
17391 #: ../fish/guestfish.pod:523
17392 msgid "The size in SI 10**18 byte units."
17393 msgstr ""
17394
17395 # type: =item
17396 #: ../fish/guestfish.pod:525
17397 msgid "B<Z> or B<ZiB>"
17398 msgstr ""
17399
17400 # type: textblock
17401 #: ../fish/guestfish.pod:527
17402 msgid "The size in zettabytes (multiplied by 2**70)."
17403 msgstr ""
17404
17405 # type: =item
17406 #: ../fish/guestfish.pod:529
17407 msgid "B<ZB>"
17408 msgstr ""
17409
17410 # type: textblock
17411 #: ../fish/guestfish.pod:531
17412 msgid "The size in SI 10**21 byte units."
17413 msgstr ""
17414
17415 # type: =item
17416 #: ../fish/guestfish.pod:533
17417 msgid "B<Y> or B<YiB>"
17418 msgstr ""
17419
17420 # type: textblock
17421 #: ../fish/guestfish.pod:535
17422 msgid "The size in yottabytes (multiplied by 2**80)."
17423 msgstr ""
17424
17425 # type: =item
17426 #: ../fish/guestfish.pod:537
17427 msgid "B<YB>"
17428 msgstr ""
17429
17430 # type: textblock
17431 #: ../fish/guestfish.pod:539
17432 msgid "The size in SI 10**24 byte units."
17433 msgstr ""
17434
17435 # type: verbatim
17436 #: ../fish/guestfish.pod:545
17437 #, no-wrap
17438 msgid ""
17439 " truncate-size /file 1G\n"
17440 "\n"
17441 msgstr ""
17442
17443 # type: textblock
17444 #: ../fish/guestfish.pod:547
17445 msgid "would truncate the file to 1 gigabyte."
17446 msgstr ""
17447
17448 # type: textblock
17449 #: ../fish/guestfish.pod:549
17450 msgid ""
17451 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17452 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17453 "suffix will probably not do what you expect."
17454 msgstr ""
17455
17456 # type: =head2
17457 #: ../fish/guestfish.pod:553
17458 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17459 msgstr ""
17460
17461 # type: textblock
17462 #: ../fish/guestfish.pod:555
17463 msgid ""
17464 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17465 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17466 msgstr ""
17467
17468 # type: verbatim
17469 #: ../fish/guestfish.pod:558
17470 #, no-wrap
17471 msgid ""
17472 " 1234      decimal number 1234\n"
17473 " 02322     octal number, equivalent to decimal 1234\n"
17474 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17475 "\n"
17476 msgstr ""
17477
17478 # type: textblock
17479 #: ../fish/guestfish.pod:562
17480 msgid ""
17481 "When using the C<chmod> command, you almost always want to specify an octal "
17482 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17483 "L<chmod(1)> program):"
17484 msgstr ""
17485
17486 # type: verbatim
17487 #: ../fish/guestfish.pod:566
17488 #, no-wrap
17489 msgid ""
17490 " chmod 0777 /public  # OK\n"
17491 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17492 "\n"
17493 msgstr ""
17494
17495 # type: textblock
17496 #: ../fish/guestfish.pod:569
17497 msgid ""
17498 "Commands that return numbers usually print them in decimal, but some "
17499 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17500 "octal, preceeded by C<0>)."
17501 msgstr ""
17502
17503 # type: =head1
17504 #: ../fish/guestfish.pod:573
17505 msgid "WILDCARDS AND GLOBBING"
17506 msgstr ""
17507
17508 # type: textblock
17509 #: ../fish/guestfish.pod:575
17510 msgid ""
17511 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17512 "(globbing) by default.  So for example the following will not do what you "
17513 "expect:"
17514 msgstr ""
17515
17516 # type: verbatim
17517 #: ../fish/guestfish.pod:579
17518 #, no-wrap
17519 msgid ""
17520 " rm-rf /home/*\n"
17521 "\n"
17522 msgstr ""
17523
17524 # type: textblock
17525 #: ../fish/guestfish.pod:581
17526 msgid ""
17527 "Assuming you don't have a directory called literally C</home/*> then the "
17528 "above command will return an error."
17529 msgstr ""
17530
17531 # type: textblock
17532 #: ../fish/guestfish.pod:584
17533 msgid "To perform wildcard expansion, use the C<glob> command."
17534 msgstr ""
17535
17536 # type: verbatim
17537 #: ../fish/guestfish.pod:586
17538 #, no-wrap
17539 msgid ""
17540 " glob rm-rf /home/*\n"
17541 "\n"
17542 msgstr ""
17543
17544 # type: textblock
17545 #: ../fish/guestfish.pod:588
17546 msgid ""
17547 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17548 "many times), equivalent to:"
17549 msgstr ""
17550
17551 # type: verbatim
17552 #: ../fish/guestfish.pod:591
17553 #, no-wrap
17554 msgid ""
17555 " rm-rf /home/jim\n"
17556 " rm-rf /home/joe\n"
17557 " rm-rf /home/mary\n"
17558 "\n"
17559 msgstr ""
17560
17561 # type: textblock
17562 #: ../fish/guestfish.pod:595
17563 msgid "C<glob> only works on simple guest paths and not on device names."
17564 msgstr ""
17565
17566 # type: textblock
17567 #: ../fish/guestfish.pod:597
17568 msgid ""
17569 "If you have several parameters, each containing a wildcard, then glob will "
17570 "perform a Cartesian product."
17571 msgstr ""
17572
17573 # type: =head1
17574 #: ../fish/guestfish.pod:600
17575 msgid "COMMENTS"
17576 msgstr ""
17577
17578 # type: textblock
17579 #: ../fish/guestfish.pod:602
17580 msgid ""
17581 "Any line which starts with a I<#> character is treated as a comment and "
17582 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17583 "a command.  For example:"
17584 msgstr ""
17585
17586 # type: verbatim
17587 #: ../fish/guestfish.pod:606
17588 #, no-wrap
17589 msgid ""
17590 " # this is a comment\n"
17591 "         # this is a comment\n"
17592 " foo # NOT a comment\n"
17593 "\n"
17594 msgstr ""
17595
17596 # type: textblock
17597 #: ../fish/guestfish.pod:610
17598 msgid "Blank lines are also ignored."
17599 msgstr ""
17600
17601 # type: =head1
17602 #: ../fish/guestfish.pod:612
17603 msgid "RUNNING COMMANDS LOCALLY"
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish.pod:614
17608 msgid ""
17609 "Any line which starts with a I<!> character is treated as a command sent to "
17610 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17611 msgstr ""
17612
17613 # type: verbatim
17614 #: ../fish/guestfish.pod:618
17615 #, no-wrap
17616 msgid ""
17617 " !mkdir local\n"
17618 " tgz-out /remote local/remote-data.tar.gz\n"
17619 "\n"
17620 msgstr ""
17621
17622 # type: textblock
17623 #: ../fish/guestfish.pod:621
17624 msgid ""
17625 "will create a directory C<local> on the host, and then export the contents "
17626 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17627 "(See C<tgz-out>)."
17628 msgstr ""
17629
17630 # type: textblock
17631 #: ../fish/guestfish.pod:625
17632 msgid ""
17633 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17634 "effect, due to the way that subprocesses work in Unix."
17635 msgstr ""
17636
17637 # type: =head1
17638 #: ../fish/guestfish.pod:628
17639 msgid "PIPES"
17640 msgstr ""
17641
17642 # type: textblock
17643 #: ../fish/guestfish.pod:630
17644 msgid ""
17645 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17646 "command (a guestfish command) to the second command (any host command).  For "
17647 "example:"
17648 msgstr ""
17649
17650 # type: verbatim
17651 #: ../fish/guestfish.pod:634
17652 #, no-wrap
17653 msgid ""
17654 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17655 "\n"
17656 msgstr ""
17657
17658 # type: textblock
17659 #: ../fish/guestfish.pod:636
17660 msgid ""
17661 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17662 "program).  The above command would list all accounts in the guest filesystem "
17663 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17664 msgstr ""
17665
17666 # type: verbatim
17667 #: ../fish/guestfish.pod:641
17668 #, no-wrap
17669 msgid ""
17670 " hexdump /bin/ls | head\n"
17671 " list-devices | tail -1\n"
17672 " tgz-out / - | tar ztf -\n"
17673 "\n"
17674 msgstr ""
17675
17676 # type: textblock
17677 #: ../fish/guestfish.pod:645
17678 msgid ""
17679 "The space before the pipe symbol is required, any space after the pipe "
17680 "symbol is optional.  Everything after the pipe symbol is just passed "
17681 "straight to the host shell, so it can contain redirections, globs and "
17682 "anything else that makes sense on the host side."
17683 msgstr ""
17684
17685 # type: textblock
17686 #: ../fish/guestfish.pod:650
17687 msgid ""
17688 "To use a literal argument which begins with a pipe symbol, you have to quote "
17689 "it, eg:"
17690 msgstr ""
17691
17692 # type: verbatim
17693 #: ../fish/guestfish.pod:653
17694 #, no-wrap
17695 msgid ""
17696 " echo \"|\"\n"
17697 "\n"
17698 msgstr ""
17699
17700 # type: =head1
17701 #: ../fish/guestfish.pod:655
17702 msgid "HOME DIRECTORIES"
17703 msgstr ""
17704
17705 # type: textblock
17706 #: ../fish/guestfish.pod:657
17707 msgid ""
17708 "If a parameter starts with the character C<~> then the tilde may be expanded "
17709 "as a home directory path (either C<~> for the current user's home directory, "
17710 "or C<~user> for another user)."
17711 msgstr ""
17712
17713 # type: textblock
17714 #: ../fish/guestfish.pod:661
17715 msgid ""
17716 "Note that home directory expansion happens for users known I<on the host>, "
17717 "not in the guest filesystem."
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish.pod:664
17722 msgid ""
17723 "To use a literal argument which begins with a tilde, you have to quote it, "
17724 "eg:"
17725 msgstr ""
17726
17727 # type: verbatim
17728 #: ../fish/guestfish.pod:667
17729 #, no-wrap
17730 msgid ""
17731 " echo \"~\"\n"
17732 "\n"
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish.pod:671
17737 msgid ""
17738 "Libguestfs has some support for Linux guests encrypted according to the "
17739 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17740 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17741 "LUKS is supported."
17742 msgstr ""
17743
17744 # type: textblock
17745 #: ../fish/guestfish.pod:676
17746 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17747 msgstr ""
17748
17749 # type: verbatim
17750 #: ../fish/guestfish.pod:678
17751 #, no-wrap
17752 msgid ""
17753 " ><fs> vfs-type /dev/sda2\n"
17754 " crypto_LUKS\n"
17755 "\n"
17756 msgstr ""
17757
17758 # type: textblock
17759 #: ../fish/guestfish.pod:681
17760 msgid ""
17761 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17762 "device called C</dev/mapper/luksdev>."
17763 msgstr ""
17764
17765 # type: verbatim
17766 #: ../fish/guestfish.pod:684
17767 #, no-wrap
17768 msgid ""
17769 " ><fs> luks-open /dev/sda2 luksdev\n"
17770 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17771 "\n"
17772 msgstr ""
17773
17774 # type: textblock
17775 #: ../fish/guestfish.pod:687
17776 msgid ""
17777 "Finally you have to tell LVM to scan for volume groups on the newly created "
17778 "mapper device:"
17779 msgstr ""
17780
17781 # type: verbatim
17782 #: ../fish/guestfish.pod:690
17783 #, no-wrap
17784 msgid ""
17785 " vgscan\n"
17786 " vg-activate-all true\n"
17787 "\n"
17788 msgstr ""
17789
17790 # type: textblock
17791 #: ../fish/guestfish.pod:693
17792 msgid "The logical volume(s) can now be mounted in the usual way."
17793 msgstr ""
17794
17795 # type: textblock
17796 #: ../fish/guestfish.pod:695
17797 msgid ""
17798 "Before closing a LUKS device you must unmount any logical volumes on it and "
17799 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17800 "one.  Then you can close the mapper device:"
17801 msgstr ""
17802
17803 # type: verbatim
17804 #: ../fish/guestfish.pod:699
17805 #, no-wrap
17806 msgid ""
17807 " vg-activate false /dev/VG\n"
17808 " luks-close /dev/mapper/luksdev\n"
17809 "\n"
17810 msgstr ""
17811
17812 # type: =head1
17813 #: ../fish/guestfish.pod:702
17814 msgid "WINDOWS PATHS"
17815 msgstr ""
17816
17817 # type: textblock
17818 #: ../fish/guestfish.pod:704
17819 msgid ""
17820 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17821 "(with some limitations).  The following commands are equivalent:"
17822 msgstr ""
17823
17824 # type: verbatim
17825 #: ../fish/guestfish.pod:707
17826 #, no-wrap
17827 msgid ""
17828 " file /WINDOWS/system32/config/system.LOG\n"
17829 "\n"
17830 msgstr ""
17831
17832 # type: verbatim
17833 #: ../fish/guestfish.pod:709
17834 #, no-wrap
17835 msgid ""
17836 " file win:/windows/system32/config/system.log\n"
17837 "\n"
17838 msgstr ""
17839
17840 # type: verbatim
17841 #: ../fish/guestfish.pod:711
17842 #, no-wrap
17843 msgid ""
17844 " file win:\\windows\\system32\\config\\system.log\n"
17845 "\n"
17846 msgstr ""
17847
17848 # type: verbatim
17849 #: ../fish/guestfish.pod:713
17850 #, no-wrap
17851 msgid ""
17852 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17853 "\n"
17854 msgstr ""
17855
17856 # type: textblock
17857 #: ../fish/guestfish.pod:715
17858 msgid ""
17859 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17860 "handles case insensitivity like Windows would.  This only works in argument "
17861 "positions that expect a path."
17862 msgstr ""
17863
17864 # type: =head1
17865 #: ../fish/guestfish.pod:719
17866 msgid "UPLOADING AND DOWNLOADING FILES"
17867 msgstr ""
17868
17869 # type: textblock
17870 #: ../fish/guestfish.pod:721
17871 msgid ""
17872 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17873 "others which upload from or download to a local file, you can use the "
17874 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17875 msgstr ""
17876
17877 # type: verbatim
17878 #: ../fish/guestfish.pod:725
17879 #, no-wrap
17880 msgid ""
17881 " upload - /foo\n"
17882 "\n"
17883 msgstr ""
17884
17885 # type: textblock
17886 #: ../fish/guestfish.pod:727
17887 msgid ""
17888 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17889 msgstr ""
17890
17891 # type: verbatim
17892 #: ../fish/guestfish.pod:730
17893 #, no-wrap
17894 msgid ""
17895 " tar-out /etc - | tar tf -\n"
17896 "\n"
17897 msgstr ""
17898
17899 # type: textblock
17900 #: ../fish/guestfish.pod:732
17901 msgid ""
17902 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17903 "command (see L</PIPES>)."
17904 msgstr ""
17905
17906 # type: textblock
17907 #: ../fish/guestfish.pod:735
17908 msgid ""
17909 "When using C<-> to read from stdin, the input is read up to the end of "
17910 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17911 "some arbitrary end marker:"
17912 msgstr ""
17913
17914 # type: verbatim
17915 #: ../fish/guestfish.pod:739
17916 #, no-wrap
17917 msgid ""
17918 " upload -<<END /foo\n"
17919 " input line 1\n"
17920 " input line 2\n"
17921 " input line 3\n"
17922 " END\n"
17923 "\n"
17924 msgstr ""
17925
17926 # type: textblock
17927 #: ../fish/guestfish.pod:745
17928 msgid ""
17929 "Any string of characters can be used instead of C<END>.  The end marker must "
17930 "appear on a line of its own, without any preceeding or following characters "
17931 "(not even spaces)."
17932 msgstr ""
17933
17934 # type: textblock
17935 #: ../fish/guestfish.pod:749
17936 msgid ""
17937 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17938 "upload local files (so-called \"FileIn\" parameters in the generator)."
17939 msgstr ""
17940
17941 # type: =head1
17942 #: ../fish/guestfish.pod:752
17943 msgid "EXIT ON ERROR BEHAVIOUR"
17944 msgstr ""
17945
17946 # type: textblock
17947 #: ../fish/guestfish.pod:754
17948 msgid ""
17949 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17950 "taking commands from a human over a tty), and will exit on the first error "
17951 "in non-interactive mode (scripts, commands given on the command line)."
17952 msgstr ""
17953
17954 # type: textblock
17955 #: ../fish/guestfish.pod:759
17956 msgid ""
17957 "If you prefix a command with a I<-> character, then that command will not "
17958 "cause guestfish to exit, even if that (one) command returns an error."
17959 msgstr ""
17960
17961 # type: =head1
17962 #: ../fish/guestfish.pod:763
17963 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17964 msgstr ""
17965
17966 # type: textblock
17967 #: ../fish/guestfish.pod:765
17968 msgid ""
17969 "Guestfish can be remote-controlled over a socket.  This is useful "
17970 "particularly in shell scripts where you want to make several different "
17971 "changes to a filesystem, but you don't want the overhead of starting up a "
17972 "guestfish process each time."
17973 msgstr ""
17974
17975 # type: textblock
17976 #: ../fish/guestfish.pod:770
17977 msgid "Start a guestfish server process using:"
17978 msgstr ""
17979
17980 # type: verbatim
17981 #: ../fish/guestfish.pod:772
17982 #, no-wrap
17983 msgid ""
17984 " eval \"`guestfish --listen`\"\n"
17985 "\n"
17986 msgstr ""
17987
17988 # type: textblock
17989 #: ../fish/guestfish.pod:774
17990 msgid "and then send it commands by doing:"
17991 msgstr ""
17992
17993 # type: verbatim
17994 #: ../fish/guestfish.pod:776
17995 #, no-wrap
17996 msgid ""
17997 " guestfish --remote cmd [...]\n"
17998 "\n"
17999 msgstr ""
18000
18001 # type: textblock
18002 #: ../fish/guestfish.pod:778
18003 msgid "To cause the server to exit, send it the exit command:"
18004 msgstr ""
18005
18006 # type: verbatim
18007 #: ../fish/guestfish.pod:780
18008 #, no-wrap
18009 msgid ""
18010 " guestfish --remote exit\n"
18011 "\n"
18012 msgstr ""
18013
18014 # type: textblock
18015 #: ../fish/guestfish.pod:782
18016 msgid ""
18017 "Note that the server will normally exit if there is an error in a command.  "
18018 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18019 "BEHAVIOUR>."
18020 msgstr ""
18021
18022 # type: =head2
18023 #: ../fish/guestfish.pod:786
18024 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18025 msgstr ""
18026
18027 # type: textblock
18028 #: ../fish/guestfish.pod:788
18029 msgid ""
18030 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18031 "is how the I<--remote> option knows where to send the commands.  You can "
18032 "have several guestfish listener processes running using:"
18033 msgstr ""
18034
18035 # type: verbatim
18036 #: ../fish/guestfish.pod:792
18037 #, no-wrap
18038 msgid ""
18039 " eval \"`guestfish --listen`\"\n"
18040 " pid1=$GUESTFISH_PID\n"
18041 " eval \"`guestfish --listen`\"\n"
18042 " pid2=$GUESTFISH_PID\n"
18043 " ...\n"
18044 " guestfish --remote=$pid1 cmd\n"
18045 " guestfish --remote=$pid2 cmd\n"
18046 "\n"
18047 msgstr ""
18048
18049 # type: =head2
18050 #: ../fish/guestfish.pod:800
18051 msgid "REMOTE CONTROL AND CSH"
18052 msgstr ""
18053
18054 # type: textblock
18055 #: ../fish/guestfish.pod:802
18056 msgid ""
18057 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18058 "option:"
18059 msgstr ""
18060
18061 # type: verbatim
18062 #: ../fish/guestfish.pod:805
18063 #, no-wrap
18064 msgid ""
18065 " eval \"`guestfish --listen --csh`\"\n"
18066 "\n"
18067 msgstr ""
18068
18069 # type: =head2
18070 #: ../fish/guestfish.pod:807
18071 msgid "REMOTE CONTROL DETAILS"
18072 msgstr ""
18073
18074 # type: textblock
18075 #: ../fish/guestfish.pod:809
18076 msgid ""
18077 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18078 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18079 "and C<$PID> is the process ID of the server."
18080 msgstr ""
18081
18082 # type: textblock
18083 #: ../fish/guestfish.pod:813
18084 msgid "Guestfish client and server versions must match exactly."
18085 msgstr ""
18086
18087 # type: =head1
18088 #: ../fish/guestfish.pod:815
18089 msgid "PREPARED DISK IMAGES"
18090 msgstr ""
18091
18092 # type: textblock
18093 #: ../fish/guestfish.pod:817
18094 msgid ""
18095 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18096 "preformatted disk images that guestfish can make for you to save typing.  "
18097 "This is particularly useful for testing purposes.  This option is used "
18098 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18099 "can be mixed with I<-a>)."
18100 msgstr ""
18101
18102 # type: textblock
18103 #: ../fish/guestfish.pod:823
18104 msgid ""
18105 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18106 "the second and so on.  Existing files in the current directory are "
18107 "I<overwritten>."
18108 msgstr ""
18109
18110 # type: textblock
18111 #: ../fish/guestfish.pod:827
18112 msgid ""
18113 "The type briefly describes how the disk should be sized, partitioned, how "
18114 "filesystem(s) should be created, and how content should be added.  "
18115 "Optionally the type can be followed by extra parameters, separated by C<:> "
18116 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18117 "allocated disk, containing a single partition, with the partition formatted "
18118 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18119 "disk instead."
18120 msgstr ""
18121
18122 # type: textblock
18123 #: ../fish/guestfish.pod:835
18124 msgid "To list the available types and any extra parameters they take, run:"
18125 msgstr ""
18126
18127 # type: textblock
18128 #: ../fish/guestfish.pod:839
18129 msgid ""
18130 "Note that the prepared filesystem is not mounted.  You would usually have to "
18131 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18132 msgstr ""
18133
18134 # type: textblock
18135 #: ../fish/guestfish.pod:843
18136 msgid ""
18137 "If any I<-N> or I<--new> options are given, the guest is automatically "
18138 "launched."
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish.pod:848
18143 msgid "Create a 100MB disk with an ext4-formatted partition:"
18144 msgstr ""
18145
18146 # type: verbatim
18147 #: ../fish/guestfish.pod:850
18148 #, no-wrap
18149 msgid ""
18150 " guestfish -N fs:ext4\n"
18151 "\n"
18152 msgstr ""
18153
18154 # type: textblock
18155 #: ../fish/guestfish.pod:852
18156 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18157 msgstr ""
18158
18159 # type: verbatim
18160 #: ../fish/guestfish.pod:854
18161 #, no-wrap
18162 msgid ""
18163 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18164 "\n"
18165 msgstr ""
18166
18167 # type: textblock
18168 #: ../fish/guestfish.pod:856
18169 msgid "Create a blank 200MB disk:"
18170 msgstr ""
18171
18172 # type: verbatim
18173 #: ../fish/guestfish.pod:858
18174 #, no-wrap
18175 msgid ""
18176 " guestfish -N disk:200M\n"
18177 "\n"
18178 msgstr ""
18179
18180 # type: =head1
18181 #: ../fish/guestfish.pod:860
18182 msgid "PROGRESS BARS"
18183 msgstr ""
18184
18185 # type: textblock
18186 #: ../fish/guestfish.pod:862
18187 msgid ""
18188 "Some (not all) long-running commands send progress notification messages as "
18189 "they are running.  Guestfish turns these messages into progress bars."
18190 msgstr ""
18191
18192 # type: textblock
18193 #: ../fish/guestfish.pod:866
18194 msgid ""
18195 "When a command that supports progress bars takes longer than two seconds to "
18196 "run, and if progress bars are enabled, then you will see one appearing below "
18197 "the command:"
18198 msgstr ""
18199
18200 # type: verbatim
18201 #: ../fish/guestfish.pod:870
18202 #, no-wrap
18203 msgid ""
18204 " ><fs> copy-size /large-file /another-file 2048M\n"
18205 " / 10% [#####-----------------------------------------] 00:30\n"
18206 "\n"
18207 msgstr ""
18208
18209 # type: textblock
18210 #: ../fish/guestfish.pod:873
18211 msgid ""
18212 "The spinner on the left hand side moves round once for every progress "
18213 "notification received from the backend.  This is a (reasonably) golden "
18214 "assurance that the command is \"doing something\" even if the progress bar "
18215 "is not moving, because the command is able to send the progress "
18216 "notifications.  When the bar reaches 100% and the command finishes, the "
18217 "spinner disappears."
18218 msgstr ""
18219
18220 # type: textblock
18221 #: ../fish/guestfish.pod:880
18222 msgid ""
18223 "Progress bars are enabled by default when guestfish is used interactively.  "
18224 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18225 "and you can disable them completely using I<--no-progress-bars>."
18226 msgstr ""
18227
18228 # type: =head1
18229 #: ../fish/guestfish.pod:885
18230 msgid "GUESTFISH COMMANDS"
18231 msgstr ""
18232
18233 # type: textblock
18234 #: ../fish/guestfish.pod:887
18235 msgid ""
18236 "The commands in this section are guestfish convenience commands, in other "
18237 "words, they are not part of the L<guestfs(3)> API."
18238 msgstr ""
18239
18240 # type: =head2
18241 #: ../fish/guestfish.pod:890
18242 msgid "help"
18243 msgstr ""
18244
18245 # type: verbatim
18246 #: ../fish/guestfish.pod:892
18247 #, no-wrap
18248 msgid ""
18249 " help\n"
18250 " help cmd\n"
18251 "\n"
18252 msgstr ""
18253
18254 # type: textblock
18255 #: ../fish/guestfish.pod:895
18256 msgid "Without any parameter, this provides general help."
18257 msgstr ""
18258
18259 # type: textblock
18260 #: ../fish/guestfish.pod:897
18261 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18262 msgstr ""
18263
18264 # type: =head2
18265 #: ../fish/guestfish.pod:899
18266 msgid "quit | exit"
18267 msgstr ""
18268
18269 # type: textblock
18270 #: ../fish/guestfish.pod:901
18271 msgid "This exits guestfish.  You can also use C<^D> key."
18272 msgstr ""
18273
18274 # type: textblock
18275 #: ../fish/guestfish.pod:903
18276 msgid "@FISH_COMMANDS@"
18277 msgstr ""
18278
18279 # type: =head1
18280 #: ../fish/guestfish.pod:905
18281 msgid "COMMANDS"
18282 msgstr ""
18283
18284 # type: =head1
18285 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18286 msgid "EXIT CODE"
18287 msgstr ""
18288
18289 # type: textblock
18290 #: ../fish/guestfish.pod:911
18291 msgid ""
18292 "guestfish returns 0 if the commands completed without error, or 1 if there "
18293 "was an error."
18294 msgstr ""
18295
18296 # type: =item
18297 #: ../fish/guestfish.pod:918
18298 msgid "EDITOR"
18299 msgstr ""
18300
18301 # type: textblock
18302 #: ../fish/guestfish.pod:920
18303 msgid ""
18304 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18305 "C<vi>."
18306 msgstr ""
18307
18308 # type: =item
18309 #: ../fish/guestfish.pod:923
18310 msgid "GUESTFISH_PID"
18311 msgstr ""
18312
18313 # type: textblock
18314 #: ../fish/guestfish.pod:925
18315 msgid ""
18316 "Used with the I<--remote> option to specify the remote guestfish process to "
18317 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18318 msgstr ""
18319
18320 # type: =item
18321 #: ../fish/guestfish.pod:929
18322 msgid "HEXEDITOR"
18323 msgstr ""
18324
18325 # type: textblock
18326 #: ../fish/guestfish.pod:931
18327 msgid ""
18328 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18329 "not specified, the external L<hexedit(1)> program is used."
18330 msgstr ""
18331
18332 # type: =item
18333 #: ../fish/guestfish.pod:935
18334 msgid "HOME"
18335 msgstr ""
18336
18337 # type: textblock
18338 #: ../fish/guestfish.pod:937
18339 msgid ""
18340 "If compiled with GNU readline support, various files in the home directory "
18341 "can be used.  See L</FILES>."
18342 msgstr ""
18343
18344 # type: textblock
18345 #: ../fish/guestfish.pod:946
18346 msgid ""
18347 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18348 "effect as using the B<-v> option."
18349 msgstr ""
18350
18351 # type: textblock
18352 #: ../fish/guestfish.pod:958
18353 msgid ""
18354 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18355 "the discussion of paths in L<guestfs(3)>."
18356 msgstr ""
18357
18358 # type: textblock
18359 #: ../fish/guestfish.pod:969
18360 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18361 msgstr ""
18362
18363 # type: =item
18364 #: ../fish/guestfish.pod:971
18365 msgid "PAGER"
18366 msgstr ""
18367
18368 # type: textblock
18369 #: ../fish/guestfish.pod:973
18370 msgid ""
18371 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18372 "C<more>."
18373 msgstr ""
18374
18375 # type: =head1
18376 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
18377 msgid "FILES"
18378 msgstr ""
18379
18380 # type: =item
18381 #: ../fish/guestfish.pod:992
18382 msgid "$HOME/.guestfish"
18383 msgstr ""
18384
18385 # type: textblock
18386 #: ../fish/guestfish.pod:994
18387 msgid ""
18388 "If compiled with GNU readline support, then the command history is saved in "
18389 "this file."
18390 msgstr ""
18391
18392 # type: =item
18393 #: ../fish/guestfish.pod:997
18394 msgid "$HOME/.inputrc"
18395 msgstr ""
18396
18397 # type: =item
18398 #: ../fish/guestfish.pod:999
18399 msgid "/etc/inputrc"
18400 msgstr ""
18401
18402 # type: textblock
18403 #: ../fish/guestfish.pod:1001
18404 msgid ""
18405 "If compiled with GNU readline support, then these files can be used to "
18406 "configure readline.  For further information, please see L<readline(3)/"
18407 "INITIALIZATION FILE>."
18408 msgstr ""
18409
18410 # type: textblock
18411 #: ../fish/guestfish.pod:1005
18412 msgid "To write rules which only apply to guestfish, use:"
18413 msgstr ""
18414
18415 # type: verbatim
18416 #: ../fish/guestfish.pod:1007
18417 #, no-wrap
18418 msgid ""
18419 " $if guestfish\n"
18420 " ...\n"
18421 " $endif\n"
18422 "\n"
18423 msgstr ""
18424
18425 # type: textblock
18426 #: ../fish/guestfish.pod:1011
18427 msgid ""
18428 "Variables that you can set in inputrc that change the behaviour of guestfish "
18429 "in useful ways include:"
18430 msgstr ""
18431
18432 # type: =item
18433 #: ../fish/guestfish.pod:1016
18434 msgid "completion-ignore-case (default: on)"
18435 msgstr ""
18436
18437 # type: textblock
18438 #: ../fish/guestfish.pod:1018
18439 msgid ""
18440 "By default, guestfish will ignore case when tab-completing paths on the "
18441 "disk.  Use:"
18442 msgstr ""
18443
18444 # type: verbatim
18445 #: ../fish/guestfish.pod:1021
18446 #, no-wrap
18447 msgid ""
18448 " set completion-ignore-case off\n"
18449 "\n"
18450 msgstr ""
18451
18452 # type: textblock
18453 #: ../fish/guestfish.pod:1023
18454 msgid "to make guestfish case sensitive."
18455 msgstr ""
18456
18457 # type: =item
18458 #: ../fish/guestfish.pod:1027
18459 msgid "test1.img"
18460 msgstr ""
18461
18462 # type: =item
18463 #: ../fish/guestfish.pod:1029
18464 msgid "test2.img (etc)"
18465 msgstr ""
18466
18467 # type: textblock
18468 #: ../fish/guestfish.pod:1031
18469 msgid ""
18470 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18471 "will be created in the file C<test1.img> in the current directory.  The "
18472 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18473 "the same name will be overwritten."
18474 msgstr ""
18475
18476 # type: textblock
18477 #: ../fish/guestfish.pod:1040
18478 msgid ""
18479 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18480 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18481 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18482 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18483 msgstr ""
18484
18485 # type: textblock
18486 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124
18487 #: ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:598
18488 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
18489 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
18490 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
18491 #: ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300
18492 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
18493 #: ../tools/virt-list-partitions.pl:273
18494 msgid ""
18495 "This program is free software; you can redistribute it and/or modify it "
18496 "under the terms of the GNU General Public License as published by the Free "
18497 "Software Foundation; either version 2 of the License, or (at your option) "
18498 "any later version."
18499 msgstr ""
18500
18501 # type: textblock
18502 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129
18503 #: ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:603
18504 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
18505 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
18506 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
18507 #: ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305
18508 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
18509 #: ../tools/virt-list-partitions.pl:278
18510 msgid ""
18511 "This program is distributed in the hope that it will be useful, but WITHOUT "
18512 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18513 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18514 "more details."
18515 msgstr ""
18516
18517 # type: textblock
18518 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134
18519 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:608
18520 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
18521 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
18522 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
18523 #: ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310
18524 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
18525 #: ../tools/virt-list-partitions.pl:283
18526 msgid ""
18527 "You should have received a copy of the GNU General Public License along with "
18528 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18529 "Ave, Cambridge, MA 02139, USA."
18530 msgstr ""
18531
18532 # type: =head2
18533 #: ../fish/guestfish-actions.pod:1
18534 msgid "add-cdrom"
18535 msgstr ""
18536
18537 # type: verbatim
18538 #: ../fish/guestfish-actions.pod:3
18539 #, no-wrap
18540 msgid ""
18541 " add-cdrom filename\n"
18542 "\n"
18543 msgstr ""
18544
18545 # type: textblock
18546 #: ../fish/guestfish-actions.pod:15
18547 msgid ""
18548 "This call checks for the existence of C<filename>.  This stops you from "
18549 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18550 "and C<http:> URLs.  To specify those, use the general L</config> call "
18551 "instead."
18552 msgstr ""
18553
18554 # type: textblock
18555 #: ../fish/guestfish-actions.pod:22
18556 msgid ""
18557 "If you just want to add an ISO file (often you use this as an efficient way "
18558 "to transfer large files into the guest), then you should probably use L</add-"
18559 "drive-ro> instead."
18560 msgstr ""
18561
18562 # type: =head2
18563 #: ../fish/guestfish-actions.pod:35
18564 msgid "add-drive"
18565 msgstr ""
18566
18567 # type: verbatim
18568 #: ../fish/guestfish-actions.pod:37
18569 #, no-wrap
18570 msgid ""
18571 " add-drive filename\n"
18572 "\n"
18573 msgstr ""
18574
18575 # type: textblock
18576 #: ../fish/guestfish-actions.pod:39
18577 msgid ""
18578 "This function is the equivalent of calling L</add-drive-opts> with no "
18579 "optional parameters, so the disk is added writable, with the format being "
18580 "detected automatically."
18581 msgstr ""
18582
18583 # type: textblock
18584 #: ../fish/guestfish-actions.pod:43
18585 msgid ""
18586 "Automatic detection of the format opens you up to a potential security hole "
18587 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18588 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18589 "you should think about replacing calls to this function with calls to L</add-"
18590 "drive-opts>, and specifying the format."
18591 msgstr ""
18592
18593 # type: =head2
18594 #: ../fish/guestfish-actions.pod:50
18595 msgid "add-drive-opts"
18596 msgstr ""
18597
18598 # type: =head2
18599 #: ../fish/guestfish-actions.pod:52
18600 msgid "add"
18601 msgstr ""
18602
18603 # type: verbatim
18604 #: ../fish/guestfish-actions.pod:54
18605 #, no-wrap
18606 msgid ""
18607 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18608 "\n"
18609 msgstr ""
18610
18611 # type: textblock
18612 #: ../fish/guestfish-actions.pod:81
18613 msgid ""
18614 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
18615 "add-drive-ro>) then the format is automatically detected.  Possible formats "
18616 "include C<raw> and C<qcow2>."
18617 msgstr ""
18618
18619 # type: textblock
18620 #: ../fish/guestfish-actions.pod:92
18621 msgid ""
18622 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
18623 "add-drive-with-if> call (q.v.)"
18624 msgstr ""
18625
18626 # type: textblock
18627 #: ../fish/guestfish-actions.pod:97
18628 msgid ""
18629 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
18630 msgstr ""
18631
18632 # type: =head2
18633 #: ../fish/guestfish-actions.pod:99
18634 msgid "add-drive-ro"
18635 msgstr ""
18636
18637 # type: =head2
18638 #: ../fish/guestfish-actions.pod:101
18639 msgid "add-ro"
18640 msgstr ""
18641
18642 # type: verbatim
18643 #: ../fish/guestfish-actions.pod:103
18644 #, no-wrap
18645 msgid ""
18646 " add-drive-ro filename\n"
18647 "\n"
18648 msgstr ""
18649
18650 # type: textblock
18651 #: ../fish/guestfish-actions.pod:105
18652 msgid ""
18653 "This function is the equivalent of calling L</add-drive-opts> with the "
18654 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18655 "is added read-only, with the format being detected automatically."
18656 msgstr ""
18657
18658 # type: =head2
18659 #: ../fish/guestfish-actions.pod:110
18660 msgid "add-drive-ro-with-if"
18661 msgstr ""
18662
18663 # type: verbatim
18664 #: ../fish/guestfish-actions.pod:112
18665 #, no-wrap
18666 msgid ""
18667 " add-drive-ro-with-if filename iface\n"
18668 "\n"
18669 msgstr ""
18670
18671 # type: textblock
18672 #: ../fish/guestfish-actions.pod:114
18673 msgid ""
18674 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18675 "interface emulation to use at run time."
18676 msgstr ""
18677
18678 # type: =head2
18679 #: ../fish/guestfish-actions.pod:124
18680 msgid "add-drive-with-if"
18681 msgstr ""
18682
18683 # type: verbatim
18684 #: ../fish/guestfish-actions.pod:126
18685 #, no-wrap
18686 msgid ""
18687 " add-drive-with-if filename iface\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: textblock
18692 #: ../fish/guestfish-actions.pod:128
18693 msgid ""
18694 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18695 "interface emulation to use at run time."
18696 msgstr ""
18697
18698 # type: =head2
18699 #: ../fish/guestfish-actions.pod:138
18700 msgid "aug-clear"
18701 msgstr ""
18702
18703 # type: verbatim
18704 #: ../fish/guestfish-actions.pod:140
18705 #, no-wrap
18706 msgid ""
18707 " aug-clear augpath\n"
18708 "\n"
18709 msgstr ""
18710
18711 # type: =head2
18712 #: ../fish/guestfish-actions.pod:145
18713 msgid "aug-close"
18714 msgstr ""
18715
18716 # type: verbatim
18717 #: ../fish/guestfish-actions.pod:147
18718 #, no-wrap
18719 msgid ""
18720 " aug-close\n"
18721 "\n"
18722 msgstr ""
18723
18724 # type: textblock
18725 #: ../fish/guestfish-actions.pod:149
18726 msgid ""
18727 "Close the current Augeas handle and free up any resources used by it.  After "
18728 "calling this, you have to call L</aug-init> again before you can use any "
18729 "other Augeas functions."
18730 msgstr ""
18731
18732 # type: =head2
18733 #: ../fish/guestfish-actions.pod:154
18734 msgid "aug-defnode"
18735 msgstr ""
18736
18737 # type: verbatim
18738 #: ../fish/guestfish-actions.pod:156
18739 #, no-wrap
18740 msgid ""
18741 " aug-defnode name expr val\n"
18742 "\n"
18743 msgstr ""
18744
18745 # type: textblock
18746 #: ../fish/guestfish-actions.pod:161
18747 msgid ""
18748 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18749 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18750 "containing that single node."
18751 msgstr ""
18752
18753 # type: =head2
18754 #: ../fish/guestfish-actions.pod:169
18755 msgid "aug-defvar"
18756 msgstr ""
18757
18758 # type: verbatim
18759 #: ../fish/guestfish-actions.pod:171
18760 #, no-wrap
18761 msgid ""
18762 " aug-defvar name expr\n"
18763 "\n"
18764 msgstr ""
18765
18766 # type: =head2
18767 #: ../fish/guestfish-actions.pod:180
18768 msgid "aug-get"
18769 msgstr ""
18770
18771 # type: verbatim
18772 #: ../fish/guestfish-actions.pod:182
18773 #, no-wrap
18774 msgid ""
18775 " aug-get augpath\n"
18776 "\n"
18777 msgstr ""
18778
18779 # type: =head2
18780 #: ../fish/guestfish-actions.pod:187
18781 msgid "aug-init"
18782 msgstr ""
18783
18784 # type: verbatim
18785 #: ../fish/guestfish-actions.pod:189
18786 #, no-wrap
18787 msgid ""
18788 " aug-init root flags\n"
18789 "\n"
18790 msgstr ""
18791
18792 # type: textblock
18793 #: ../fish/guestfish-actions.pod:195
18794 msgid "You must call this before using any other L</aug-*> commands."
18795 msgstr ""
18796
18797 # type: textblock
18798 #: ../fish/guestfish-actions.pod:230
18799 msgid "Do not load the tree in L</aug-init>."
18800 msgstr ""
18801
18802 # type: textblock
18803 #: ../fish/guestfish-actions.pod:234
18804 msgid "To close the handle, you can call L</aug-close>."
18805 msgstr ""
18806
18807 # type: =head2
18808 #: ../fish/guestfish-actions.pod:238
18809 msgid "aug-insert"
18810 msgstr ""
18811
18812 # type: verbatim
18813 #: ../fish/guestfish-actions.pod:240
18814 #, no-wrap
18815 msgid ""
18816 " aug-insert augpath label true|false\n"
18817 "\n"
18818 msgstr ""
18819
18820 # type: =head2
18821 #: ../fish/guestfish-actions.pod:250
18822 msgid "aug-load"
18823 msgstr ""
18824
18825 # type: verbatim
18826 #: ../fish/guestfish-actions.pod:252
18827 #, no-wrap
18828 msgid ""
18829 " aug-load\n"
18830 "\n"
18831 msgstr ""
18832
18833 # type: =head2
18834 #: ../fish/guestfish-actions.pod:259
18835 msgid "aug-ls"
18836 msgstr ""
18837
18838 # type: verbatim
18839 #: ../fish/guestfish-actions.pod:261
18840 #, no-wrap
18841 msgid ""
18842 " aug-ls augpath\n"
18843 "\n"
18844 msgstr ""
18845
18846 # type: textblock
18847 #: ../fish/guestfish-actions.pod:263
18848 msgid ""
18849 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18850 "resulting nodes into alphabetical order."
18851 msgstr ""
18852
18853 # type: =head2
18854 #: ../fish/guestfish-actions.pod:266
18855 msgid "aug-match"
18856 msgstr ""
18857
18858 # type: verbatim
18859 #: ../fish/guestfish-actions.pod:268
18860 #, no-wrap
18861 msgid ""
18862 " aug-match augpath\n"
18863 "\n"
18864 msgstr ""
18865
18866 # type: =head2
18867 #: ../fish/guestfish-actions.pod:274
18868 msgid "aug-mv"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #: ../fish/guestfish-actions.pod:276
18873 #, no-wrap
18874 msgid ""
18875 " aug-mv src dest\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: =head2
18880 #: ../fish/guestfish-actions.pod:281
18881 msgid "aug-rm"
18882 msgstr ""
18883
18884 # type: verbatim
18885 #: ../fish/guestfish-actions.pod:283
18886 #, no-wrap
18887 msgid ""
18888 " aug-rm augpath\n"
18889 "\n"
18890 msgstr ""
18891
18892 # type: =head2
18893 #: ../fish/guestfish-actions.pod:289
18894 msgid "aug-save"
18895 msgstr ""
18896
18897 # type: verbatim
18898 #: ../fish/guestfish-actions.pod:291
18899 #, no-wrap
18900 msgid ""
18901 " aug-save\n"
18902 "\n"
18903 msgstr ""
18904
18905 # type: textblock
18906 #: ../fish/guestfish-actions.pod:295
18907 msgid ""
18908 "The flags which were passed to L</aug-init> affect exactly how files are "
18909 "saved."
18910 msgstr ""
18911
18912 # type: =head2
18913 #: ../fish/guestfish-actions.pod:298
18914 msgid "aug-set"
18915 msgstr ""
18916
18917 # type: verbatim
18918 #: ../fish/guestfish-actions.pod:300
18919 #, no-wrap
18920 msgid ""
18921 " aug-set augpath val\n"
18922 "\n"
18923 msgstr ""
18924
18925 # type: textblock
18926 #: ../fish/guestfish-actions.pod:304
18927 msgid ""
18928 "In the Augeas API, it is possible to clear a node by setting the value to "
18929 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18930 "this call.  Instead you must use the L</aug-clear> call."
18931 msgstr ""
18932
18933 # type: =head2
18934 #: ../fish/guestfish-actions.pod:309
18935 msgid "available"
18936 msgstr ""
18937
18938 # type: verbatim
18939 #: ../fish/guestfish-actions.pod:311
18940 #, no-wrap
18941 msgid ""
18942 " available 'groups ...'\n"
18943 "\n"
18944 msgstr ""
18945
18946 # type: textblock
18947 #: ../fish/guestfish-actions.pod:317
18948 msgid ""
18949 "The libguestfs groups, and the functions that those groups correspond to, "
18950 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18951 "runtime by calling L</available-all-groups>."
18952 msgstr ""
18953
18954 # type: textblock
18955 #: ../fish/guestfish-actions.pod:341
18956 msgid "You must call L</launch> before calling this function."
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish-actions.pod:363
18961 msgid ""
18962 "This call was added in version C<1.0.80>.  In previous versions of "
18963 "libguestfs all you could do would be to speculatively execute a command to "
18964 "find out if the daemon implemented it.  See also L</version>."
18965 msgstr ""
18966
18967 # type: =head2
18968 #: ../fish/guestfish-actions.pod:370
18969 msgid "available-all-groups"
18970 msgstr ""
18971
18972 # type: verbatim
18973 #: ../fish/guestfish-actions.pod:372
18974 #, no-wrap
18975 msgid ""
18976 " available-all-groups\n"
18977 "\n"
18978 msgstr ""
18979
18980 # type: textblock
18981 #: ../fish/guestfish-actions.pod:374
18982 msgid ""
18983 "This command returns a list of all optional groups that this daemon knows "
18984 "about.  Note this returns both supported and unsupported groups.  To find "
18985 "out which ones the daemon can actually support you have to call L</"
18986 "available> on each member of the returned list."
18987 msgstr ""
18988
18989 # type: textblock
18990 #: ../fish/guestfish-actions.pod:380
18991 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18992 msgstr ""
18993
18994 # type: =head2
18995 #: ../fish/guestfish-actions.pod:382
18996 msgid "base64-in"
18997 msgstr ""
18998
18999 # type: verbatim
19000 #: ../fish/guestfish-actions.pod:384
19001 #, no-wrap
19002 msgid ""
19003 " base64-in (base64file|-) filename\n"
19004 "\n"
19005 msgstr ""
19006
19007 # type: textblock
19008 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
19009 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
19010 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
19011 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3945
19012 #: ../fish/guestfish-actions.pod:3957 ../fish/guestfish-actions.pod:3968
19013 #: ../fish/guestfish-actions.pod:3979 ../fish/guestfish-actions.pod:4031
19014 #: ../fish/guestfish-actions.pod:4040 ../fish/guestfish-actions.pod:4094
19015 #: ../fish/guestfish-actions.pod:4117
19016 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19017 msgstr ""
19018
19019 # type: =head2
19020 #: ../fish/guestfish-actions.pod:391
19021 msgid "base64-out"
19022 msgstr ""
19023
19024 # type: verbatim
19025 #: ../fish/guestfish-actions.pod:393
19026 #, no-wrap
19027 msgid ""
19028 " base64-out filename (base64file|-)\n"
19029 "\n"
19030 msgstr ""
19031
19032 # type: =head2
19033 #: ../fish/guestfish-actions.pod:400
19034 msgid "blockdev-flushbufs"
19035 msgstr ""
19036
19037 # type: verbatim
19038 #: ../fish/guestfish-actions.pod:402
19039 #, no-wrap
19040 msgid ""
19041 " blockdev-flushbufs device\n"
19042 "\n"
19043 msgstr ""
19044
19045 # type: =head2
19046 #: ../fish/guestfish-actions.pod:409
19047 msgid "blockdev-getbsz"
19048 msgstr ""
19049
19050 # type: verbatim
19051 #: ../fish/guestfish-actions.pod:411
19052 #, no-wrap
19053 msgid ""
19054 " blockdev-getbsz device\n"
19055 "\n"
19056 msgstr ""
19057
19058 # type: =head2
19059 #: ../fish/guestfish-actions.pod:420
19060 msgid "blockdev-getro"
19061 msgstr ""
19062
19063 # type: verbatim
19064 #: ../fish/guestfish-actions.pod:422
19065 #, no-wrap
19066 msgid ""
19067 " blockdev-getro device\n"
19068 "\n"
19069 msgstr ""
19070
19071 # type: =head2
19072 #: ../fish/guestfish-actions.pod:429
19073 msgid "blockdev-getsize64"
19074 msgstr ""
19075
19076 # type: verbatim
19077 #: ../fish/guestfish-actions.pod:431
19078 #, no-wrap
19079 msgid ""
19080 " blockdev-getsize64 device\n"
19081 "\n"
19082 msgstr ""
19083
19084 # type: textblock
19085 #: ../fish/guestfish-actions.pod:435
19086 msgid "See also L</blockdev-getsz>."
19087 msgstr ""
19088
19089 # type: =head2
19090 #: ../fish/guestfish-actions.pod:439
19091 msgid "blockdev-getss"
19092 msgstr ""
19093
19094 # type: verbatim
19095 #: ../fish/guestfish-actions.pod:441
19096 #, no-wrap
19097 msgid ""
19098 " blockdev-getss device\n"
19099 "\n"
19100 msgstr ""
19101
19102 # type: textblock
19103 #: ../fish/guestfish-actions.pod:446
19104 msgid ""
19105 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19106 msgstr ""
19107
19108 # type: =head2
19109 #: ../fish/guestfish-actions.pod:451
19110 msgid "blockdev-getsz"
19111 msgstr ""
19112
19113 # type: verbatim
19114 #: ../fish/guestfish-actions.pod:453
19115 #, no-wrap
19116 msgid ""
19117 " blockdev-getsz device\n"
19118 "\n"
19119 msgstr ""
19120
19121 # type: textblock
19122 #: ../fish/guestfish-actions.pod:458
19123 msgid ""
19124 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19125 "blockdev-getsize64> for the more useful I<size in bytes>."
19126 msgstr ""
19127
19128 # type: =head2
19129 #: ../fish/guestfish-actions.pod:464
19130 msgid "blockdev-rereadpt"
19131 msgstr ""
19132
19133 # type: verbatim
19134 #: ../fish/guestfish-actions.pod:466
19135 #, no-wrap
19136 msgid ""
19137 " blockdev-rereadpt device\n"
19138 "\n"
19139 msgstr ""
19140
19141 # type: =head2
19142 #: ../fish/guestfish-actions.pod:472
19143 msgid "blockdev-setbsz"
19144 msgstr ""
19145
19146 # type: verbatim
19147 #: ../fish/guestfish-actions.pod:474
19148 #, no-wrap
19149 msgid ""
19150 " blockdev-setbsz device blocksize\n"
19151 "\n"
19152 msgstr ""
19153
19154 # type: =head2
19155 #: ../fish/guestfish-actions.pod:483
19156 msgid "blockdev-setro"
19157 msgstr ""
19158
19159 # type: verbatim
19160 #: ../fish/guestfish-actions.pod:485
19161 #, no-wrap
19162 msgid ""
19163 " blockdev-setro device\n"
19164 "\n"
19165 msgstr ""
19166
19167 # type: =head2
19168 #: ../fish/guestfish-actions.pod:491
19169 msgid "blockdev-setrw"
19170 msgstr ""
19171
19172 # type: verbatim
19173 #: ../fish/guestfish-actions.pod:493
19174 #, no-wrap
19175 msgid ""
19176 " blockdev-setrw device\n"
19177 "\n"
19178 msgstr ""
19179
19180 # type: =head2
19181 #: ../fish/guestfish-actions.pod:499
19182 msgid "case-sensitive-path"
19183 msgstr ""
19184
19185 # type: verbatim
19186 #: ../fish/guestfish-actions.pod:501
19187 #, no-wrap
19188 msgid ""
19189 " case-sensitive-path path\n"
19190 "\n"
19191 msgstr ""
19192
19193 # type: textblock
19194 #: ../fish/guestfish-actions.pod:525
19195 msgid ""
19196 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19197 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19198 "the directories were originally created under Windows)."
19199 msgstr ""
19200
19201 # type: textblock
19202 #: ../fish/guestfish-actions.pod:533
19203 msgid "See also L</realpath>."
19204 msgstr ""
19205
19206 # type: =head2
19207 #: ../fish/guestfish-actions.pod:535
19208 msgid "cat"
19209 msgstr ""
19210
19211 # type: verbatim
19212 #: ../fish/guestfish-actions.pod:537
19213 #, no-wrap
19214 msgid ""
19215 " cat path\n"
19216 "\n"
19217 msgstr ""
19218
19219 # type: textblock
19220 #: ../fish/guestfish-actions.pod:541
19221 msgid ""
19222 "Note that this function cannot correctly handle binary files (specifically, "
19223 "files containing C<\\0> character which is treated as end of string).  For "
19224 "those you need to use the L</read-file> or L</download> functions which have "
19225 "a more complex interface."
19226 msgstr ""
19227
19228 # type: =head2
19229 #: ../fish/guestfish-actions.pod:549
19230 msgid "checksum"
19231 msgstr ""
19232
19233 # type: verbatim
19234 #: ../fish/guestfish-actions.pod:551
19235 #, no-wrap
19236 msgid ""
19237 " checksum csumtype path\n"
19238 "\n"
19239 msgstr ""
19240
19241 # type: textblock
19242 #: ../fish/guestfish-actions.pod:594
19243 msgid "To get the checksum for a device, use L</checksum-device>."
19244 msgstr ""
19245
19246 # type: textblock
19247 #: ../fish/guestfish-actions.pod:596
19248 msgid "To get the checksums for many files, use L</checksums-out>."
19249 msgstr ""
19250
19251 # type: =head2
19252 #: ../fish/guestfish-actions.pod:598
19253 msgid "checksum-device"
19254 msgstr ""
19255
19256 # type: verbatim
19257 #: ../fish/guestfish-actions.pod:600
19258 #, no-wrap
19259 msgid ""
19260 " checksum-device csumtype device\n"
19261 "\n"
19262 msgstr ""
19263
19264 # type: textblock
19265 #: ../fish/guestfish-actions.pod:602
19266 msgid ""
19267 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19268 "device named C<device>.  For the types of checksums supported see the L</"
19269 "checksum> command."
19270 msgstr ""
19271
19272 # type: =head2
19273 #: ../fish/guestfish-actions.pod:606
19274 msgid "checksums-out"
19275 msgstr ""
19276
19277 # type: verbatim
19278 #: ../fish/guestfish-actions.pod:608
19279 #, no-wrap
19280 msgid ""
19281 " checksums-out csumtype directory (sumsfile|-)\n"
19282 "\n"
19283 msgstr ""
19284
19285 # type: =head2
19286 #: ../fish/guestfish-actions.pod:624
19287 msgid "chmod"
19288 msgstr ""
19289
19290 # type: verbatim
19291 #: ../fish/guestfish-actions.pod:626
19292 #, no-wrap
19293 msgid ""
19294 " chmod mode path\n"
19295 "\n"
19296 msgstr ""
19297
19298 # type: =head2
19299 #: ../fish/guestfish-actions.pod:637
19300 msgid "chown"
19301 msgstr ""
19302
19303 # type: verbatim
19304 #: ../fish/guestfish-actions.pod:639
19305 #, no-wrap
19306 msgid ""
19307 " chown owner group path\n"
19308 "\n"
19309 msgstr ""
19310
19311 # type: =head2
19312 #: ../fish/guestfish-actions.pod:647
19313 msgid "command"
19314 msgstr ""
19315
19316 # type: verbatim
19317 #: ../fish/guestfish-actions.pod:649
19318 #, no-wrap
19319 msgid ""
19320 " command 'arguments ...'\n"
19321 "\n"
19322 msgstr ""
19323
19324 # type: textblock
19325 #: ../fish/guestfish-actions.pod:656
19326 msgid ""
19327 "The single parameter is an argv-style list of arguments.  The first element "
19328 "is the name of the program to run.  Subsequent elements are parameters.  The "
19329 "list must be non-empty (ie. must contain a program name).  Note that the "
19330 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19331 msgstr ""
19332
19333 # type: =head2
19334 #: ../fish/guestfish-actions.pod:684
19335 msgid "command-lines"
19336 msgstr ""
19337
19338 # type: verbatim
19339 #: ../fish/guestfish-actions.pod:686
19340 #, no-wrap
19341 msgid ""
19342 " command-lines 'arguments ...'\n"
19343 "\n"
19344 msgstr ""
19345
19346 # type: textblock
19347 #: ../fish/guestfish-actions.pod:688
19348 msgid ""
19349 "This is the same as L</command>, but splits the result into a list of lines."
19350 msgstr ""
19351
19352 # type: textblock
19353 #: ../fish/guestfish-actions.pod:691
19354 msgid "See also: L</sh-lines>"
19355 msgstr ""
19356
19357 # type: =head2
19358 #: ../fish/guestfish-actions.pod:696
19359 msgid "config"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #: ../fish/guestfish-actions.pod:698
19364 #, no-wrap
19365 msgid ""
19366 " config qemuparam qemuvalue\n"
19367 "\n"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:709
19372 msgid "copy-size"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:711
19377 #, no-wrap
19378 msgid ""
19379 " copy-size src dest size\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: =head2
19384 #: ../fish/guestfish-actions.pod:719
19385 msgid "cp"
19386 msgstr ""
19387
19388 # type: verbatim
19389 #: ../fish/guestfish-actions.pod:721
19390 #, no-wrap
19391 msgid ""
19392 " cp src dest\n"
19393 "\n"
19394 msgstr ""
19395
19396 # type: =head2
19397 #: ../fish/guestfish-actions.pod:726
19398 msgid "cp-a"
19399 msgstr ""
19400
19401 # type: verbatim
19402 #: ../fish/guestfish-actions.pod:728
19403 #, no-wrap
19404 msgid ""
19405 " cp-a src dest\n"
19406 "\n"
19407 msgstr ""
19408
19409 # type: =head2
19410 #: ../fish/guestfish-actions.pod:733
19411 msgid "dd"
19412 msgstr ""
19413
19414 # type: verbatim
19415 #: ../fish/guestfish-actions.pod:735
19416 #, no-wrap
19417 msgid ""
19418 " dd src dest\n"
19419 "\n"
19420 msgstr ""
19421
19422 # type: textblock
19423 #: ../fish/guestfish-actions.pod:742
19424 msgid ""
19425 "If the destination is a device, it must be as large or larger than the "
19426 "source file or device, otherwise the copy will fail.  This command cannot do "
19427 "partial copies (see L</copy-size>)."
19428 msgstr ""
19429
19430 # type: =head2
19431 #: ../fish/guestfish-actions.pod:746
19432 msgid "debug"
19433 msgstr ""
19434
19435 # type: verbatim
19436 #: ../fish/guestfish-actions.pod:748
19437 #, no-wrap
19438 msgid ""
19439 " debug subcmd 'extraargs ...'\n"
19440 "\n"
19441 msgstr ""
19442
19443 # type: textblock
19444 #: ../fish/guestfish-actions.pod:750
19445 msgid ""
19446 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
19447 "daemon) that runs inside the qemu subprocess."
19448 msgstr ""
19449
19450 # type: =head2
19451 #: ../fish/guestfish-actions.pod:758
19452 msgid "debug-upload"
19453 msgstr ""
19454
19455 # type: verbatim
19456 #: ../fish/guestfish-actions.pod:760
19457 #, no-wrap
19458 msgid ""
19459 " debug-upload (filename|-) tmpname mode\n"
19460 "\n"
19461 msgstr ""
19462
19463 # type: textblock
19464 #: ../fish/guestfish-actions.pod:762
19465 msgid ""
19466 "The L</debug-upload> command uploads a file to the libguestfs appliance."
19467 msgstr ""
19468
19469 # type: =head2
19470 #: ../fish/guestfish-actions.pod:771
19471 msgid "df"
19472 msgstr ""
19473
19474 # type: verbatim
19475 #: ../fish/guestfish-actions.pod:773
19476 #, no-wrap
19477 msgid ""
19478 " df\n"
19479 "\n"
19480 msgstr ""
19481
19482 # type: =head2
19483 #: ../fish/guestfish-actions.pod:781
19484 msgid "df-h"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #: ../fish/guestfish-actions.pod:783
19489 #, no-wrap
19490 msgid ""
19491 " df-h\n"
19492 "\n"
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:792
19497 msgid "dmesg"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #: ../fish/guestfish-actions.pod:794
19502 #, no-wrap
19503 msgid ""
19504 " dmesg\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: textblock
19509 #: ../fish/guestfish-actions.pod:800
19510 msgid ""
19511 "Another way to get the same information is to enable verbose messages with "
19512 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19513 "before running the program."
19514 msgstr ""
19515
19516 # type: =head2
19517 #: ../fish/guestfish-actions.pod:805
19518 msgid "download"
19519 msgstr ""
19520
19521 # type: verbatim
19522 #: ../fish/guestfish-actions.pod:807
19523 #, no-wrap
19524 msgid ""
19525 " download remotefilename (filename|-)\n"
19526 "\n"
19527 msgstr ""
19528
19529 # type: textblock
19530 #: ../fish/guestfish-actions.pod:814
19531 msgid "See also L</upload>, L</cat>."
19532 msgstr ""
19533
19534 # type: =head2
19535 #: ../fish/guestfish-actions.pod:818
19536 msgid "download-offset"
19537 msgstr ""
19538
19539 # type: verbatim
19540 #: ../fish/guestfish-actions.pod:820
19541 #, no-wrap
19542 msgid ""
19543 " download-offset remotefilename (filename|-) offset size\n"
19544 "\n"
19545 msgstr ""
19546
19547 # type: textblock
19548 #: ../fish/guestfish-actions.pod:828
19549 msgid ""
19550 "Note that there is no limit on the amount of data that can be downloaded "
19551 "with this call, unlike with L</pread>, and this call always reads the full "
19552 "amount unless an error occurs."
19553 msgstr ""
19554
19555 # type: textblock
19556 #: ../fish/guestfish-actions.pod:833
19557 msgid "See also L</download>, L</pread>."
19558 msgstr ""
19559
19560 # type: =head2
19561 #: ../fish/guestfish-actions.pod:837
19562 msgid "drop-caches"
19563 msgstr ""
19564
19565 # type: verbatim
19566 #: ../fish/guestfish-actions.pod:839
19567 #, no-wrap
19568 msgid ""
19569 " drop-caches whattodrop\n"
19570 "\n"
19571 msgstr ""
19572
19573 # type: =head2
19574 #: ../fish/guestfish-actions.pod:851
19575 msgid "du"
19576 msgstr ""
19577
19578 # type: verbatim
19579 #: ../fish/guestfish-actions.pod:853
19580 #, no-wrap
19581 msgid ""
19582 " du path\n"
19583 "\n"
19584 msgstr ""
19585
19586 # type: =head2
19587 #: ../fish/guestfish-actions.pod:865
19588 msgid "e2fsck-f"
19589 msgstr ""
19590
19591 # type: verbatim
19592 #: ../fish/guestfish-actions.pod:867
19593 #, no-wrap
19594 msgid ""
19595 " e2fsck-f device\n"
19596 "\n"
19597 msgstr ""
19598
19599 # type: textblock
19600 #: ../fish/guestfish-actions.pod:873
19601 msgid ""
19602 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19603 "should use L</fsck>."
19604 msgstr ""
19605
19606 # type: =head2
19607 #: ../fish/guestfish-actions.pod:876
19608 msgid "echo-daemon"
19609 msgstr ""
19610
19611 # type: verbatim
19612 #: ../fish/guestfish-actions.pod:878
19613 #, no-wrap
19614 msgid ""
19615 " echo-daemon 'words ...'\n"
19616 "\n"
19617 msgstr ""
19618
19619 # type: textblock
19620 #: ../fish/guestfish-actions.pod:885
19621 msgid "See also L</ping-daemon>."
19622 msgstr ""
19623
19624 # type: =head2
19625 #: ../fish/guestfish-actions.pod:887
19626 msgid "egrep"
19627 msgstr ""
19628
19629 # type: verbatim
19630 #: ../fish/guestfish-actions.pod:889
19631 #, no-wrap
19632 msgid ""
19633 " egrep regex path\n"
19634 "\n"
19635 msgstr ""
19636
19637 # type: =head2
19638 #: ../fish/guestfish-actions.pod:897
19639 msgid "egrepi"
19640 msgstr ""
19641
19642 # type: verbatim
19643 #: ../fish/guestfish-actions.pod:899
19644 #, no-wrap
19645 msgid ""
19646 " egrepi regex path\n"
19647 "\n"
19648 msgstr ""
19649
19650 # type: =head2
19651 #: ../fish/guestfish-actions.pod:907
19652 msgid "equal"
19653 msgstr ""
19654
19655 # type: verbatim
19656 #: ../fish/guestfish-actions.pod:909
19657 #, no-wrap
19658 msgid ""
19659 " equal file1 file2\n"
19660 "\n"
19661 msgstr ""
19662
19663 # type: =head2
19664 #: ../fish/guestfish-actions.pod:916
19665 msgid "exists"
19666 msgstr ""
19667
19668 # type: verbatim
19669 #: ../fish/guestfish-actions.pod:918
19670 #, no-wrap
19671 msgid ""
19672 " exists path\n"
19673 "\n"
19674 msgstr ""
19675
19676 # type: textblock
19677 #: ../fish/guestfish-actions.pod:923
19678 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19679 msgstr ""
19680
19681 # type: =head2
19682 #: ../fish/guestfish-actions.pod:925
19683 msgid "fallocate"
19684 msgstr ""
19685
19686 # type: verbatim
19687 #: ../fish/guestfish-actions.pod:927
19688 #, no-wrap
19689 msgid ""
19690 " fallocate path len\n"
19691 "\n"
19692 msgstr ""
19693
19694 # type: =head2
19695 #: ../fish/guestfish-actions.pod:944
19696 msgid "fallocate64"
19697 msgstr ""
19698
19699 # type: verbatim
19700 #: ../fish/guestfish-actions.pod:946
19701 #, no-wrap
19702 msgid ""
19703 " fallocate64 path len\n"
19704 "\n"
19705 msgstr ""
19706
19707 # type: textblock
19708 #: ../fish/guestfish-actions.pod:952
19709 msgid ""
19710 "Note that this call allocates disk blocks for the file.  To create a sparse "
19711 "file use L</truncate-size> instead."
19712 msgstr ""
19713
19714 # type: textblock
19715 #: ../fish/guestfish-actions.pod:955
19716 msgid ""
19717 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19718 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19719 "maximum size of files created through that call to 1GB."
19720 msgstr ""
19721
19722 # type: =head2
19723 #: ../fish/guestfish-actions.pod:964
19724 msgid "fgrep"
19725 msgstr ""
19726
19727 # type: verbatim
19728 #: ../fish/guestfish-actions.pod:966
19729 #, no-wrap
19730 msgid ""
19731 " fgrep pattern path\n"
19732 "\n"
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:974
19737 msgid "fgrepi"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:976
19742 #, no-wrap
19743 msgid ""
19744 " fgrepi pattern path\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: =head2
19749 #: ../fish/guestfish-actions.pod:984
19750 msgid "file"
19751 msgstr ""
19752
19753 # type: verbatim
19754 #: ../fish/guestfish-actions.pod:986
19755 #, no-wrap
19756 msgid ""
19757 " file path\n"
19758 "\n"
19759 msgstr ""
19760
19761 # type: textblock
19762 #: ../fish/guestfish-actions.pod:998
19763 msgid ""
19764 "This command can also be used on C</dev/> devices (and partitions, LV "
19765 "names).  You can for example use this to determine if a device contains a "
19766 "filesystem, although it's usually better to use L</vfs-type>."
19767 msgstr ""
19768
19769 # type: =head2
19770 #: ../fish/guestfish-actions.pod:1008
19771 msgid "file-architecture"
19772 msgstr ""
19773
19774 # type: verbatim
19775 #: ../fish/guestfish-actions.pod:1010
19776 #, no-wrap
19777 msgid ""
19778 " file-architecture filename\n"
19779 "\n"
19780 msgstr ""
19781
19782 # type: =head2
19783 #: ../fish/guestfish-actions.pod:1113
19784 msgid "filesize"
19785 msgstr ""
19786
19787 # type: verbatim
19788 #: ../fish/guestfish-actions.pod:1115
19789 #, no-wrap
19790 msgid ""
19791 " filesize file\n"
19792 "\n"
19793 msgstr ""
19794
19795 # type: textblock
19796 #: ../fish/guestfish-actions.pod:1119
19797 msgid ""
19798 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
19799 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
19800 msgstr ""
19801
19802 # type: =head2
19803 #: ../fish/guestfish-actions.pod:1123
19804 msgid "fill"
19805 msgstr ""
19806
19807 # type: verbatim
19808 #: ../fish/guestfish-actions.pod:1125
19809 #, no-wrap
19810 msgid ""
19811 " fill c len path\n"
19812 "\n"
19813 msgstr ""
19814
19815 # type: textblock
19816 #: ../fish/guestfish-actions.pod:1131
19817 msgid ""
19818 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19819 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19820 "L</fill-pattern>."
19821 msgstr ""
19822
19823 # type: =head2
19824 #: ../fish/guestfish-actions.pod:1136
19825 msgid "fill-pattern"
19826 msgstr ""
19827
19828 # type: verbatim
19829 #: ../fish/guestfish-actions.pod:1138
19830 #, no-wrap
19831 msgid ""
19832 " fill-pattern pattern len path\n"
19833 "\n"
19834 msgstr ""
19835
19836 # type: textblock
19837 #: ../fish/guestfish-actions.pod:1140
19838 msgid ""
19839 "This function is like L</fill> except that it creates a new file of length "
19840 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19841 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19842 "bytes."
19843 msgstr ""
19844
19845 # type: =head2
19846 #: ../fish/guestfish-actions.pod:1145
19847 msgid "find"
19848 msgstr ""
19849
19850 # type: verbatim
19851 #: ../fish/guestfish-actions.pod:1147
19852 #, no-wrap
19853 msgid ""
19854 " find directory\n"
19855 "\n"
19856 msgstr ""
19857
19858 # type: textblock
19859 #: ../fish/guestfish-actions.pod:1161
19860 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19861 msgstr ""
19862
19863 # type: textblock
19864 #: ../fish/guestfish-actions.pod:1174
19865 msgid "See also L</find0>."
19866 msgstr ""
19867
19868 # type: =head2
19869 #: ../fish/guestfish-actions.pod:1179
19870 msgid "find0"
19871 msgstr ""
19872
19873 # type: verbatim
19874 #: ../fish/guestfish-actions.pod:1181
19875 #, no-wrap
19876 msgid ""
19877 " find0 directory (files|-)\n"
19878 "\n"
19879 msgstr ""
19880
19881 # type: textblock
19882 #: ../fish/guestfish-actions.pod:1187
19883 msgid ""
19884 "This command works the same way as L</find> with the following exceptions:"
19885 msgstr ""
19886
19887 # type: =head2
19888 #: ../fish/guestfish-actions.pod:1214
19889 msgid "findfs-label"
19890 msgstr ""
19891
19892 # type: verbatim
19893 #: ../fish/guestfish-actions.pod:1216
19894 #, no-wrap
19895 msgid ""
19896 " findfs-label label\n"
19897 "\n"
19898 msgstr ""
19899
19900 # type: textblock
19901 #: ../fish/guestfish-actions.pod:1222
19902 msgid "To find the label of a filesystem, use L</vfs-label>."
19903 msgstr ""
19904
19905 # type: =head2
19906 #: ../fish/guestfish-actions.pod:1224
19907 msgid "findfs-uuid"
19908 msgstr ""
19909
19910 # type: verbatim
19911 #: ../fish/guestfish-actions.pod:1226
19912 #, no-wrap
19913 msgid ""
19914 " findfs-uuid uuid\n"
19915 "\n"
19916 msgstr ""
19917
19918 # type: textblock
19919 #: ../fish/guestfish-actions.pod:1232
19920 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19921 msgstr ""
19922
19923 # type: =head2
19924 #: ../fish/guestfish-actions.pod:1234
19925 msgid "fsck"
19926 msgstr ""
19927
19928 # type: verbatim
19929 #: ../fish/guestfish-actions.pod:1236
19930 #, no-wrap
19931 msgid ""
19932 " fsck fstype device\n"
19933 "\n"
19934 msgstr ""
19935
19936 # type: =head2
19937 #: ../fish/guestfish-actions.pod:1266
19938 msgid "get-append"
19939 msgstr ""
19940
19941 # type: verbatim
19942 #: ../fish/guestfish-actions.pod:1268
19943 #, no-wrap
19944 msgid ""
19945 " get-append\n"
19946 "\n"
19947 msgstr ""
19948
19949 # type: =head2
19950 #: ../fish/guestfish-actions.pod:1275
19951 msgid "get-autosync"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #: ../fish/guestfish-actions.pod:1277
19956 #, no-wrap
19957 msgid ""
19958 " get-autosync\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: =head2
19963 #: ../fish/guestfish-actions.pod:1281
19964 msgid "get-direct"
19965 msgstr ""
19966
19967 # type: verbatim
19968 #: ../fish/guestfish-actions.pod:1283
19969 #, no-wrap
19970 msgid ""
19971 " get-direct\n"
19972 "\n"
19973 msgstr ""
19974
19975 # type: =head2
19976 #: ../fish/guestfish-actions.pod:1287
19977 msgid "get-e2label"
19978 msgstr ""
19979
19980 # type: verbatim
19981 #: ../fish/guestfish-actions.pod:1289
19982 #, no-wrap
19983 msgid ""
19984 " get-e2label device\n"
19985 "\n"
19986 msgstr ""
19987
19988 # type: =head2
19989 #: ../fish/guestfish-actions.pod:1301
19990 msgid "get-e2uuid"
19991 msgstr ""
19992
19993 # type: verbatim
19994 #: ../fish/guestfish-actions.pod:1303
19995 #, no-wrap
19996 msgid ""
19997 " get-e2uuid device\n"
19998 "\n"
19999 msgstr ""
20000
20001 # type: =head2
20002 #: ../fish/guestfish-actions.pod:1315
20003 msgid "get-memsize"
20004 msgstr ""
20005
20006 # type: verbatim
20007 #: ../fish/guestfish-actions.pod:1317
20008 #, no-wrap
20009 msgid ""
20010 " get-memsize\n"
20011 "\n"
20012 msgstr ""
20013
20014 # type: textblock
20015 #: ../fish/guestfish-actions.pod:1322
20016 msgid ""
20017 "If L</set-memsize> was not called on this handle, and if "
20018 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20019 "value for memsize."
20020 msgstr ""
20021
20022 # type: =head2
20023 #: ../fish/guestfish-actions.pod:1329
20024 msgid "get-network"
20025 msgstr ""
20026
20027 # type: verbatim
20028 #: ../fish/guestfish-actions.pod:1331
20029 #, no-wrap
20030 msgid ""
20031 " get-network\n"
20032 "\n"
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:1335
20037 msgid "get-path"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:1337
20042 #, no-wrap
20043 msgid ""
20044 " get-path\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: =head2
20049 #: ../fish/guestfish-actions.pod:1344
20050 msgid "get-pid"
20051 msgstr ""
20052
20053 # type: =head2
20054 #: ../fish/guestfish-actions.pod:1346
20055 msgid "pid"
20056 msgstr ""
20057
20058 # type: verbatim
20059 #: ../fish/guestfish-actions.pod:1348
20060 #, no-wrap
20061 msgid ""
20062 " get-pid\n"
20063 "\n"
20064 msgstr ""
20065
20066 # type: =head2
20067 #: ../fish/guestfish-actions.pod:1355
20068 msgid "get-qemu"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #: ../fish/guestfish-actions.pod:1357
20073 #, no-wrap
20074 msgid ""
20075 " get-qemu\n"
20076 "\n"
20077 msgstr ""
20078
20079 # type: =head2
20080 #: ../fish/guestfish-actions.pod:1364
20081 msgid "get-recovery-proc"
20082 msgstr ""
20083
20084 # type: verbatim
20085 #: ../fish/guestfish-actions.pod:1366
20086 #, no-wrap
20087 msgid ""
20088 " get-recovery-proc\n"
20089 "\n"
20090 msgstr ""
20091
20092 # type: =head2
20093 #: ../fish/guestfish-actions.pod:1370
20094 msgid "get-selinux"
20095 msgstr ""
20096
20097 # type: verbatim
20098 #: ../fish/guestfish-actions.pod:1372
20099 #, no-wrap
20100 msgid ""
20101 " get-selinux\n"
20102 "\n"
20103 msgstr ""
20104
20105 # type: textblock
20106 #: ../fish/guestfish-actions.pod:1374
20107 msgid ""
20108 "This returns the current setting of the selinux flag which is passed to the "
20109 "appliance at boot time.  See L</set-selinux>."
20110 msgstr ""
20111
20112 # type: =head2
20113 #: ../fish/guestfish-actions.pod:1380
20114 msgid "get-state"
20115 msgstr ""
20116
20117 # type: verbatim
20118 #: ../fish/guestfish-actions.pod:1382
20119 #, no-wrap
20120 msgid ""
20121 " get-state\n"
20122 "\n"
20123 msgstr ""
20124
20125 # type: =head2
20126 #: ../fish/guestfish-actions.pod:1389
20127 msgid "get-trace"
20128 msgstr ""
20129
20130 # type: verbatim
20131 #: ../fish/guestfish-actions.pod:1391
20132 #, no-wrap
20133 msgid ""
20134 " get-trace\n"
20135 "\n"
20136 msgstr ""
20137
20138 # type: =head2
20139 #: ../fish/guestfish-actions.pod:1395
20140 msgid "get-umask"
20141 msgstr ""
20142
20143 # type: verbatim
20144 #: ../fish/guestfish-actions.pod:1397
20145 #, no-wrap
20146 msgid ""
20147 " get-umask\n"
20148 "\n"
20149 msgstr ""
20150
20151 # type: textblock
20152 #: ../fish/guestfish-actions.pod:1399
20153 msgid ""
20154 "Return the current umask.  By default the umask is C<022> unless it has been "
20155 "set by calling L</umask>."
20156 msgstr ""
20157
20158 # type: =head2
20159 #: ../fish/guestfish-actions.pod:1402
20160 msgid "get-verbose"
20161 msgstr ""
20162
20163 # type: verbatim
20164 #: ../fish/guestfish-actions.pod:1404
20165 #, no-wrap
20166 msgid ""
20167 " get-verbose\n"
20168 "\n"
20169 msgstr ""
20170
20171 # type: =head2
20172 #: ../fish/guestfish-actions.pod:1408
20173 msgid "getcon"
20174 msgstr ""
20175
20176 # type: verbatim
20177 #: ../fish/guestfish-actions.pod:1410
20178 #, no-wrap
20179 msgid ""
20180 " getcon\n"
20181 "\n"
20182 msgstr ""
20183
20184 # type: textblock
20185 #: ../fish/guestfish-actions.pod:1414
20186 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20187 msgstr ""
20188
20189 # type: =head2
20190 #: ../fish/guestfish-actions.pod:1417
20191 msgid "getxattrs"
20192 msgstr ""
20193
20194 # type: verbatim
20195 #: ../fish/guestfish-actions.pod:1419
20196 #, no-wrap
20197 msgid ""
20198 " getxattrs path\n"
20199 "\n"
20200 msgstr ""
20201
20202 # type: textblock
20203 #: ../fish/guestfish-actions.pod:1427
20204 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20205 msgstr ""
20206
20207 # type: =head2
20208 #: ../fish/guestfish-actions.pod:1429
20209 msgid "glob-expand"
20210 msgstr ""
20211
20212 # type: verbatim
20213 #: ../fish/guestfish-actions.pod:1431
20214 #, no-wrap
20215 msgid ""
20216 " glob-expand pattern\n"
20217 "\n"
20218 msgstr ""
20219
20220 # type: =head2
20221 #: ../fish/guestfish-actions.pod:1444
20222 msgid "grep"
20223 msgstr ""
20224
20225 # type: verbatim
20226 #: ../fish/guestfish-actions.pod:1446
20227 #, no-wrap
20228 msgid ""
20229 " grep regex path\n"
20230 "\n"
20231 msgstr ""
20232
20233 # type: =head2
20234 #: ../fish/guestfish-actions.pod:1454
20235 msgid "grepi"
20236 msgstr ""
20237
20238 # type: verbatim
20239 #: ../fish/guestfish-actions.pod:1456
20240 #, no-wrap
20241 msgid ""
20242 " grepi regex path\n"
20243 "\n"
20244 msgstr ""
20245
20246 # type: =head2
20247 #: ../fish/guestfish-actions.pod:1464
20248 msgid "grub-install"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #: ../fish/guestfish-actions.pod:1466
20253 #, no-wrap
20254 msgid ""
20255 " grub-install root device\n"
20256 "\n"
20257 msgstr ""
20258
20259 # type: =head2
20260 #: ../fish/guestfish-actions.pod:1482
20261 msgid "head"
20262 msgstr ""
20263
20264 # type: verbatim
20265 #: ../fish/guestfish-actions.pod:1484
20266 #, no-wrap
20267 msgid ""
20268 " head path\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: =head2
20273 #: ../fish/guestfish-actions.pod:1492
20274 msgid "head-n"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #: ../fish/guestfish-actions.pod:1494
20279 #, no-wrap
20280 msgid ""
20281 " head-n nrlines path\n"
20282 "\n"
20283 msgstr ""
20284
20285 # type: =head2
20286 #: ../fish/guestfish-actions.pod:1507
20287 msgid "hexdump"
20288 msgstr ""
20289
20290 # type: verbatim
20291 #: ../fish/guestfish-actions.pod:1509
20292 #, no-wrap
20293 msgid ""
20294 " hexdump path\n"
20295 "\n"
20296 msgstr ""
20297
20298 # type: =head2
20299 #: ../fish/guestfish-actions.pod:1517
20300 msgid "initrd-cat"
20301 msgstr ""
20302
20303 # type: verbatim
20304 #: ../fish/guestfish-actions.pod:1519
20305 #, no-wrap
20306 msgid ""
20307 " initrd-cat initrdpath filename\n"
20308 "\n"
20309 msgstr ""
20310
20311 # type: textblock
20312 #: ../fish/guestfish-actions.pod:1531
20313 msgid "See also L</initrd-list>."
20314 msgstr ""
20315
20316 # type: =head2
20317 #: ../fish/guestfish-actions.pod:1536
20318 msgid "initrd-list"
20319 msgstr ""
20320
20321 # type: verbatim
20322 #: ../fish/guestfish-actions.pod:1538
20323 #, no-wrap
20324 msgid ""
20325 " initrd-list path\n"
20326 "\n"
20327 msgstr ""
20328
20329 # type: =head2
20330 #: ../fish/guestfish-actions.pod:1550
20331 msgid "inotify-add-watch"
20332 msgstr ""
20333
20334 # type: verbatim
20335 #: ../fish/guestfish-actions.pod:1552
20336 #, no-wrap
20337 msgid ""
20338 " inotify-add-watch path mask\n"
20339 "\n"
20340 msgstr ""
20341
20342 # type: =head2
20343 #: ../fish/guestfish-actions.pod:1564
20344 msgid "inotify-close"
20345 msgstr ""
20346
20347 # type: verbatim
20348 #: ../fish/guestfish-actions.pod:1566
20349 #, no-wrap
20350 msgid ""
20351 " inotify-close\n"
20352 "\n"
20353 msgstr ""
20354
20355 # type: =head2
20356 #: ../fish/guestfish-actions.pod:1572
20357 msgid "inotify-files"
20358 msgstr ""
20359
20360 # type: verbatim
20361 #: ../fish/guestfish-actions.pod:1574
20362 #, no-wrap
20363 msgid ""
20364 " inotify-files\n"
20365 "\n"
20366 msgstr ""
20367
20368 # type: textblock
20369 #: ../fish/guestfish-actions.pod:1576
20370 msgid ""
20371 "This function is a helpful wrapper around L</inotify-read> which just "
20372 "returns a list of pathnames of objects that were touched.  The returned "
20373 "pathnames are sorted and deduplicated."
20374 msgstr ""
20375
20376 # type: =head2
20377 #: ../fish/guestfish-actions.pod:1580
20378 msgid "inotify-init"
20379 msgstr ""
20380
20381 # type: verbatim
20382 #: ../fish/guestfish-actions.pod:1582
20383 #, no-wrap
20384 msgid ""
20385 " inotify-init maxevents\n"
20386 "\n"
20387 msgstr ""
20388
20389 # type: textblock
20390 #: ../fish/guestfish-actions.pod:1588
20391 msgid ""
20392 "C<maxevents> is the maximum number of events which will be queued up between "
20393 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20394 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20395 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20396 "but records the fact that it threw them away by setting a flag "
20397 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20398 msgstr ""
20399
20400 # type: textblock
20401 #: ../fish/guestfish-actions.pod:1598
20402 msgid ""
20403 "Before any events are generated, you have to add some watches to the "
20404 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20405 "L</inotify-watch-all>."
20406 msgstr ""
20407
20408 # type: textblock
20409 #: ../fish/guestfish-actions.pod:1604
20410 msgid ""
20411 "Queued up events should be read periodically by calling L</inotify-read> (or "
20412 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20413 "If you don't read the events out often enough then you risk the internal "
20414 "queue overflowing."
20415 msgstr ""
20416
20417 # type: textblock
20418 #: ../fish/guestfish-actions.pod:1611
20419 msgid ""
20420 "The handle should be closed after use by calling L</inotify-close>.  This "
20421 "also removes any watches automatically."
20422 msgstr ""
20423
20424 # type: =head2
20425 #: ../fish/guestfish-actions.pod:1620
20426 msgid "inotify-read"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #: ../fish/guestfish-actions.pod:1622
20431 #, no-wrap
20432 msgid ""
20433 " inotify-read\n"
20434 "\n"
20435 msgstr ""
20436
20437 # type: =head2
20438 #: ../fish/guestfish-actions.pod:1635
20439 msgid "inotify-rm-watch"
20440 msgstr ""
20441
20442 # type: verbatim
20443 #: ../fish/guestfish-actions.pod:1637
20444 #, no-wrap
20445 msgid ""
20446 " inotify-rm-watch wd\n"
20447 "\n"
20448 msgstr ""
20449
20450 # type: textblock
20451 #: ../fish/guestfish-actions.pod:1639
20452 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20453 msgstr ""
20454
20455 # type: =head2
20456 #: ../fish/guestfish-actions.pod:1642
20457 msgid "inspect-get-arch"
20458 msgstr ""
20459
20460 # type: verbatim
20461 #: ../fish/guestfish-actions.pod:1644
20462 #, no-wrap
20463 msgid ""
20464 " inspect-get-arch root\n"
20465 "\n"
20466 msgstr ""
20467
20468 # type: textblock
20469 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
20470 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746
20471 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782
20472 #: ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1835
20473 #: ../fish/guestfish-actions.pod:1866
20474 msgid ""
20475 "This function should only be called with a root device string as returned by "
20476 "L</inspect-os>."
20477 msgstr ""
20478
20479 # type: textblock
20480 #: ../fish/guestfish-actions.pod:1649
20481 msgid ""
20482 "This returns the architecture of the inspected operating system.  The "
20483 "possible return values are listed under L</file-architecture>."
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:1658
20488 msgid "inspect-get-distro"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:1660
20493 #, no-wrap
20494 msgid ""
20495 " inspect-get-distro root\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:1724
20501 msgid "inspect-get-filesystems"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:1726
20506 #, no-wrap
20507 msgid ""
20508 " inspect-get-filesystems root\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: textblock
20513 #: ../fish/guestfish-actions.pod:1739
20514 msgid ""
20515 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20516 "get-mountpoints>."
20517 msgstr ""
20518
20519 # type: =head2
20520 #: ../fish/guestfish-actions.pod:1742
20521 msgid "inspect-get-major-version"
20522 msgstr ""
20523
20524 # type: verbatim
20525 #: ../fish/guestfish-actions.pod:1744
20526 #, no-wrap
20527 msgid ""
20528 " inspect-get-major-version root\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: =head2
20533 #: ../fish/guestfish-actions.pod:1763
20534 msgid "inspect-get-minor-version"
20535 msgstr ""
20536
20537 # type: verbatim
20538 #: ../fish/guestfish-actions.pod:1765
20539 #, no-wrap
20540 msgid ""
20541 " inspect-get-minor-version root\n"
20542 "\n"
20543 msgstr ""
20544
20545 # type: textblock
20546 #: ../fish/guestfish-actions.pod:1775
20547 msgid ""
20548 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20549 "get-major-version>."
20550 msgstr ""
20551
20552 # type: =head2
20553 #: ../fish/guestfish-actions.pod:1778
20554 msgid "inspect-get-mountpoints"
20555 msgstr ""
20556
20557 # type: verbatim
20558 #: ../fish/guestfish-actions.pod:1780
20559 #, no-wrap
20560 msgid ""
20561 " inspect-get-mountpoints root\n"
20562 "\n"
20563 msgstr ""
20564
20565 # type: textblock
20566 #: ../fish/guestfish-actions.pod:1798
20567 msgid ""
20568 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20569 "get-filesystems>."
20570 msgstr ""
20571
20572 # type: =head2
20573 #: ../fish/guestfish-actions.pod:1801
20574 msgid "inspect-get-product-name"
20575 msgstr ""
20576
20577 # type: verbatim
20578 #: ../fish/guestfish-actions.pod:1803
20579 #, no-wrap
20580 msgid ""
20581 " inspect-get-product-name root\n"
20582 "\n"
20583 msgstr ""
20584
20585 # type: =head2
20586 #: ../fish/guestfish-actions.pod:1818
20587 msgid "inspect-get-roots"
20588 msgstr ""
20589
20590 # type: verbatim
20591 #: ../fish/guestfish-actions.pod:1820
20592 #, no-wrap
20593 msgid ""
20594 " inspect-get-roots\n"
20595 "\n"
20596 msgstr ""
20597
20598 # type: textblock
20599 #: ../fish/guestfish-actions.pod:1822
20600 msgid ""
20601 "This function is a convenient way to get the list of root devices, as "
20602 "returned from a previous call to L</inspect-os>, but without redoing the "
20603 "whole inspection process."
20604 msgstr ""
20605
20606 # type: textblock
20607 #: ../fish/guestfish-actions.pod:1826
20608 msgid ""
20609 "This returns an empty list if either no root devices were found or the "
20610 "caller has not called L</inspect-os>."
20611 msgstr ""
20612
20613 # type: =head2
20614 #: ../fish/guestfish-actions.pod:1831
20615 msgid "inspect-get-type"
20616 msgstr ""
20617
20618 # type: verbatim
20619 #: ../fish/guestfish-actions.pod:1833
20620 #, no-wrap
20621 msgid ""
20622 " inspect-get-type root\n"
20623 "\n"
20624 msgstr ""
20625
20626 # type: =head2
20627 #: ../fish/guestfish-actions.pod:1862
20628 msgid "inspect-get-windows-systemroot"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #: ../fish/guestfish-actions.pod:1864
20633 #, no-wrap
20634 msgid ""
20635 " inspect-get-windows-systemroot root\n"
20636 "\n"
20637 msgstr ""
20638
20639 # type: =head2
20640 #: ../fish/guestfish-actions.pod:1878
20641 msgid "inspect-os"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #: ../fish/guestfish-actions.pod:1880
20646 #, no-wrap
20647 msgid ""
20648 " inspect-os\n"
20649 "\n"
20650 msgstr ""
20651
20652 # type: textblock
20653 #: ../fish/guestfish-actions.pod:1895
20654 msgid ""
20655 "You can pass the root string(s) returned to other L</inspect-get-*> "
20656 "functions in order to query further information about each operating system, "
20657 "such as the name and version."
20658 msgstr ""
20659
20660 # type: textblock
20661 #: ../fish/guestfish-actions.pod:1900
20662 msgid ""
20663 "This function uses other libguestfs features such as L</mount-ro> and L</"
20664 "umount-all> in order to mount and unmount filesystems and look at the "
20665 "contents.  This should be called with no disks currently mounted.  The "
20666 "function may also use Augeas, so any existing Augeas handle will be closed."
20667 msgstr ""
20668
20669 # type: textblock
20670 #: ../fish/guestfish-actions.pod:1912 ../fish/guestfish-actions.pod:2068
20671 #: ../fish/guestfish-actions.pod:2114
20672 msgid "See also L</list-filesystems>."
20673 msgstr ""
20674
20675 # type: =head2
20676 #: ../fish/guestfish-actions.pod:1914
20677 msgid "is-blockdev"
20678 msgstr ""
20679
20680 # type: verbatim
20681 #: ../fish/guestfish-actions.pod:1916
20682 #, no-wrap
20683 msgid ""
20684 " is-blockdev path\n"
20685 "\n"
20686 msgstr ""
20687
20688 # type: textblock
20689 #: ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1939
20690 #: ../fish/guestfish-actions.pod:1958 ../fish/guestfish-actions.pod:1967
20691 #: ../fish/guestfish-actions.pod:1977 ../fish/guestfish-actions.pod:2011
20692 #: ../fish/guestfish-actions.pod:2020
20693 msgid "See also L</stat>."
20694 msgstr ""
20695
20696 # type: =head2
20697 #: ../fish/guestfish-actions.pod:1923
20698 msgid "is-busy"
20699 msgstr ""
20700
20701 # type: verbatim
20702 #: ../fish/guestfish-actions.pod:1925
20703 #, no-wrap
20704 msgid ""
20705 " is-busy\n"
20706 "\n"
20707 msgstr ""
20708
20709 # type: =head2
20710 #: ../fish/guestfish-actions.pod:1932
20711 msgid "is-chardev"
20712 msgstr ""
20713
20714 # type: verbatim
20715 #: ../fish/guestfish-actions.pod:1934
20716 #, no-wrap
20717 msgid ""
20718 " is-chardev path\n"
20719 "\n"
20720 msgstr ""
20721
20722 # type: =head2
20723 #: ../fish/guestfish-actions.pod:1941
20724 msgid "is-config"
20725 msgstr ""
20726
20727 # type: verbatim
20728 #: ../fish/guestfish-actions.pod:1943
20729 #, no-wrap
20730 msgid ""
20731 " is-config\n"
20732 "\n"
20733 msgstr ""
20734
20735 # type: =head2
20736 #: ../fish/guestfish-actions.pod:1950
20737 msgid "is-dir"
20738 msgstr ""
20739
20740 # type: verbatim
20741 #: ../fish/guestfish-actions.pod:1952
20742 #, no-wrap
20743 msgid ""
20744 " is-dir path\n"
20745 "\n"
20746 msgstr ""
20747
20748 # type: =head2
20749 #: ../fish/guestfish-actions.pod:1960
20750 msgid "is-fifo"
20751 msgstr ""
20752
20753 # type: verbatim
20754 #: ../fish/guestfish-actions.pod:1962
20755 #, no-wrap
20756 msgid ""
20757 " is-fifo path\n"
20758 "\n"
20759 msgstr ""
20760
20761 # type: =head2
20762 #: ../fish/guestfish-actions.pod:1969
20763 msgid "is-file"
20764 msgstr ""
20765
20766 # type: verbatim
20767 #: ../fish/guestfish-actions.pod:1971
20768 #, no-wrap
20769 msgid ""
20770 " is-file path\n"
20771 "\n"
20772 msgstr ""
20773
20774 # type: =head2
20775 #: ../fish/guestfish-actions.pod:1979
20776 msgid "is-launching"
20777 msgstr ""
20778
20779 # type: verbatim
20780 #: ../fish/guestfish-actions.pod:1981
20781 #, no-wrap
20782 msgid ""
20783 " is-launching\n"
20784 "\n"
20785 msgstr ""
20786
20787 # type: =head2
20788 #: ../fish/guestfish-actions.pod:1988
20789 msgid "is-lv"
20790 msgstr ""
20791
20792 # type: verbatim
20793 #: ../fish/guestfish-actions.pod:1990
20794 #, no-wrap
20795 msgid ""
20796 " is-lv device\n"
20797 "\n"
20798 msgstr ""
20799
20800 # type: =head2
20801 #: ../fish/guestfish-actions.pod:1995
20802 msgid "is-ready"
20803 msgstr ""
20804
20805 # type: verbatim
20806 #: ../fish/guestfish-actions.pod:1997
20807 #, no-wrap
20808 msgid ""
20809 " is-ready\n"
20810 "\n"
20811 msgstr ""
20812
20813 # type: =head2
20814 #: ../fish/guestfish-actions.pod:2004
20815 msgid "is-socket"
20816 msgstr ""
20817
20818 # type: verbatim
20819 #: ../fish/guestfish-actions.pod:2006
20820 #, no-wrap
20821 msgid ""
20822 " is-socket path\n"
20823 "\n"
20824 msgstr ""
20825
20826 # type: =head2
20827 #: ../fish/guestfish-actions.pod:2013
20828 msgid "is-symlink"
20829 msgstr ""
20830
20831 # type: verbatim
20832 #: ../fish/guestfish-actions.pod:2015
20833 #, no-wrap
20834 msgid ""
20835 " is-symlink path\n"
20836 "\n"
20837 msgstr ""
20838
20839 # type: =head2
20840 #: ../fish/guestfish-actions.pod:2022
20841 msgid "kill-subprocess"
20842 msgstr ""
20843
20844 # type: verbatim
20845 #: ../fish/guestfish-actions.pod:2024
20846 #, no-wrap
20847 msgid ""
20848 " kill-subprocess\n"
20849 "\n"
20850 msgstr ""
20851
20852 # type: =head2
20853 #: ../fish/guestfish-actions.pod:2028
20854 msgid "launch"
20855 msgstr ""
20856
20857 # type: =head2
20858 #: ../fish/guestfish-actions.pod:2030
20859 msgid "run"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #: ../fish/guestfish-actions.pod:2032
20864 #, no-wrap
20865 msgid ""
20866 " launch\n"
20867 "\n"
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:2040
20872 msgid "lchown"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:2042
20877 #, no-wrap
20878 msgid ""
20879 " lchown owner group path\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: textblock
20884 #: ../fish/guestfish-actions.pod:2044
20885 msgid ""
20886 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
20887 "chown> but if C<path> is a symlink then the link itself is changed, not the "
20888 "target."
20889 msgstr ""
20890
20891 # type: =head2
20892 #: ../fish/guestfish-actions.pod:2052
20893 msgid "lgetxattrs"
20894 msgstr ""
20895
20896 # type: verbatim
20897 #: ../fish/guestfish-actions.pod:2054
20898 #, no-wrap
20899 msgid ""
20900 " lgetxattrs path\n"
20901 "\n"
20902 msgstr ""
20903
20904 # type: textblock
20905 #: ../fish/guestfish-actions.pod:2056
20906 msgid ""
20907 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20908 "it returns the extended attributes of the link itself."
20909 msgstr ""
20910
20911 # type: =head2
20912 #: ../fish/guestfish-actions.pod:2060
20913 msgid "list-devices"
20914 msgstr ""
20915
20916 # type: verbatim
20917 #: ../fish/guestfish-actions.pod:2062
20918 #, no-wrap
20919 msgid ""
20920 " list-devices\n"
20921 "\n"
20922 msgstr ""
20923
20924 # type: =head2
20925 #: ../fish/guestfish-actions.pod:2070
20926 msgid "list-filesystems"
20927 msgstr ""
20928
20929 # type: verbatim
20930 #: ../fish/guestfish-actions.pod:2072
20931 #, no-wrap
20932 msgid ""
20933 " list-filesystems\n"
20934 "\n"
20935 msgstr ""
20936
20937 # type: textblock
20938 #: ../fish/guestfish-actions.pod:2091
20939 msgid ""
20940 "This command runs other libguestfs commands, which might include L</mount> "
20941 "and L</umount>, and therefore you should use this soon after launch and only "
20942 "when nothing is mounted."
20943 msgstr ""
20944
20945 # type: textblock
20946 #: ../fish/guestfish-actions.pod:2095
20947 msgid ""
20948 "Not all of the filesystems returned will be mountable.  In particular, swap "
20949 "partitions are returned in the list.  Also this command does not check that "
20950 "each filesystem found is valid and mountable, and some filesystems might be "
20951 "mountable but require special options.  Filesystems may not all belong to a "
20952 "single logical operating system (use L</inspect-os> to look for OSes)."
20953 msgstr ""
20954
20955 # type: =head2
20956 #: ../fish/guestfish-actions.pod:2103
20957 msgid "list-partitions"
20958 msgstr ""
20959
20960 # type: verbatim
20961 #: ../fish/guestfish-actions.pod:2105
20962 #, no-wrap
20963 msgid ""
20964 " list-partitions\n"
20965 "\n"
20966 msgstr ""
20967
20968 # type: textblock
20969 #: ../fish/guestfish-actions.pod:2111
20970 msgid ""
20971 "This does not return logical volumes.  For that you will need to call L</"
20972 "lvs>."
20973 msgstr ""
20974
20975 # type: =head2
20976 #: ../fish/guestfish-actions.pod:2116
20977 msgid "ll"
20978 msgstr ""
20979
20980 # type: verbatim
20981 #: ../fish/guestfish-actions.pod:2118
20982 #, no-wrap
20983 msgid ""
20984 " ll directory\n"
20985 "\n"
20986 msgstr ""
20987
20988 # type: =head2
20989 #: ../fish/guestfish-actions.pod:2126
20990 msgid "ln"
20991 msgstr ""
20992
20993 # type: verbatim
20994 #: ../fish/guestfish-actions.pod:2128
20995 #, no-wrap
20996 msgid ""
20997 " ln target linkname\n"
20998 "\n"
20999 msgstr ""
21000
21001 # type: =head2
21002 #: ../fish/guestfish-actions.pod:2132
21003 msgid "ln-f"
21004 msgstr ""
21005
21006 # type: verbatim
21007 #: ../fish/guestfish-actions.pod:2134
21008 #, no-wrap
21009 msgid ""
21010 " ln-f target linkname\n"
21011 "\n"
21012 msgstr ""
21013
21014 # type: =head2
21015 #: ../fish/guestfish-actions.pod:2139
21016 msgid "ln-s"
21017 msgstr ""
21018
21019 # type: verbatim
21020 #: ../fish/guestfish-actions.pod:2141
21021 #, no-wrap
21022 msgid ""
21023 " ln-s target linkname\n"
21024 "\n"
21025 msgstr ""
21026
21027 # type: =head2
21028 #: ../fish/guestfish-actions.pod:2145
21029 msgid "ln-sf"
21030 msgstr ""
21031
21032 # type: verbatim
21033 #: ../fish/guestfish-actions.pod:2147
21034 #, no-wrap
21035 msgid ""
21036 " ln-sf target linkname\n"
21037 "\n"
21038 msgstr ""
21039
21040 # type: =head2
21041 #: ../fish/guestfish-actions.pod:2152
21042 msgid "lremovexattr"
21043 msgstr ""
21044
21045 # type: verbatim
21046 #: ../fish/guestfish-actions.pod:2154
21047 #, no-wrap
21048 msgid ""
21049 " lremovexattr xattr path\n"
21050 "\n"
21051 msgstr ""
21052
21053 # type: textblock
21054 #: ../fish/guestfish-actions.pod:2156
21055 msgid ""
21056 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21057 "it removes an extended attribute of the link itself."
21058 msgstr ""
21059
21060 # type: =head2
21061 #: ../fish/guestfish-actions.pod:2160
21062 msgid "ls"
21063 msgstr ""
21064
21065 # type: verbatim
21066 #: ../fish/guestfish-actions.pod:2162
21067 #, no-wrap
21068 msgid ""
21069 " ls directory\n"
21070 "\n"
21071 msgstr ""
21072
21073 # type: textblock
21074 #: ../fish/guestfish-actions.pod:2168
21075 msgid ""
21076 "This command is mostly useful for interactive sessions.  Programs should "
21077 "probably use L</readdir> instead."
21078 msgstr ""
21079
21080 # type: =head2
21081 #: ../fish/guestfish-actions.pod:2171
21082 msgid "lsetxattr"
21083 msgstr ""
21084
21085 # type: verbatim
21086 #: ../fish/guestfish-actions.pod:2173
21087 #, no-wrap
21088 msgid ""
21089 " lsetxattr xattr val vallen path\n"
21090 "\n"
21091 msgstr ""
21092
21093 # type: textblock
21094 #: ../fish/guestfish-actions.pod:2175
21095 msgid ""
21096 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21097 "sets an extended attribute of the link itself."
21098 msgstr ""
21099
21100 # type: =head2
21101 #: ../fish/guestfish-actions.pod:2179
21102 msgid "lstat"
21103 msgstr ""
21104
21105 # type: verbatim
21106 #: ../fish/guestfish-actions.pod:2181
21107 #, no-wrap
21108 msgid ""
21109 " lstat path\n"
21110 "\n"
21111 msgstr ""
21112
21113 # type: textblock
21114 #: ../fish/guestfish-actions.pod:2185
21115 msgid ""
21116 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21117 "the link is stat-ed, not the file it refers to."
21118 msgstr ""
21119
21120 # type: =head2
21121 #: ../fish/guestfish-actions.pod:2191
21122 msgid "lstatlist"
21123 msgstr ""
21124
21125 # type: verbatim
21126 #: ../fish/guestfish-actions.pod:2193
21127 #, no-wrap
21128 msgid ""
21129 " lstatlist path 'names ...'\n"
21130 "\n"
21131 msgstr ""
21132
21133 # type: textblock
21134 #: ../fish/guestfish-actions.pod:2195
21135 msgid ""
21136 "This call allows you to perform the L</lstat> operation on multiple files, "
21137 "where all files are in the directory C<path>.  C<names> is the list of files "
21138 "from this directory."
21139 msgstr ""
21140
21141 # type: textblock
21142 #: ../fish/guestfish-actions.pod:2204
21143 msgid ""
21144 "This call is intended for programs that want to efficiently list a directory "
21145 "contents without making many round-trips.  See also L</lxattrlist> for a "
21146 "similarly efficient call for getting extended attributes.  Very long "
21147 "directory listings might cause the protocol message size to be exceeded, "
21148 "causing this call to fail.  The caller must split up such requests into "
21149 "smaller groups of names."
21150 msgstr ""
21151
21152 # type: =head2
21153 #: ../fish/guestfish-actions.pod:2212
21154 msgid "luks-add-key"
21155 msgstr ""
21156
21157 # type: verbatim
21158 #: ../fish/guestfish-actions.pod:2214
21159 #, no-wrap
21160 msgid ""
21161 " luks-add-key device keyslot\n"
21162 "\n"
21163 msgstr ""
21164
21165 # type: textblock
21166 #: ../fish/guestfish-actions.pod:2221
21167 msgid ""
21168 "Note that if C<keyslot> already contains a key, then this command will "
21169 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21170 msgstr ""
21171
21172 # type: textblock
21173 #: ../fish/guestfish-actions.pod:2225 ../fish/guestfish-actions.pod:2247
21174 #: ../fish/guestfish-actions.pod:2260 ../fish/guestfish-actions.pod:2274
21175 #: ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2307
21176 msgid ""
21177 "This command has one or more key or passphrase parameters.  Guestfish will "
21178 "prompt for these separately."
21179 msgstr ""
21180
21181 # type: =head2
21182 #: ../fish/guestfish-actions.pod:2228
21183 msgid "luks-close"
21184 msgstr ""
21185
21186 # type: verbatim
21187 #: ../fish/guestfish-actions.pod:2230
21188 #, no-wrap
21189 msgid ""
21190 " luks-close device\n"
21191 "\n"
21192 msgstr ""
21193
21194 # type: textblock
21195 #: ../fish/guestfish-actions.pod:2232
21196 msgid ""
21197 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21198 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21199 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21200 "block device."
21201 msgstr ""
21202
21203 # type: =head2
21204 #: ../fish/guestfish-actions.pod:2238
21205 msgid "luks-format"
21206 msgstr ""
21207
21208 # type: verbatim
21209 #: ../fish/guestfish-actions.pod:2240
21210 #, no-wrap
21211 msgid ""
21212 " luks-format device keyslot\n"
21213 "\n"
21214 msgstr ""
21215
21216 # type: =head2
21217 #: ../fish/guestfish-actions.pod:2253
21218 msgid "luks-format-cipher"
21219 msgstr ""
21220
21221 # type: verbatim
21222 #: ../fish/guestfish-actions.pod:2255
21223 #, no-wrap
21224 msgid ""
21225 " luks-format-cipher device keyslot cipher\n"
21226 "\n"
21227 msgstr ""
21228
21229 # type: textblock
21230 #: ../fish/guestfish-actions.pod:2257
21231 msgid ""
21232 "This command is the same as L</luks-format> but it also allows you to set "
21233 "the C<cipher> used."
21234 msgstr ""
21235
21236 # type: =head2
21237 #: ../fish/guestfish-actions.pod:2266
21238 msgid "luks-kill-slot"
21239 msgstr ""
21240
21241 # type: verbatim
21242 #: ../fish/guestfish-actions.pod:2268
21243 #, no-wrap
21244 msgid ""
21245 " luks-kill-slot device keyslot\n"
21246 "\n"
21247 msgstr ""
21248
21249 # type: =head2
21250 #: ../fish/guestfish-actions.pod:2277
21251 msgid "luks-open"
21252 msgstr ""
21253
21254 # type: verbatim
21255 #: ../fish/guestfish-actions.pod:2279
21256 #, no-wrap
21257 msgid ""
21258 " luks-open device mapname\n"
21259 "\n"
21260 msgstr ""
21261
21262 # type: textblock
21263 #: ../fish/guestfish-actions.pod:2293
21264 msgid ""
21265 "If this block device contains LVM volume groups, then calling L</vgscan> "
21266 "followed by L</vg-activate-all> will make them visible."
21267 msgstr ""
21268
21269 # type: =head2
21270 #: ../fish/guestfish-actions.pod:2300
21271 msgid "luks-open-ro"
21272 msgstr ""
21273
21274 # type: verbatim
21275 #: ../fish/guestfish-actions.pod:2302
21276 #, no-wrap
21277 msgid ""
21278 " luks-open-ro device mapname\n"
21279 "\n"
21280 msgstr ""
21281
21282 # type: textblock
21283 #: ../fish/guestfish-actions.pod:2304
21284 msgid ""
21285 "This is the same as L</luks-open> except that a read-only mapping is created."
21286 msgstr ""
21287
21288 # type: =head2
21289 #: ../fish/guestfish-actions.pod:2310
21290 msgid "lvcreate"
21291 msgstr ""
21292
21293 # type: verbatim
21294 #: ../fish/guestfish-actions.pod:2312
21295 #, no-wrap
21296 msgid ""
21297 " lvcreate logvol volgroup mbytes\n"
21298 "\n"
21299 msgstr ""
21300
21301 # type: =head2
21302 #: ../fish/guestfish-actions.pod:2317
21303 msgid "lvm-canonical-lv-name"
21304 msgstr ""
21305
21306 # type: verbatim
21307 #: ../fish/guestfish-actions.pod:2319
21308 #, no-wrap
21309 msgid ""
21310 " lvm-canonical-lv-name lvname\n"
21311 "\n"
21312 msgstr ""
21313
21314 # type: textblock
21315 #: ../fish/guestfish-actions.pod:2328
21316 msgid "See also L</is-lv>."
21317 msgstr ""
21318
21319 # type: =head2
21320 #: ../fish/guestfish-actions.pod:2330
21321 msgid "lvm-clear-filter"
21322 msgstr ""
21323
21324 # type: verbatim
21325 #: ../fish/guestfish-actions.pod:2332
21326 #, no-wrap
21327 msgid ""
21328 " lvm-clear-filter\n"
21329 "\n"
21330 msgstr ""
21331
21332 # type: textblock
21333 #: ../fish/guestfish-actions.pod:2334
21334 msgid ""
21335 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21336 "block device."
21337 msgstr ""
21338
21339 # type: =head2
21340 #: ../fish/guestfish-actions.pod:2340
21341 msgid "lvm-remove-all"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #: ../fish/guestfish-actions.pod:2342
21346 #, no-wrap
21347 msgid ""
21348 " lvm-remove-all\n"
21349 "\n"
21350 msgstr ""
21351
21352 # type: =head2
21353 #: ../fish/guestfish-actions.pod:2350
21354 msgid "lvm-set-filter"
21355 msgstr ""
21356
21357 # type: verbatim
21358 #: ../fish/guestfish-actions.pod:2352
21359 #, no-wrap
21360 msgid ""
21361 " lvm-set-filter 'devices ...'\n"
21362 "\n"
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:2377
21367 msgid "lvremove"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:2379
21372 #, no-wrap
21373 msgid ""
21374 " lvremove device\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: =head2
21379 #: ../fish/guestfish-actions.pod:2387
21380 msgid "lvrename"
21381 msgstr ""
21382
21383 # type: verbatim
21384 #: ../fish/guestfish-actions.pod:2389
21385 #, no-wrap
21386 msgid ""
21387 " lvrename logvol newlogvol\n"
21388 "\n"
21389 msgstr ""
21390
21391 # type: =head2
21392 #: ../fish/guestfish-actions.pod:2393
21393 msgid "lvresize"
21394 msgstr ""
21395
21396 # type: verbatim
21397 #: ../fish/guestfish-actions.pod:2395
21398 #, no-wrap
21399 msgid ""
21400 " lvresize device mbytes\n"
21401 "\n"
21402 msgstr ""
21403
21404 # type: =head2
21405 #: ../fish/guestfish-actions.pod:2401
21406 msgid "lvresize-free"
21407 msgstr ""
21408
21409 # type: verbatim
21410 #: ../fish/guestfish-actions.pod:2403
21411 #, no-wrap
21412 msgid ""
21413 " lvresize-free lv percent\n"
21414 "\n"
21415 msgstr ""
21416
21417 # type: =head2
21418 #: ../fish/guestfish-actions.pod:2411
21419 msgid "lvs"
21420 msgstr ""
21421
21422 # type: verbatim
21423 #: ../fish/guestfish-actions.pod:2413
21424 #, no-wrap
21425 msgid ""
21426 " lvs\n"
21427 "\n"
21428 msgstr ""
21429
21430 # type: textblock
21431 #: ../fish/guestfish-actions.pod:2421
21432 msgid "See also L</lvs-full>, L</list-filesystems>."
21433 msgstr ""
21434
21435 # type: =head2
21436 #: ../fish/guestfish-actions.pod:2423
21437 msgid "lvs-full"
21438 msgstr ""
21439
21440 # type: verbatim
21441 #: ../fish/guestfish-actions.pod:2425
21442 #, no-wrap
21443 msgid ""
21444 " lvs-full\n"
21445 "\n"
21446 msgstr ""
21447
21448 # type: =head2
21449 #: ../fish/guestfish-actions.pod:2430
21450 msgid "lvuuid"
21451 msgstr ""
21452
21453 # type: verbatim
21454 #: ../fish/guestfish-actions.pod:2432
21455 #, no-wrap
21456 msgid ""
21457 " lvuuid device\n"
21458 "\n"
21459 msgstr ""
21460
21461 # type: =head2
21462 #: ../fish/guestfish-actions.pod:2436
21463 msgid "lxattrlist"
21464 msgstr ""
21465
21466 # type: verbatim
21467 #: ../fish/guestfish-actions.pod:2438
21468 #, no-wrap
21469 msgid ""
21470 " lxattrlist path 'names ...'\n"
21471 "\n"
21472 msgstr ""
21473
21474 # type: textblock
21475 #: ../fish/guestfish-actions.pod:2454
21476 msgid ""
21477 "This call is intended for programs that want to efficiently list a directory "
21478 "contents without making many round-trips.  See also L</lstatlist> for a "
21479 "similarly efficient call for getting standard stats.  Very long directory "
21480 "listings might cause the protocol message size to be exceeded, causing this "
21481 "call to fail.  The caller must split up such requests into smaller groups of "
21482 "names."
21483 msgstr ""
21484
21485 # type: =head2
21486 #: ../fish/guestfish-actions.pod:2462
21487 msgid "mkdir"
21488 msgstr ""
21489
21490 # type: verbatim
21491 #: ../fish/guestfish-actions.pod:2464
21492 #, no-wrap
21493 msgid ""
21494 " mkdir path\n"
21495 "\n"
21496 msgstr ""
21497
21498 # type: =head2
21499 #: ../fish/guestfish-actions.pod:2468
21500 msgid "mkdir-mode"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #: ../fish/guestfish-actions.pod:2470
21505 #, no-wrap
21506 msgid ""
21507 " mkdir-mode path mode\n"
21508 "\n"
21509 msgstr ""
21510
21511 # type: textblock
21512 #: ../fish/guestfish-actions.pod:2479
21513 msgid "See also L</mkdir>, L</umask>"
21514 msgstr ""
21515
21516 # type: =head2
21517 #: ../fish/guestfish-actions.pod:2481
21518 msgid "mkdir-p"
21519 msgstr ""
21520
21521 # type: verbatim
21522 #: ../fish/guestfish-actions.pod:2483
21523 #, no-wrap
21524 msgid ""
21525 " mkdir-p path\n"
21526 "\n"
21527 msgstr ""
21528
21529 # type: =head2
21530 #: ../fish/guestfish-actions.pod:2488
21531 msgid "mkdtemp"
21532 msgstr ""
21533
21534 # type: verbatim
21535 #: ../fish/guestfish-actions.pod:2490
21536 #, no-wrap
21537 msgid ""
21538 " mkdtemp template\n"
21539 "\n"
21540 msgstr ""
21541
21542 # type: =head2
21543 #: ../fish/guestfish-actions.pod:2511
21544 msgid "mke2fs-J"
21545 msgstr ""
21546
21547 # type: verbatim
21548 #: ../fish/guestfish-actions.pod:2513
21549 #, no-wrap
21550 msgid ""
21551 " mke2fs-J fstype blocksize device journal\n"
21552 "\n"
21553 msgstr ""
21554
21555 # type: textblock
21556 #: ../fish/guestfish-actions.pod:2521
21557 msgid "See also L</mke2journal>."
21558 msgstr ""
21559
21560 # type: =head2
21561 #: ../fish/guestfish-actions.pod:2523
21562 msgid "mke2fs-JL"
21563 msgstr ""
21564
21565 # type: verbatim
21566 #: ../fish/guestfish-actions.pod:2525
21567 #, no-wrap
21568 msgid ""
21569 " mke2fs-JL fstype blocksize device label\n"
21570 "\n"
21571 msgstr ""
21572
21573 # type: textblock
21574 #: ../fish/guestfish-actions.pod:2530
21575 msgid "See also L</mke2journal-L>."
21576 msgstr ""
21577
21578 # type: =head2
21579 #: ../fish/guestfish-actions.pod:2532
21580 msgid "mke2fs-JU"
21581 msgstr ""
21582
21583 # type: verbatim
21584 #: ../fish/guestfish-actions.pod:2534
21585 #, no-wrap
21586 msgid ""
21587 " mke2fs-JU fstype blocksize device uuid\n"
21588 "\n"
21589 msgstr ""
21590
21591 # type: textblock
21592 #: ../fish/guestfish-actions.pod:2539
21593 msgid "See also L</mke2journal-U>."
21594 msgstr ""
21595
21596 # type: =head2
21597 #: ../fish/guestfish-actions.pod:2541
21598 msgid "mke2journal"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #: ../fish/guestfish-actions.pod:2543
21603 #, no-wrap
21604 msgid ""
21605 " mke2journal blocksize device\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:2550
21611 msgid "mke2journal-L"
21612 msgstr ""
21613
21614 # type: verbatim
21615 #: ../fish/guestfish-actions.pod:2552
21616 #, no-wrap
21617 msgid ""
21618 " mke2journal-L blocksize label device\n"
21619 "\n"
21620 msgstr ""
21621
21622 # type: =head2
21623 #: ../fish/guestfish-actions.pod:2556
21624 msgid "mke2journal-U"
21625 msgstr ""
21626
21627 # type: verbatim
21628 #: ../fish/guestfish-actions.pod:2558
21629 #, no-wrap
21630 msgid ""
21631 " mke2journal-U blocksize uuid device\n"
21632 "\n"
21633 msgstr ""
21634
21635 # type: =head2
21636 #: ../fish/guestfish-actions.pod:2562
21637 msgid "mkfifo"
21638 msgstr ""
21639
21640 # type: verbatim
21641 #: ../fish/guestfish-actions.pod:2564
21642 #, no-wrap
21643 msgid ""
21644 " mkfifo mode path\n"
21645 "\n"
21646 msgstr ""
21647
21648 # type: textblock
21649 #: ../fish/guestfish-actions.pod:2566
21650 msgid ""
21651 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21652 "is just a convenient wrapper around L</mknod>."
21653 msgstr ""
21654
21655 # type: =head2
21656 #: ../fish/guestfish-actions.pod:2572
21657 msgid "mkfs"
21658 msgstr ""
21659
21660 # type: verbatim
21661 #: ../fish/guestfish-actions.pod:2574
21662 #, no-wrap
21663 msgid ""
21664 " mkfs fstype device\n"
21665 "\n"
21666 msgstr ""
21667
21668 # type: =head2
21669 #: ../fish/guestfish-actions.pod:2580
21670 msgid "mkfs-b"
21671 msgstr ""
21672
21673 # type: verbatim
21674 #: ../fish/guestfish-actions.pod:2582
21675 #, no-wrap
21676 msgid ""
21677 " mkfs-b fstype blocksize device\n"
21678 "\n"
21679 msgstr ""
21680
21681 # type: textblock
21682 #: ../fish/guestfish-actions.pod:2584
21683 msgid ""
21684 "This call is similar to L</mkfs>, but it allows you to control the block "
21685 "size of the resulting filesystem.  Supported block sizes depend on the "
21686 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21687 msgstr ""
21688
21689 # type: =head2
21690 #: ../fish/guestfish-actions.pod:2592
21691 msgid "mkmountpoint"
21692 msgstr ""
21693
21694 # type: verbatim
21695 #: ../fish/guestfish-actions.pod:2594
21696 #, no-wrap
21697 msgid ""
21698 " mkmountpoint exemptpath\n"
21699 "\n"
21700 msgstr ""
21701
21702 # type: textblock
21703 #: ../fish/guestfish-actions.pod:2596
21704 msgid ""
21705 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21706 "to create extra mountpoints before mounting the first filesystem."
21707 msgstr ""
21708
21709 # type: textblock
21710 #: ../fish/guestfish-actions.pod:2620
21711 msgid ""
21712 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21713 "unexpected errors if you try to mix these calls.  It is safest to manually "
21714 "unmount filesystems and remove mountpoints after use."
21715 msgstr ""
21716
21717 # type: textblock
21718 #: ../fish/guestfish-actions.pod:2624
21719 msgid ""
21720 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21721 "for this to work for manual mountpoints, you must ensure that the innermost "
21722 "mountpoints have the longest pathnames, as in the example code above."
21723 msgstr ""
21724
21725 # type: textblock
21726 #: ../fish/guestfish-actions.pod:2631
21727 msgid ""
21728 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21729 "that L</umount-all> is called when the handle is closed which can also "
21730 "trigger these issues."
21731 msgstr ""
21732
21733 # type: =head2
21734 #: ../fish/guestfish-actions.pod:2635
21735 msgid "mknod"
21736 msgstr ""
21737
21738 # type: verbatim
21739 #: ../fish/guestfish-actions.pod:2637
21740 #, no-wrap
21741 msgid ""
21742 " mknod mode devmajor devminor path\n"
21743 "\n"
21744 msgstr ""
21745
21746 # type: textblock
21747 #: ../fish/guestfish-actions.pod:2647
21748 msgid ""
21749 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21750 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21751 "regular file).  These constants are available in the standard Linux header "
21752 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21753 "wrappers around this command which bitwise OR in the appropriate constant "
21754 "for you."
21755 msgstr ""
21756
21757 # type: =head2
21758 #: ../fish/guestfish-actions.pod:2657
21759 msgid "mknod-b"
21760 msgstr ""
21761
21762 # type: verbatim
21763 #: ../fish/guestfish-actions.pod:2659
21764 #, no-wrap
21765 msgid ""
21766 " mknod-b mode devmajor devminor path\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: textblock
21771 #: ../fish/guestfish-actions.pod:2661
21772 msgid ""
21773 "This call creates a block device node called C<path> with mode C<mode> and "
21774 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21775 "wrapper around L</mknod>."
21776 msgstr ""
21777
21778 # type: =head2
21779 #: ../fish/guestfish-actions.pod:2667
21780 msgid "mknod-c"
21781 msgstr ""
21782
21783 # type: verbatim
21784 #: ../fish/guestfish-actions.pod:2669
21785 #, no-wrap
21786 msgid ""
21787 " mknod-c mode devmajor devminor path\n"
21788 "\n"
21789 msgstr ""
21790
21791 # type: textblock
21792 #: ../fish/guestfish-actions.pod:2671
21793 msgid ""
21794 "This call creates a char device node called C<path> with mode C<mode> and "
21795 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21796 "wrapper around L</mknod>."
21797 msgstr ""
21798
21799 # type: =head2
21800 #: ../fish/guestfish-actions.pod:2677
21801 msgid "mkswap"
21802 msgstr ""
21803
21804 # type: verbatim
21805 #: ../fish/guestfish-actions.pod:2679
21806 #, no-wrap
21807 msgid ""
21808 " mkswap device\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: =head2
21813 #: ../fish/guestfish-actions.pod:2683
21814 msgid "mkswap-L"
21815 msgstr ""
21816
21817 # type: verbatim
21818 #: ../fish/guestfish-actions.pod:2685
21819 #, no-wrap
21820 msgid ""
21821 " mkswap-L label device\n"
21822 "\n"
21823 msgstr ""
21824
21825 # type: =head2
21826 #: ../fish/guestfish-actions.pod:2693
21827 msgid "mkswap-U"
21828 msgstr ""
21829
21830 # type: verbatim
21831 #: ../fish/guestfish-actions.pod:2695
21832 #, no-wrap
21833 msgid ""
21834 " mkswap-U uuid device\n"
21835 "\n"
21836 msgstr ""
21837
21838 # type: =head2
21839 #: ../fish/guestfish-actions.pod:2699
21840 msgid "mkswap-file"
21841 msgstr ""
21842
21843 # type: verbatim
21844 #: ../fish/guestfish-actions.pod:2701
21845 #, no-wrap
21846 msgid ""
21847 " mkswap-file path\n"
21848 "\n"
21849 msgstr ""
21850
21851 # type: textblock
21852 #: ../fish/guestfish-actions.pod:2705
21853 msgid ""
21854 "This command just writes a swap file signature to an existing file.  To "
21855 "create the file itself, use something like L</fallocate>."
21856 msgstr ""
21857
21858 # type: =head2
21859 #: ../fish/guestfish-actions.pod:2708
21860 msgid "modprobe"
21861 msgstr ""
21862
21863 # type: verbatim
21864 #: ../fish/guestfish-actions.pod:2710
21865 #, no-wrap
21866 msgid ""
21867 " modprobe modulename\n"
21868 "\n"
21869 msgstr ""
21870
21871 # type: =head2
21872 #: ../fish/guestfish-actions.pod:2717
21873 msgid "mount"
21874 msgstr ""
21875
21876 # type: verbatim
21877 #: ../fish/guestfish-actions.pod:2719
21878 #, no-wrap
21879 msgid ""
21880 " mount device mountpoint\n"
21881 "\n"
21882 msgstr ""
21883
21884 # type: textblock
21885 #: ../fish/guestfish-actions.pod:2735
21886 msgid ""
21887 "B<Important note:> When you use this call, the filesystem options C<sync> "
21888 "and C<noatime> are set implicitly.  This was originally done because we "
21889 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21890 "very large negative performance impact and negligible effect on "
21891 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21892 "code that needs performance, and instead use L</mount-options> (use an empty "
21893 "string for the first parameter if you don't want any options)."
21894 msgstr ""
21895
21896 # type: =head2
21897 #: ../fish/guestfish-actions.pod:2745
21898 msgid "mount-loop"
21899 msgstr ""
21900
21901 # type: verbatim
21902 #: ../fish/guestfish-actions.pod:2747
21903 #, no-wrap
21904 msgid ""
21905 " mount-loop file mountpoint\n"
21906 "\n"
21907 msgstr ""
21908
21909 # type: =head2
21910 #: ../fish/guestfish-actions.pod:2753
21911 msgid "mount-options"
21912 msgstr ""
21913
21914 # type: verbatim
21915 #: ../fish/guestfish-actions.pod:2755
21916 #, no-wrap
21917 msgid ""
21918 " mount-options options device mountpoint\n"
21919 "\n"
21920 msgstr ""
21921
21922 # type: textblock
21923 #: ../fish/guestfish-actions.pod:2757
21924 msgid ""
21925 "This is the same as the L</mount> command, but it allows you to set the "
21926 "mount options as for the L<mount(8)> I<-o> flag."
21927 msgstr ""
21928
21929 # type: =head2
21930 #: ../fish/guestfish-actions.pod:2765
21931 msgid "mount-ro"
21932 msgstr ""
21933
21934 # type: verbatim
21935 #: ../fish/guestfish-actions.pod:2767
21936 #, no-wrap
21937 msgid ""
21938 " mount-ro device mountpoint\n"
21939 "\n"
21940 msgstr ""
21941
21942 # type: textblock
21943 #: ../fish/guestfish-actions.pod:2769
21944 msgid ""
21945 "This is the same as the L</mount> command, but it mounts the filesystem with "
21946 "the read-only (I<-o ro>) flag."
21947 msgstr ""
21948
21949 # type: =head2
21950 #: ../fish/guestfish-actions.pod:2772
21951 msgid "mount-vfs"
21952 msgstr ""
21953
21954 # type: verbatim
21955 #: ../fish/guestfish-actions.pod:2774
21956 #, no-wrap
21957 msgid ""
21958 " mount-vfs options vfstype device mountpoint\n"
21959 "\n"
21960 msgstr ""
21961
21962 # type: textblock
21963 #: ../fish/guestfish-actions.pod:2776
21964 msgid ""
21965 "This is the same as the L</mount> command, but it allows you to set both the "
21966 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21967 msgstr ""
21968
21969 # type: =head2
21970 #: ../fish/guestfish-actions.pod:2780
21971 msgid "mountpoints"
21972 msgstr ""
21973
21974 # type: verbatim
21975 #: ../fish/guestfish-actions.pod:2782
21976 #, no-wrap
21977 msgid ""
21978 " mountpoints\n"
21979 "\n"
21980 msgstr ""
21981
21982 # type: textblock
21983 #: ../fish/guestfish-actions.pod:2784
21984 msgid ""
21985 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21986 "This one returns a hash table (map) of device name to directory where the "
21987 "device is mounted."
21988 msgstr ""
21989
21990 # type: =head2
21991 #: ../fish/guestfish-actions.pod:2788
21992 msgid "mounts"
21993 msgstr ""
21994
21995 # type: verbatim
21996 #: ../fish/guestfish-actions.pod:2790
21997 #, no-wrap
21998 msgid ""
21999 " mounts\n"
22000 "\n"
22001 msgstr ""
22002
22003 # type: textblock
22004 #: ../fish/guestfish-actions.pod:2797
22005 msgid "See also: L</mountpoints>"
22006 msgstr ""
22007
22008 # type: =head2
22009 #: ../fish/guestfish-actions.pod:2799
22010 msgid "mv"
22011 msgstr ""
22012
22013 # type: verbatim
22014 #: ../fish/guestfish-actions.pod:2801
22015 #, no-wrap
22016 msgid ""
22017 " mv src dest\n"
22018 "\n"
22019 msgstr ""
22020
22021 # type: =head2
22022 #: ../fish/guestfish-actions.pod:2806
22023 msgid "ntfs-3g-probe"
22024 msgstr ""
22025
22026 # type: verbatim
22027 #: ../fish/guestfish-actions.pod:2808
22028 #, no-wrap
22029 msgid ""
22030 " ntfs-3g-probe true|false device\n"
22031 "\n"
22032 msgstr ""
22033
22034 # type: =head2
22035 #: ../fish/guestfish-actions.pod:2822
22036 msgid "ntfsresize"
22037 msgstr ""
22038
22039 # type: verbatim
22040 #: ../fish/guestfish-actions.pod:2824
22041 #, no-wrap
22042 msgid ""
22043 " ntfsresize device\n"
22044 "\n"
22045 msgstr ""
22046
22047 # type: =head2
22048 #: ../fish/guestfish-actions.pod:2830
22049 msgid "ntfsresize-size"
22050 msgstr ""
22051
22052 # type: verbatim
22053 #: ../fish/guestfish-actions.pod:2832
22054 #, no-wrap
22055 msgid ""
22056 " ntfsresize-size device size\n"
22057 "\n"
22058 msgstr ""
22059
22060 # type: textblock
22061 #: ../fish/guestfish-actions.pod:2834
22062 msgid ""
22063 "This command is the same as L</ntfsresize> except that it allows you to "
22064 "specify the new size (in bytes) explicitly."
22065 msgstr ""
22066
22067 # type: =head2
22068 #: ../fish/guestfish-actions.pod:2837
22069 msgid "part-add"
22070 msgstr ""
22071
22072 # type: verbatim
22073 #: ../fish/guestfish-actions.pod:2839
22074 #, no-wrap
22075 msgid ""
22076 " part-add device prlogex startsect endsect\n"
22077 "\n"
22078 msgstr ""
22079
22080 # type: textblock
22081 #: ../fish/guestfish-actions.pod:2841
22082 msgid ""
22083 "This command adds a partition to C<device>.  If there is no partition table "
22084 "on the device, call L</part-init> first."
22085 msgstr ""
22086
22087 # type: textblock
22088 #: ../fish/guestfish-actions.pod:2853
22089 msgid ""
22090 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22091 "part-disk> to do that."
22092 msgstr ""
22093
22094 # type: =head2
22095 #: ../fish/guestfish-actions.pod:2856
22096 msgid "part-del"
22097 msgstr ""
22098
22099 # type: verbatim
22100 #: ../fish/guestfish-actions.pod:2858
22101 #, no-wrap
22102 msgid ""
22103 " part-del device partnum\n"
22104 "\n"
22105 msgstr ""
22106
22107 # type: =head2
22108 #: ../fish/guestfish-actions.pod:2866
22109 msgid "part-disk"
22110 msgstr ""
22111
22112 # type: verbatim
22113 #: ../fish/guestfish-actions.pod:2868
22114 #, no-wrap
22115 msgid ""
22116 " part-disk device parttype\n"
22117 "\n"
22118 msgstr ""
22119
22120 # type: textblock
22121 #: ../fish/guestfish-actions.pod:2870
22122 msgid ""
22123 "This command is simply a combination of L</part-init> followed by L</part-"
22124 "add> to create a single primary partition covering the whole disk."
22125 msgstr ""
22126
22127 # type: textblock
22128 #: ../fish/guestfish-actions.pod:2874
22129 msgid ""
22130 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22131 "possible values are described in L</part-init>."
22132 msgstr ""
22133
22134 # type: =head2
22135 #: ../fish/guestfish-actions.pod:2880
22136 msgid "part-get-bootable"
22137 msgstr ""
22138
22139 # type: verbatim
22140 #: ../fish/guestfish-actions.pod:2882
22141 #, no-wrap
22142 msgid ""
22143 " part-get-bootable device partnum\n"
22144 "\n"
22145 msgstr ""
22146
22147 # type: textblock
22148 #: ../fish/guestfish-actions.pod:2887
22149 msgid "See also L</part-set-bootable>."
22150 msgstr ""
22151
22152 # type: =head2
22153 #: ../fish/guestfish-actions.pod:2889
22154 msgid "part-get-mbr-id"
22155 msgstr ""
22156
22157 # type: verbatim
22158 #: ../fish/guestfish-actions.pod:2891
22159 #, no-wrap
22160 msgid ""
22161 " part-get-mbr-id device partnum\n"
22162 "\n"
22163 msgstr ""
22164
22165 # type: textblock
22166 #: ../fish/guestfish-actions.pod:2896 ../fish/guestfish-actions.pod:3034
22167 msgid ""
22168 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22169 "undefined results for other partition table types (see L</part-get-"
22170 "parttype>)."
22171 msgstr ""
22172
22173 # type: =head2
22174 #: ../fish/guestfish-actions.pod:2900
22175 msgid "part-get-parttype"
22176 msgstr ""
22177
22178 # type: verbatim
22179 #: ../fish/guestfish-actions.pod:2902
22180 #, no-wrap
22181 msgid ""
22182 " part-get-parttype device\n"
22183 "\n"
22184 msgstr ""
22185
22186 # type: textblock
22187 #: ../fish/guestfish-actions.pod:2907
22188 msgid ""
22189 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22190 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22191 "possible, although unusual.  See L</part-init> for a full list."
22192 msgstr ""
22193
22194 # type: =head2
22195 #: ../fish/guestfish-actions.pod:2912
22196 msgid "part-init"
22197 msgstr ""
22198
22199 # type: verbatim
22200 #: ../fish/guestfish-actions.pod:2914
22201 #, no-wrap
22202 msgid ""
22203 " part-init device parttype\n"
22204 "\n"
22205 msgstr ""
22206
22207 # type: textblock
22208 #: ../fish/guestfish-actions.pod:2920
22209 msgid ""
22210 "Initially there are no partitions.  Following this, you should call L</part-"
22211 "add> for each partition required."
22212 msgstr ""
22213
22214 # type: =head2
22215 #: ../fish/guestfish-actions.pod:2983
22216 msgid "part-list"
22217 msgstr ""
22218
22219 # type: verbatim
22220 #: ../fish/guestfish-actions.pod:2985
22221 #, no-wrap
22222 msgid ""
22223 " part-list device\n"
22224 "\n"
22225 msgstr ""
22226
22227 # type: textblock
22228 #: ../fish/guestfish-actions.pod:3000
22229 msgid ""
22230 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22231 "the device's sector size, see L</blockdev-getss>."
22232 msgstr ""
22233
22234 # type: =head2
22235 #: ../fish/guestfish-actions.pod:3013
22236 msgid "part-set-bootable"
22237 msgstr ""
22238
22239 # type: verbatim
22240 #: ../fish/guestfish-actions.pod:3015
22241 #, no-wrap
22242 msgid ""
22243 " part-set-bootable device partnum true|false\n"
22244 "\n"
22245 msgstr ""
22246
22247 # type: =head2
22248 #: ../fish/guestfish-actions.pod:3024
22249 msgid "part-set-mbr-id"
22250 msgstr ""
22251
22252 # type: verbatim
22253 #: ../fish/guestfish-actions.pod:3026
22254 #, no-wrap
22255 msgid ""
22256 " part-set-mbr-id device partnum idbyte\n"
22257 "\n"
22258 msgstr ""
22259
22260 # type: =head2
22261 #: ../fish/guestfish-actions.pod:3038
22262 msgid "part-set-name"
22263 msgstr ""
22264
22265 # type: verbatim
22266 #: ../fish/guestfish-actions.pod:3040
22267 #, no-wrap
22268 msgid ""
22269 " part-set-name device partnum name\n"
22270 "\n"
22271 msgstr ""
22272
22273 # type: =head2
22274 #: ../fish/guestfish-actions.pod:3048
22275 msgid "part-to-dev"
22276 msgstr ""
22277
22278 # type: verbatim
22279 #: ../fish/guestfish-actions.pod:3050
22280 #, no-wrap
22281 msgid ""
22282 " part-to-dev partition\n"
22283 "\n"
22284 msgstr ""
22285
22286 # type: textblock
22287 #: ../fish/guestfish-actions.pod:3056
22288 msgid ""
22289 "The named partition must exist, for example as a string returned from L</"
22290 "list-partitions>."
22291 msgstr ""
22292
22293 # type: =head2
22294 #: ../fish/guestfish-actions.pod:3059
22295 msgid "ping-daemon"
22296 msgstr ""
22297
22298 # type: verbatim
22299 #: ../fish/guestfish-actions.pod:3061
22300 #, no-wrap
22301 msgid ""
22302 " ping-daemon\n"
22303 "\n"
22304 msgstr ""
22305
22306 # type: =head2
22307 #: ../fish/guestfish-actions.pod:3068
22308 msgid "pread"
22309 msgstr ""
22310
22311 # type: verbatim
22312 #: ../fish/guestfish-actions.pod:3070
22313 #, no-wrap
22314 msgid ""
22315 " pread path count offset\n"
22316 "\n"
22317 msgstr ""
22318
22319 # type: textblock
22320 #: ../fish/guestfish-actions.pod:3078
22321 msgid "See also L</pwrite>, L</pread-device>."
22322 msgstr ""
22323
22324 # type: =head2
22325 #: ../fish/guestfish-actions.pod:3083
22326 msgid "pread-device"
22327 msgstr ""
22328
22329 # type: verbatim
22330 #: ../fish/guestfish-actions.pod:3085
22331 #, no-wrap
22332 msgid ""
22333 " pread-device device count offset\n"
22334 "\n"
22335 msgstr ""
22336
22337 # type: textblock
22338 #: ../fish/guestfish-actions.pod:3093
22339 msgid "See also L</pread>."
22340 msgstr ""
22341
22342 # type: =head2
22343 #: ../fish/guestfish-actions.pod:3098
22344 msgid "pvcreate"
22345 msgstr ""
22346
22347 # type: verbatim
22348 #: ../fish/guestfish-actions.pod:3100
22349 #, no-wrap
22350 msgid ""
22351 " pvcreate device\n"
22352 "\n"
22353 msgstr ""
22354
22355 # type: =head2
22356 #: ../fish/guestfish-actions.pod:3106
22357 msgid "pvremove"
22358 msgstr ""
22359
22360 # type: verbatim
22361 #: ../fish/guestfish-actions.pod:3108
22362 #, no-wrap
22363 msgid ""
22364 " pvremove device\n"
22365 "\n"
22366 msgstr ""
22367
22368 # type: =head2
22369 #: ../fish/guestfish-actions.pod:3117
22370 msgid "pvresize"
22371 msgstr ""
22372
22373 # type: verbatim
22374 #: ../fish/guestfish-actions.pod:3119
22375 #, no-wrap
22376 msgid ""
22377 " pvresize device\n"
22378 "\n"
22379 msgstr ""
22380
22381 # type: =head2
22382 #: ../fish/guestfish-actions.pod:3124
22383 msgid "pvresize-size"
22384 msgstr ""
22385
22386 # type: verbatim
22387 #: ../fish/guestfish-actions.pod:3126
22388 #, no-wrap
22389 msgid ""
22390 " pvresize-size device size\n"
22391 "\n"
22392 msgstr ""
22393
22394 # type: textblock
22395 #: ../fish/guestfish-actions.pod:3128
22396 msgid ""
22397 "This command is the same as L</pvresize> except that it allows you to "
22398 "specify the new size (in bytes) explicitly."
22399 msgstr ""
22400
22401 # type: =head2
22402 #: ../fish/guestfish-actions.pod:3131
22403 msgid "pvs"
22404 msgstr ""
22405
22406 # type: verbatim
22407 #: ../fish/guestfish-actions.pod:3133
22408 #, no-wrap
22409 msgid ""
22410 " pvs\n"
22411 "\n"
22412 msgstr ""
22413
22414 # type: textblock
22415 #: ../fish/guestfish-actions.pod:3141
22416 msgid "See also L</pvs-full>."
22417 msgstr ""
22418
22419 # type: =head2
22420 #: ../fish/guestfish-actions.pod:3143
22421 msgid "pvs-full"
22422 msgstr ""
22423
22424 # type: verbatim
22425 #: ../fish/guestfish-actions.pod:3145
22426 #, no-wrap
22427 msgid ""
22428 " pvs-full\n"
22429 "\n"
22430 msgstr ""
22431
22432 # type: =head2
22433 #: ../fish/guestfish-actions.pod:3150
22434 msgid "pvuuid"
22435 msgstr ""
22436
22437 # type: verbatim
22438 #: ../fish/guestfish-actions.pod:3152
22439 #, no-wrap
22440 msgid ""
22441 " pvuuid device\n"
22442 "\n"
22443 msgstr ""
22444
22445 # type: =head2
22446 #: ../fish/guestfish-actions.pod:3156
22447 msgid "pwrite"
22448 msgstr ""
22449
22450 # type: verbatim
22451 #: ../fish/guestfish-actions.pod:3158
22452 #, no-wrap
22453 msgid ""
22454 " pwrite path content offset\n"
22455 "\n"
22456 msgstr ""
22457
22458 # type: textblock
22459 #: ../fish/guestfish-actions.pod:3169
22460 msgid "See also L</pread>, L</pwrite-device>."
22461 msgstr ""
22462
22463 # type: =head2
22464 #: ../fish/guestfish-actions.pod:3174
22465 msgid "pwrite-device"
22466 msgstr ""
22467
22468 # type: verbatim
22469 #: ../fish/guestfish-actions.pod:3176
22470 #, no-wrap
22471 msgid ""
22472 " pwrite-device device content offset\n"
22473 "\n"
22474 msgstr ""
22475
22476 # type: textblock
22477 #: ../fish/guestfish-actions.pod:3186
22478 msgid "See also L</pwrite>."
22479 msgstr ""
22480
22481 # type: =head2
22482 #: ../fish/guestfish-actions.pod:3191
22483 msgid "read-file"
22484 msgstr ""
22485
22486 # type: verbatim
22487 #: ../fish/guestfish-actions.pod:3193
22488 #, no-wrap
22489 msgid ""
22490 " read-file path\n"
22491 "\n"
22492 msgstr ""
22493
22494 # type: textblock
22495 #: ../fish/guestfish-actions.pod:3198
22496 msgid ""
22497 "Unlike L</cat>, this function can correctly handle files that contain "
22498 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22499 "is limited in the total size of file that can be handled."
22500 msgstr ""
22501
22502 # type: =head2
22503 #: ../fish/guestfish-actions.pod:3206
22504 msgid "read-lines"
22505 msgstr ""
22506
22507 # type: verbatim
22508 #: ../fish/guestfish-actions.pod:3208
22509 #, no-wrap
22510 msgid ""
22511 " read-lines path\n"
22512 "\n"
22513 msgstr ""
22514
22515 # type: textblock
22516 #: ../fish/guestfish-actions.pod:3215
22517 msgid ""
22518 "Note that this function cannot correctly handle binary files (specifically, "
22519 "files containing C<\\0> character which is treated as end of line).  For "
22520 "those you need to use the L</read-file> function which has a more complex "
22521 "interface."
22522 msgstr ""
22523
22524 # type: =head2
22525 #: ../fish/guestfish-actions.pod:3220
22526 msgid "readdir"
22527 msgstr ""
22528
22529 # type: verbatim
22530 #: ../fish/guestfish-actions.pod:3222
22531 #, no-wrap
22532 msgid ""
22533 " readdir dir\n"
22534 "\n"
22535 msgstr ""
22536
22537 # type: textblock
22538 #: ../fish/guestfish-actions.pod:3274
22539 msgid ""
22540 "This function is primarily intended for use by programs.  To get a simple "
22541 "list of names, use L</ls>.  To get a printable directory for human "
22542 "consumption, use L</ll>."
22543 msgstr ""
22544
22545 # type: =head2
22546 #: ../fish/guestfish-actions.pod:3278
22547 msgid "readlink"
22548 msgstr ""
22549
22550 # type: verbatim
22551 #: ../fish/guestfish-actions.pod:3280
22552 #, no-wrap
22553 msgid ""
22554 " readlink path\n"
22555 "\n"
22556 msgstr ""
22557
22558 # type: =head2
22559 #: ../fish/guestfish-actions.pod:3284
22560 msgid "readlinklist"
22561 msgstr ""
22562
22563 # type: verbatim
22564 #: ../fish/guestfish-actions.pod:3286
22565 #, no-wrap
22566 msgid ""
22567 " readlinklist path 'names ...'\n"
22568 "\n"
22569 msgstr ""
22570
22571 # type: =head2
22572 #: ../fish/guestfish-actions.pod:3310
22573 msgid "realpath"
22574 msgstr ""
22575
22576 # type: verbatim
22577 #: ../fish/guestfish-actions.pod:3312
22578 #, no-wrap
22579 msgid ""
22580 " realpath path\n"
22581 "\n"
22582 msgstr ""
22583
22584 # type: =head2
22585 #: ../fish/guestfish-actions.pod:3317
22586 msgid "removexattr"
22587 msgstr ""
22588
22589 # type: verbatim
22590 #: ../fish/guestfish-actions.pod:3319
22591 #, no-wrap
22592 msgid ""
22593 " removexattr xattr path\n"
22594 "\n"
22595 msgstr ""
22596
22597 # type: textblock
22598 #: ../fish/guestfish-actions.pod:3324
22599 msgid "See also: L</lremovexattr>, L<attr(5)>."
22600 msgstr ""
22601
22602 # type: =head2
22603 #: ../fish/guestfish-actions.pod:3326
22604 msgid "resize2fs"
22605 msgstr ""
22606
22607 # type: verbatim
22608 #: ../fish/guestfish-actions.pod:3328
22609 #, no-wrap
22610 msgid ""
22611 " resize2fs device\n"
22612 "\n"
22613 msgstr ""
22614
22615 # type: textblock
22616 #: ../fish/guestfish-actions.pod:3333
22617 msgid ""
22618 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22619 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22620 "gives an error about this and sometimes not.  In any case, it is always safe "
22621 "to call L</e2fsck-f> before calling this function."
22622 msgstr ""
22623
22624 # type: =head2
22625 #: ../fish/guestfish-actions.pod:3339
22626 msgid "resize2fs-size"
22627 msgstr ""
22628
22629 # type: verbatim
22630 #: ../fish/guestfish-actions.pod:3341
22631 #, no-wrap
22632 msgid ""
22633 " resize2fs-size device size\n"
22634 "\n"
22635 msgstr ""
22636
22637 # type: textblock
22638 #: ../fish/guestfish-actions.pod:3343
22639 msgid ""
22640 "This command is the same as L</resize2fs> except that it allows you to "
22641 "specify the new size (in bytes) explicitly."
22642 msgstr ""
22643
22644 # type: =head2
22645 #: ../fish/guestfish-actions.pod:3346
22646 msgid "rm"
22647 msgstr ""
22648
22649 # type: verbatim
22650 #: ../fish/guestfish-actions.pod:3348
22651 #, no-wrap
22652 msgid ""
22653 " rm path\n"
22654 "\n"
22655 msgstr ""
22656
22657 # type: =head2
22658 #: ../fish/guestfish-actions.pod:3352
22659 msgid "rm-rf"
22660 msgstr ""
22661
22662 # type: verbatim
22663 #: ../fish/guestfish-actions.pod:3354
22664 #, no-wrap
22665 msgid ""
22666 " rm-rf path\n"
22667 "\n"
22668 msgstr ""
22669
22670 # type: =head2
22671 #: ../fish/guestfish-actions.pod:3360
22672 msgid "rmdir"
22673 msgstr ""
22674
22675 # type: verbatim
22676 #: ../fish/guestfish-actions.pod:3362
22677 #, no-wrap
22678 msgid ""
22679 " rmdir path\n"
22680 "\n"
22681 msgstr ""
22682
22683 # type: =head2
22684 #: ../fish/guestfish-actions.pod:3366
22685 msgid "rmmountpoint"
22686 msgstr ""
22687
22688 # type: verbatim
22689 #: ../fish/guestfish-actions.pod:3368
22690 #, no-wrap
22691 msgid ""
22692 " rmmountpoint exemptpath\n"
22693 "\n"
22694 msgstr ""
22695
22696 # type: textblock
22697 #: ../fish/guestfish-actions.pod:3370
22698 msgid ""
22699 "This calls removes a mountpoint that was previously created with L</"
22700 "mkmountpoint>.  See L</mkmountpoint> for full details."
22701 msgstr ""
22702
22703 # type: =head2
22704 #: ../fish/guestfish-actions.pod:3374
22705 msgid "scrub-device"
22706 msgstr ""
22707
22708 # type: verbatim
22709 #: ../fish/guestfish-actions.pod:3376
22710 #, no-wrap
22711 msgid ""
22712 " scrub-device device\n"
22713 "\n"
22714 msgstr ""
22715
22716 # type: =head2
22717 #: ../fish/guestfish-actions.pod:3387
22718 msgid "scrub-file"
22719 msgstr ""
22720
22721 # type: verbatim
22722 #: ../fish/guestfish-actions.pod:3389
22723 #, no-wrap
22724 msgid ""
22725 " scrub-file file\n"
22726 "\n"
22727 msgstr ""
22728
22729 # type: =head2
22730 #: ../fish/guestfish-actions.pod:3399
22731 msgid "scrub-freespace"
22732 msgstr ""
22733
22734 # type: verbatim
22735 #: ../fish/guestfish-actions.pod:3401
22736 #, no-wrap
22737 msgid ""
22738 " scrub-freespace dir\n"
22739 "\n"
22740 msgstr ""
22741
22742 # type: textblock
22743 #: ../fish/guestfish-actions.pod:3403
22744 msgid ""
22745 "This command creates the directory C<dir> and then fills it with files until "
22746 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22747 "deletes them.  The intention is to scrub any free space on the partition "
22748 "containing C<dir>."
22749 msgstr ""
22750
22751 # type: =head2
22752 #: ../fish/guestfish-actions.pod:3412
22753 msgid "set-append"
22754 msgstr ""
22755
22756 # type: =head2
22757 #: ../fish/guestfish-actions.pod:3414
22758 msgid "append"
22759 msgstr ""
22760
22761 # type: verbatim
22762 #: ../fish/guestfish-actions.pod:3416
22763 #, no-wrap
22764 msgid ""
22765 " set-append append\n"
22766 "\n"
22767 msgstr ""
22768
22769 # type: =head2
22770 #: ../fish/guestfish-actions.pod:3427
22771 msgid "set-autosync"
22772 msgstr ""
22773
22774 # type: =head2
22775 #: ../fish/guestfish-actions.pod:3429
22776 msgid "autosync"
22777 msgstr ""
22778
22779 # type: verbatim
22780 #: ../fish/guestfish-actions.pod:3431
22781 #, no-wrap
22782 msgid ""
22783 " set-autosync true|false\n"
22784 "\n"
22785 msgstr ""
22786
22787 # type: textblock
22788 #: ../fish/guestfish-actions.pod:3433
22789 msgid ""
22790 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22791 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22792 "closed (also if the program exits without closing handles)."
22793 msgstr ""
22794
22795 # type: =head2
22796 #: ../fish/guestfish-actions.pod:3441
22797 msgid "set-direct"
22798 msgstr ""
22799
22800 # type: =head2
22801 #: ../fish/guestfish-actions.pod:3443
22802 msgid "direct"
22803 msgstr ""
22804
22805 # type: verbatim
22806 #: ../fish/guestfish-actions.pod:3445
22807 #, no-wrap
22808 msgid ""
22809 " set-direct true|false\n"
22810 "\n"
22811 msgstr ""
22812
22813 # type: textblock
22814 #: ../fish/guestfish-actions.pod:3451
22815 msgid ""
22816 "One consequence of this is that log messages aren't caught by the library "
22817 "and handled by L</set-log-message-callback>, but go straight to stdout."
22818 msgstr ""
22819
22820 # type: =head2
22821 #: ../fish/guestfish-actions.pod:3460
22822 msgid "set-e2label"
22823 msgstr ""
22824
22825 # type: verbatim
22826 #: ../fish/guestfish-actions.pod:3462
22827 #, no-wrap
22828 msgid ""
22829 " set-e2label device label\n"
22830 "\n"
22831 msgstr ""
22832
22833 # type: textblock
22834 #: ../fish/guestfish-actions.pod:3468
22835 msgid ""
22836 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22837 "label on a filesystem."
22838 msgstr ""
22839
22840 # type: =head2
22841 #: ../fish/guestfish-actions.pod:3471
22842 msgid "set-e2uuid"
22843 msgstr ""
22844
22845 # type: verbatim
22846 #: ../fish/guestfish-actions.pod:3473
22847 #, no-wrap
22848 msgid ""
22849 " set-e2uuid device uuid\n"
22850 "\n"
22851 msgstr ""
22852
22853 # type: textblock
22854 #: ../fish/guestfish-actions.pod:3480
22855 msgid ""
22856 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22857 "UUID of a filesystem."
22858 msgstr ""
22859
22860 # type: =head2
22861 #: ../fish/guestfish-actions.pod:3483
22862 msgid "set-memsize"
22863 msgstr ""
22864
22865 # type: =head2
22866 #: ../fish/guestfish-actions.pod:3485
22867 msgid "memsize"
22868 msgstr ""
22869
22870 # type: verbatim
22871 #: ../fish/guestfish-actions.pod:3487
22872 #, no-wrap
22873 msgid ""
22874 " set-memsize memsize\n"
22875 "\n"
22876 msgstr ""
22877
22878 # type: textblock
22879 #: ../fish/guestfish-actions.pod:3489
22880 msgid ""
22881 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22882 "This only has any effect if called before L</launch>."
22883 msgstr ""
22884
22885 # type: =head2
22886 #: ../fish/guestfish-actions.pod:3500
22887 msgid "set-network"
22888 msgstr ""
22889
22890 # type: =head2
22891 #: ../fish/guestfish-actions.pod:3502
22892 msgid "network"
22893 msgstr ""
22894
22895 # type: verbatim
22896 #: ../fish/guestfish-actions.pod:3504
22897 #, no-wrap
22898 msgid ""
22899 " set-network true|false\n"
22900 "\n"
22901 msgstr ""
22902
22903 # type: textblock
22904 #: ../fish/guestfish-actions.pod:3512
22905 msgid ""
22906 "You must call this before calling L</launch>, otherwise it has no effect."
22907 msgstr ""
22908
22909 # type: =head2
22910 #: ../fish/guestfish-actions.pod:3515
22911 msgid "set-path"
22912 msgstr ""
22913
22914 # type: =head2
22915 #: ../fish/guestfish-actions.pod:3517
22916 msgid "path"
22917 msgstr ""
22918
22919 # type: verbatim
22920 #: ../fish/guestfish-actions.pod:3519
22921 #, no-wrap
22922 msgid ""
22923 " set-path searchpath\n"
22924 "\n"
22925 msgstr ""
22926
22927 # type: =head2
22928 #: ../fish/guestfish-actions.pod:3528
22929 msgid "set-qemu"
22930 msgstr ""
22931
22932 # type: =head2
22933 #: ../fish/guestfish-actions.pod:3530
22934 msgid "qemu"
22935 msgstr ""
22936
22937 # type: verbatim
22938 #: ../fish/guestfish-actions.pod:3532
22939 #, no-wrap
22940 msgid ""
22941 " set-qemu qemu\n"
22942 "\n"
22943 msgstr ""
22944
22945 # type: =head2
22946 #: ../fish/guestfish-actions.pod:3552
22947 msgid "set-recovery-proc"
22948 msgstr ""
22949
22950 # type: =head2
22951 #: ../fish/guestfish-actions.pod:3554
22952 msgid "recovery-proc"
22953 msgstr ""
22954
22955 # type: verbatim
22956 #: ../fish/guestfish-actions.pod:3556
22957 #, no-wrap
22958 msgid ""
22959 " set-recovery-proc true|false\n"
22960 "\n"
22961 msgstr ""
22962
22963 # type: textblock
22964 #: ../fish/guestfish-actions.pod:3558
22965 msgid ""
22966 "If this is called with the parameter C<false> then L</launch> does not "
22967 "create a recovery process.  The purpose of the recovery process is to stop "
22968 "runaway qemu processes in the case where the main program aborts abruptly."
22969 msgstr ""
22970
22971 # type: textblock
22972 #: ../fish/guestfish-actions.pod:3563
22973 msgid ""
22974 "This only has any effect if called before L</launch>, and the default is "
22975 "true."
22976 msgstr ""
22977
22978 # type: =head2
22979 #: ../fish/guestfish-actions.pod:3572
22980 msgid "set-selinux"
22981 msgstr ""
22982
22983 # type: =head2
22984 #: ../fish/guestfish-actions.pod:3574
22985 msgid "selinux"
22986 msgstr ""
22987
22988 # type: verbatim
22989 #: ../fish/guestfish-actions.pod:3576
22990 #, no-wrap
22991 msgid ""
22992 " set-selinux true|false\n"
22993 "\n"
22994 msgstr ""
22995
22996 # type: =head2
22997 #: ../fish/guestfish-actions.pod:3587
22998 msgid "set-trace"
22999 msgstr ""
23000
23001 # type: =head2
23002 #: ../fish/guestfish-actions.pod:3589
23003 msgid "trace"
23004 msgstr ""
23005
23006 # type: verbatim
23007 #: ../fish/guestfish-actions.pod:3591
23008 #, no-wrap
23009 msgid ""
23010 " set-trace true|false\n"
23011 "\n"
23012 msgstr ""
23013
23014 # type: =head2
23015 #: ../fish/guestfish-actions.pod:3607
23016 msgid "set-verbose"
23017 msgstr ""
23018
23019 # type: =head2
23020 #: ../fish/guestfish-actions.pod:3609
23021 msgid "verbose"
23022 msgstr ""
23023
23024 # type: verbatim
23025 #: ../fish/guestfish-actions.pod:3611
23026 #, no-wrap
23027 msgid ""
23028 " set-verbose true|false\n"
23029 "\n"
23030 msgstr ""
23031
23032 # type: =head2
23033 #: ../fish/guestfish-actions.pod:3618
23034 msgid "setcon"
23035 msgstr ""
23036
23037 # type: verbatim
23038 #: ../fish/guestfish-actions.pod:3620
23039 #, no-wrap
23040 msgid ""
23041 " setcon context\n"
23042 "\n"
23043 msgstr ""
23044
23045 # type: =head2
23046 #: ../fish/guestfish-actions.pod:3627
23047 msgid "setxattr"
23048 msgstr ""
23049
23050 # type: verbatim
23051 #: ../fish/guestfish-actions.pod:3629
23052 #, no-wrap
23053 msgid ""
23054 " setxattr xattr val vallen path\n"
23055 "\n"
23056 msgstr ""
23057
23058 # type: textblock
23059 #: ../fish/guestfish-actions.pod:3635
23060 msgid "See also: L</lsetxattr>, L<attr(5)>."
23061 msgstr ""
23062
23063 # type: =head2
23064 #: ../fish/guestfish-actions.pod:3637
23065 msgid "sfdisk"
23066 msgstr ""
23067
23068 # type: verbatim
23069 #: ../fish/guestfish-actions.pod:3639
23070 #, no-wrap
23071 msgid ""
23072 " sfdisk device cyls heads sectors 'lines ...'\n"
23073 "\n"
23074 msgstr ""
23075
23076 # type: textblock
23077 #: ../fish/guestfish-actions.pod:3661
23078 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23079 msgstr ""
23080
23081 # type: =head2
23082 #: ../fish/guestfish-actions.pod:3667
23083 msgid "sfdiskM"
23084 msgstr ""
23085
23086 # type: verbatim
23087 #: ../fish/guestfish-actions.pod:3669
23088 #, no-wrap
23089 msgid ""
23090 " sfdiskM device 'lines ...'\n"
23091 "\n"
23092 msgstr ""
23093
23094 # type: textblock
23095 #: ../fish/guestfish-actions.pod:3671
23096 msgid ""
23097 "This is a simplified interface to the L</sfdisk> command, where partition "
23098 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23099 "you don't need to specify the cyls, heads and sectors parameters which were "
23100 "rarely if ever used anyway."
23101 msgstr ""
23102
23103 # type: textblock
23104 #: ../fish/guestfish-actions.pod:3677
23105 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23106 msgstr ""
23107
23108 # type: =head2
23109 #: ../fish/guestfish-actions.pod:3683
23110 msgid "sfdisk-N"
23111 msgstr ""
23112
23113 # type: verbatim
23114 #: ../fish/guestfish-actions.pod:3685
23115 #, no-wrap
23116 msgid ""
23117 " sfdisk-N device partnum cyls heads sectors line\n"
23118 "\n"
23119 msgstr ""
23120
23121 # type: textblock
23122 #: ../fish/guestfish-actions.pod:3690
23123 msgid ""
23124 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23125 "cyls/heads/sectors parameters."
23126 msgstr ""
23127
23128 # type: textblock
23129 #: ../fish/guestfish-actions.pod:3693
23130 msgid "See also: L</part-add>"
23131 msgstr ""
23132
23133 # type: =head2
23134 #: ../fish/guestfish-actions.pod:3698
23135 msgid "sfdisk-disk-geometry"
23136 msgstr ""
23137
23138 # type: verbatim
23139 #: ../fish/guestfish-actions.pod:3700
23140 #, no-wrap
23141 msgid ""
23142 " sfdisk-disk-geometry device\n"
23143 "\n"
23144 msgstr ""
23145
23146 # type: textblock
23147 #: ../fish/guestfish-actions.pod:3702
23148 msgid ""
23149 "This displays the disk geometry of C<device> read from the partition table.  "
23150 "Especially in the case where the underlying block device has been resized, "
23151 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23152 "kernel-geometry>)."
23153 msgstr ""
23154
23155 # type: =head2
23156 #: ../fish/guestfish-actions.pod:3710
23157 msgid "sfdisk-kernel-geometry"
23158 msgstr ""
23159
23160 # type: verbatim
23161 #: ../fish/guestfish-actions.pod:3712
23162 #, no-wrap
23163 msgid ""
23164 " sfdisk-kernel-geometry device\n"
23165 "\n"
23166 msgstr ""
23167
23168 # type: =head2
23169 #: ../fish/guestfish-actions.pod:3719
23170 msgid "sfdisk-l"
23171 msgstr ""
23172
23173 # type: verbatim
23174 #: ../fish/guestfish-actions.pod:3721
23175 #, no-wrap
23176 msgid ""
23177 " sfdisk-l device\n"
23178 "\n"
23179 msgstr ""
23180
23181 # type: textblock
23182 #: ../fish/guestfish-actions.pod:3727
23183 msgid "See also: L</part-list>"
23184 msgstr ""
23185
23186 # type: =head2
23187 #: ../fish/guestfish-actions.pod:3729
23188 msgid "sh"
23189 msgstr ""
23190
23191 # type: verbatim
23192 #: ../fish/guestfish-actions.pod:3731
23193 #, no-wrap
23194 msgid ""
23195 " sh command\n"
23196 "\n"
23197 msgstr ""
23198
23199 # type: textblock
23200 #: ../fish/guestfish-actions.pod:3736
23201 msgid "This is like L</command>, but passes the command to:"
23202 msgstr ""
23203
23204 # type: textblock
23205 #: ../fish/guestfish-actions.pod:3744
23206 msgid "All the provisos about L</command> apply to this call."
23207 msgstr ""
23208
23209 # type: =head2
23210 #: ../fish/guestfish-actions.pod:3746
23211 msgid "sh-lines"
23212 msgstr ""
23213
23214 # type: verbatim
23215 #: ../fish/guestfish-actions.pod:3748
23216 #, no-wrap
23217 msgid ""
23218 " sh-lines command\n"
23219 "\n"
23220 msgstr ""
23221
23222 # type: textblock
23223 #: ../fish/guestfish-actions.pod:3750
23224 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23225 msgstr ""
23226
23227 # type: textblock
23228 #: ../fish/guestfish-actions.pod:3753
23229 msgid "See also: L</command-lines>"
23230 msgstr ""
23231
23232 # type: =head2
23233 #: ../fish/guestfish-actions.pod:3755
23234 msgid "sleep"
23235 msgstr ""
23236
23237 # type: verbatim
23238 #: ../fish/guestfish-actions.pod:3757
23239 #, no-wrap
23240 msgid ""
23241 " sleep secs\n"
23242 "\n"
23243 msgstr ""
23244
23245 # type: =head2
23246 #: ../fish/guestfish-actions.pod:3761
23247 msgid "stat"
23248 msgstr ""
23249
23250 # type: verbatim
23251 #: ../fish/guestfish-actions.pod:3763
23252 #, no-wrap
23253 msgid ""
23254 " stat path\n"
23255 "\n"
23256 msgstr ""
23257
23258 # type: =head2
23259 #: ../fish/guestfish-actions.pod:3769
23260 msgid "statvfs"
23261 msgstr ""
23262
23263 # type: verbatim
23264 #: ../fish/guestfish-actions.pod:3771
23265 #, no-wrap
23266 msgid ""
23267 " statvfs path\n"
23268 "\n"
23269 msgstr ""
23270
23271 # type: =head2
23272 #: ../fish/guestfish-actions.pod:3779
23273 msgid "strings"
23274 msgstr ""
23275
23276 # type: verbatim
23277 #: ../fish/guestfish-actions.pod:3781
23278 #, no-wrap
23279 msgid ""
23280 " strings path\n"
23281 "\n"
23282 msgstr ""
23283
23284 # type: =head2
23285 #: ../fish/guestfish-actions.pod:3789
23286 msgid "strings-e"
23287 msgstr ""
23288
23289 # type: verbatim
23290 #: ../fish/guestfish-actions.pod:3791
23291 #, no-wrap
23292 msgid ""
23293 " strings-e encoding path\n"
23294 "\n"
23295 msgstr ""
23296
23297 # type: textblock
23298 #: ../fish/guestfish-actions.pod:3793
23299 msgid ""
23300 "This is like the L</strings> command, but allows you to specify the encoding "
23301 "of strings that are looked for in the source file C<path>."
23302 msgstr ""
23303
23304 # type: textblock
23305 #: ../fish/guestfish-actions.pod:3803
23306 msgid ""
23307 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23308 "ISO-8859-X (this is what L</strings> uses)."
23309 msgstr ""
23310
23311 # type: =head2
23312 #: ../fish/guestfish-actions.pod:3835
23313 msgid "swapoff-device"
23314 msgstr ""
23315
23316 # type: verbatim
23317 #: ../fish/guestfish-actions.pod:3837
23318 #, no-wrap
23319 msgid ""
23320 " swapoff-device device\n"
23321 "\n"
23322 msgstr ""
23323
23324 # type: textblock
23325 #: ../fish/guestfish-actions.pod:3839
23326 msgid ""
23327 "This command disables the libguestfs appliance swap device or partition "
23328 "named C<device>.  See L</swapon-device>."
23329 msgstr ""
23330
23331 # type: =head2
23332 #: ../fish/guestfish-actions.pod:3843
23333 msgid "swapoff-file"
23334 msgstr ""
23335
23336 # type: verbatim
23337 #: ../fish/guestfish-actions.pod:3845
23338 #, no-wrap
23339 msgid ""
23340 " swapoff-file file\n"
23341 "\n"
23342 msgstr ""
23343
23344 # type: =head2
23345 #: ../fish/guestfish-actions.pod:3849
23346 msgid "swapoff-label"
23347 msgstr ""
23348
23349 # type: verbatim
23350 #: ../fish/guestfish-actions.pod:3851
23351 #, no-wrap
23352 msgid ""
23353 " swapoff-label label\n"
23354 "\n"
23355 msgstr ""
23356
23357 # type: =head2
23358 #: ../fish/guestfish-actions.pod:3856
23359 msgid "swapoff-uuid"
23360 msgstr ""
23361
23362 # type: verbatim
23363 #: ../fish/guestfish-actions.pod:3858
23364 #, no-wrap
23365 msgid ""
23366 " swapoff-uuid uuid\n"
23367 "\n"
23368 msgstr ""
23369
23370 # type: =head2
23371 #: ../fish/guestfish-actions.pod:3863
23372 msgid "swapon-device"
23373 msgstr ""
23374
23375 # type: verbatim
23376 #: ../fish/guestfish-actions.pod:3865
23377 #, no-wrap
23378 msgid ""
23379 " swapon-device device\n"
23380 "\n"
23381 msgstr ""
23382
23383 # type: textblock
23384 #: ../fish/guestfish-actions.pod:3867
23385 msgid ""
23386 "This command enables the libguestfs appliance to use the swap device or "
23387 "partition named C<device>.  The increased memory is made available for all "
23388 "commands, for example those run using L</command> or L</sh>."
23389 msgstr ""
23390
23391 # type: =head2
23392 #: ../fish/guestfish-actions.pod:3879
23393 msgid "swapon-file"
23394 msgstr ""
23395
23396 # type: verbatim
23397 #: ../fish/guestfish-actions.pod:3881
23398 #, no-wrap
23399 msgid ""
23400 " swapon-file file\n"
23401 "\n"
23402 msgstr ""
23403
23404 # type: textblock
23405 #: ../fish/guestfish-actions.pod:3883
23406 msgid ""
23407 "This command enables swap to a file.  See L</swapon-device> for other notes."
23408 msgstr ""
23409
23410 # type: =head2
23411 #: ../fish/guestfish-actions.pod:3886
23412 msgid "swapon-label"
23413 msgstr ""
23414
23415 # type: verbatim
23416 #: ../fish/guestfish-actions.pod:3888
23417 #, no-wrap
23418 msgid ""
23419 " swapon-label label\n"
23420 "\n"
23421 msgstr ""
23422
23423 # type: textblock
23424 #: ../fish/guestfish-actions.pod:3890
23425 msgid ""
23426 "This command enables swap to a labeled swap partition.  See L</swapon-"
23427 "device> for other notes."
23428 msgstr ""
23429
23430 # type: =head2
23431 #: ../fish/guestfish-actions.pod:3893
23432 msgid "swapon-uuid"
23433 msgstr ""
23434
23435 # type: verbatim
23436 #: ../fish/guestfish-actions.pod:3895
23437 #, no-wrap
23438 msgid ""
23439 " swapon-uuid uuid\n"
23440 "\n"
23441 msgstr ""
23442
23443 # type: textblock
23444 #: ../fish/guestfish-actions.pod:3897
23445 msgid ""
23446 "This command enables swap to a swap partition with the given UUID.  See L</"
23447 "swapon-device> for other notes."
23448 msgstr ""
23449
23450 # type: =head2
23451 #: ../fish/guestfish-actions.pod:3900
23452 msgid "sync"
23453 msgstr ""
23454
23455 # type: verbatim
23456 #: ../fish/guestfish-actions.pod:3902
23457 #, no-wrap
23458 msgid ""
23459 " sync\n"
23460 "\n"
23461 msgstr ""
23462
23463 # type: =head2
23464 #: ../fish/guestfish-actions.pod:3910
23465 msgid "tail"
23466 msgstr ""
23467
23468 # type: verbatim
23469 #: ../fish/guestfish-actions.pod:3912
23470 #, no-wrap
23471 msgid ""
23472 " tail path\n"
23473 "\n"
23474 msgstr ""
23475
23476 # type: =head2
23477 #: ../fish/guestfish-actions.pod:3920
23478 msgid "tail-n"
23479 msgstr ""
23480
23481 # type: verbatim
23482 #: ../fish/guestfish-actions.pod:3922
23483 #, no-wrap
23484 msgid ""
23485 " tail-n nrlines path\n"
23486 "\n"
23487 msgstr ""
23488
23489 # type: =head2
23490 #: ../fish/guestfish-actions.pod:3935
23491 msgid "tar-in"
23492 msgstr ""
23493
23494 # type: verbatim
23495 #: ../fish/guestfish-actions.pod:3937
23496 #, no-wrap
23497 msgid ""
23498 " tar-in (tarfile|-) directory\n"
23499 "\n"
23500 msgstr ""
23501
23502 # type: textblock
23503 #: ../fish/guestfish-actions.pod:3942
23504 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23505 msgstr ""
23506
23507 # type: =head2
23508 #: ../fish/guestfish-actions.pod:3947
23509 msgid "tar-out"
23510 msgstr ""
23511
23512 # type: verbatim
23513 #: ../fish/guestfish-actions.pod:3949
23514 #, no-wrap
23515 msgid ""
23516 " tar-out directory (tarfile|-)\n"
23517 "\n"
23518 msgstr ""
23519
23520 # type: textblock
23521 #: ../fish/guestfish-actions.pod:3954
23522 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23523 msgstr ""
23524
23525 # type: =head2
23526 #: ../fish/guestfish-actions.pod:3959
23527 msgid "tgz-in"
23528 msgstr ""
23529
23530 # type: verbatim
23531 #: ../fish/guestfish-actions.pod:3961
23532 #, no-wrap
23533 msgid ""
23534 " tgz-in (tarball|-) directory\n"
23535 "\n"
23536 msgstr ""
23537
23538 # type: textblock
23539 #: ../fish/guestfish-actions.pod:3966
23540 msgid "To upload an uncompressed tarball, use L</tar-in>."
23541 msgstr ""
23542
23543 # type: =head2
23544 #: ../fish/guestfish-actions.pod:3970
23545 msgid "tgz-out"
23546 msgstr ""
23547
23548 # type: verbatim
23549 #: ../fish/guestfish-actions.pod:3972
23550 #, no-wrap
23551 msgid ""
23552 " tgz-out directory (tarball|-)\n"
23553 "\n"
23554 msgstr ""
23555
23556 # type: textblock
23557 #: ../fish/guestfish-actions.pod:3977
23558 msgid "To download an uncompressed tarball, use L</tar-out>."
23559 msgstr ""
23560
23561 # type: =head2
23562 #: ../fish/guestfish-actions.pod:3981
23563 msgid "touch"
23564 msgstr ""
23565
23566 # type: verbatim
23567 #: ../fish/guestfish-actions.pod:3983
23568 #, no-wrap
23569 msgid ""
23570 " touch path\n"
23571 "\n"
23572 msgstr ""
23573
23574 # type: =head2
23575 #: ../fish/guestfish-actions.pod:3992
23576 msgid "truncate"
23577 msgstr ""
23578
23579 # type: verbatim
23580 #: ../fish/guestfish-actions.pod:3994
23581 #, no-wrap
23582 msgid ""
23583 " truncate path\n"
23584 "\n"
23585 msgstr ""
23586
23587 # type: =head2
23588 #: ../fish/guestfish-actions.pod:3999
23589 msgid "truncate-size"
23590 msgstr ""
23591
23592 # type: verbatim
23593 #: ../fish/guestfish-actions.pod:4001
23594 #, no-wrap
23595 msgid ""
23596 " truncate-size path size\n"
23597 "\n"
23598 msgstr ""
23599
23600 # type: textblock
23601 #: ../fish/guestfish-actions.pod:4006
23602 msgid ""
23603 "If the current file size is less than C<size> then the file is extended to "
23604 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23605 "blocks are not allocated for the file until you write to it).  To create a "
23606 "non-sparse file of zeroes, use L</fallocate64> instead."
23607 msgstr ""
23608
23609 # type: =head2
23610 #: ../fish/guestfish-actions.pod:4012
23611 msgid "tune2fs-l"
23612 msgstr ""
23613
23614 # type: verbatim
23615 #: ../fish/guestfish-actions.pod:4014
23616 #, no-wrap
23617 msgid ""
23618 " tune2fs-l device\n"
23619 "\n"
23620 msgstr ""
23621
23622 # type: =head2
23623 #: ../fish/guestfish-actions.pod:4024
23624 msgid "txz-in"
23625 msgstr ""
23626
23627 # type: verbatim
23628 #: ../fish/guestfish-actions.pod:4026
23629 #, no-wrap
23630 msgid ""
23631 " txz-in (tarball|-) directory\n"
23632 "\n"
23633 msgstr ""
23634
23635 # type: =head2
23636 #: ../fish/guestfish-actions.pod:4033
23637 msgid "txz-out"
23638 msgstr ""
23639
23640 # type: verbatim
23641 #: ../fish/guestfish-actions.pod:4035
23642 #, no-wrap
23643 msgid ""
23644 " txz-out directory (tarball|-)\n"
23645 "\n"
23646 msgstr ""
23647
23648 # type: =head2
23649 #: ../fish/guestfish-actions.pod:4042
23650 msgid "umask"
23651 msgstr ""
23652
23653 # type: verbatim
23654 #: ../fish/guestfish-actions.pod:4044
23655 #, no-wrap
23656 msgid ""
23657 " umask mask\n"
23658 "\n"
23659 msgstr ""
23660
23661 # type: textblock
23662 #: ../fish/guestfish-actions.pod:4058
23663 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23664 msgstr ""
23665
23666 # type: =head2
23667 #: ../fish/guestfish-actions.pod:4063
23668 msgid "umount"
23669 msgstr ""
23670
23671 # type: =head2
23672 #: ../fish/guestfish-actions.pod:4065
23673 msgid "unmount"
23674 msgstr ""
23675
23676 # type: verbatim
23677 #: ../fish/guestfish-actions.pod:4067
23678 #, no-wrap
23679 msgid ""
23680 " umount pathordevice\n"
23681 "\n"
23682 msgstr ""
23683
23684 # type: =head2
23685 #: ../fish/guestfish-actions.pod:4073
23686 msgid "umount-all"
23687 msgstr ""
23688
23689 # type: =head2
23690 #: ../fish/guestfish-actions.pod:4075
23691 msgid "unmount-all"
23692 msgstr ""
23693
23694 # type: verbatim
23695 #: ../fish/guestfish-actions.pod:4077
23696 #, no-wrap
23697 msgid ""
23698 " umount-all\n"
23699 "\n"
23700 msgstr ""
23701
23702 # type: =head2
23703 #: ../fish/guestfish-actions.pod:4083
23704 msgid "upload"
23705 msgstr ""
23706
23707 # type: verbatim
23708 #: ../fish/guestfish-actions.pod:4085
23709 #, no-wrap
23710 msgid ""
23711 " upload (filename|-) remotefilename\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: textblock
23716 #: ../fish/guestfish-actions.pod:4092
23717 msgid "See also L</download>."
23718 msgstr ""
23719
23720 # type: =head2
23721 #: ../fish/guestfish-actions.pod:4096
23722 msgid "upload-offset"
23723 msgstr ""
23724
23725 # type: verbatim
23726 #: ../fish/guestfish-actions.pod:4098
23727 #, no-wrap
23728 msgid ""
23729 " upload-offset (filename|-) remotefilename offset\n"
23730 "\n"
23731 msgstr ""
23732
23733 # type: textblock
23734 #: ../fish/guestfish-actions.pod:4110
23735 msgid ""
23736 "Note that there is no limit on the amount of data that can be uploaded with "
23737 "this call, unlike with L</pwrite>, and this call always writes the full "
23738 "amount unless an error occurs."
23739 msgstr ""
23740
23741 # type: textblock
23742 #: ../fish/guestfish-actions.pod:4115
23743 msgid "See also L</upload>, L</pwrite>."
23744 msgstr ""
23745
23746 # type: =head2
23747 #: ../fish/guestfish-actions.pod:4119
23748 msgid "utimens"
23749 msgstr ""
23750
23751 # type: verbatim
23752 #: ../fish/guestfish-actions.pod:4121
23753 #, no-wrap
23754 msgid ""
23755 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23756 "\n"
23757 msgstr ""
23758
23759 # type: =head2
23760 #: ../fish/guestfish-actions.pod:4140
23761 msgid "version"
23762 msgstr ""
23763
23764 # type: verbatim
23765 #: ../fish/guestfish-actions.pod:4142
23766 #, no-wrap
23767 msgid ""
23768 " version\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: textblock
23773 #: ../fish/guestfish-actions.pod:4169
23774 msgid ""
23775 "I<Note:> Don't use this call to test for availability of features.  In "
23776 "enterprise distributions we backport features from later versions into "
23777 "earlier versions, making this an unreliable way to test for features.  Use "
23778 "L</available> instead."
23779 msgstr ""
23780
23781 # type: =head2
23782 #: ../fish/guestfish-actions.pod:4175
23783 msgid "vfs-label"
23784 msgstr ""
23785
23786 # type: verbatim
23787 #: ../fish/guestfish-actions.pod:4177
23788 #, no-wrap
23789 msgid ""
23790 " vfs-label device\n"
23791 "\n"
23792 msgstr ""
23793
23794 # type: textblock
23795 #: ../fish/guestfish-actions.pod:4184
23796 msgid "To find a filesystem from the label, use L</findfs-label>."
23797 msgstr ""
23798
23799 # type: =head2
23800 #: ../fish/guestfish-actions.pod:4186
23801 msgid "vfs-type"
23802 msgstr ""
23803
23804 # type: verbatim
23805 #: ../fish/guestfish-actions.pod:4188
23806 #, no-wrap
23807 msgid ""
23808 " vfs-type device\n"
23809 "\n"
23810 msgstr ""
23811
23812 # type: =head2
23813 #: ../fish/guestfish-actions.pod:4198
23814 msgid "vfs-uuid"
23815 msgstr ""
23816
23817 # type: verbatim
23818 #: ../fish/guestfish-actions.pod:4200
23819 #, no-wrap
23820 msgid ""
23821 " vfs-uuid device\n"
23822 "\n"
23823 msgstr ""
23824
23825 # type: textblock
23826 #: ../fish/guestfish-actions.pod:4207
23827 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23828 msgstr ""
23829
23830 # type: =head2
23831 #: ../fish/guestfish-actions.pod:4209
23832 msgid "vg-activate"
23833 msgstr ""
23834
23835 # type: verbatim
23836 #: ../fish/guestfish-actions.pod:4211
23837 #, no-wrap
23838 msgid ""
23839 " vg-activate true|false 'volgroups ...'\n"
23840 "\n"
23841 msgstr ""
23842
23843 # type: =head2
23844 #: ../fish/guestfish-actions.pod:4224
23845 msgid "vg-activate-all"
23846 msgstr ""
23847
23848 # type: verbatim
23849 #: ../fish/guestfish-actions.pod:4226
23850 #, no-wrap
23851 msgid ""
23852 " vg-activate-all true|false\n"
23853 "\n"
23854 msgstr ""
23855
23856 # type: =head2
23857 #: ../fish/guestfish-actions.pod:4236
23858 msgid "vgcreate"
23859 msgstr ""
23860
23861 # type: verbatim
23862 #: ../fish/guestfish-actions.pod:4238
23863 #, no-wrap
23864 msgid ""
23865 " vgcreate volgroup 'physvols ...'\n"
23866 "\n"
23867 msgstr ""
23868
23869 # type: =head2
23870 #: ../fish/guestfish-actions.pod:4243
23871 msgid "vglvuuids"
23872 msgstr ""
23873
23874 # type: verbatim
23875 #: ../fish/guestfish-actions.pod:4245
23876 #, no-wrap
23877 msgid ""
23878 " vglvuuids vgname\n"
23879 "\n"
23880 msgstr ""
23881
23882 # type: textblock
23883 #: ../fish/guestfish-actions.pod:4250
23884 msgid ""
23885 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23886 "logical volumes and volume groups."
23887 msgstr ""
23888
23889 # type: textblock
23890 #: ../fish/guestfish-actions.pod:4253
23891 msgid "See also L</vgpvuuids>."
23892 msgstr ""
23893
23894 # type: =head2
23895 #: ../fish/guestfish-actions.pod:4255
23896 msgid "vgpvuuids"
23897 msgstr ""
23898
23899 # type: verbatim
23900 #: ../fish/guestfish-actions.pod:4257
23901 #, no-wrap
23902 msgid ""
23903 " vgpvuuids vgname\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: textblock
23908 #: ../fish/guestfish-actions.pod:4262
23909 msgid ""
23910 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23911 "physical volumes and volume groups."
23912 msgstr ""
23913
23914 # type: textblock
23915 #: ../fish/guestfish-actions.pod:4265
23916 msgid "See also L</vglvuuids>."
23917 msgstr ""
23918
23919 # type: =head2
23920 #: ../fish/guestfish-actions.pod:4267
23921 msgid "vgremove"
23922 msgstr ""
23923
23924 # type: verbatim
23925 #: ../fish/guestfish-actions.pod:4269
23926 #, no-wrap
23927 msgid ""
23928 " vgremove vgname\n"
23929 "\n"
23930 msgstr ""
23931
23932 # type: =head2
23933 #: ../fish/guestfish-actions.pod:4276
23934 msgid "vgrename"
23935 msgstr ""
23936
23937 # type: verbatim
23938 #: ../fish/guestfish-actions.pod:4278
23939 #, no-wrap
23940 msgid ""
23941 " vgrename volgroup newvolgroup\n"
23942 "\n"
23943 msgstr ""
23944
23945 # type: =head2
23946 #: ../fish/guestfish-actions.pod:4282
23947 msgid "vgs"
23948 msgstr ""
23949
23950 # type: verbatim
23951 #: ../fish/guestfish-actions.pod:4284
23952 #, no-wrap
23953 msgid ""
23954 " vgs\n"
23955 "\n"
23956 msgstr ""
23957
23958 # type: textblock
23959 #: ../fish/guestfish-actions.pod:4292
23960 msgid "See also L</vgs-full>."
23961 msgstr ""
23962
23963 # type: =head2
23964 #: ../fish/guestfish-actions.pod:4294
23965 msgid "vgs-full"
23966 msgstr ""
23967
23968 # type: verbatim
23969 #: ../fish/guestfish-actions.pod:4296
23970 #, no-wrap
23971 msgid ""
23972 " vgs-full\n"
23973 "\n"
23974 msgstr ""
23975
23976 # type: =head2
23977 #: ../fish/guestfish-actions.pod:4301
23978 msgid "vgscan"
23979 msgstr ""
23980
23981 # type: verbatim
23982 #: ../fish/guestfish-actions.pod:4303
23983 #, no-wrap
23984 msgid ""
23985 " vgscan\n"
23986 "\n"
23987 msgstr ""
23988
23989 # type: =head2
23990 #: ../fish/guestfish-actions.pod:4308
23991 msgid "vguuid"
23992 msgstr ""
23993
23994 # type: verbatim
23995 #: ../fish/guestfish-actions.pod:4310
23996 #, no-wrap
23997 msgid ""
23998 " vguuid vgname\n"
23999 "\n"
24000 msgstr ""
24001
24002 # type: =head2
24003 #: ../fish/guestfish-actions.pod:4314
24004 msgid "wc-c"
24005 msgstr ""
24006
24007 # type: verbatim
24008 #: ../fish/guestfish-actions.pod:4316
24009 #, no-wrap
24010 msgid ""
24011 " wc-c path\n"
24012 "\n"
24013 msgstr ""
24014
24015 # type: =head2
24016 #: ../fish/guestfish-actions.pod:4321
24017 msgid "wc-l"
24018 msgstr ""
24019
24020 # type: verbatim
24021 #: ../fish/guestfish-actions.pod:4323
24022 #, no-wrap
24023 msgid ""
24024 " wc-l path\n"
24025 "\n"
24026 msgstr ""
24027
24028 # type: =head2
24029 #: ../fish/guestfish-actions.pod:4328
24030 msgid "wc-w"
24031 msgstr ""
24032
24033 # type: verbatim
24034 #: ../fish/guestfish-actions.pod:4330
24035 #, no-wrap
24036 msgid ""
24037 " wc-w path\n"
24038 "\n"
24039 msgstr ""
24040
24041 # type: =head2
24042 #: ../fish/guestfish-actions.pod:4335
24043 msgid "write"
24044 msgstr ""
24045
24046 # type: verbatim
24047 #: ../fish/guestfish-actions.pod:4337
24048 #, no-wrap
24049 msgid ""
24050 " write path content\n"
24051 "\n"
24052 msgstr ""
24053
24054 # type: =head2
24055 #: ../fish/guestfish-actions.pod:4345
24056 msgid "write-file"
24057 msgstr ""
24058
24059 # type: verbatim
24060 #: ../fish/guestfish-actions.pod:4347
24061 #, no-wrap
24062 msgid ""
24063 " write-file path content size\n"
24064 "\n"
24065 msgstr ""
24066
24067 # type: =head2
24068 #: ../fish/guestfish-actions.pod:4370
24069 msgid "zegrep"
24070 msgstr ""
24071
24072 # type: verbatim
24073 #: ../fish/guestfish-actions.pod:4372
24074 #, no-wrap
24075 msgid ""
24076 " zegrep regex path\n"
24077 "\n"
24078 msgstr ""
24079
24080 # type: =head2
24081 #: ../fish/guestfish-actions.pod:4380
24082 msgid "zegrepi"
24083 msgstr ""
24084
24085 # type: verbatim
24086 #: ../fish/guestfish-actions.pod:4382
24087 #, no-wrap
24088 msgid ""
24089 " zegrepi regex path\n"
24090 "\n"
24091 msgstr ""
24092
24093 # type: =head2
24094 #: ../fish/guestfish-actions.pod:4390
24095 msgid "zero"
24096 msgstr ""
24097
24098 # type: verbatim
24099 #: ../fish/guestfish-actions.pod:4392
24100 #, no-wrap
24101 msgid ""
24102 " zero device\n"
24103 "\n"
24104 msgstr ""
24105
24106 # type: textblock
24107 #: ../fish/guestfish-actions.pod:4400
24108 msgid "See also: L</zero-device>, L</scrub-device>."
24109 msgstr ""
24110
24111 # type: =head2
24112 #: ../fish/guestfish-actions.pod:4402
24113 msgid "zero-device"
24114 msgstr ""
24115
24116 # type: verbatim
24117 #: ../fish/guestfish-actions.pod:4404
24118 #, no-wrap
24119 msgid ""
24120 " zero-device device\n"
24121 "\n"
24122 msgstr ""
24123
24124 # type: textblock
24125 #: ../fish/guestfish-actions.pod:4406
24126 msgid ""
24127 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24128 "which just zeroes the first few blocks of a device."
24129 msgstr ""
24130
24131 # type: =head2
24132 #: ../fish/guestfish-actions.pod:4413
24133 msgid "zerofree"
24134 msgstr ""
24135
24136 # type: verbatim
24137 #: ../fish/guestfish-actions.pod:4415
24138 #, no-wrap
24139 msgid ""
24140 " zerofree device\n"
24141 "\n"
24142 msgstr ""
24143
24144 # type: =head2
24145 #: ../fish/guestfish-actions.pod:4428
24146 msgid "zfgrep"
24147 msgstr ""
24148
24149 # type: verbatim
24150 #: ../fish/guestfish-actions.pod:4430
24151 #, no-wrap
24152 msgid ""
24153 " zfgrep pattern path\n"
24154 "\n"
24155 msgstr ""
24156
24157 # type: =head2
24158 #: ../fish/guestfish-actions.pod:4438
24159 msgid "zfgrepi"
24160 msgstr ""
24161
24162 # type: verbatim
24163 #: ../fish/guestfish-actions.pod:4440
24164 #, no-wrap
24165 msgid ""
24166 " zfgrepi pattern path\n"
24167 "\n"
24168 msgstr ""
24169
24170 # type: =head2
24171 #: ../fish/guestfish-actions.pod:4448
24172 msgid "zfile"
24173 msgstr ""
24174
24175 # type: verbatim
24176 #: ../fish/guestfish-actions.pod:4450
24177 #, no-wrap
24178 msgid ""
24179 " zfile meth path\n"
24180 "\n"
24181 msgstr ""
24182
24183 # type: textblock
24184 #: ../fish/guestfish-actions.pod:4457
24185 msgid ""
24186 "Since 1.0.63, use L</file> instead which can now process compressed files."
24187 msgstr ""
24188
24189 # type: =head2
24190 #: ../fish/guestfish-actions.pod:4467
24191 msgid "zgrep"
24192 msgstr ""
24193
24194 # type: verbatim
24195 #: ../fish/guestfish-actions.pod:4469
24196 #, no-wrap
24197 msgid ""
24198 " zgrep regex path\n"
24199 "\n"
24200 msgstr ""
24201
24202 # type: =head2
24203 #: ../fish/guestfish-actions.pod:4477
24204 msgid "zgrepi"
24205 msgstr ""
24206
24207 # type: verbatim
24208 #: ../fish/guestfish-actions.pod:4479
24209 #, no-wrap
24210 msgid ""
24211 " zgrepi regex path\n"
24212 "\n"
24213 msgstr ""
24214
24215 # type: =head2
24216 #: ../fish/guestfish-commands.pod:1
24217 msgid "alloc"
24218 msgstr ""
24219
24220 # type: =head2
24221 #: ../fish/guestfish-commands.pod:3
24222 msgid "allocate"
24223 msgstr ""
24224
24225 # type: verbatim
24226 #: ../fish/guestfish-commands.pod:5
24227 #, no-wrap
24228 msgid ""
24229 " alloc filename size\n"
24230 "\n"
24231 msgstr ""
24232
24233 # type: textblock
24234 #: ../fish/guestfish-commands.pod:7
24235 msgid ""
24236 "This creates an empty (zeroed) file of the given size, and then adds so it "
24237 "can be further examined."
24238 msgstr ""
24239
24240 # type: textblock
24241 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24242 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24243 msgstr ""
24244
24245 # type: textblock
24246 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24247 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24248 msgstr ""
24249
24250 # type: textblock
24251 #: ../fish/guestfish-commands.pod:14
24252 msgid ""
24253 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24254 "image, see L</PREPARED DISK IMAGES>."
24255 msgstr ""
24256
24257 # type: =head2
24258 #: ../fish/guestfish-commands.pod:17
24259 msgid "copy-in"
24260 msgstr ""
24261
24262 # type: verbatim
24263 #: ../fish/guestfish-commands.pod:19
24264 #, no-wrap
24265 msgid ""
24266 " copy-in local [local ...] /remotedir\n"
24267 "\n"
24268 msgstr ""
24269
24270 # type: textblock
24271 #: ../fish/guestfish-commands.pod:21
24272 msgid ""
24273 "C<copy-in> copies local files or directories recursively into the disk "
24274 "image, placing them in the directory called C</remotedir> (which must "
24275 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24276 "other commands as necessary."
24277 msgstr ""
24278
24279 # type: textblock
24280 #: ../fish/guestfish-commands.pod:26
24281 msgid ""
24282 "Multiple local files and directories can be specified, but the last "
24283 "parameter must always be a remote directory.  Wildcards cannot be used."
24284 msgstr ""
24285
24286 # type: =head2
24287 #: ../fish/guestfish-commands.pod:30
24288 msgid "copy-out"
24289 msgstr ""
24290
24291 # type: verbatim
24292 #: ../fish/guestfish-commands.pod:32
24293 #, no-wrap
24294 msgid ""
24295 " copy-out remote [remote ...] localdir\n"
24296 "\n"
24297 msgstr ""
24298
24299 # type: textblock
24300 #: ../fish/guestfish-commands.pod:34
24301 msgid ""
24302 "C<copy-out> copies remote files or directories recursively out of the disk "
24303 "image, placing them on the host disk in a local directory called C<localdir> "
24304 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
24305 "download>, L</tar-out> and other commands as necessary."
24306 msgstr ""
24307
24308 # type: textblock
24309 #: ../fish/guestfish-commands.pod:40
24310 msgid ""
24311 "Multiple remote files and directories can be specified, but the last "
24312 "parameter must always be a local directory.  To download to the current "
24313 "directory, use C<.> as in:"
24314 msgstr ""
24315
24316 # type: verbatim
24317 #: ../fish/guestfish-commands.pod:44
24318 #, no-wrap
24319 msgid ""
24320 " copy-out /home .\n"
24321 "\n"
24322 msgstr ""
24323
24324 # type: textblock
24325 #: ../fish/guestfish-commands.pod:46
24326 msgid ""
24327 "Wildcards cannot be used in the ordinary command, but you can use them with "
24328 "the help of L</glob> like this:"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../fish/guestfish-commands.pod:49
24333 #, no-wrap
24334 msgid ""
24335 " glob copy-out /home/* .\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: =head2
24340 #: ../fish/guestfish-commands.pod:51
24341 msgid "echo"
24342 msgstr ""
24343
24344 # type: verbatim
24345 #: ../fish/guestfish-commands.pod:53
24346 #, no-wrap
24347 msgid ""
24348 " echo [params ...]\n"
24349 "\n"
24350 msgstr ""
24351
24352 # type: textblock
24353 #: ../fish/guestfish-commands.pod:55
24354 msgid "This echos the parameters to the terminal."
24355 msgstr ""
24356
24357 # type: =head2
24358 #: ../fish/guestfish-commands.pod:57
24359 msgid "edit"
24360 msgstr ""
24361
24362 # type: =head2
24363 #: ../fish/guestfish-commands.pod:59
24364 msgid "vi"
24365 msgstr ""
24366
24367 # type: =head2
24368 #: ../fish/guestfish-commands.pod:61
24369 msgid "emacs"
24370 msgstr ""
24371
24372 # type: verbatim
24373 #: ../fish/guestfish-commands.pod:63
24374 #, no-wrap
24375 msgid ""
24376 " edit filename\n"
24377 "\n"
24378 msgstr ""
24379
24380 # type: textblock
24381 #: ../fish/guestfish-commands.pod:65
24382 msgid ""
24383 "This is used to edit a file.  It downloads the file, edits it locally using "
24384 "your editor, then uploads the result."
24385 msgstr ""
24386
24387 # type: textblock
24388 #: ../fish/guestfish-commands.pod:68
24389 msgid ""
24390 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24391 "or C<emacs> you will get those corresponding editors."
24392 msgstr ""
24393
24394 # type: =head2
24395 #: ../fish/guestfish-commands.pod:72
24396 msgid "glob"
24397 msgstr ""
24398
24399 # type: verbatim
24400 #: ../fish/guestfish-commands.pod:74
24401 #, no-wrap
24402 msgid ""
24403 " glob command args...\n"
24404 "\n"
24405 msgstr ""
24406
24407 # type: textblock
24408 #: ../fish/guestfish-commands.pod:76
24409 msgid ""
24410 "Expand wildcards in any paths in the args list, and run C<command> "
24411 "repeatedly on each matching path."
24412 msgstr ""
24413
24414 # type: textblock
24415 #: ../fish/guestfish-commands.pod:79
24416 msgid "See L</WILDCARDS AND GLOBBING>."
24417 msgstr ""
24418
24419 # type: =head2
24420 #: ../fish/guestfish-commands.pod:81
24421 msgid "hexedit"
24422 msgstr ""
24423
24424 # type: verbatim
24425 #: ../fish/guestfish-commands.pod:83
24426 #, no-wrap
24427 msgid ""
24428 " hexedit <filename|device>\n"
24429 " hexedit <filename|device> <max>\n"
24430 " hexedit <filename|device> <start> <max>\n"
24431 "\n"
24432 msgstr ""
24433
24434 # type: textblock
24435 #: ../fish/guestfish-commands.pod:87
24436 msgid ""
24437 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24438 "device."
24439 msgstr ""
24440
24441 # type: textblock
24442 #: ../fish/guestfish-commands.pod:90
24443 msgid ""
24444 "This command works by downloading potentially the whole file or device, "
24445 "editing it locally, then uploading it.  If the file or device is large, you "
24446 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24447 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24448 "usual modifiers allowed such as C<1M> (1 megabyte)."
24449 msgstr ""
24450
24451 # type: textblock
24452 #: ../fish/guestfish-commands.pod:97
24453 msgid "For example to edit the first few sectors of a disk you might do:"
24454 msgstr ""
24455
24456 # type: verbatim
24457 #: ../fish/guestfish-commands.pod:100
24458 #, no-wrap
24459 msgid ""
24460 " hexedit /dev/sda 1M\n"
24461 "\n"
24462 msgstr ""
24463
24464 # type: textblock
24465 #: ../fish/guestfish-commands.pod:102
24466 msgid ""
24467 "which would allow you to edit anywhere within the first megabyte of the disk."
24468 msgstr ""
24469
24470 # type: textblock
24471 #: ../fish/guestfish-commands.pod:105
24472 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24473 msgstr ""
24474
24475 # type: verbatim
24476 #: ../fish/guestfish-commands.pod:107
24477 #, no-wrap
24478 msgid ""
24479 " hexedit /dev/sda1 0x400 0x400\n"
24480 "\n"
24481 msgstr ""
24482
24483 # type: textblock
24484 #: ../fish/guestfish-commands.pod:109
24485 msgid "(assuming the superblock is in the standard location)."
24486 msgstr ""
24487
24488 # type: textblock
24489 #: ../fish/guestfish-commands.pod:111
24490 msgid ""
24491 "This command requires the external L<hexedit(1)> program.  You can specify "
24492 "another program to use by setting the C<HEXEDITOR> environment variable."
24493 msgstr ""
24494
24495 # type: textblock
24496 #: ../fish/guestfish-commands.pod:115
24497 msgid "See also L</hexdump>."
24498 msgstr ""
24499
24500 # type: =head2
24501 #: ../fish/guestfish-commands.pod:117
24502 msgid "lcd"
24503 msgstr ""
24504
24505 # type: verbatim
24506 #: ../fish/guestfish-commands.pod:119
24507 #, no-wrap
24508 msgid ""
24509 " lcd directory\n"
24510 "\n"
24511 msgstr ""
24512
24513 # type: textblock
24514 #: ../fish/guestfish-commands.pod:121
24515 msgid ""
24516 "Change the local directory, ie. the current directory of guestfish itself."
24517 msgstr ""
24518
24519 # type: textblock
24520 #: ../fish/guestfish-commands.pod:124
24521 msgid "Note that C<!cd> won't do what you might expect."
24522 msgstr ""
24523
24524 # type: =head2
24525 #: ../fish/guestfish-commands.pod:126
24526 msgid "man"
24527 msgstr ""
24528
24529 # type: =head2
24530 #: ../fish/guestfish-commands.pod:128
24531 msgid "manual"
24532 msgstr ""
24533
24534 # type: verbatim
24535 #: ../fish/guestfish-commands.pod:130
24536 #, no-wrap
24537 msgid ""
24538 "  man\n"
24539 "\n"
24540 msgstr ""
24541
24542 # type: textblock
24543 #: ../fish/guestfish-commands.pod:132
24544 msgid "Opens the manual page for guestfish."
24545 msgstr ""
24546
24547 # type: =head2
24548 #: ../fish/guestfish-commands.pod:134
24549 msgid "more"
24550 msgstr ""
24551
24552 # type: =head2
24553 #: ../fish/guestfish-commands.pod:136
24554 msgid "less"
24555 msgstr ""
24556
24557 # type: verbatim
24558 #: ../fish/guestfish-commands.pod:138
24559 #, no-wrap
24560 msgid ""
24561 " more filename\n"
24562 "\n"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #: ../fish/guestfish-commands.pod:140
24567 #, no-wrap
24568 msgid ""
24569 " less filename\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: textblock
24574 #: ../fish/guestfish-commands.pod:142
24575 msgid "This is used to view a file."
24576 msgstr ""
24577
24578 # type: textblock
24579 #: ../fish/guestfish-commands.pod:144
24580 msgid ""
24581 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24582 "C<less> you will get the C<less> command specifically."
24583 msgstr ""
24584
24585 # type: =head2
24586 #: ../fish/guestfish-commands.pod:147
24587 msgid "reopen"
24588 msgstr ""
24589
24590 # type: verbatim
24591 #: ../fish/guestfish-commands.pod:149
24592 #, no-wrap
24593 msgid ""
24594 "  reopen\n"
24595 "\n"
24596 msgstr ""
24597
24598 # type: textblock
24599 #: ../fish/guestfish-commands.pod:151
24600 msgid ""
24601 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24602 "normally, because the handle is closed properly when guestfish exits.  "
24603 "However this is occasionally useful for testing."
24604 msgstr ""
24605
24606 # type: =head2
24607 #: ../fish/guestfish-commands.pod:155
24608 msgid "sparse"
24609 msgstr ""
24610
24611 # type: verbatim
24612 #: ../fish/guestfish-commands.pod:157
24613 #, no-wrap
24614 msgid ""
24615 " sparse filename size\n"
24616 "\n"
24617 msgstr ""
24618
24619 # type: textblock
24620 #: ../fish/guestfish-commands.pod:159
24621 msgid ""
24622 "This creates an empty sparse file of the given size, and then adds so it can "
24623 "be further examined."
24624 msgstr ""
24625
24626 # type: textblock
24627 #: ../fish/guestfish-commands.pod:162
24628 msgid ""
24629 "In all respects it works the same as the L</alloc> command, except that the "
24630 "image file is allocated sparsely, which means that disk blocks are not "
24631 "assigned to the file until they are needed.  Sparse disk files only use "
24632 "space when written to, but they are slower and there is a danger you could "
24633 "run out of real disk space during a write operation."
24634 msgstr ""
24635
24636 # type: =head2
24637 #: ../fish/guestfish-commands.pod:172
24638 msgid "supported"
24639 msgstr ""
24640
24641 # type: verbatim
24642 #: ../fish/guestfish-commands.pod:174
24643 #, no-wrap
24644 msgid ""
24645 " supported\n"
24646 "\n"
24647 msgstr ""
24648
24649 # type: textblock
24650 #: ../fish/guestfish-commands.pod:176
24651 msgid ""
24652 "This command returns a list of the optional groups known to the daemon, and "
24653 "indicates which ones are supported by this build of the libguestfs appliance."
24654 msgstr ""
24655
24656 # type: textblock
24657 #: ../fish/guestfish-commands.pod:180
24658 msgid "See also L<guestfs(3)/AVAILABILITY>."
24659 msgstr ""
24660
24661 # type: =head2
24662 #: ../fish/guestfish-commands.pod:182
24663 msgid "time"
24664 msgstr ""
24665
24666 # type: verbatim
24667 #: ../fish/guestfish-commands.pod:184
24668 #, no-wrap
24669 msgid ""
24670 " time command args...\n"
24671 "\n"
24672 msgstr ""
24673
24674 # type: textblock
24675 #: ../fish/guestfish-commands.pod:186
24676 msgid ""
24677 "Run the command as usual, but print the elapsed time afterwards.  This can "
24678 "be useful for benchmarking operations."
24679 msgstr ""
24680
24681 # type: textblock
24682 #: ../test-tool/libguestfs-test-tool.pod:5
24683 msgid "libguestfs-test-tool - End user tests for libguestfs"
24684 msgstr ""
24685
24686 # type: verbatim
24687 #: ../test-tool/libguestfs-test-tool.pod:9
24688 #, no-wrap
24689 msgid ""
24690 " libguestfs-test-tool [--options]\n"
24691 "\n"
24692 msgstr ""
24693
24694 # type: textblock
24695 #: ../test-tool/libguestfs-test-tool.pod:13
24696 msgid ""
24697 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24698 "and developers, to allow them to check basic libguestfs functionality is "
24699 "working.  This is needed because libguestfs occasionally breaks for reasons "
24700 "beyond our control: usually because of changes in the underlying qemu or "
24701 "kernel packages, or the host environment."
24702 msgstr ""
24703
24704 # type: textblock
24705 #: ../test-tool/libguestfs-test-tool.pod:20
24706 msgid "If you suspect a problem in libguestfs, then just run:"
24707 msgstr ""
24708
24709 # type: verbatim
24710 #: ../test-tool/libguestfs-test-tool.pod:22
24711 #, no-wrap
24712 msgid ""
24713 " libguestfs-test-tool\n"
24714 "\n"
24715 msgstr ""
24716
24717 # type: textblock
24718 #: ../test-tool/libguestfs-test-tool.pod:24
24719 msgid "It will print lots of diagnostic messages."
24720 msgstr ""
24721
24722 # type: textblock
24723 #: ../test-tool/libguestfs-test-tool.pod:26
24724 msgid "If it runs to completion successfully, you will see this near the end:"
24725 msgstr ""
24726
24727 # type: verbatim
24728 #: ../test-tool/libguestfs-test-tool.pod:28
24729 #, no-wrap
24730 msgid ""
24731 " ===== TEST FINISHED OK =====\n"
24732 "\n"
24733 msgstr ""
24734
24735 # type: textblock
24736 #: ../test-tool/libguestfs-test-tool.pod:30
24737 msgid "and the test tool will exit with code 0."
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../test-tool/libguestfs-test-tool.pod:32
24742 msgid ""
24743 "If it fails (and/or exits with non-zero error code), please paste the "
24744 "B<complete, unedited> output of the test tool into a bug report.  More "
24745 "information about reporting bugs can be found on the L<http://libguestfs.org/"
24746 "> website."
24747 msgstr ""
24748
24749 # type: =item
24750 #: ../test-tool/libguestfs-test-tool.pod:41
24751 msgid "I<--help>"
24752 msgstr ""
24753
24754 # type: textblock
24755 #: ../test-tool/libguestfs-test-tool.pod:43
24756 msgid "Display short usage information and exit."
24757 msgstr ""
24758
24759 # type: =item
24760 #: ../test-tool/libguestfs-test-tool.pod:45
24761 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24762 msgstr ""
24763
24764 # type: textblock
24765 #: ../test-tool/libguestfs-test-tool.pod:47
24766 msgid ""
24767 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24768 "normally look in the C<$libexec> directory that was configured when the tool "
24769 "was built."
24770 msgstr ""
24771
24772 # type: =item
24773 #: ../test-tool/libguestfs-test-tool.pod:51
24774 msgid "I<--qemu qemu_binary>"
24775 msgstr ""
24776
24777 # type: textblock
24778 #: ../test-tool/libguestfs-test-tool.pod:53
24779 msgid ""
24780 "If you have downloaded another qemu binary, point this option at the full "
24781 "path of the binary to try it."
24782 msgstr ""
24783
24784 # type: =item
24785 #: ../test-tool/libguestfs-test-tool.pod:56
24786 msgid "I<--qemudir qemu_source_dir>"
24787 msgstr ""
24788
24789 # type: textblock
24790 #: ../test-tool/libguestfs-test-tool.pod:58
24791 msgid ""
24792 "If you have compiled qemu from source, point this option at the source "
24793 "directory to try it."
24794 msgstr ""
24795
24796 # type: =item
24797 #: ../test-tool/libguestfs-test-tool.pod:61
24798 msgid "I<--timeout N>"
24799 msgstr ""
24800
24801 # type: textblock
24802 #: ../test-tool/libguestfs-test-tool.pod:63
24803 msgid ""
24804 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24805 "does not usually need to be adjusted unless your machine is very slow."
24806 msgstr ""
24807
24808 # type: =head1
24809 #: ../test-tool/libguestfs-test-tool.pod:69
24810 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24811 msgstr ""
24812
24813 # type: textblock
24814 #: ../test-tool/libguestfs-test-tool.pod:71
24815 msgid ""
24816 "If you have compiled another version of qemu from source and would like to "
24817 "try that, then you can use the I<--qemudir> option to point to the qemu "
24818 "source directory."
24819 msgstr ""
24820
24821 # type: textblock
24822 #: ../test-tool/libguestfs-test-tool.pod:75
24823 msgid ""
24824 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24825 "option to point to the binary."
24826 msgstr ""
24827
24828 # type: textblock
24829 #: ../test-tool/libguestfs-test-tool.pod:78
24830 msgid ""
24831 "When using an alternate qemu with libguestfs, usually you would need to "
24832 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
24833 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
24834 "use either of the I<--qemudir> or I<--qemu> options."
24835 msgstr ""
24836
24837 # type: textblock
24838 #: ../test-tool/libguestfs-test-tool.pod:85
24839 msgid ""
24840 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24841 "I<1> if there was an error."
24842 msgstr ""
24843
24844 # type: =item
24845 #: ../test-tool/libguestfs-test-tool.pod:92
24846 msgid "/usr/libexec/libguestfs-test-tool-helper"
24847 msgstr ""
24848
24849 # type: textblock
24850 #: ../test-tool/libguestfs-test-tool.pod:94
24851 msgid ""
24852 "This helper program is run inside the appliance and provides additional "
24853 "tests."
24854 msgstr ""
24855
24856 # type: =item
24857 #: ../test-tool/libguestfs-test-tool.pod:97
24858 msgid "/usr/bin/mkisofs"
24859 msgstr ""
24860
24861 # type: textblock
24862 #: ../test-tool/libguestfs-test-tool.pod:99
24863 msgid ""
24864 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24865 "which is used as part of the tests."
24866 msgstr ""
24867
24868 # type: textblock
24869 #: ../test-tool/libguestfs-test-tool.pod:106
24870 msgid ""
24871 "For the full list of environment variables which may affect libguestfs, "
24872 "please see the L<guestfs(3)> manual page."
24873 msgstr ""
24874
24875 # type: textblock
24876 #: ../test-tool/libguestfs-test-tool.pod:111
24877 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24878 msgstr ""
24879
24880 # type: textblock
24881 #: ../test-tool/libguestfs-test-tool.pod:121
24882 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24883 msgstr ""
24884
24885 # type: textblock
24886 #: ../fuse/guestmount.pod:5
24887 msgid ""
24888 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24889 msgstr ""
24890
24891 # type: verbatim
24892 #: ../fuse/guestmount.pod:9
24893 #, no-wrap
24894 msgid ""
24895 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24896 "\n"
24897 msgstr ""
24898
24899 # type: verbatim
24900 #: ../fuse/guestmount.pod:11
24901 #, no-wrap
24902 msgid ""
24903 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24904 "\n"
24905 msgstr ""
24906
24907 # type: verbatim
24908 #: ../fuse/guestmount.pod:13
24909 #, no-wrap
24910 msgid ""
24911 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24912 "\n"
24913 msgstr ""
24914
24915 # type: textblock
24916 #: ../fuse/guestmount.pod:17
24917 msgid ""
24918 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24919 "machines.  If you do this, you risk disk corruption in the VM."
24920 msgstr ""
24921
24922 # type: textblock
24923 #: ../fuse/guestmount.pod:22
24924 msgid ""
24925 "The guestmount program can be used to mount virtual machine filesystems and "
24926 "other disk images on the host.  It uses libguestfs for access to the guest "
24927 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24928 "a mountable device."
24929 msgstr ""
24930
24931 # type: textblock
24932 #: ../fuse/guestmount.pod:27
24933 msgid ""
24934 "Along with other options, you have to give at least one device (I<-a> "
24935 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24936 "option) or use the I<-i> inspection option.  How this works is better "
24937 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24938 "below."
24939 msgstr ""
24940
24941 # type: textblock
24942 #: ../fuse/guestmount.pod:33
24943 msgid ""
24944 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24945 "by you, and the filesystem will not be visible to any other users unless you "
24946 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24947 "the filesystem, use the C<fusermount -u> command."
24948 msgstr ""
24949
24950 # type: textblock
24951 #: ../fuse/guestmount.pod:41
24952 msgid ""
24953 "For a typical Windows guest which has its main filesystem on the first "
24954 "partition:"
24955 msgstr ""
24956
24957 # type: verbatim
24958 #: ../fuse/guestmount.pod:44
24959 #, no-wrap
24960 msgid ""
24961 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24962 "\n"
24963 msgstr ""
24964
24965 # type: textblock
24966 #: ../fuse/guestmount.pod:46
24967 msgid ""
24968 "For a typical Linux guest which has a /boot filesystem on the first "
24969 "partition, and the root filesystem on a logical volume:"
24970 msgstr ""
24971
24972 # type: verbatim
24973 #: ../fuse/guestmount.pod:49
24974 #, no-wrap
24975 msgid ""
24976 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24977 "\n"
24978 msgstr ""
24979
24980 # type: textblock
24981 #: ../fuse/guestmount.pod:51
24982 msgid "To get libguestfs to detect guest mountpoints for you:"
24983 msgstr ""
24984
24985 # type: verbatim
24986 #: ../fuse/guestmount.pod:53
24987 #, no-wrap
24988 msgid ""
24989 " guestmount -a guest.img -i --ro /mnt\n"
24990 "\n"
24991 msgstr ""
24992
24993 # type: textblock
24994 #: ../fuse/guestmount.pod:55
24995 msgid "For a libvirt guest called \"Guest\" you could do:"
24996 msgstr ""
24997
24998 # type: verbatim
24999 #: ../fuse/guestmount.pod:57
25000 #, no-wrap
25001 msgid ""
25002 " guestmount -d Guest -i --ro /mnt\n"
25003 "\n"
25004 msgstr ""
25005
25006 # type: textblock
25007 #: ../fuse/guestmount.pod:59
25008 msgid ""
25009 "If you don't know what filesystems are contained in a guest or disk image, "
25010 "use L<virt-list-filesystems(1)> first:"
25011 msgstr ""
25012
25013 # type: verbatim
25014 #: ../fuse/guestmount.pod:62
25015 #, no-wrap
25016 msgid ""
25017 " virt-list-filesystems MyGuest\n"
25018 "\n"
25019 msgstr ""
25020
25021 # type: textblock
25022 #: ../fuse/guestmount.pod:64
25023 msgid ""
25024 "If you want to trace the libguestfs calls but without excessive debugging "
25025 "information, we recommend:"
25026 msgstr ""
25027
25028 # type: verbatim
25029 #: ../fuse/guestmount.pod:67
25030 #, no-wrap
25031 msgid ""
25032 " guestmount [...] --trace /mnt\n"
25033 "\n"
25034 msgstr ""
25035
25036 # type: textblock
25037 #: ../fuse/guestmount.pod:69
25038 msgid "If you want to debug the program, we recommend:"
25039 msgstr ""
25040
25041 # type: verbatim
25042 #: ../fuse/guestmount.pod:71
25043 #, no-wrap
25044 msgid ""
25045 " guestmount [...] --trace --verbose /mnt\n"
25046 "\n"
25047 msgstr ""
25048
25049 # type: textblock
25050 #: ../fuse/guestmount.pod:79
25051 msgid "Add a block device or virtual machine image."
25052 msgstr ""
25053
25054 # type: =item
25055 #: ../fuse/guestmount.pod:96
25056 msgid "B<--dir-cache-timeout N>"
25057 msgstr ""
25058
25059 # type: textblock
25060 #: ../fuse/guestmount.pod:98
25061 msgid ""
25062 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25063 "seconds.  The readdir cache [actually, there are several semi-independent "
25064 "caches] is populated after a readdir(2) call with the stat and extended "
25065 "attributes of the files in the directory, in anticipation that they will be "
25066 "requested soon after."
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../fuse/guestmount.pod:104
25071 msgid ""
25072 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25073 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25074 "requests, only cache existing ones."
25075 msgstr ""
25076
25077 # type: textblock
25078 #: ../fuse/guestmount.pod:122
25079 msgid ""
25080 "If you have untrusted raw-format guest disk images, you should use this "
25081 "option to specify the disk format.  This avoids a possible security problem "
25082 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25083 "guestfs_add_drive_opts>."
25084 msgstr ""
25085
25086 # type: =item
25087 #: ../fuse/guestmount.pod:127
25088 msgid "B<--fuse-help>"
25089 msgstr ""
25090
25091 # type: textblock
25092 #: ../fuse/guestmount.pod:129
25093 msgid "Display help on special FUSE options (see I<-o> below)."
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../fuse/guestmount.pod:133
25098 msgid "Display brief help and exit."
25099 msgstr ""
25100
25101 # type: =item
25102 #: ../fuse/guestmount.pod:146
25103 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25104 msgstr ""
25105
25106 # type: textblock
25107 #: ../fuse/guestmount.pod:148
25108 msgid ""
25109 "Mount the named partition or logical volume on the given mountpoint B<in the "
25110 "guest> (this has nothing to do with mountpoints in the host)."
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../fuse/guestmount.pod:151
25115 msgid ""
25116 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25117 "something on C</>."
25118 msgstr ""
25119
25120 # type: textblock
25121 #: ../fuse/guestmount.pod:156
25122 msgid ""
25123 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25124 "unmounted.  If you specify this option, then we don't attempt to sync the "
25125 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25126 msgstr ""
25127
25128 # type: =item
25129 #: ../fuse/guestmount.pod:161
25130 msgid "B<-o option> | B<--option option>"
25131 msgstr ""
25132
25133 # type: textblock
25134 #: ../fuse/guestmount.pod:163
25135 msgid "Pass extra options to FUSE."
25136 msgstr ""
25137
25138 # type: textblock
25139 #: ../fuse/guestmount.pod:165
25140 msgid ""
25141 "To get a list of all the extra options supported by FUSE, use the command "
25142 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25143 "of them are a good idea."
25144 msgstr ""
25145
25146 # type: verbatim
25147 #: ../fuse/guestmount.pod:169
25148 #, no-wrap
25149 msgid ""
25150 " guestmount --fuse-help\n"
25151 "\n"
25152 msgstr ""
25153
25154 # type: textblock
25155 #: ../fuse/guestmount.pod:171
25156 msgid "Some potentially useful FUSE options:"
25157 msgstr ""
25158
25159 # type: =item
25160 #: ../fuse/guestmount.pod:175
25161 msgid "B<-o allow_other>"
25162 msgstr ""
25163
25164 # type: textblock
25165 #: ../fuse/guestmount.pod:177
25166 msgid "Allow other users to see the filesystem."
25167 msgstr ""
25168
25169 # type: =item
25170 #: ../fuse/guestmount.pod:179
25171 msgid "B<-o attr_timeout=N>"
25172 msgstr ""
25173
25174 # type: textblock
25175 #: ../fuse/guestmount.pod:181
25176 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25177 msgstr ""
25178
25179 # type: =item
25180 #: ../fuse/guestmount.pod:183
25181 msgid "B<-o kernel_cache>"
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../fuse/guestmount.pod:185
25186 msgid ""
25187 "Allow the kernel to cache files (reduces the number of reads that have to go "
25188 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25189 "afford the extra memory usage."
25190 msgstr ""
25191
25192 # type: =item
25193 #: ../fuse/guestmount.pod:189
25194 msgid "B<-o uid=N> B<-o gid=N>"
25195 msgstr ""
25196
25197 # type: textblock
25198 #: ../fuse/guestmount.pod:191
25199 msgid ""
25200 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25201 "the chosen values."
25202 msgstr ""
25203
25204 # type: textblock
25205 #: ../fuse/guestmount.pod:198
25206 msgid ""
25207 "Add devices and mount everything read-only.  Also disallow writes and make "
25208 "the disk appear read-only to FUSE."
25209 msgstr ""
25210
25211 # type: textblock
25212 #: ../fuse/guestmount.pod:201
25213 msgid ""
25214 "This is highly recommended if you are not going to edit the guest disk.  If "
25215 "the guest is running and this option is I<not> supplied, then there is a "
25216 "strong risk of disk corruption in the guest.  We try to prevent this from "
25217 "happening, but it is not always possible."
25218 msgstr ""
25219
25220 # type: textblock
25221 #: ../fuse/guestmount.pod:206
25222 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25223 msgstr ""
25224
25225 # type: textblock
25226 #: ../fuse/guestmount.pod:210
25227 msgid "Enable SELinux support for the guest."
25228 msgstr ""
25229
25230 # type: textblock
25231 #: ../fuse/guestmount.pod:214
25232 msgid "Enable verbose messages from underlying libguestfs."
25233 msgstr ""
25234
25235 # type: textblock
25236 #: ../fuse/guestmount.pod:218
25237 msgid "Display the program version and exit."
25238 msgstr ""
25239
25240 # type: textblock
25241 #: ../fuse/guestmount.pod:222
25242 msgid ""
25243 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25244 "FOR READ AND WRITE>."
25245 msgstr ""
25246
25247 # type: =item
25248 #: ../fuse/guestmount.pod:225
25249 msgid "B<-x> | B<--trace>"
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../fuse/guestmount.pod:227
25254 msgid "Trace libguestfs calls."
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../fuse/guestmount.pod:229
25259 msgid "This also stops the daemon from forking into the background."
25260 msgstr ""
25261
25262 # type: textblock
25263 #: ../fuse/guestmount.pod:235
25264 msgid ""
25265 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25266 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
25267 "net/>."
25268 msgstr ""
25269
25270 # type: textblock
25271 #: ../inspector/virt-inspector.pl:35
25272 msgid ""
25273 "virt-inspector - Display operating system version and other information "
25274 "about a virtual machine"
25275 msgstr ""
25276
25277 # type: verbatim
25278 #: ../inspector/virt-inspector.pl:39
25279 #, no-wrap
25280 msgid ""
25281 " virt-inspector [--connect URI] domname\n"
25282 "\n"
25283 msgstr ""
25284
25285 # type: verbatim
25286 #: ../inspector/virt-inspector.pl:41
25287 #, no-wrap
25288 msgid ""
25289 " virt-inspector guest.img [guest.img ...]\n"
25290 "\n"
25291 msgstr ""
25292
25293 # type: textblock
25294 #: ../inspector/virt-inspector.pl:45
25295 msgid ""
25296 "B<virt-inspector> examines a virtual machine or disk image and tries to "
25297 "determine the version of the operating system and other information about "
25298 "the virtual machine."
25299 msgstr ""
25300
25301 # type: textblock
25302 #: ../inspector/virt-inspector.pl:49
25303 msgid "Virt-inspector produces XML output for feeding into other programs."
25304 msgstr ""
25305
25306 # type: textblock
25307 #: ../inspector/virt-inspector.pl:51
25308 msgid ""
25309 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
25310 "libvirt domain (see: C<virsh list --all>)."
25311 msgstr ""
25312
25313 # type: textblock
25314 #: ../inspector/virt-inspector.pl:54
25315 msgid ""
25316 "You can also run virt-inspector directly on disk images from a single "
25317 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
25318 "has several block devices, in which case you should list them one after "
25319 "another, with the first corresponding to the guest's C</dev/sda>, the second "
25320 "to the guest's C</dev/sdb> and so on."
25321 msgstr ""
25322
25323 # type: textblock
25324 #: ../inspector/virt-inspector.pl:60
25325 msgid ""
25326 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
25327 "inspect several virtual machines, you have to run virt-inspector several "
25328 "times (for example, from a shell script for-loop)."
25329 msgstr ""
25330
25331 # type: textblock
25332 #: ../inspector/virt-inspector.pl:65
25333 msgid ""
25334 "Because virt-inspector needs direct access to guest images, it won't "
25335 "normally work over remote libvirt connections."
25336 msgstr ""
25337
25338 # type: textblock
25339 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
25340 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
25341 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89
25342 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
25343 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
25344 msgid "Display brief help."
25345 msgstr ""
25346
25347 # type: =item
25348 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
25349 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
25350 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
25351 #: ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114
25352 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
25353 #: ../tools/virt-list-partitions.pl:67
25354 msgid "B<--version>"
25355 msgstr ""
25356
25357 # type: textblock
25358 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
25359 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
25360 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
25361 #: ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116
25362 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
25363 #: ../tools/virt-list-partitions.pl:69
25364 msgid "Display version number and exit."
25365 msgstr ""
25366
25367 # type: =item
25368 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
25369 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
25370 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103
25371 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
25372 #: ../tools/virt-list-partitions.pl:75
25373 msgid "B<--connect URI> | B<-c URI>"
25374 msgstr ""
25375
25376 # type: textblock
25377 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
25378 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
25379 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105
25380 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
25381 #: ../tools/virt-list-partitions.pl:77
25382 msgid ""
25383 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25384 "to the default libvirt hypervisor."
25385 msgstr ""
25386
25387 # type: textblock
25388 #: ../inspector/virt-inspector.pl:97
25389 msgid ""
25390 "Libvirt is only used if you specify a C<domname> on the command line.  If "
25391 "you specify guest block devices directly, then libvirt is not used at all."
25392 msgstr ""
25393
25394 # type: =item
25395 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
25396 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
25397 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
25398 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115
25399 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
25400 #: ../tools/virt-list-partitions.pl:87
25401 msgid "B<--format> raw"
25402 msgstr ""
25403
25404 # type: textblock
25405 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
25406 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
25407 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
25408 #: ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136
25409 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
25410 msgid ""
25411 "Specify the format of disk images given on the command line.  If this is "
25412 "omitted then the format is autodetected from the content of the disk image."
25413 msgstr ""
25414
25415 # type: textblock
25416 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
25417 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
25418 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
25419 #: ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140
25420 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
25421 msgid ""
25422 "If disk images are requested from libvirt, then this program asks libvirt "
25423 "for this information.  In this case, the value of the format parameter is "
25424 "ignored."
25425 msgstr ""
25426
25427 # type: textblock
25428 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
25429 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
25430 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
25431 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
25432 #: ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144
25433 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
25434 msgid ""
25435 "If working with untrusted raw-format guest disk images, you should ensure "
25436 "the format is always specified."
25437 msgstr ""
25438
25439 # type: =head1
25440 #: ../inspector/virt-inspector.pl:149
25441 msgid "XML FORMAT"
25442 msgstr ""
25443
25444 # type: textblock
25445 #: ../inspector/virt-inspector.pl:151
25446 msgid ""
25447 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25448 "supplied with libguestfs.  This section is just an overview."
25449 msgstr ""
25450
25451 # type: textblock
25452 #: ../inspector/virt-inspector.pl:154
25453 msgid ""
25454 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25455 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25456 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25457 "which is vanishingly rare in real world VMs."
25458 msgstr ""
25459
25460 # type: =head2
25461 #: ../inspector/virt-inspector.pl:159
25462 msgid "E<lt>operatingsystemE<gt>"
25463 msgstr ""
25464
25465 # type: textblock
25466 #: ../inspector/virt-inspector.pl:161
25467 msgid ""
25468 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25469 "describe the operating system, its architecture, the descriptive \"product "
25470 "name\" string, the type of OS and so on, as in this example:"
25471 msgstr ""
25472
25473 # type: verbatim
25474 #: ../inspector/virt-inspector.pl:165
25475 #, no-wrap
25476 msgid ""
25477 " <operatingsystems>\n"
25478 "   <operatingsystem>\n"
25479 "     <root>/dev/sda2</root>\n"
25480 "     <name>windows</name>\n"
25481 "     <arch>i386</arch>\n"
25482 "     <distro>windows</distro>\n"
25483 "     <product_name>Windows 7 Enterprise</product_name>\n"
25484 "     <major_version>6</major_version>\n"
25485 "     <minor_version>1</minor_version>\n"
25486 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25487 "\n"
25488 msgstr ""
25489
25490 # type: textblock
25491 #: ../inspector/virt-inspector.pl:176
25492 msgid ""
25493 "These fields are derived from the libguestfs inspection API, and you can "
25494 "find more details in L<guestfs(3)/INSPECTION>."
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../inspector/virt-inspector.pl:179
25499 msgid ""
25500 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25501 "of view of libguestfs (block devices may have completely different names "
25502 "inside the VM itself)."
25503 msgstr ""
25504
25505 # type: =head2
25506 #: ../inspector/virt-inspector.pl:240
25507 msgid "E<lt>mountpointsE<gt>"
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../inspector/virt-inspector.pl:242
25512 msgid ""
25513 "Un*x-like guests typically have multiple filesystems which are mounted at "
25514 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25515 "element which looks like this:"
25516 msgstr ""
25517
25518 # type: verbatim
25519 #: ../inspector/virt-inspector.pl:246
25520 #, no-wrap
25521 msgid ""
25522 " <operatingsystems>\n"
25523 "   <operatingsystem>\n"
25524 "     ...\n"
25525 "     <mountpoints>\n"
25526 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25527 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25528 "     </mountpoints>\n"
25529 "\n"
25530 msgstr ""
25531
25532 # type: textblock
25533 #: ../inspector/virt-inspector.pl:254
25534 msgid ""
25535 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25536 "and may have completely different names inside the guest.  Only mountable "
25537 "filesystems appear in this list, not things like swap devices."
25538 msgstr ""
25539
25540 # type: =head2
25541 #: ../inspector/virt-inspector.pl:276
25542 msgid "E<lt>filesystemsE<gt>"
25543 msgstr ""
25544
25545 # type: textblock
25546 #: ../inspector/virt-inspector.pl:278
25547 msgid ""
25548 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25549 "filesystems belonging to the guest, including swap and empty partitions.  "
25550 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25551 "this OS or shared by this OS and other OSes)."
25552 msgstr ""
25553
25554 # type: textblock
25555 #: ../inspector/virt-inspector.pl:283
25556 msgid "You might see something like this:"
25557 msgstr ""
25558
25559 # type: verbatim
25560 #: ../inspector/virt-inspector.pl:285
25561 #, no-wrap
25562 msgid ""
25563 " <operatingsystems>\n"
25564 "   <operatingsystem>\n"
25565 "     ...\n"
25566 "     <filesystems>\n"
25567 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25568 "         <type>ext4</type>\n"
25569 "         <label>Fedora-13-x86_64</label>\n"
25570 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25571 "       </filesystem>\n"
25572 "\n"
25573 msgstr ""
25574
25575 # type: textblock
25576 #: ../inspector/virt-inspector.pl:295
25577 msgid ""
25578 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
25579 "the label, and the UUID."
25580 msgstr ""
25581
25582 # type: =head2
25583 #: ../inspector/virt-inspector.pl:337
25584 msgid "E<lt>applicationsE<gt>"
25585 msgstr ""
25586
25587 # type: textblock
25588 #: ../inspector/virt-inspector.pl:339
25589 msgid ""
25590 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
25591 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25592 "machine.  At the moment we are only able to list RPMs and Debian packages "
25593 "installed, but in future we will support other Linux distros and Windows."
25594 msgstr ""
25595
25596 # type: textblock
25597 #: ../inspector/virt-inspector.pl:345
25598 msgid ""
25599 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25600 "Typical values would be C<rpm> and C<deb>."
25601 msgstr ""
25602
25603 # type: textblock
25604 #: ../inspector/virt-inspector.pl:348
25605 msgid ""
25606 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25607 "Typical values include C<yum>, C<up2date> and C<apt>"
25608 msgstr ""
25609
25610 # type: textblock
25611 #: ../inspector/virt-inspector.pl:351
25612 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25613 msgstr ""
25614
25615 # type: verbatim
25616 #: ../inspector/virt-inspector.pl:354
25617 #, no-wrap
25618 msgid ""
25619 " <operatingsystems>\n"
25620 "   <operatingsystem>\n"
25621 "     ...\n"
25622 "     <applications>\n"
25623 "       <application>\n"
25624 "         <name>coreutils</name>\n"
25625 "         <version>8.5</version>\n"
25626 "         <release>1</release>\n"
25627 "       </application>\n"
25628 "\n"
25629 msgstr ""
25630
25631 # type: textblock
25632 #: ../inspector/virt-inspector.pl:364
25633 msgid ""
25634 "(The version and release fields may not be available for some package types)."
25635 msgstr ""
25636
25637 # type: =head1
25638 #: ../inspector/virt-inspector.pl:544
25639 msgid "USING XPATH"
25640 msgstr ""
25641
25642 # type: textblock
25643 #: ../inspector/virt-inspector.pl:546
25644 msgid ""
25645 "You can use the XPath query language, and/or the xpath tool, in order to "
25646 "select parts of the XML."
25647 msgstr ""
25648
25649 # type: verbatim
25650 #: ../inspector/virt-inspector.pl:551
25651 #, no-wrap
25652 msgid ""
25653 " $ virt-inspector Guest | xpath //filesystems\n"
25654 " Found 1 nodes:\n"
25655 " -- NODE --\n"
25656 " <filesystems>\n"
25657 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25658 "        <type>ext4</type>\n"
25659 " [etc]\n"
25660 "\n"
25661 msgstr ""
25662
25663 # type: verbatim
25664 #: ../inspector/virt-inspector.pl:559
25665 #, no-wrap
25666 msgid ""
25667 " $ virt-inspector Guest | \\\n"
25668 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25669 " Query didn't return a nodeset. Value: ext4\n"
25670 "\n"
25671 msgstr ""
25672
25673 # type: =head2
25674 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343
25675 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
25676 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
25677 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
25678 #: ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274
25679 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
25680 #: ../tools/virt-list-partitions.pl:247
25681 msgid "SHELL QUOTING"
25682 msgstr ""
25683
25684 # type: textblock
25685 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345
25686 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
25687 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
25688 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180
25689 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
25690 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
25691 msgid ""
25692 "Libvirt guest names can contain arbitrary characters, some of which have "
25693 "meaning to the shell such as C<#> and space.  You may need to quote or "
25694 "escape these characters on the command line.  See the shell manual page L<sh"
25695 "(1)> for details."
25696 msgstr ""
25697
25698 # type: textblock
25699 #: ../inspector/virt-inspector.pl:572
25700 msgid ""
25701 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25702 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25703 msgstr ""
25704
25705 # type: textblock
25706 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364
25707 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
25708 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
25709 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197
25710 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
25711 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
25712 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25713 msgstr ""
25714
25715 # type: textblock
25716 #: ../inspector/virt-inspector.pl:590
25717 msgid "Matthew Booth L<mbooth@redhat.com>"
25718 msgstr ""
25719
25720 # type: textblock
25721 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516
25722 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25723 msgid "Copyright (C) 2010 Red Hat Inc."
25724 msgstr ""
25725
25726 # type: textblock
25727 #: ../tools/virt-edit.pl:34
25728 msgid "virt-edit - Edit a file in a virtual machine"
25729 msgstr ""
25730
25731 # type: verbatim
25732 #: ../tools/virt-edit.pl:38
25733 #, no-wrap
25734 msgid ""
25735 " virt-edit [--options] domname file\n"
25736 "\n"
25737 msgstr ""
25738
25739 # type: verbatim
25740 #: ../tools/virt-edit.pl:40
25741 #, no-wrap
25742 msgid ""
25743 " virt-edit [--options] disk.img [disk.img ...] file\n"
25744 "\n"
25745 msgstr ""
25746
25747 # type: verbatim
25748 #: ../tools/virt-edit.pl:42
25749 #, no-wrap
25750 msgid ""
25751 " virt-edit [domname|disk.img] file -e 'expr'\n"
25752 "\n"
25753 msgstr ""
25754
25755 # type: textblock
25756 #: ../tools/virt-edit.pl:46
25757 msgid ""
25758 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25759 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25760 "doing this, but doesn't catch all cases."
25761 msgstr ""
25762
25763 # type: textblock
25764 #: ../tools/virt-edit.pl:52
25765 msgid ""
25766 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25767 "the named virtual machine (or disk image)."
25768 msgstr ""
25769
25770 # type: textblock
25771 #: ../tools/virt-edit.pl:55
25772 msgid ""
25773 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25774 "you should look at the L<guestfish(1)> tool."
25775 msgstr ""
25776
25777 # type: textblock
25778 #: ../tools/virt-edit.pl:60
25779 msgid "Edit the named files interactively:"
25780 msgstr ""
25781
25782 # type: verbatim
25783 #: ../tools/virt-edit.pl:62
25784 #, no-wrap
25785 msgid ""
25786 " virt-edit mydomain /boot/grub/grub.conf\n"
25787 "\n"
25788 msgstr ""
25789
25790 # type: verbatim
25791 #: ../tools/virt-edit.pl:64
25792 #, no-wrap
25793 msgid ""
25794 " virt-edit mydomain /etc/passwd\n"
25795 "\n"
25796 msgstr ""
25797
25798 # type: textblock
25799 #: ../tools/virt-edit.pl:66
25800 msgid ""
25801 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25802 "below).  To change the init default level to 5:"
25803 msgstr ""
25804
25805 # type: verbatim
25806 #: ../tools/virt-edit.pl:70
25807 #, no-wrap
25808 msgid ""
25809 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25810 "\n"
25811 msgstr ""
25812
25813 # type: =item
25814 #: ../tools/virt-edit.pl:96
25815 msgid "B<--backup extension> | B<-b extension>"
25816 msgstr ""
25817
25818 # type: textblock
25819 #: ../tools/virt-edit.pl:98
25820 msgid ""
25821 "Create a backup of the original file I<in the guest disk image>.  The backup "
25822 "has the original filename with C<extension> added."
25823 msgstr ""
25824
25825 # type: textblock
25826 #: ../tools/virt-edit.pl:101
25827 msgid ""
25828 "Usually the first character of C<extension> would be a dot C<.> so you would "
25829 "write:"
25830 msgstr ""
25831
25832 # type: verbatim
25833 #: ../tools/virt-edit.pl:104
25834 #, no-wrap
25835 msgid ""
25836 " virt-edit -b .orig [etc]\n"
25837 "\n"
25838 msgstr ""
25839
25840 # type: textblock
25841 #: ../tools/virt-edit.pl:106
25842 msgid "By default, no backup file is made."
25843 msgstr ""
25844
25845 # type: textblock
25846 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
25847 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
25848 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108
25849 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
25850 #: ../tools/virt-list-partitions.pl:80
25851 msgid ""
25852 "If you specify guest block devices directly, then libvirt is not used at all."
25853 msgstr ""
25854
25855 # type: =item
25856 #: ../tools/virt-edit.pl:141
25857 msgid "B<--expr EXPR> | B<-e EXPR>"
25858 msgstr ""
25859
25860 # type: textblock
25861 #: ../tools/virt-edit.pl:143
25862 msgid ""
25863 "Instead of launching the external editor, non-interactively apply the Perl "
25864 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25865 "EDITING> below."
25866 msgstr ""
25867
25868 # type: textblock
25869 #: ../tools/virt-edit.pl:147
25870 msgid ""
25871 "Be careful to properly quote the expression to prevent it from being altered "
25872 "by the shell."
25873 msgstr ""
25874
25875 # type: =head1
25876 #: ../tools/virt-edit.pl:268
25877 msgid "NON-INTERACTIVE EDITING"
25878 msgstr ""
25879
25880 # type: textblock
25881 #: ../tools/virt-edit.pl:270
25882 msgid ""
25883 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25884 "administrator can interactively edit the file."
25885 msgstr ""
25886
25887 # type: textblock
25888 #: ../tools/virt-edit.pl:273
25889 msgid ""
25890 "There are two ways also to use C<virt-edit> from scripts in order to make "
25891 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25892 "like this, it's less error-prone to write scripts directly using the "
25893 "libguestfs API and Augeas for configuration file editing.)"
25894 msgstr ""
25895
25896 # type: textblock
25897 #: ../tools/virt-edit.pl:279
25898 msgid ""
25899 "The first method is to temporarily set C<$EDITOR> to any script or program "
25900 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25901 "update C<tmpfile> in place however it likes."
25902 msgstr ""
25903
25904 # type: textblock
25905 #: ../tools/virt-edit.pl:283
25906 msgid ""
25907 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25908 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25909 "instances of C<foo> with C<bar> in a file:"
25910 msgstr ""
25911
25912 # type: verbatim
25913 #: ../tools/virt-edit.pl:287
25914 #, no-wrap
25915 msgid ""
25916 " virt-edit domname filename -e 's/foo/bar/'\n"
25917 "\n"
25918 msgstr ""
25919
25920 # type: textblock
25921 #: ../tools/virt-edit.pl:289
25922 msgid ""
25923 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25924 "For example to delete root's password you could do:"
25925 msgstr ""
25926
25927 # type: verbatim
25928 #: ../tools/virt-edit.pl:292
25929 #, no-wrap
25930 msgid ""
25931 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25932 "\n"
25933 msgstr ""
25934
25935 # type: textblock
25936 #: ../tools/virt-edit.pl:294
25937 msgid ""
25938 "What really happens is that the snippet is evaluated as a Perl expression "
25939 "for each line of the file.  The line, including the final C<\\n>, is passed "
25940 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25941 msgstr ""
25942
25943 # type: textblock
25944 #: ../tools/virt-edit.pl:299
25945 msgid ""
25946 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25947 "C<apache> user account from the password file you can do:"
25948 msgstr ""
25949
25950 # type: verbatim
25951 #: ../tools/virt-edit.pl:302
25952 #, no-wrap
25953 msgid ""
25954 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25955 "\n"
25956 msgstr ""
25957
25958 # type: textblock
25959 #: ../tools/virt-edit.pl:304
25960 msgid ""
25961 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25962 "the end of the file is rather difficult this way since there is no concept "
25963 "of \"last line of the file\" - your expression just doesn't get called "
25964 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25965 "want to do this."
25966 msgstr ""
25967
25968 # type: textblock
25969 #: ../tools/virt-edit.pl:310
25970 msgid ""
25971 "The variable C<$lineno> contains the current line number.  As is "
25972 "traditional, the first line in the file is number C<1>."
25973 msgstr ""
25974
25975 # type: textblock
25976 #: ../tools/virt-edit.pl:313
25977 msgid ""
25978 "The return value from the expression is ignored, but the expression may call "
25979 "C<die> in order to abort the whole program, leaving the original file "
25980 "untouched."
25981 msgstr ""
25982
25983 # type: textblock
25984 #: ../tools/virt-edit.pl:317
25985 msgid ""
25986 "Remember when matching the end of a line that C<$_> may contain the final C<"
25987 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25988 "newline then neither of these.  Thus to match or substitute some text at the "
25989 "end of a line, use this regular expression:"
25990 msgstr ""
25991
25992 # type: verbatim
25993 #: ../tools/virt-edit.pl:322
25994 #, no-wrap
25995 msgid ""
25996 " /some text(\\r?\\n)?$/\n"
25997 "\n"
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../tools/virt-edit.pl:324
26002 msgid ""
26003 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26004 "$_> itself (since that would remove all newlines from the file):"
26005 msgstr ""
26006
26007 # type: verbatim
26008 #: ../tools/virt-edit.pl:328
26009 #, no-wrap
26010 msgid ""
26011 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26012 "\n"
26013 msgstr ""
26014
26015 # type: =item
26016 #: ../tools/virt-edit.pl:334
26017 msgid "C<EDITOR>"
26018 msgstr ""
26019
26020 # type: textblock
26021 #: ../tools/virt-edit.pl:336
26022 msgid ""
26023 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26024 "\"emacs -nw\">"
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../tools/virt-edit.pl:339
26029 msgid "If not set, C<vi> is used."
26030 msgstr ""
26031
26032 # type: textblock
26033 #: ../tools/virt-edit.pl:352
26034 msgid ""
26035 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26036 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26037 "L<perlre(1)>."
26038 msgstr ""
26039
26040 # type: =head1
26041 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26042 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
26043 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
26044 #: ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292
26045 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
26046 #: ../tools/virt-list-partitions.pl:265
26047 msgid "AUTHOR"
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26052 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26053 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26054 msgstr ""
26055
26056 # type: textblock
26057 #: ../tools/virt-win-reg.pl:37
26058 msgid ""
26059 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26060 msgstr ""
26061
26062 # type: verbatim
26063 #: ../tools/virt-win-reg.pl:41
26064 #, no-wrap
26065 msgid ""
26066 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26067 "\n"
26068 msgstr ""
26069
26070 # type: verbatim
26071 #: ../tools/virt-win-reg.pl:43
26072 #, no-wrap
26073 msgid ""
26074 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26075 "\n"
26076 msgstr ""
26077
26078 # type: verbatim
26079 #: ../tools/virt-win-reg.pl:45
26080 #, no-wrap
26081 msgid ""
26082 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26083 "\n"
26084 msgstr ""
26085
26086 # type: verbatim
26087 #: ../tools/virt-win-reg.pl:47
26088 #, no-wrap
26089 msgid ""
26090 " virt-win-reg --merge domname [input.reg ...]\n"
26091 "\n"
26092 msgstr ""
26093
26094 # type: verbatim
26095 #: ../tools/virt-win-reg.pl:49
26096 #, no-wrap
26097 msgid ""
26098 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26099 "\n"
26100 msgstr ""
26101
26102 # type: textblock
26103 #: ../tools/virt-win-reg.pl:53
26104 msgid ""
26105 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26106 "virtual machines.  If you do this, you I<will> get irreversible disk "
26107 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26108 "but doesn't catch all cases."
26109 msgstr ""
26110
26111 # type: textblock
26112 #: ../tools/virt-win-reg.pl:58
26113 msgid ""
26114 "Modifying the Windows Registry is an inherently risky operation.  The format "
26115 "is deliberately obscure and undocumented, and Registry changes can leave the "
26116 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26117 "you have a reliable backup first."
26118 msgstr ""
26119
26120 # type: textblock
26121 #: ../tools/virt-win-reg.pl:65
26122 msgid ""
26123 "This program can export and merge Windows Registry entries from a Windows "
26124 "guest."
26125 msgstr ""
26126
26127 # type: textblock
26128 #: ../tools/virt-win-reg.pl:68
26129 msgid ""
26130 "The first parameter is the libvirt guest name or the raw disk image of a "
26131 "Windows guest."
26132 msgstr ""
26133
26134 # type: textblock
26135 #: ../tools/virt-win-reg.pl:71
26136 msgid ""
26137 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26138 "exported (recursively).  For example:"
26139 msgstr ""
26140
26141 # type: verbatim
26142 #: ../tools/virt-win-reg.pl:74
26143 #, no-wrap
26144 msgid ""
26145 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26146 "\n"
26147 msgstr ""
26148
26149 # type: textblock
26150 #: ../tools/virt-win-reg.pl:76
26151 msgid ""
26152 "You can also display single values from within registry keys, for example:"
26153 msgstr ""
26154
26155 # type: verbatim
26156 #: ../tools/virt-win-reg.pl:79
26157 #, no-wrap
26158 msgid ""
26159 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26160 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26161 " Windows 7 Enterprise\n"
26162 "\n"
26163 msgstr ""
26164
26165 # type: textblock
26166 #: ../tools/virt-win-reg.pl:83
26167 msgid ""
26168 "With C<--merge>, you can merge a textual regedit file into the Windows "
26169 "Registry:"
26170 msgstr ""
26171
26172 # type: verbatim
26173 #: ../tools/virt-win-reg.pl:86
26174 #, no-wrap
26175 msgid ""
26176 " $ virt-win-reg --merge Windows7 changes.reg\n"
26177 "\n"
26178 msgstr ""
26179
26180 # type: =head2
26181 #: ../tools/virt-win-reg.pl:88
26182 msgid "SUPPORTED SYSTEMS"
26183 msgstr ""
26184
26185 # type: textblock
26186 #: ../tools/virt-win-reg.pl:90
26187 msgid ""
26188 "The program currently supports Windows NT-derived guests starting with "
26189 "Windows XP through to at least Windows 7."
26190 msgstr ""
26191
26192 # type: textblock
26193 #: ../tools/virt-win-reg.pl:93
26194 msgid ""
26195 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26196 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26197 "and C<HKEY_USERS\\.DEFAULT>."
26198 msgstr ""
26199
26200 # type: textblock
26201 #: ../tools/virt-win-reg.pl:97
26202 msgid ""
26203 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26204 "C<HKEY_USERS>."
26205 msgstr ""
26206
26207 # type: textblock
26208 #: ../tools/virt-win-reg.pl:100
26209 msgid ""
26210 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26211 "time."
26212 msgstr ""
26213
26214 # type: =head2
26215 #: ../tools/virt-win-reg.pl:103
26216 msgid "NOTE"
26217 msgstr ""
26218
26219 # type: textblock
26220 #: ../tools/virt-win-reg.pl:105
26221 msgid ""
26222 "This program is only meant for simple access to the registry.  If you want "
26223 "to do complicated things with the registry, we suggest you download the "
26224 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26225 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26226 "L<hivexregedit(1)>."
26227 msgstr ""
26228
26229 # type: =head2
26230 #: ../tools/virt-win-reg.pl:111
26231 msgid "ENCODING"
26232 msgstr ""
26233
26234 # type: textblock
26235 #: ../tools/virt-win-reg.pl:113
26236 msgid ""
26237 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26238 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26239 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26240 "Windows-style line endings, you may need to reencode the whole file before "
26241 "or after processing."
26242 msgstr ""
26243
26244 # type: textblock
26245 #: ../tools/virt-win-reg.pl:119
26246 msgid ""
26247 "To reencode a file from Windows format to Linux (before processing it with "
26248 "the C<--merge> option), you would do something like this:"
26249 msgstr ""
26250
26251 # type: verbatim
26252 #: ../tools/virt-win-reg.pl:122
26253 #, no-wrap
26254 msgid ""
26255 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26256 "\n"
26257 msgstr ""
26258
26259 # type: textblock
26260 #: ../tools/virt-win-reg.pl:124
26261 msgid ""
26262 "To go in the opposite direction, after exporting and before sending the file "
26263 "to a Windows user, do something like this:"
26264 msgstr ""
26265
26266 # type: verbatim
26267 #: ../tools/virt-win-reg.pl:127
26268 #, no-wrap
26269 msgid ""
26270 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26271 "\n"
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../tools/virt-win-reg.pl:129
26276 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26277 msgstr ""
26278
26279 # type: textblock
26280 #: ../tools/virt-win-reg.pl:131
26281 msgid ""
26282 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26283 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26284 "style (CRLF) line endings, like this:"
26285 msgstr ""
26286
26287 # type: verbatim
26288 #: ../tools/virt-win-reg.pl:135
26289 #, no-wrap
26290 msgid ""
26291 " $ file software.reg\n"
26292 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26293 " with CRLF line terminators\n"
26294 "\n"
26295 msgstr ""
26296
26297 # type: textblock
26298 #: ../tools/virt-win-reg.pl:139
26299 msgid "This file would need conversion before you could C<--merge> it."
26300 msgstr ""
26301
26302 # type: textblock
26303 #: ../tools/virt-win-reg.pl:143
26304 msgid ""
26305 "Be careful when passing parameters containing C<\\> (backslash) in the "
26306 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26307 "(but not both) to protect them from the shell."
26308 msgstr ""
26309
26310 # type: textblock
26311 #: ../tools/virt-win-reg.pl:147
26312 msgid "Paths and value names are case-insensitive."
26313 msgstr ""
26314
26315 # type: =head2
26316 #: ../tools/virt-win-reg.pl:149
26317 msgid "CurrentControlSet etc."
26318 msgstr ""
26319
26320 # type: textblock
26321 #: ../tools/virt-win-reg.pl:151
26322 msgid ""
26323 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26324 "Registry at the level of the hive file, and therefore you cannot modify "
26325 "these."
26326 msgstr ""
26327
26328 # type: textblock
26329 #: ../tools/virt-win-reg.pl:155
26330 msgid ""
26331 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26332 "circumstances it might refer to another control set.  The way to find out is "
26333 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26334 msgstr ""
26335
26336 # type: verbatim
26337 #: ../tools/virt-win-reg.pl:159
26338 #, no-wrap
26339 msgid ""
26340 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26341 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26342 " \"Current\"=dword:00000001\n"
26343 " \"Default\"=dword:00000001\n"
26344 " \"Failed\"=dword:00000000\n"
26345 " \"LastKnownGood\"=dword:00000002\n"
26346 "\n"
26347 msgstr ""
26348
26349 # type: textblock
26350 #: ../tools/virt-win-reg.pl:166
26351 msgid "\"Current\" is the one which Windows will choose when it boots."
26352 msgstr ""
26353
26354 # type: textblock
26355 #: ../tools/virt-win-reg.pl:168
26356 msgid ""
26357 "Similarly, other C<Current...> keys in the path may need to be replaced."
26358 msgstr ""
26359
26360 # type: =item
26361 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26362 msgid "B<--debug>"
26363 msgstr ""
26364
26365 # type: textblock
26366 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26367 msgid "Enable debugging messages."
26368 msgstr ""
26369
26370 # type: =item
26371 #: ../tools/virt-win-reg.pl:232
26372 msgid "B<--merge>"
26373 msgstr ""
26374
26375 # type: textblock
26376 #: ../tools/virt-win-reg.pl:234
26377 msgid ""
26378 "In merge mode, this merges a textual regedit file into the Windows Registry "
26379 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26380 "displays or exports Registry entries instead."
26381 msgstr ""
26382
26383 # type: textblock
26384 #: ../tools/virt-win-reg.pl:238
26385 msgid ""
26386 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26387 "result in disk corruption.  However exporting (without this flag)  is always "
26388 "safe."
26389 msgstr ""
26390
26391 # type: =item
26392 #: ../tools/virt-win-reg.pl:246
26393 msgid "B<--encoding> UTF-16LE|ASCII"
26394 msgstr ""
26395
26396 # type: textblock
26397 #: ../tools/virt-win-reg.pl:248
26398 msgid ""
26399 "When merging (only), you may need to specify the encoding for strings to be "
26400 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26401 "(3)/ENCODING STRINGS>."
26402 msgstr ""
26403
26404 # type: textblock
26405 #: ../tools/virt-win-reg.pl:252
26406 msgid ""
26407 "The default is to use UTF-16LE, which should work with recent versions of "
26408 "Windows."
26409 msgstr ""
26410
26411 # type: textblock
26412 #: ../tools/virt-win-reg.pl:486
26413 msgid ""
26414 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26415 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26416 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26417 msgstr ""
26418
26419 # type: textblock
26420 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26421 msgid ""
26422 "When reporting bugs, please enable debugging and capture the I<complete> "
26423 "output:"
26424 msgstr ""
26425
26426 # type: verbatim
26427 #: ../tools/virt-win-reg.pl:504
26428 #, no-wrap
26429 msgid ""
26430 " export LIBGUESTFS_DEBUG=1\n"
26431 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26432 "\n"
26433 msgstr ""
26434
26435 # type: textblock
26436 #: ../tools/virt-win-reg.pl:507
26437 msgid ""
26438 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26439 "redhat.com/>"
26440 msgstr ""
26441
26442 # type: textblock
26443 #: ../tools/virt-df.pl:36
26444 msgid "virt-df - Display free space on virtual filesystems"
26445 msgstr ""
26446
26447 # type: verbatim
26448 #: ../tools/virt-df.pl:40
26449 #, no-wrap
26450 msgid ""
26451 " virt-df [--options]\n"
26452 "\n"
26453 msgstr ""
26454
26455 # type: verbatim
26456 #: ../tools/virt-df.pl:42
26457 #, no-wrap
26458 msgid ""
26459 " virt-df [--options] domname\n"
26460 "\n"
26461 msgstr ""
26462
26463 # type: verbatim
26464 #: ../tools/virt-df.pl:44
26465 #, no-wrap
26466 msgid ""
26467 " virt-df [--options] disk.img [disk.img ...]\n"
26468 "\n"
26469 msgstr ""
26470
26471 # type: textblock
26472 #: ../tools/virt-df.pl:48
26473 msgid ""
26474 "C<virt-df> is a command line tool to display free space on virtual machine "
26475 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26476 "space allocated to a virtual machine, but can look inside the virtual "
26477 "machine to see how much space is really being used."
26478 msgstr ""
26479
26480 # type: textblock
26481 #: ../tools/virt-df.pl:53
26482 msgid ""
26483 "It is like the L<df(1)> command, but for virtual machines, except that it "
26484 "also works for Windows virtual machines."
26485 msgstr ""
26486
26487 # type: textblock
26488 #: ../tools/virt-df.pl:56
26489 msgid ""
26490 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26491 "of all active and inactive guests, and performs a C<df>-type operation on "
26492 "each one in turn, printing out the results."
26493 msgstr ""
26494
26495 # type: textblock
26496 #: ../tools/virt-df.pl:60
26497 msgid ""
26498 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26499 "either the single named libvirt domain, or on the disk image(s) listed on "
26500 "the command line (which must all belong to a single VM).  In this mode (with "
26501 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26502 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26503 msgstr ""
26504
26505 # type: textblock
26506 #: ../tools/virt-df.pl:67
26507 msgid ""
26508 "Use the C<--csv> option to get a format which can be easily parsed by other "
26509 "programs.  Other options are mostly similar to standard C<df> options.  See "
26510 "below for the complete list."
26511 msgstr ""
26512
26513 # type: =item
26514 #: ../tools/virt-df.pl:107
26515 msgid "B<--csv>"
26516 msgstr ""
26517
26518 # type: textblock
26519 #: ../tools/virt-df.pl:109
26520 msgid ""
26521 "Write out the results in CSV format (comma-separated values).  This format "
26522 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26523 "ABOUT CSV FORMAT> below."
26524 msgstr ""
26525
26526 # type: =item
26527 #: ../tools/virt-df.pl:134
26528 msgid "B<--human-readable> | B<-h>"
26529 msgstr ""
26530
26531 # type: textblock
26532 #: ../tools/virt-df.pl:136
26533 msgid "Print sizes in human-readable format."
26534 msgstr ""
26535
26536 # type: textblock
26537 #: ../tools/virt-df.pl:138
26538 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26539 msgstr ""
26540
26541 # type: =item
26542 #: ../tools/virt-df.pl:144
26543 msgid "B<--inodes> | B<-i>"
26544 msgstr ""
26545
26546 # type: textblock
26547 #: ../tools/virt-df.pl:146
26548 msgid "Print inodes instead of blocks."
26549 msgstr ""
26550
26551 # type: =item
26552 #: ../tools/virt-df.pl:152
26553 msgid "B<--one-per-guest>"
26554 msgstr ""
26555
26556 # type: textblock
26557 #: ../tools/virt-df.pl:154
26558 msgid ""
26559 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26560 "disks from several guests to a single libguestfs appliance."
26561 msgstr ""
26562
26563 # type: textblock
26564 #: ../tools/virt-df.pl:157
26565 msgid "You might use this option in the following circumstances:"
26566 msgstr ""
26567
26568 # type: textblock
26569 #: ../tools/virt-df.pl:163
26570 msgid ""
26571 "If you think an untrusted guest might actively try to exploit the libguestfs "
26572 "appliance kernel, then this prevents one guest from interfering with the "
26573 "stats printed for another guest."
26574 msgstr ""
26575
26576 # type: textblock
26577 #: ../tools/virt-df.pl:169
26578 msgid ""
26579 "If the kernel has a bug which stops it from accessing a filesystem in one "
26580 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26581 "and report stats for further guests."
26582 msgstr ""
26583
26584 # type: =item
26585 #: ../tools/virt-df.pl:180
26586 msgid "B<--uuid>"
26587 msgstr ""
26588
26589 # type: textblock
26590 #: ../tools/virt-df.pl:182
26591 msgid ""
26592 "Print UUIDs instead of names.  This is useful for following a guest even "
26593 "when the guest is migrated or renamed, or when two guests happen to have the "
26594 "same name."
26595 msgstr ""
26596
26597 # type: textblock
26598 #: ../tools/virt-df.pl:186
26599 msgid ""
26600 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26601 "images, we still print the disk image name even when this option is "
26602 "specified."
26603 msgstr ""
26604
26605 # type: =head1
26606 #: ../tools/virt-df.pl:609
26607 msgid "NOTE ABOUT CSV FORMAT"
26608 msgstr ""
26609
26610 # type: textblock
26611 #: ../tools/virt-df.pl:611
26612 msgid ""
26613 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26614 "should be easy to parse, but it is definitely not easy to parse."
26615 msgstr ""
26616
26617 # type: textblock
26618 #: ../tools/virt-df.pl:614
26619 msgid ""
26620 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26621 "reliably.  This example has two columns:"
26622 msgstr ""
26623
26624 # type: verbatim
26625 #: ../tools/virt-df.pl:617
26626 #, no-wrap
26627 msgid ""
26628 " \"foo,bar\",baz\n"
26629 "\n"
26630 msgstr ""
26631
26632 # type: textblock
26633 #: ../tools/virt-df.pl:619
26634 msgid ""
26635 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26636 "reliably.  This example has one row:"
26637 msgstr ""
26638
26639 # type: verbatim
26640 #: ../tools/virt-df.pl:622
26641 #, no-wrap
26642 msgid ""
26643 " \"foo\n"
26644 " bar\",baz\n"
26645 "\n"
26646 msgstr ""
26647
26648 # type: textblock
26649 #: ../tools/virt-df.pl:625
26650 msgid ""
26651 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26652 "packaged in major Linux distributions)."
26653 msgstr ""
26654
26655 # type: textblock
26656 #: ../tools/virt-df.pl:628
26657 msgid ""
26658 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26659 "or Python's built-in csv library)."
26660 msgstr ""
26661
26662 # type: textblock
26663 #: ../tools/virt-df.pl:631
26664 msgid "Most spreadsheets and databases can import CSV directly."
26665 msgstr ""
26666
26667 # type: textblock
26668 #: ../tools/virt-df.pl:642
26669 msgid ""
26670 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26671 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26672 msgstr ""
26673
26674 # type: textblock
26675 #: ../tools/virt-ls.pl:34
26676 msgid "virt-ls - List files in a virtual machine"
26677 msgstr ""
26678
26679 # type: verbatim
26680 #: ../tools/virt-ls.pl:38
26681 #, no-wrap
26682 msgid ""
26683 " virt-ls [--options] domname directory\n"
26684 "\n"
26685 msgstr ""
26686
26687 # type: verbatim
26688 #: ../tools/virt-ls.pl:40
26689 #, no-wrap
26690 msgid ""
26691 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26692 "\n"
26693 msgstr ""
26694
26695 # type: textblock
26696 #: ../tools/virt-ls.pl:44
26697 msgid ""
26698 "C<virt-ls> is a command line tool to list the names of files in a directory "
26699 "inside a virtual machine or disk image."
26700 msgstr ""
26701
26702 # type: textblock
26703 #: ../tools/virt-ls.pl:47
26704 msgid ""
26705 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26706 "For more complex cases you should look at the L<guestfish(1)> tool."
26707 msgstr ""
26708
26709 # type: textblock
26710 #: ../tools/virt-ls.pl:51
26711 msgid ""
26712 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26713 "simple listing is like the ordinary L<ls(1)> command:"
26714 msgstr ""
26715
26716 # type: verbatim
26717 #: ../tools/virt-ls.pl:54
26718 #, no-wrap
26719 msgid ""
26720 " $ virt-ls myguest /\n"
26721 " bin\n"
26722 " boot\n"
26723 " [etc.]\n"
26724 "\n"
26725 msgstr ""
26726
26727 # type: textblock
26728 #: ../tools/virt-ls.pl:59
26729 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26730 msgstr ""
26731
26732 # type: verbatim
26733 #: ../tools/virt-ls.pl:61
26734 #, no-wrap
26735 msgid ""
26736 " $ virt-ls -l myguest /\n"
26737 " total 204\n"
26738 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26739 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26740 " [etc.]\n"
26741 "\n"
26742 msgstr ""
26743
26744 # type: textblock
26745 #: ../tools/virt-ls.pl:67
26746 msgid ""
26747 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26748 "and directories recursively:"
26749 msgstr ""
26750
26751 # type: verbatim
26752 #: ../tools/virt-ls.pl:70
26753 #, no-wrap
26754 msgid ""
26755 " $ virt-ls -R myguest /tmp\n"
26756 " foo\n"
26757 " foo/bar\n"
26758 " [etc.]\n"
26759 "\n"
26760 msgstr ""
26761
26762 # type: textblock
26763 #: ../tools/virt-ls.pl:75
26764 msgid ""
26765 "You I<cannot> combine these options.  To do more complicated things, use "
26766 "L<guestfish(1)>."
26767 msgstr ""
26768
26769 # type: =item
26770 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
26771 #: ../tools/virt-list-partitions.pl:112
26772 msgid "B<-l> | B<--long>"
26773 msgstr ""
26774
26775 # type: =item
26776 #: ../tools/virt-ls.pl:133
26777 msgid "B<-R> | B<--recursive>"
26778 msgstr ""
26779
26780 # type: textblock
26781 #: ../tools/virt-ls.pl:135
26782 msgid ""
26783 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26784 "simple, flat list of the files in the named directory."
26785 msgstr ""
26786
26787 # type: textblock
26788 #: ../tools/virt-ls.pl:138
26789 msgid ""
26790 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26791 "like the plain C<ls -l> command)."
26792 msgstr ""
26793
26794 # type: textblock
26795 #: ../tools/virt-ls.pl:141
26796 msgid ""
26797 "C<virt-ls -R> produces a recursive list of files starting at the named "
26798 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26799 "details."
26800 msgstr ""
26801
26802 # type: textblock
26803 #: ../tools/virt-ls.pl:145
26804 msgid "You cannot combine these options."
26805 msgstr ""
26806
26807 # type: textblock
26808 #: ../tools/virt-ls.pl:234
26809 msgid ""
26810 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
26811 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26812 "org/>."
26813 msgstr ""
26814
26815 # type: textblock
26816 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
26817 #: ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
26818 msgid "Copyright (C) 2009 Red Hat Inc."
26819 msgstr ""
26820
26821 # type: textblock
26822 #: ../tools/virt-resize.pl:42
26823 msgid "virt-resize - Resize a virtual machine disk"
26824 msgstr ""
26825
26826 # type: verbatim
26827 #: ../tools/virt-resize.pl:46
26828 #, no-wrap
26829 msgid ""
26830 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26831 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26832 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26833 "\n"
26834 msgstr ""
26835
26836 # type: textblock
26837 #: ../tools/virt-resize.pl:52
26838 msgid ""
26839 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26840 "larger or smaller overall, and resizing or deleting any partitions contained "
26841 "within."
26842 msgstr ""
26843
26844 # type: textblock
26845 #: ../tools/virt-resize.pl:56
26846 msgid ""
26847 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26848 "not> be used on live virtual machines - for consistent results, shut the "
26849 "virtual machine down before resizing it."
26850 msgstr ""
26851
26852 # type: textblock
26853 #: ../tools/virt-resize.pl:60
26854 msgid ""
26855 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
26856 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
26857 "read those manual pages first."
26858 msgstr ""
26859
26860 # type: textblock
26861 #: ../tools/virt-resize.pl:68
26862 msgid ""
26863 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26864 "fill the extra 5GB of space."
26865 msgstr ""
26866
26867 # type: verbatim
26868 #: ../tools/virt-resize.pl:71
26869 #, no-wrap
26870 msgid ""
26871 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26872 " virt-list-partitions -lht olddisk\n"
26873 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26874 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26875 "\n"
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-resize.pl:76
26880 msgid ""
26881 "As above, but make the /boot partition 200MB bigger, while giving the "
26882 "remaining space to /dev/sda2:"
26883 msgstr ""
26884
26885 # type: verbatim
26886 #: ../tools/virt-resize.pl:79
26887 #, no-wrap
26888 msgid ""
26889 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26890 "\n"
26891 msgstr ""
26892
26893 # type: textblock
26894 #: ../tools/virt-resize.pl:81
26895 msgid "As above, but the output format will be uncompressed qcow2:"
26896 msgstr ""
26897
26898 # type: verbatim
26899 #: ../tools/virt-resize.pl:83
26900 #, no-wrap
26901 msgid ""
26902 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26903 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26904 "\n"
26905 msgstr ""
26906
26907 # type: =head1
26908 #: ../tools/virt-resize.pl:86
26909 msgid "DETAILED USAGE"
26910 msgstr ""
26911
26912 # type: =head2
26913 #: ../tools/virt-resize.pl:88
26914 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26915 msgstr ""
26916
26917 # type: =item
26918 #: ../tools/virt-resize.pl:92
26919 msgid "1. Shut down the virtual machine"
26920 msgstr ""
26921
26922 # type: =item
26923 #: ../tools/virt-resize.pl:94
26924 msgid "2. Locate input disk image"
26925 msgstr ""
26926
26927 # type: textblock
26928 #: ../tools/virt-resize.pl:96
26929 msgid ""
26930 "Locate the input disk image (ie. the file or device on the host containing "
26931 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26932 "dumpxml> like this to find the disk image name:"
26933 msgstr ""
26934
26935 # type: verbatim
26936 #: ../tools/virt-resize.pl:100
26937 #, no-wrap
26938 msgid ""
26939 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26940 " Found 1 nodes:\n"
26941 " -- NODE --\n"
26942 " <source dev=\"/dev/vg/lv_guest\" />\n"
26943 "\n"
26944 msgstr ""
26945
26946 # type: =item
26947 #: ../tools/virt-resize.pl:105
26948 msgid "3. Look at current sizing"
26949 msgstr ""
26950
26951 # type: textblock
26952 #: ../tools/virt-resize.pl:107
26953 msgid ""
26954 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26955 msgstr ""
26956
26957 # type: verbatim
26958 #: ../tools/virt-resize.pl:110
26959 #, no-wrap
26960 msgid ""
26961 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26962 " /dev/sda1 ext3 101.9M\n"
26963 " /dev/sda2 pv 7.9G\n"
26964 " /dev/sda device 8.0G\n"
26965 "\n"
26966 msgstr ""
26967
26968 # type: textblock
26969 #: ../tools/virt-resize.pl:115
26970 msgid ""
26971 "(This example is a virtual machine with an 8 GB disk which we would like to "
26972 "expand up to 10 GB)."
26973 msgstr ""
26974
26975 # type: =item
26976 #: ../tools/virt-resize.pl:118
26977 msgid "4. Create output disk"
26978 msgstr ""
26979
26980 # type: textblock
26981 #: ../tools/virt-resize.pl:120
26982 msgid ""
26983 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26984 "to store the resized output disk."
26985 msgstr ""
26986
26987 # type: textblock
26988 #: ../tools/virt-resize.pl:123
26989 msgid ""
26990 "To store the resized disk image in a file, create a file of a suitable size:"
26991 msgstr ""
26992
26993 # type: verbatim
26994 #: ../tools/virt-resize.pl:126
26995 #, no-wrap
26996 msgid ""
26997 " # rm -f outdisk\n"
26998 " # truncate -s 10G outdisk\n"
26999 "\n"
27000 msgstr ""
27001
27002 # type: textblock
27003 #: ../tools/virt-resize.pl:129
27004 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27005 msgstr ""
27006
27007 # type: verbatim
27008 #: ../tools/virt-resize.pl:131
27009 #, no-wrap
27010 msgid ""
27011 " # lvcreate -L 10G -n lv_name vg_name\n"
27012 "\n"
27013 msgstr ""
27014
27015 # type: textblock
27016 #: ../tools/virt-resize.pl:133
27017 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27018 msgstr ""
27019
27020 # type: verbatim
27021 #: ../tools/virt-resize.pl:135
27022 #, no-wrap
27023 msgid ""
27024 " # virsh pool-list\n"
27025 " # virsh vol-create-as poolname newvol 10G\n"
27026 "\n"
27027 msgstr ""
27028
27029 # type: =item
27030 #: ../tools/virt-resize.pl:138
27031 msgid "5. Resize"
27032 msgstr ""
27033
27034 # type: textblock
27035 #: ../tools/virt-resize.pl:140
27036 msgid ""
27037 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27038 "file) and the output disk.  The output disk is the one created in the "
27039 "previous step."
27040 msgstr ""
27041
27042 # type: verbatim
27043 #: ../tools/virt-resize.pl:144
27044 #, no-wrap
27045 msgid ""
27046 " # virt-resize indisk outdisk\n"
27047 "\n"
27048 msgstr ""
27049
27050 # type: textblock
27051 #: ../tools/virt-resize.pl:146
27052 msgid ""
27053 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27054 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27055 "larger, then an extra, empty partition is created at the end of the disk "
27056 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27057 "error."
27058 msgstr ""
27059
27060 # type: textblock
27061 #: ../tools/virt-resize.pl:152
27062 msgid ""
27063 "More realistically you'd want to expand existing partitions in the disk "
27064 "image by passing extra options (for the full list see the L</OPTIONS> "
27065 "section below)."
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-resize.pl:156
27070 msgid ""
27071 "L</--expand> is the most useful option.  It expands the named partition "
27072 "within the disk to fill any extra space:"
27073 msgstr ""
27074
27075 # type: verbatim
27076 #: ../tools/virt-resize.pl:159
27077 #, no-wrap
27078 msgid ""
27079 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27080 "\n"
27081 msgstr ""
27082
27083 # type: textblock
27084 #: ../tools/virt-resize.pl:161
27085 msgid ""
27086 "(In this case, an extra partition is I<not> created at the end of the disk, "
27087 "because there will be no unused space)."
27088 msgstr ""
27089
27090 # type: textblock
27091 #: ../tools/virt-resize.pl:164
27092 msgid ""
27093 "L</--resize> is the other commonly used option.  The following would "
27094 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27095 "rest of the available space:"
27096 msgstr ""
27097
27098 # type: verbatim
27099 #: ../tools/virt-resize.pl:168
27100 #, no-wrap
27101 msgid ""
27102 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27103 "     indisk outdisk\n"
27104 "\n"
27105 msgstr ""
27106
27107 # type: textblock
27108 #: ../tools/virt-resize.pl:171
27109 msgid ""
27110 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27111 "if virt-resize knows how, it will resize the contents, the equivalent of "
27112 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27113 ">.  However virt-resize does not know how to resize some filesystems, so you "
27114 "would have to online resize them after booting the guest.  And virt-resize "
27115 "also does not resize anything inside an LVM PV, it just resizes the PV "
27116 "itself and leaves the user to resize any LVs inside that PV as desired."
27117 msgstr ""
27118
27119 # type: textblock
27120 #: ../tools/virt-resize.pl:180
27121 msgid "Other options are covered below."
27122 msgstr ""
27123
27124 # type: =item
27125 #: ../tools/virt-resize.pl:182
27126 msgid "6. Test"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:184
27131 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27132 msgstr ""
27133
27134 # type: textblock
27135 #: ../tools/virt-resize.pl:186
27136 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27137 msgstr ""
27138
27139 # type: verbatim
27140 #: ../tools/virt-resize.pl:188
27141 #, no-wrap
27142 msgid ""
27143 " # virsh edit guestname\n"
27144 "\n"
27145 msgstr ""
27146
27147 # type: textblock
27148 #: ../tools/virt-resize.pl:190
27149 msgid ""
27150 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27151 "html#elementsDisks>"
27152 msgstr ""
27153
27154 # type: textblock
27155 #: ../tools/virt-resize.pl:193
27156 msgid "Then start up the domain with the new, resized disk:"
27157 msgstr ""
27158
27159 # type: verbatim
27160 #: ../tools/virt-resize.pl:195
27161 #, no-wrap
27162 msgid ""
27163 " # virsh start guestname\n"
27164 "\n"
27165 msgstr ""
27166
27167 # type: textblock
27168 #: ../tools/virt-resize.pl:197
27169 msgid ""
27170 "and check that it still works.  See also the L</NOTES> section below for "
27171 "additional information."
27172 msgstr ""
27173
27174 # type: =item
27175 #: ../tools/virt-resize.pl:200
27176 msgid "7. Resize LVs etc inside the guest"
27177 msgstr ""
27178
27179 # type: textblock
27180 #: ../tools/virt-resize.pl:202
27181 msgid "(This can also be done offline using L<guestfish(1)>)"
27182 msgstr ""
27183
27184 # type: textblock
27185 #: ../tools/virt-resize.pl:204
27186 msgid ""
27187 "Once the guest has booted you should see the new space available, at least "
27188 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27189 "may need to resize LVs inside PVs, and also resize filesystem types that "
27190 "virt-resize does not know how to expand."
27191 msgstr ""
27192
27193 # type: =head2
27194 #: ../tools/virt-resize.pl:211
27195 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27196 msgstr ""
27197
27198 # type: textblock
27199 #: ../tools/virt-resize.pl:213
27200 msgid ""
27201 "Shrinking is somewhat more complex than expanding, and only an overview is "
27202 "given here."
27203 msgstr ""
27204
27205 # type: textblock
27206 #: ../tools/virt-resize.pl:216
27207 msgid ""
27208 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27209 "filesystems).  The user has to shrink content before passing the disk image "
27210 "to virt-resize, and virt-resize will check that the content has been shrunk "
27211 "properly."
27212 msgstr ""
27213
27214 # type: textblock
27215 #: ../tools/virt-resize.pl:221
27216 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27217 msgstr ""
27218
27219 # type: textblock
27220 #: ../tools/virt-resize.pl:223
27221 msgid ""
27222 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27223 "steps 3 and 4 above to allocate a new disk image."
27224 msgstr ""
27225
27226 # type: textblock
27227 #: ../tools/virt-resize.pl:226
27228 msgid ""
27229 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27230 msgstr ""
27231
27232 # type: =head2
27233 #: ../tools/virt-resize.pl:229
27234 msgid "IGNORING OR DELETING PARTITIONS"
27235 msgstr ""
27236
27237 # type: textblock
27238 #: ../tools/virt-resize.pl:231
27239 msgid ""
27240 "virt-resize also gives a convenient way to ignore or delete partitions when "
27241 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27242 "up the copy where you don't care about the existing contents of a "
27243 "partition.  Deleting a partition removes it completely, but note that it "
27244 "also renumbers any partitions after the one which is deleted, which can "
27245 "leave some guests unbootable."
27246 msgstr ""
27247
27248 # type: =head2
27249 #: ../tools/virt-resize.pl:238
27250 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27251 msgstr ""
27252
27253 # type: textblock
27254 #: ../tools/virt-resize.pl:240
27255 msgid ""
27256 "If the input disk is in qcow2 format, then you may prefer that the output is "
27257 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27258 "the fly.  The output format is simply determined by the format of the empty "
27259 "output container that you provide.  Thus to create qcow2 output, use:"
27260 msgstr ""
27261
27262 # type: verbatim
27263 #: ../tools/virt-resize.pl:246
27264 #, no-wrap
27265 msgid ""
27266 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27267 "\n"
27268 msgstr ""
27269
27270 # type: textblock
27271 #: ../tools/virt-resize.pl:248
27272 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-resize.pl:250
27277 msgid "Similarly, to get non-sparse raw output use:"
27278 msgstr ""
27279
27280 # type: verbatim
27281 #: ../tools/virt-resize.pl:252
27282 #, no-wrap
27283 msgid ""
27284 " fallocate -l size outdisk\n"
27285 "\n"
27286 msgstr ""
27287
27288 # type: textblock
27289 #: ../tools/virt-resize.pl:254
27290 msgid ""
27291 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27292 "dev/zero of=outdisk bs=1M count=..>)"
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-resize.pl:267
27297 msgid "Display help."
27298 msgstr ""
27299
27300 # type: =item
27301 #: ../tools/virt-resize.pl:281
27302 msgid "B<--resize part=size>"
27303 msgstr ""
27304
27305 # type: textblock
27306 #: ../tools/virt-resize.pl:283
27307 msgid ""
27308 "Resize the named partition (expanding or shrinking it) so that it has the "
27309 "given size."
27310 msgstr ""
27311
27312 # type: textblock
27313 #: ../tools/virt-resize.pl:286
27314 msgid ""
27315 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27316 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27317 "Exabytes; or as a percentage of the current size; or as a relative number or "
27318 "percentage.  For example:"
27319 msgstr ""
27320
27321 # type: verbatim
27322 #: ../tools/virt-resize.pl:291
27323 #, no-wrap
27324 msgid ""
27325 " --resize /dev/sda2=10G\n"
27326 "\n"
27327 msgstr ""
27328
27329 # type: verbatim
27330 #: ../tools/virt-resize.pl:293
27331 #, no-wrap
27332 msgid ""
27333 " --resize /dev/sda4=90%\n"
27334 "\n"
27335 msgstr ""
27336
27337 # type: verbatim
27338 #: ../tools/virt-resize.pl:295
27339 #, no-wrap
27340 msgid ""
27341 " --resize /dev/sda2=+1G\n"
27342 "\n"
27343 msgstr ""
27344
27345 # type: verbatim
27346 #: ../tools/virt-resize.pl:297
27347 #, no-wrap
27348 msgid ""
27349 " --resize /dev/sda2=-200M\n"
27350 "\n"
27351 msgstr ""
27352
27353 # type: verbatim
27354 #: ../tools/virt-resize.pl:299
27355 #, no-wrap
27356 msgid ""
27357 " --resize /dev/sda1=+128K\n"
27358 "\n"
27359 msgstr ""
27360
27361 # type: verbatim
27362 #: ../tools/virt-resize.pl:301
27363 #, no-wrap
27364 msgid ""
27365 " --resize /dev/sda1=+10%\n"
27366 "\n"
27367 msgstr ""
27368
27369 # type: verbatim
27370 #: ../tools/virt-resize.pl:303
27371 #, no-wrap
27372 msgid ""
27373 " --resize /dev/sda1=-10%\n"
27374 "\n"
27375 msgstr ""
27376
27377 # type: textblock
27378 #: ../tools/virt-resize.pl:305
27379 msgid ""
27380 "You can increase the size of any partition.  Virt-resize will expand the "
27381 "direct content of the partition if it knows how (see C<--expand> below)."
27382 msgstr ""
27383
27384 # type: textblock
27385 #: ../tools/virt-resize.pl:309
27386 msgid ""
27387 "You can only I<decrease> the size of partitions that contain filesystems or "
27388 "PVs which have already been shrunk.  Virt-resize will check this has been "
27389 "done before proceeding, or else will print an error (see also C<--resize-"
27390 "force>)."
27391 msgstr ""
27392
27393 # type: textblock
27394 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
27395 #: ../tools/virt-resize.pl:423
27396 msgid "You can give this option multiple times."
27397 msgstr ""
27398
27399 # type: =item
27400 #: ../tools/virt-resize.pl:320
27401 msgid "B<--resize-force part=size>"
27402 msgstr ""
27403
27404 # type: textblock
27405 #: ../tools/virt-resize.pl:322
27406 msgid ""
27407 "This is the same as C<--resize> except that it will let you decrease the "
27408 "size of any partition.  Generally this means you will lose any data which "
27409 "was at the end of the partition you shrink, but you may not care about that "
27410 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27411 "as a swap partition)."
27412 msgstr ""
27413
27414 # type: textblock
27415 #: ../tools/virt-resize.pl:328
27416 msgid "See also the C<--ignore> option."
27417 msgstr ""
27418
27419 # type: =item
27420 #: ../tools/virt-resize.pl:334
27421 msgid "B<--expand part>"
27422 msgstr ""
27423
27424 # type: textblock
27425 #: ../tools/virt-resize.pl:336
27426 msgid ""
27427 "Expand the named partition so it uses up all extra space (space left over "
27428 "after any other resize changes that you request have been done)."
27429 msgstr ""
27430
27431 # type: textblock
27432 #: ../tools/virt-resize.pl:339
27433 msgid ""
27434 "If virt-resize knows how, it will expand the direct content of the "
27435 "partition.  For example, if the partition is an LVM PV, it will expand the "
27436 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27437 "content it doesn't know about alone."
27438 msgstr ""
27439
27440 # type: textblock
27441 #: ../tools/virt-resize.pl:344
27442 msgid "Currently virt-resize can resize:"
27443 msgstr ""
27444
27445 # type: textblock
27446 #: ../tools/virt-resize.pl:350
27447 msgid ""
27448 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27449 "partition."
27450 msgstr ""
27451
27452 # type: textblock
27453 #: ../tools/virt-resize.pl:355
27454 msgid ""
27455 "NTFS filesystems contained directly in a partition, if libguestfs was "
27456 "compiled with support for NTFS."
27457 msgstr ""
27458
27459 # type: textblock
27460 #: ../tools/virt-resize.pl:358
27461 msgid ""
27462 "The filesystem must have been shut down consistently last time it was used.  "
27463 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27464 "consistency check, so at the first boot after resizing Windows will check "
27465 "the disk."
27466 msgstr ""
27467
27468 # type: textblock
27469 #: ../tools/virt-resize.pl:365
27470 msgid ""
27471 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27472 "inside the PV.  The user will have to resize LVs as desired."
27473 msgstr ""
27474
27475 # type: textblock
27476 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27477 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27478 msgstr ""
27479
27480 # type: =item
27481 #: ../tools/virt-resize.pl:377
27482 msgid "B<--shrink part>"
27483 msgstr ""
27484
27485 # type: textblock
27486 #: ../tools/virt-resize.pl:379
27487 msgid ""
27488 "Shrink the named partition until the overall disk image fits in the "
27489 "destination.  The named partition B<must> contain a filesystem or PV which "
27490 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27491 "online tools).  Virt-resize will check this and give an error if it has not "
27492 "been done."
27493 msgstr ""
27494
27495 # type: textblock
27496 #: ../tools/virt-resize.pl:385
27497 msgid ""
27498 "The amount by which the overall disk must be shrunk (after carrying out all "
27499 "other operations requested by the user) is called the \"deficit\".  For "
27500 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27501 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27502 "would give an error unless the user specified a partition to shrink and that "
27503 "partition had more than a gigabyte of free space."
27504 msgstr ""
27505
27506 # type: =item
27507 #: ../tools/virt-resize.pl:399
27508 msgid "B<--ignore part>"
27509 msgstr ""
27510
27511 # type: textblock
27512 #: ../tools/virt-resize.pl:401
27513 msgid ""
27514 "Ignore the named partition.  Effectively this means the partition is "
27515 "allocated on the destination disk, but the content is not copied across from "
27516 "the source disk.  The content of the partition will be blank (all zero "
27517 "bytes)."
27518 msgstr ""
27519
27520 # type: =item
27521 #: ../tools/virt-resize.pl:412
27522 msgid "B<--delete part>"
27523 msgstr ""
27524
27525 # type: textblock
27526 #: ../tools/virt-resize.pl:414
27527 msgid ""
27528 "Delete the named partition.  It would be more accurate to describe this as "
27529 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27530 "the original disk image is left intact."
27531 msgstr ""
27532
27533 # type: textblock
27534 #: ../tools/virt-resize.pl:418
27535 msgid ""
27536 "Note that when you delete a partition, then anything contained in the "
27537 "partition is also deleted.  Furthermore, this causes any partitions that "
27538 "come after to be I<renumbered>, which can easily make your guest unbootable."
27539 msgstr ""
27540
27541 # type: =item
27542 #: ../tools/virt-resize.pl:429
27543 msgid "B<--LV-expand logvol>"
27544 msgstr ""
27545
27546 # type: textblock
27547 #: ../tools/virt-resize.pl:431
27548 msgid ""
27549 "This takes the logical volume and, as a final step, expands it to fill all "
27550 "the space available in its volume group.  A typical usage, assuming a Linux "
27551 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27552 "lv_root> would be:"
27553 msgstr ""
27554
27555 # type: verbatim
27556 #: ../tools/virt-resize.pl:436
27557 #, no-wrap
27558 msgid ""
27559 " virt-resize indisk outdisk \\\n"
27560 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27561 "\n"
27562 msgstr ""
27563
27564 # type: textblock
27565 #: ../tools/virt-resize.pl:439
27566 msgid ""
27567 "This would first expand the partition (and PV), and then expand the root "
27568 "device to fill the extra space in the PV."
27569 msgstr ""
27570
27571 # type: textblock
27572 #: ../tools/virt-resize.pl:442
27573 msgid ""
27574 "The contents of the LV are also resized if virt-resize knows how to do "
27575 "that.  You can stop virt-resize from trying to expand the content by using "
27576 "the option C<--no-expand-content>."
27577 msgstr ""
27578
27579 # type: textblock
27580 #: ../tools/virt-resize.pl:446
27581 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27582 msgstr ""
27583
27584 # type: textblock
27585 #: ../tools/virt-resize.pl:449
27586 msgid ""
27587 "You can give this option multiple times, I<but> it doesn't make sense to do "
27588 "this unless the logical volumes you specify are all in different volume "
27589 "groups."
27590 msgstr ""
27591
27592 # type: =item
27593 #: ../tools/virt-resize.pl:457
27594 msgid "B<--no-copy-boot-loader>"
27595 msgstr ""
27596
27597 # type: textblock
27598 #: ../tools/virt-resize.pl:459
27599 msgid ""
27600 "By default, virt-resize copies over some sectors at the start of the disk "
27601 "(up to the beginning of the first partition).  Commonly these sectors "
27602 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27603 "in order for the guest to boot correctly."
27604 msgstr ""
27605
27606 # type: textblock
27607 #: ../tools/virt-resize.pl:464
27608 msgid ""
27609 "If you specify this flag, then this initial copy is not done.  You may need "
27610 "to reinstall the boot loader in this case."
27611 msgstr ""
27612
27613 # type: =item
27614 #: ../tools/virt-resize.pl:472
27615 msgid "B<--no-extra-partition>"
27616 msgstr ""
27617
27618 # type: textblock
27619 #: ../tools/virt-resize.pl:474
27620 msgid ""
27621 "By default, virt-resize creates an extra partition if there is any extra, "
27622 "unused space after all resizing has happened.  Use this option to prevent "
27623 "the extra partition from being created.  If you do this then the extra space "
27624 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27625 "tool in the guest."
27626 msgstr ""
27627
27628 # type: textblock
27629 #: ../tools/virt-resize.pl:480
27630 msgid ""
27631 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27632 "will be created."
27633 msgstr ""
27634
27635 # type: =item
27636 #: ../tools/virt-resize.pl:487
27637 msgid "B<--no-expand-content>"
27638 msgstr ""
27639
27640 # type: textblock
27641 #: ../tools/virt-resize.pl:489
27642 msgid ""
27643 "By default, virt-resize will try to expand the direct contents of "
27644 "partitions, if it knows how (see C<--expand> option above)."
27645 msgstr ""
27646
27647 # type: textblock
27648 #: ../tools/virt-resize.pl:492
27649 msgid ""
27650 "If you give the C<--no-expand-content> option then virt-resize will not "
27651 "attempt this."
27652 msgstr ""
27653
27654 # type: =item
27655 #: ../tools/virt-resize.pl:499
27656 msgid "B<-d> | B<--debug>"
27657 msgstr ""
27658
27659 # type: =item
27660 #: ../tools/virt-resize.pl:507
27661 msgid "B<-n> | B<--dryrun>"
27662 msgstr ""
27663
27664 # type: textblock
27665 #: ../tools/virt-resize.pl:509
27666 msgid "Print a summary of what would be done, but don't do anything."
27667 msgstr ""
27668
27669 # type: =item
27670 #: ../tools/virt-resize.pl:515
27671 msgid "B<-q> | B<--quiet>"
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-resize.pl:517
27676 msgid "Don't print the summary."
27677 msgstr ""
27678
27679 # type: textblock
27680 #: ../tools/virt-resize.pl:525
27681 msgid ""
27682 "Specify the format of the input disk image.  If this flag is not given then "
27683 "it is auto-detected from the image itself."
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-resize.pl:531
27688 msgid ""
27689 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27690 "AND NON-SPARSE RAW FORMATS>."
27691 msgstr ""
27692
27693 # type: =item
27694 #: ../tools/virt-resize.pl:538
27695 msgid "B<--output-format> raw"
27696 msgstr ""
27697
27698 # type: textblock
27699 #: ../tools/virt-resize.pl:540
27700 msgid ""
27701 "Specify the format of the output disk image.  If this flag is not given then "
27702 "it is auto-detected from the image itself."
27703 msgstr ""
27704
27705 # type: textblock
27706 #: ../tools/virt-resize.pl:546
27707 msgid ""
27708 "Note that you still need to create the output disk with the right format.  "
27709 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27710 msgstr ""
27711
27712 # type: =head1
27713 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27714 msgid "NOTES"
27715 msgstr ""
27716
27717 # type: =head2
27718 #: ../tools/virt-resize.pl:1424
27719 msgid "\"Partition 1 does not end on cylinder boundary.\""
27720 msgstr ""
27721
27722 # type: textblock
27723 #: ../tools/virt-resize.pl:1426
27724 msgid ""
27725 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27726 "means the partitions will not be aligned to the ancient CHS geometry.  "
27727 "However CHS geometry is meaningless for disks manufactured since the early "
27728 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27729 "cylinders is not required by any modern operating system."
27730 msgstr ""
27731
27732 # type: =head2
27733 #: ../tools/virt-resize.pl:1433
27734 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27735 msgstr ""
27736
27737 # type: textblock
27738 #: ../tools/virt-resize.pl:1435
27739 msgid ""
27740 "In Windows Vista and later versions, Microsoft switched to using a separate "
27741 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27742 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27743 "the boot partition.  Doing so seems to break the guest completely.  However "
27744 "expanding the second partition (ie. C: drive) should work."
27745 msgstr ""
27746
27747 # type: textblock
27748 #: ../tools/virt-resize.pl:1442
27749 msgid ""
27750 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27751 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27752 "it find errors) is nothing to worry about."
27753 msgstr ""
27754
27755 # type: =head2
27756 #: ../tools/virt-resize.pl:1446
27757 msgid "GUEST BOOT STUCK AT \"GRUB\""
27758 msgstr ""
27759
27760 # type: textblock
27761 #: ../tools/virt-resize.pl:1448
27762 msgid ""
27763 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27764 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27765 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27766 "although we think is to do with partition alignment."
27767 msgstr ""
27768
27769 # type: verbatim
27770 #: ../tools/virt-resize.pl:1453
27771 #, no-wrap
27772 msgid ""
27773 " guestfish -i -a newdisk\n"
27774 " ><fs> cat /boot/grub/device.map\n"
27775 " # check the contents of this file are sensible or\n"
27776 " # edit the file if necessary\n"
27777 " ><fs> grub-install / /dev/vda\n"
27778 " ><fs> exit\n"
27779 "\n"
27780 msgstr ""
27781
27782 # type: textblock
27783 #: ../tools/virt-resize.pl:1460
27784 msgid ""
27785 "For more flexible guest reconfiguration, including if you need to specify "
27786 "other parameters to grub-install, use L<virt-rescue(1)>."
27787 msgstr ""
27788
27789 # type: =head1
27790 #: ../tools/virt-resize.pl:1463
27791 msgid "ALTERNATIVE TOOLS"
27792 msgstr ""
27793
27794 # type: textblock
27795 #: ../tools/virt-resize.pl:1465
27796 msgid ""
27797 "There are several proprietary tools for resizing partitions.  We won't "
27798 "mention any here."
27799 msgstr ""
27800
27801 # type: textblock
27802 #: ../tools/virt-resize.pl:1468
27803 msgid ""
27804 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27805 "operations on disk images.  They can resize and move partitions, but I don't "
27806 "think they can do anything with the contents, and they certainly don't "
27807 "understand LVM."
27808 msgstr ""
27809
27810 # type: textblock
27811 #: ../tools/virt-resize.pl:1473
27812 msgid ""
27813 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27814 "but at a much lower level.  You will probably end up hand-calculating sector "
27815 "offsets, which is something that virt-resize was designed to avoid.  If you "
27816 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27817 "C<--debug> flag."
27818 msgstr ""
27819
27820 # type: textblock
27821 #: ../tools/virt-resize.pl:1488
27822 msgid ""
27823 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27824 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27825 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
27826 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27827 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27828 msgstr ""
27829
27830 # type: textblock
27831 #: ../tools/virt-list-filesystems.pl:32
27832 msgid ""
27833 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27834 msgstr ""
27835
27836 # type: verbatim
27837 #: ../tools/virt-list-filesystems.pl:36
27838 #, no-wrap
27839 msgid ""
27840 " virt-list-filesystems [--options] domname\n"
27841 "\n"
27842 msgstr ""
27843
27844 # type: verbatim
27845 #: ../tools/virt-list-filesystems.pl:38
27846 #, no-wrap
27847 msgid ""
27848 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27849 "\n"
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-list-filesystems.pl:42
27854 msgid ""
27855 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27856 "are contained in a virtual machine or disk image."
27857 msgstr ""
27858
27859 # type: textblock
27860 #: ../tools/virt-list-filesystems.pl:46
27861 msgid ""
27862 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27863 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27864 "> tool."
27865 msgstr ""
27866
27867 # type: textblock
27868 #: ../tools/virt-list-filesystems.pl:105
27869 msgid ""
27870 "With this option, C<virt-list-filesystems> displays the type of each "
27871 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27872 msgstr ""
27873
27874 # type: =item
27875 #: ../tools/virt-list-filesystems.pl:112
27876 msgid "B<-a> | B<--all>"
27877 msgstr ""
27878
27879 # type: textblock
27880 #: ../tools/virt-list-filesystems.pl:114
27881 msgid ""
27882 "Normally we only show mountable filesystems.  If this option is given then "
27883 "swap devices are shown too."
27884 msgstr ""
27885
27886 # type: textblock
27887 #: ../tools/virt-list-filesystems.pl:188
27888 msgid ""
27889 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
27890 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
27891 ">, L<http://libguestfs.org/>."
27892 msgstr ""
27893
27894 # type: textblock
27895 #: ../tools/virt-cat.pl:33
27896 msgid "virt-cat - Display a file in a virtual machine"
27897 msgstr ""
27898
27899 # type: verbatim
27900 #: ../tools/virt-cat.pl:37
27901 #, no-wrap
27902 msgid ""
27903 " virt-cat [--options] domname file\n"
27904 "\n"
27905 msgstr ""
27906
27907 # type: verbatim
27908 #: ../tools/virt-cat.pl:39
27909 #, no-wrap
27910 msgid ""
27911 " virt-cat [--options] disk.img [disk.img ...] file\n"
27912 "\n"
27913 msgstr ""
27914
27915 # type: textblock
27916 #: ../tools/virt-cat.pl:43
27917 msgid ""
27918 "C<virt-cat> is a command line tool to display the contents of C<file> where "
27919 "C<file> exists in the named virtual machine (or disk image)."
27920 msgstr ""
27921
27922 # type: textblock
27923 #: ../tools/virt-cat.pl:46
27924 msgid ""
27925 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
27926 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
27927 "tool."
27928 msgstr ""
27929
27930 # type: textblock
27931 #: ../tools/virt-cat.pl:52
27932 msgid ""
27933 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
27934 msgstr ""
27935
27936 # type: verbatim
27937 #: ../tools/virt-cat.pl:55
27938 #, no-wrap
27939 msgid ""
27940 " virt-cat mydomain /etc/fstab\n"
27941 "\n"
27942 msgstr ""
27943
27944 # type: textblock
27945 #: ../tools/virt-cat.pl:57
27946 msgid "List syslog messages from a VM:"
27947 msgstr ""
27948
27949 # type: verbatim
27950 #: ../tools/virt-cat.pl:59
27951 #, no-wrap
27952 msgid ""
27953 " virt-cat mydomain /var/log/messages | tail\n"
27954 "\n"
27955 msgstr ""
27956
27957 # type: textblock
27958 #: ../tools/virt-cat.pl:61
27959 msgid "Find out what DHCP IP address a VM acquired:"
27960 msgstr ""
27961
27962 # type: verbatim
27963 #: ../tools/virt-cat.pl:63
27964 #, no-wrap
27965 msgid ""
27966 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
27967 "\n"
27968 msgstr ""
27969
27970 # type: textblock
27971 #: ../tools/virt-cat.pl:65
27972 msgid "Find out what packages were recently installed:"
27973 msgstr ""
27974
27975 # type: verbatim
27976 #: ../tools/virt-cat.pl:67
27977 #, no-wrap
27978 msgid ""
27979 " virt-cat mydomain /var/log/yum.log | tail\n"
27980 "\n"
27981 msgstr ""
27982
27983 # type: textblock
27984 #: ../tools/virt-cat.pl:69
27985 msgid "Find out who is logged on inside a virtual machine:"
27986 msgstr ""
27987
27988 # type: verbatim
27989 #: ../tools/virt-cat.pl:71
27990 #, no-wrap
27991 msgid ""
27992 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
27993 " who /tmp/utmp\n"
27994 "\n"
27995 msgstr ""
27996
27997 # type: textblock
27998 #: ../tools/virt-cat.pl:74
27999 msgid "or who was logged on:"
28000 msgstr ""
28001
28002 # type: verbatim
28003 #: ../tools/virt-cat.pl:76
28004 #, no-wrap
28005 msgid ""
28006 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
28007 " last -f /tmp/wtmp\n"
28008 "\n"
28009 msgstr ""
28010
28011 # type: textblock
28012 #: ../tools/virt-cat.pl:187
28013 msgid ""
28014 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28015 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28016 msgstr ""
28017
28018 # type: textblock
28019 #: ../tools/virt-tar.pl:33
28020 msgid "virt-tar - Extract or upload files to a virtual machine"
28021 msgstr ""
28022
28023 # type: verbatim
28024 #: ../tools/virt-tar.pl:37
28025 #, no-wrap
28026 msgid ""
28027 " virt-tar [--options] -x domname directory tarball\n"
28028 "\n"
28029 msgstr ""
28030
28031 # type: verbatim
28032 #: ../tools/virt-tar.pl:39
28033 #, no-wrap
28034 msgid ""
28035 " virt-tar [--options] -u domname tarball directory\n"
28036 "\n"
28037 msgstr ""
28038
28039 # type: verbatim
28040 #: ../tools/virt-tar.pl:41
28041 #, no-wrap
28042 msgid ""
28043 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28044 "\n"
28045 msgstr ""
28046
28047 # type: verbatim
28048 #: ../tools/virt-tar.pl:43
28049 #, no-wrap
28050 msgid ""
28051 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28052 "\n"
28053 msgstr ""
28054
28055 # type: textblock
28056 #: ../tools/virt-tar.pl:47
28057 msgid "Download C</home> from the VM into a local tarball:"
28058 msgstr ""
28059
28060 # type: verbatim
28061 #: ../tools/virt-tar.pl:49
28062 #, no-wrap
28063 msgid ""
28064 " virt-tar -x domname /home home.tar\n"
28065 "\n"
28066 msgstr ""
28067
28068 # type: verbatim
28069 #: ../tools/virt-tar.pl:51
28070 #, no-wrap
28071 msgid ""
28072 " virt-tar -zx domname /home home.tar.gz\n"
28073 "\n"
28074 msgstr ""
28075
28076 # type: textblock
28077 #: ../tools/virt-tar.pl:53
28078 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28079 msgstr ""
28080
28081 # type: verbatim
28082 #: ../tools/virt-tar.pl:55
28083 #, no-wrap
28084 msgid ""
28085 " virt-tar -u domname uploadstuff.tar /tmp\n"
28086 "\n"
28087 msgstr ""
28088
28089 # type: verbatim
28090 #: ../tools/virt-tar.pl:57
28091 #, no-wrap
28092 msgid ""
28093 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28094 "\n"
28095 msgstr ""
28096
28097 # type: textblock
28098 #: ../tools/virt-tar.pl:61
28099 msgid ""
28100 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28101 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28102 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28103 msgstr ""
28104
28105 # type: textblock
28106 #: ../tools/virt-tar.pl:66
28107 msgid ""
28108 "You can use C<-x> (extract) on live virtual machines, but you might get "
28109 "inconsistent results or errors if there is filesystem activity inside the "
28110 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28111 "work, but the only way to guarantee consistent results is if the virtual "
28112 "machine is shut down."
28113 msgstr ""
28114
28115 # type: textblock
28116 #: ../tools/virt-tar.pl:74
28117 msgid ""
28118 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28119 "parts of a guest filesystem.  There are many possibilities: making backups, "
28120 "uploading data files, snooping on guest activity, fixing or customizing "
28121 "guests, etc."
28122 msgstr ""
28123
28124 # type: textblock
28125 #: ../tools/virt-tar.pl:79
28126 msgid ""
28127 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28128 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28129 "should look at the L<guestfish(1)> tool."
28130 msgstr ""
28131
28132 # type: textblock
28133 #: ../tools/virt-tar.pl:83
28134 msgid ""
28135 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28136 "its contents (recursively) from the virtual machine into a local tarball.  "
28137 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28138 "virtual machine.  You cannot use these two options together."
28139 msgstr ""
28140
28141 # type: textblock
28142 #: ../tools/virt-tar.pl:89
28143 msgid ""
28144 "In addition, you may need to use the C<-z> (gZip) option to enable "
28145 "compression.  When uploading, you have to specify C<-z> if the upload file "
28146 "is compressed because virt-tar won't detect this on its own."
28147 msgstr ""
28148
28149 # type: textblock
28150 #: ../tools/virt-tar.pl:93
28151 msgid ""
28152 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28153 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28154 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28155 "the L<libguestfs(3)> API)."
28156 msgstr ""
28157
28158 # type: =item
28159 #: ../tools/virt-tar.pl:151
28160 msgid "B<-x> | B<--extract> | B<--download>"
28161 msgstr ""
28162
28163 # type: =item
28164 #: ../tools/virt-tar.pl:153
28165 msgid "B<-u> | B<--upload>"
28166 msgstr ""
28167
28168 # type: textblock
28169 #: ../tools/virt-tar.pl:155
28170 msgid ""
28171 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28172 "local tarball."
28173 msgstr ""
28174
28175 # type: textblock
28176 #: ../tools/virt-tar.pl:158
28177 msgid ""
28178 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28179 "Please read the L</WARNING> section above before using this option."
28180 msgstr ""
28181
28182 # type: textblock
28183 #: ../tools/virt-tar.pl:162
28184 msgid "You must specify exactly one of these options."
28185 msgstr ""
28186
28187 # type: =item
28188 #: ../tools/virt-tar.pl:168
28189 msgid "B<-z> | B<--gzip>"
28190 msgstr ""
28191
28192 # type: textblock
28193 #: ../tools/virt-tar.pl:170
28194 msgid "Specify that the input or output tarball is gzip-compressed."
28195 msgstr ""
28196
28197 # type: textblock
28198 #: ../tools/virt-tar.pl:283
28199 msgid ""
28200 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28201 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28202 "org/>."
28203 msgstr ""
28204
28205 # type: textblock
28206 #: ../tools/virt-rescue.pl:33
28207 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28208 msgstr ""
28209
28210 # type: verbatim
28211 #: ../tools/virt-rescue.pl:37
28212 #, no-wrap
28213 msgid ""
28214 " virt-rescue [--options] domname\n"
28215 "\n"
28216 msgstr ""
28217
28218 # type: verbatim
28219 #: ../tools/virt-rescue.pl:39
28220 #, no-wrap
28221 msgid ""
28222 " virt-rescue [--options] disk.img [disk.img ...]\n"
28223 "\n"
28224 msgstr ""
28225
28226 # type: textblock
28227 #: ../tools/virt-rescue.pl:43
28228 msgid ""
28229 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28230 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28231 "you from doing this, but doesn't catch all cases."
28232 msgstr ""
28233
28234 # type: textblock
28235 #: ../tools/virt-rescue.pl:47
28236 msgid ""
28237 "However if you use the I<--ro> (read only) option, then you can attach a "
28238 "shell to a live virtual machine.  The results might be strange or "
28239 "inconsistent at times but you won't get disk corruption."
28240 msgstr ""
28241
28242 # type: textblock
28243 #: ../tools/virt-rescue.pl:53
28244 msgid ""
28245 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28246 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28247 "recovery tools which you can use to examine or rescue a virtual machine or "
28248 "disk image."
28249 msgstr ""
28250
28251 # type: textblock
28252 #: ../tools/virt-rescue.pl:58
28253 msgid ""
28254 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28255 "on disk image(s):"
28256 msgstr ""
28257
28258 # type: verbatim
28259 #: ../tools/virt-rescue.pl:61
28260 #, no-wrap
28261 msgid ""
28262 " virt-rescue GuestName\n"
28263 "\n"
28264 msgstr ""
28265
28266 # type: verbatim
28267 #: ../tools/virt-rescue.pl:63
28268 #, no-wrap
28269 msgid ""
28270 " virt-rescue --ro /path/to/disk.img\n"
28271 "\n"
28272 msgstr ""
28273
28274 # type: verbatim
28275 #: ../tools/virt-rescue.pl:65
28276 #, no-wrap
28277 msgid ""
28278 " virt-rescue /dev/sdc\n"
28279 "\n"
28280 msgstr ""
28281
28282 # type: textblock
28283 #: ../tools/virt-rescue.pl:67
28284 msgid "For live VMs you I<must> use the --ro option."
28285 msgstr ""
28286
28287 # type: textblock
28288 #: ../tools/virt-rescue.pl:69
28289 msgid ""
28290 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28291 "in an interactive bash shell where you can use many ordinary Linux "
28292 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28293 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28294 "is an empty directory called C</sysroot> where you can mount filesystems."
28295 msgstr ""
28296
28297 # type: textblock
28298 #: ../tools/virt-rescue.pl:76
28299 msgid ""
28300 "In the example below, we list logical volumes, then choose one to mount "
28301 "under C</sysroot>:"
28302 msgstr ""
28303
28304 # type: verbatim
28305 #: ../tools/virt-rescue.pl:79
28306 #, no-wrap
28307 msgid ""
28308 " ><rescue> lvs\n"
28309 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28310 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28311 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28312 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28313 " ><rescue> ls /sysroot\n"
28314 "\n"
28315 msgstr ""
28316
28317 # type: textblock
28318 #: ../tools/virt-rescue.pl:86
28319 msgid ""
28320 "If you don't know what filesystems are available on the virtual machine then "
28321 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28322 msgstr ""
28323
28324 # type: textblock
28325 #: ../tools/virt-rescue.pl:92
28326 msgid ""
28327 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28328 "virtual machine.  For example you can use it on a blank file if you want to "
28329 "partition that file (although we would recommend using L<guestfish(1)> "
28330 "instead as it is more suitable for this purpose).  You can even use virt-"
28331 "rescue on things like SD cards."
28332 msgstr ""
28333
28334 # type: textblock
28335 #: ../tools/virt-rescue.pl:98
28336 msgid ""
28337 "This tool is just designed for quick interactive hacking on a virtual "
28338 "machine.  For more structured access to a virtual machine disk image, you "
28339 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28340 "make scripted changes to guests, use L<guestfish(1)>."
28341 msgstr ""
28342
28343 # type: =item
28344 #: ../tools/virt-rescue.pl:127
28345 msgid "B<--append kernelopts>"
28346 msgstr ""
28347
28348 # type: textblock
28349 #: ../tools/virt-rescue.pl:129
28350 msgid "Pass additional options to the rescue kernel."
28351 msgstr ""
28352
28353 # type: =item
28354 #: ../tools/virt-rescue.pl:164
28355 msgid "B<--memsize MB> | B<-m MB>"
28356 msgstr ""
28357
28358 # type: textblock
28359 #: ../tools/virt-rescue.pl:166
28360 msgid ""
28361 "Change the amount of memory allocated to the rescue system.  The default is "
28362 "set by libguestfs and is small but adequate for running system tools.  The "
28363 "occasional program might need more memory.  The parameter is specified in "
28364 "megabytes."
28365 msgstr ""
28366
28367 # type: =item
28368 #: ../tools/virt-rescue.pl:175
28369 msgid "B<--network MB>"
28370 msgstr ""
28371
28372 # type: textblock
28373 #: ../tools/virt-rescue.pl:177
28374 msgid "Enable QEMU user networking in the guest."
28375 msgstr ""
28376
28377 # type: =item
28378 #: ../tools/virt-rescue.pl:183
28379 msgid "B<--ro> | B<-r>"
28380 msgstr ""
28381
28382 # type: textblock
28383 #: ../tools/virt-rescue.pl:185
28384 msgid "Open the image read-only."
28385 msgstr ""
28386
28387 # type: textblock
28388 #: ../tools/virt-rescue.pl:197
28389 msgid ""
28390 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28391 "SELINUX> before using this option."
28392 msgstr ""
28393
28394 # type: textblock
28395 #: ../tools/virt-rescue.pl:257
28396 msgid ""
28397 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28398 "ENVIRONMENT VARIABLES> for the complete list."
28399 msgstr ""
28400
28401 # type: textblock
28402 #: ../tools/virt-rescue.pl:269
28403 msgid ""
28404 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28405 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28406 msgstr ""
28407
28408 # type: textblock
28409 #: ../tools/virt-make-fs.pl:37
28410 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28411 msgstr ""
28412
28413 # type: verbatim
28414 #: ../tools/virt-make-fs.pl:41
28415 #, no-wrap
28416 msgid ""
28417 " virt-make-fs [--options] input.tar output.img\n"
28418 "\n"
28419 msgstr ""
28420
28421 # type: verbatim
28422 #: ../tools/virt-make-fs.pl:43
28423 #, no-wrap
28424 msgid ""
28425 " virt-make-fs [--options] input.tar.gz output.img\n"
28426 "\n"
28427 msgstr ""
28428
28429 # type: verbatim
28430 #: ../tools/virt-make-fs.pl:45
28431 #, no-wrap
28432 msgid ""
28433 " virt-make-fs [--options] directory output.img\n"
28434 "\n"
28435 msgstr ""
28436
28437 # type: textblock
28438 #: ../tools/virt-make-fs.pl:49
28439 msgid ""
28440 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28441 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28442 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28443 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28444 "you want to attach these filesystems to existing virtual machines (eg. to "
28445 "import large amounts of read-only data to a VM)."
28446 msgstr ""
28447
28448 # type: textblock
28449 #: ../tools/virt-make-fs.pl:57
28450 msgid "Basic usage is:"
28451 msgstr ""
28452
28453 # type: verbatim
28454 #: ../tools/virt-make-fs.pl:59
28455 #, no-wrap
28456 msgid ""
28457 " virt-make-fs input output\n"
28458 "\n"
28459 msgstr ""
28460
28461 # type: textblock
28462 #: ../tools/virt-make-fs.pl:61
28463 msgid ""
28464 "where C<input> is either a directory containing files that you want to add, "
28465 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28466 "C<output> is a disk image.  The input type is detected automatically.  The "
28467 "output disk image defaults to a raw ext2 image unless you specify extra "
28468 "flags (see L</OPTIONS> below)."
28469 msgstr ""
28470
28471 # type: =head2
28472 #: ../tools/virt-make-fs.pl:67
28473 msgid "EXTRA SPACE"
28474 msgstr ""
28475
28476 # type: textblock
28477 #: ../tools/virt-make-fs.pl:69
28478 msgid ""
28479 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28480 "the files that it contains, but might have extra space.  Depending on how "
28481 "you are going to use the output, you might think this extra space is wasted "
28482 "and want to minimize it, or you might want to leave space so that more files "
28483 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28484 "but you can use the C<--size> flag to leave space in the filesystem if you "
28485 "want it."
28486 msgstr ""
28487
28488 # type: textblock
28489 #: ../tools/virt-make-fs.pl:77
28490 msgid ""
28491 "An alternative way to leave extra space but not make the output image any "
28492 "bigger is to use an alternative disk image format (instead of the default "
28493 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28494 "image format (check your hypervisor supports this before using it).  This "
28495 "allows you to choose a large C<--size> but the extra space won't actually be "
28496 "allocated in the image until you try to store something in it."
28497 msgstr ""
28498
28499 # type: textblock
28500 #: ../tools/virt-make-fs.pl:85
28501 msgid ""
28502 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28503 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28504 "resize to build another image from scratch."
28505 msgstr ""
28506
28507 # type: =head3
28508 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28509 #: ../tools/virt-make-fs.pl:142
28510 msgid "EXAMPLE"
28511 msgstr ""
28512
28513 # type: verbatim
28514 #: ../tools/virt-make-fs.pl:91
28515 #, no-wrap
28516 msgid ""
28517 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28518 "\n"
28519 msgstr ""
28520
28521 # type: =head2
28522 #: ../tools/virt-make-fs.pl:93
28523 msgid "FILESYSTEM TYPE"
28524 msgstr ""
28525
28526 # type: textblock
28527 #: ../tools/virt-make-fs.pl:95
28528 msgid ""
28529 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28530 "libguestfs supports can be used (but I<not> read-only formats like "
28531 "ISO9660).  Here are some of the more common choices:"
28532 msgstr ""
28533
28534 # type: =item
28535 #: ../tools/virt-make-fs.pl:101
28536 msgid "I<ext3>"
28537 msgstr ""
28538
28539 # type: textblock
28540 #: ../tools/virt-make-fs.pl:103
28541 msgid ""
28542 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28543 "you are not going to use the filesystem in a way that requires the journal, "
28544 "then this is just wasted overhead."
28545 msgstr ""
28546
28547 # type: =item
28548 #: ../tools/virt-make-fs.pl:107
28549 msgid "I<ntfs> or I<vfat>"
28550 msgstr ""
28551
28552 # type: textblock
28553 #: ../tools/virt-make-fs.pl:109
28554 msgid "Useful if exporting data to a Windows guest."
28555 msgstr ""
28556
28557 # type: textblock
28558 #: ../tools/virt-make-fs.pl:111
28559 msgid ""
28560 "I<Note for vfat>: The tar archive or local directory must only contain files "
28561 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28562 "program running within libguestfs is unable to change the ownership of non-"
28563 "root files, since vfat itself does not support this."
28564 msgstr ""
28565
28566 # type: =item
28567 #: ../tools/virt-make-fs.pl:116
28568 msgid "I<minix>"
28569 msgstr ""
28570
28571 # type: textblock
28572 #: ../tools/virt-make-fs.pl:118
28573 msgid ""
28574 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28575 "total filesystem size."
28576 msgstr ""
28577
28578 # type: verbatim
28579 #: ../tools/virt-make-fs.pl:125
28580 #, no-wrap
28581 msgid ""
28582 " virt-make-fs --type=minix input minixfs.img\n"
28583 "\n"
28584 msgstr ""
28585
28586 # type: =head2
28587 #: ../tools/virt-make-fs.pl:127
28588 msgid "TO PARTITION OR NOT TO PARTITION"
28589 msgstr ""
28590
28591 # type: textblock
28592 #: ../tools/virt-make-fs.pl:129
28593 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28594 msgstr ""
28595
28596 # type: textblock
28597 #: ../tools/virt-make-fs.pl:131
28598 msgid ""
28599 "Adding a partition can make the disk image more compatible with certain "
28600 "virtualized operating systems which don't expect to see a filesystem "
28601 "directly located on a block device (Linux doesn't care and will happily "
28602 "handle both types)."
28603 msgstr ""
28604
28605 # type: textblock
28606 #: ../tools/virt-make-fs.pl:136
28607 msgid ""
28608 "On the other hand, if you have a partition table then the output image is no "
28609 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28610 "directly on a partitioned disk image.  (However libguestfs tools such as "
28611 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28612 msgstr ""
28613
28614 # type: textblock
28615 #: ../tools/virt-make-fs.pl:144
28616 msgid "Add an MBR partition:"
28617 msgstr ""
28618
28619 # type: verbatim
28620 #: ../tools/virt-make-fs.pl:146
28621 #, no-wrap
28622 msgid ""
28623 " virt-make-fs --partition -- input disk.img\n"
28624 "\n"
28625 msgstr ""
28626
28627 # type: textblock
28628 #: ../tools/virt-make-fs.pl:148
28629 msgid ""
28630 "If the output disk image could be terabyte-sized or larger, it's better to "
28631 "use an EFI/GPT-compatible partition table:"
28632 msgstr ""
28633
28634 # type: verbatim
28635 #: ../tools/virt-make-fs.pl:151
28636 #, no-wrap
28637 msgid ""
28638 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28639 "\n"
28640 msgstr ""
28641
28642 # type: textblock
28643 #: ../tools/virt-make-fs.pl:179
28644 msgid "Enable debugging information."
28645 msgstr ""
28646
28647 # type: =item
28648 #: ../tools/virt-make-fs.pl:185
28649 msgid "B<--size=E<lt>NE<gt>>"
28650 msgstr ""
28651
28652 # type: =item
28653 #: ../tools/virt-make-fs.pl:187
28654 msgid "B<--size=+E<lt>NE<gt>>"
28655 msgstr ""
28656
28657 # type: =item
28658 #: ../tools/virt-make-fs.pl:189
28659 msgid "B<-s E<lt>NE<gt>>"
28660 msgstr ""
28661
28662 # type: =item
28663 #: ../tools/virt-make-fs.pl:191
28664 msgid "B<-s +E<lt>NE<gt>>"
28665 msgstr ""
28666
28667 # type: textblock
28668 #: ../tools/virt-make-fs.pl:193
28669 msgid ""
28670 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28671 msgstr ""
28672
28673 # type: textblock
28674 #: ../tools/virt-make-fs.pl:196
28675 msgid ""
28676 "If this option is I<not> given, then the output image will be just large "
28677 "enough to contain all the files, with not much wasted space."
28678 msgstr ""
28679
28680 # type: textblock
28681 #: ../tools/virt-make-fs.pl:199
28682 msgid ""
28683 "To choose a fixed size output disk, specify an absolute number followed by b/"
28684 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28685 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28686 "files, else you will get an error."
28687 msgstr ""
28688
28689 # type: textblock
28690 #: ../tools/virt-make-fs.pl:204
28691 msgid ""
28692 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28693 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28694 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28695 "the input files, and (approximately) an extra 200 MB free space."
28696 msgstr ""
28697
28698 # type: textblock
28699 #: ../tools/virt-make-fs.pl:210
28700 msgid ""
28701 "Note that virt-make-fs estimates free space, and therefore will not produce "
28702 "filesystems containing precisely the free space requested.  (It is much more "
28703 "expensive and time-consuming to produce a filesystem which has precisely the "
28704 "desired free space)."
28705 msgstr ""
28706
28707 # type: =item
28708 #: ../tools/virt-make-fs.pl:219
28709 msgid "B<--format=E<lt>fmtE<gt>>"
28710 msgstr ""
28711
28712 # type: =item
28713 #: ../tools/virt-make-fs.pl:221
28714 msgid "B<-F E<lt>fmtE<gt>>"
28715 msgstr ""
28716
28717 # type: textblock
28718 #: ../tools/virt-make-fs.pl:223
28719 msgid "Choose the output disk image format."
28720 msgstr ""
28721
28722 # type: textblock
28723 #: ../tools/virt-make-fs.pl:225
28724 msgid "The default is C<raw> (raw disk image)."
28725 msgstr ""
28726
28727 # type: textblock
28728 #: ../tools/virt-make-fs.pl:227
28729 msgid ""
28730 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28731 "that would really make sense here is C<qcow2>."
28732 msgstr ""
28733
28734 # type: =item
28735 #: ../tools/virt-make-fs.pl:234
28736 msgid "B<--type=E<lt>fsE<gt>>"
28737 msgstr ""
28738
28739 # type: =item
28740 #: ../tools/virt-make-fs.pl:236
28741 msgid "B<-t E<lt>fsE<gt>>"
28742 msgstr ""
28743
28744 # type: textblock
28745 #: ../tools/virt-make-fs.pl:238
28746 msgid "Choose the output filesystem type."
28747 msgstr ""
28748
28749 # type: textblock
28750 #: ../tools/virt-make-fs.pl:240
28751 msgid "The default is C<ext2>."
28752 msgstr ""
28753
28754 # type: textblock
28755 #: ../tools/virt-make-fs.pl:242
28756 msgid ""
28757 "Any filesystem which is supported read-write by libguestfs can be used here."
28758 msgstr ""
28759
28760 # type: =item
28761 #: ../tools/virt-make-fs.pl:249
28762 msgid "B<--partition>"
28763 msgstr ""
28764
28765 # type: =item
28766 #: ../tools/virt-make-fs.pl:251
28767 msgid "B<--partition=E<lt>parttypeE<gt>>"
28768 msgstr ""
28769
28770 # type: textblock
28771 #: ../tools/virt-make-fs.pl:253
28772 msgid ""
28773 "If specified, this flag adds an MBR partition table to the output disk image."
28774 msgstr ""
28775
28776 # type: textblock
28777 #: ../tools/virt-make-fs.pl:256
28778 msgid ""
28779 "You can change the partition table type, eg. C<--partition=gpt> for large "
28780 "disks."
28781 msgstr ""
28782
28783 # type: textblock
28784 #: ../tools/virt-make-fs.pl:259
28785 msgid ""
28786 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28787 "might consider the next parameter to be the partition type.  For example:"
28788 msgstr ""
28789
28790 # type: verbatim
28791 #: ../tools/virt-make-fs.pl:263
28792 #, no-wrap
28793 msgid ""
28794 " virt-make-fs --partition input.tar ...\n"
28795 "\n"
28796 msgstr ""
28797
28798 # type: textblock
28799 #: ../tools/virt-make-fs.pl:265
28800 msgid ""
28801 "would cause virt-make-fs to think you wanted to use a partition type of "
28802 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28803 "dash) between options and the input file argument:"
28804 msgstr ""
28805
28806 # type: verbatim
28807 #: ../tools/virt-make-fs.pl:269
28808 #, no-wrap
28809 msgid ""
28810 " virt-make-fs --partition -- input.tar ...\n"
28811 "\n"
28812 msgstr ""
28813
28814 # type: textblock
28815 #: ../tools/virt-make-fs.pl:536
28816 msgid ""
28817 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28818 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28819 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28820 msgstr ""
28821
28822 # type: verbatim
28823 #: ../tools/virt-make-fs.pl:553
28824 #, no-wrap
28825 msgid ""
28826 " export LIBGUESTFS_DEBUG=1\n"
28827 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28828 "\n"
28829 msgstr ""
28830
28831 # type: textblock
28832 #: ../tools/virt-make-fs.pl:556
28833 msgid ""
28834 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28835 "redhat.com/>"
28836 msgstr ""
28837
28838 # type: textblock
28839 #: ../tools/virt-list-partitions.pl:32
28840 msgid ""
28841 "virt-list-partitions - List partitions in a virtual machine or disk image"
28842 msgstr ""
28843
28844 # type: verbatim
28845 #: ../tools/virt-list-partitions.pl:36
28846 #, no-wrap
28847 msgid ""
28848 " virt-list-partitions [--options] domname\n"
28849 "\n"
28850 msgstr ""
28851
28852 # type: verbatim
28853 #: ../tools/virt-list-partitions.pl:38
28854 #, no-wrap
28855 msgid ""
28856 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28857 "\n"
28858 msgstr ""
28859
28860 # type: textblock
28861 #: ../tools/virt-list-partitions.pl:42
28862 msgid ""
28863 "C<virt-list-partitions> is a command line tool to list the partitions that "
28864 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28865 "first step to using L<virt-resize(1)>."
28866 msgstr ""
28867
28868 # type: textblock
28869 #: ../tools/virt-list-partitions.pl:47
28870 msgid ""
28871 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28872 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28873 "> tool."
28874 msgstr ""
28875
28876 # type: =item
28877 #: ../tools/virt-list-partitions.pl:104
28878 msgid "B<-h> | B<--human-readable>"
28879 msgstr ""
28880
28881 # type: textblock
28882 #: ../tools/virt-list-partitions.pl:106
28883 msgid "Show sizes in human-readable form (eg. \"1G\")."
28884 msgstr ""
28885
28886 # type: textblock
28887 #: ../tools/virt-list-partitions.pl:114
28888 msgid ""
28889 "With this option, C<virt-list-partitions> displays the type and size of each "
28890 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28891 msgstr ""
28892
28893 # type: =item
28894 #: ../tools/virt-list-partitions.pl:121
28895 msgid "B<-t> | B<--total>"
28896 msgstr ""
28897
28898 # type: textblock
28899 #: ../tools/virt-list-partitions.pl:123
28900 msgid ""
28901 "Display the total size of each block device (as a separate row or rows)."
28902 msgstr ""
28903
28904 # type: textblock
28905 #: ../tools/virt-list-partitions.pl:256
28906 msgid ""
28907 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
28908 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
28909 "libguestfs.org/>."
28910 msgstr ""