Version 1.7.15.
[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-26 17:27+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 #: ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33
23 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
24 #: ../tools/virt-tar.pl:29 ../tools/virt-make-fs.pl:33
25 #: ../tools/virt-list-partitions.pl:28
26 msgid "utf8"
27 msgstr ""
28
29 # type: =head1
30 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
31 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
32 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
33 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
34 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
35 #: ../tools/virt-list-partitions.pl:30
36 msgid "NAME"
37 msgstr "名前"
38
39 # type: textblock
40 #: ../src/guestfs.pod:5
41 msgid "guestfs - Library for accessing and modifying virtual machine images"
42 msgstr ""
43
44 # type: =head1
45 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
46 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
47 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
48 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
49 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
50 #: ../tools/virt-list-partitions.pl:34
51 msgid "SYNOPSIS"
52 msgstr ""
53
54 # type: verbatim
55 #: ../src/guestfs.pod:9
56 #, no-wrap
57 msgid ""
58 " #include <guestfs.h>\n"
59 " \n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:11
64 #, no-wrap
65 msgid ""
66 " guestfs_h *g = guestfs_create ();\n"
67 " guestfs_add_drive (g, \"guest.img\");\n"
68 " guestfs_launch (g);\n"
69 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
70 " guestfs_touch (g, \"/hello\");\n"
71 " guestfs_umount (g, \"/\");\n"
72 " guestfs_sync (g);\n"
73 " guestfs_close (g);\n"
74 "\n"
75 msgstr ""
76
77 # type: verbatim
78 #: ../src/guestfs.pod:20
79 #, no-wrap
80 msgid ""
81 " cc prog.c -o prog -lguestfs\n"
82 "or:\n"
83 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
84 "\n"
85 msgstr ""
86
87 # type: =head1
88 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
89 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
90 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
91 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
92 #: ../tools/virt-tar.pl:72 ../tools/virt-make-fs.pl:47
93 #: ../tools/virt-list-partitions.pl:40
94 msgid "DESCRIPTION"
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:26
99 msgid ""
100 "Libguestfs is a library for accessing and modifying guest disk images.  "
101 "Amongst the things this is good for: making batch configuration changes to "
102 "guests, getting disk used/free statistics (see also: virt-df), migrating "
103 "between virtualization systems (see also: virt-p2v), performing partial "
104 "backups, performing partial guest clones, cloning guests and changing "
105 "registry/UUID/hostname info, and much else besides."
106 msgstr ""
107
108 # type: textblock
109 #: ../src/guestfs.pod:34
110 msgid ""
111 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
112 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
113 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
114 "qcow2, vmdk."
115 msgstr ""
116
117 # type: textblock
118 #: ../src/guestfs.pod:39
119 msgid ""
120 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
121 "what filesystem is in each LV, etc.).  It can also run commands in the "
122 "context of the guest.  Also you can access filesystems over FUSE."
123 msgstr ""
124
125 # type: textblock
126 #: ../src/guestfs.pod:44
127 msgid ""
128 "Libguestfs is a library that can be linked with C and C++ management "
129 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
130 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
131 "line."
132 msgstr ""
133
134 # type: textblock
135 #: ../src/guestfs.pod:49
136 msgid ""
137 "You don't need to be root to use libguestfs, although obviously you do need "
138 "enough permissions to access the disk images."
139 msgstr ""
140
141 # type: textblock
142 #: ../src/guestfs.pod:52
143 msgid ""
144 "Libguestfs is a large API because it can do many things.  For a gentle "
145 "introduction, please read the L</API OVERVIEW> section next."
146 msgstr ""
147
148 # type: textblock
149 #: ../src/guestfs.pod:55
150 msgid ""
151 "There are also some example programs in the L<guestfs-examples(3)> manual "
152 "page."
153 msgstr ""
154
155 # type: =head1
156 #: ../src/guestfs.pod:58
157 msgid "API OVERVIEW"
158 msgstr ""
159
160 # type: textblock
161 #: ../src/guestfs.pod:60
162 msgid ""
163 "This section provides a gentler overview of the libguestfs API.  We also try "
164 "to group API calls together, where that may not be obvious from reading "
165 "about the individual calls in the main section of this manual."
166 msgstr ""
167
168 # type: =head2
169 #: ../src/guestfs.pod:65
170 msgid "HANDLES"
171 msgstr ""
172
173 # type: textblock
174 #: ../src/guestfs.pod:67
175 msgid ""
176 "Before you can use libguestfs calls, you have to create a handle.  Then you "
177 "must add at least one disk image to the handle, followed by launching the "
178 "handle, then performing whatever operations you want, and finally closing "
179 "the handle.  By convention we use the single letter C<g> for the name of the "
180 "handle variable, although of course you can use any name you want."
181 msgstr ""
182
183 # type: textblock
184 #: ../src/guestfs.pod:74
185 msgid "The general structure of all libguestfs-using programs looks like this:"
186 msgstr ""
187
188 # type: verbatim
189 #: ../src/guestfs.pod:77
190 #, no-wrap
191 msgid ""
192 " guestfs_h *g = guestfs_create ();\n"
193 " \n"
194 msgstr ""
195
196 # type: verbatim
197 #: ../src/guestfs.pod:79
198 #, no-wrap
199 msgid ""
200 " /* Call guestfs_add_drive additional times if there are\n"
201 "  * multiple disk images.\n"
202 "  */\n"
203 " guestfs_add_drive (g, \"guest.img\");\n"
204 " \n"
205 msgstr ""
206
207 # type: verbatim
208 #: ../src/guestfs.pod:84
209 #, no-wrap
210 msgid ""
211 " /* Most manipulation calls won't work until you've launched\n"
212 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
213 "  * and _before_ other commands.\n"
214 "  */\n"
215 " guestfs_launch (g);\n"
216 " \n"
217 msgstr ""
218
219 # type: verbatim
220 #: ../src/guestfs.pod:90
221 #, no-wrap
222 msgid ""
223 " /* Now you can examine what partitions, LVs etc are available.\n"
224 "  */\n"
225 " char **partitions = guestfs_list_partitions (g);\n"
226 " char **logvols = guestfs_lvs (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #: ../src/guestfs.pod:95
232 #, no-wrap
233 msgid ""
234 " /* To access a filesystem in the image, you must mount it.\n"
235 "  */\n"
236 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
237 " \n"
238 msgstr ""
239
240 # type: verbatim
241 #: ../src/guestfs.pod:99
242 #, no-wrap
243 msgid ""
244 " /* Now you can perform filesystem actions on the guest\n"
245 "  * disk image.\n"
246 "  */\n"
247 " guestfs_touch (g, \"/hello\");\n"
248 " \n"
249 msgstr ""
250
251 # type: verbatim
252 #: ../src/guestfs.pod:104
253 #, no-wrap
254 msgid ""
255 " /* You only need to call guestfs_sync if you have made\n"
256 "  * changes to the guest image.  (But if you've made changes\n"
257 "  * then you *must* sync).  See also: guestfs_umount and\n"
258 "  * guestfs_umount_all calls.\n"
259 "  */\n"
260 " guestfs_sync (g);\n"
261 " \n"
262 msgstr ""
263
264 # type: verbatim
265 #: ../src/guestfs.pod:111
266 #, no-wrap
267 msgid ""
268 " /* Close the handle 'g'. */\n"
269 " guestfs_close (g);\n"
270 "\n"
271 msgstr ""
272
273 # type: textblock
274 #: ../src/guestfs.pod:114
275 msgid ""
276 "The code above doesn't include any error checking.  In real code you should "
277 "check return values carefully for errors.  In general all functions that "
278 "return integers return C<-1> on error, and all functions that return "
279 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
280 "how to handle errors, and consult the documentation for each function call "
281 "below to see precisely how they return error indications."
282 msgstr ""
283
284 # type: =head2
285 #: ../src/guestfs.pod:122
286 msgid "DISK IMAGES"
287 msgstr ""
288
289 # type: textblock
290 #: ../src/guestfs.pod:124
291 msgid ""
292 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
293 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
294 "actual block device, or simply an empty file of zeroes that you have created "
295 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
296 "of these."
297 msgstr ""
298
299 # type: textblock
300 #: ../src/guestfs.pod:130
301 msgid ""
302 "The call you should use in modern code for adding drives is L</"
303 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
304 "specifying that the format is raw, do:"
305 msgstr ""
306
307 # type: verbatim
308 #: ../src/guestfs.pod:134
309 #, no-wrap
310 msgid ""
311 " guestfs_add_drive_opts (g, filename,\n"
312 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
313 "                         -1);\n"
314 "\n"
315 msgstr ""
316
317 # type: textblock
318 #: ../src/guestfs.pod:138
319 msgid "You can add a disk read-only using:"
320 msgstr ""
321
322 # type: verbatim
323 #: ../src/guestfs.pod:140
324 #, no-wrap
325 msgid ""
326 " guestfs_add_drive_opts (g, filename,\n"
327 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
328 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
329 "                         -1);\n"
330 "\n"
331 msgstr ""
332
333 # type: textblock
334 #: ../src/guestfs.pod:145
335 msgid ""
336 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
337 "libguestfs won't modify the file."
338 msgstr ""
339
340 # type: textblock
341 #: ../src/guestfs.pod:148
342 msgid ""
343 "Be extremely cautious if the disk image is in use, eg. if it is being used "
344 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
345 "corruption, but adding it read-only is safe."
346 msgstr ""
347
348 # type: textblock
349 #: ../src/guestfs.pod:152
350 msgid ""
351 "You must add at least one disk image, and you may add multiple disk images.  "
352 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
353 "first one you added), C</dev/sdb> (for the second one you added), etc."
354 msgstr ""
355
356 # type: textblock
357 #: ../src/guestfs.pod:157
358 msgid ""
359 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
360 "can call L</guestfs_list_devices> to get a list of the device names, in the "
361 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
362 msgstr ""
363
364 # type: =head2
365 #: ../src/guestfs.pod:162
366 msgid "MOUNTING"
367 msgstr ""
368
369 # type: textblock
370 #: ../src/guestfs.pod:164
371 msgid ""
372 "Before you can read or write files, create directories and so on in a disk "
373 "image that contains filesystems, you have to mount those filesystems using "
374 "L</guestfs_mount>.  If you already know that a disk image contains (for "
375 "example) one partition with a filesystem on that partition, then you can "
376 "mount it directly:"
377 msgstr ""
378
379 # type: verbatim
380 #: ../src/guestfs.pod:170
381 #, no-wrap
382 msgid ""
383 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
384 "\n"
385 msgstr ""
386
387 # type: textblock
388 #: ../src/guestfs.pod:172
389 msgid ""
390 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
391 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
392 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
393 msgstr ""
394
395 # type: textblock
396 #: ../src/guestfs.pod:176
397 msgid ""
398 "If you are given a disk image and you don't know what it contains then you "
399 "have to find out.  Libguestfs can do that too: use L</"
400 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
401 "LVs, and either try mounting each to see what is mountable, or else examine "
402 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
403 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
404 "you might find it easier to look at higher level programs built on top of "
405 "libguestfs, in particular L<virt-inspector(1)>."
406 msgstr ""
407
408 # type: textblock
409 #: ../src/guestfs.pod:186
410 msgid ""
411 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
412 "several other variations of the C<guestfs_mount_*> call."
413 msgstr ""
414
415 # type: =head2
416 #: ../src/guestfs.pod:189
417 msgid "FILESYSTEM ACCESS AND MODIFICATION"
418 msgstr ""
419
420 # type: textblock
421 #: ../src/guestfs.pod:191
422 msgid ""
423 "The majority of the libguestfs API consists of fairly low-level calls for "
424 "accessing and modifying the files, directories, symlinks etc on mounted "
425 "filesystems.  There are over a hundred such calls which you can find listed "
426 "in detail below in this man page, and we don't even pretend to cover them "
427 "all in this overview."
428 msgstr ""
429
430 # type: textblock
431 #: ../src/guestfs.pod:197
432 msgid ""
433 "Specify filenames as full paths, starting with C<\"/\"> and including the "
434 "mount point."
435 msgstr ""
436
437 # type: textblock
438 #: ../src/guestfs.pod:200
439 msgid ""
440 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
441 "the file called C<\"etc/passwd\"> then you could do:"
442 msgstr ""
443
444 # type: verbatim
445 #: ../src/guestfs.pod:203
446 #, no-wrap
447 msgid ""
448 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
449 "\n"
450 msgstr ""
451
452 # type: textblock
453 #: ../src/guestfs.pod:205
454 msgid ""
455 "This would return C<data> as a newly allocated buffer containing the full "
456 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
457 "or C<NULL> if there was an error."
458 msgstr ""
459
460 # type: textblock
461 #: ../src/guestfs.pod:209
462 msgid ""
463 "As another example, to create a top-level directory on that filesystem "
464 "called C<\"var\"> you would do:"
465 msgstr ""
466
467 # type: verbatim
468 #: ../src/guestfs.pod:212
469 #, no-wrap
470 msgid ""
471 " guestfs_mkdir (g, \"/var\");\n"
472 "\n"
473 msgstr ""
474
475 # type: textblock
476 #: ../src/guestfs.pod:214
477 msgid "To create a symlink you could do:"
478 msgstr ""
479
480 # type: verbatim
481 #: ../src/guestfs.pod:216
482 #, no-wrap
483 msgid ""
484 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
485 "               \"/etc/rc3.d/S30portmap\");\n"
486 "\n"
487 msgstr ""
488
489 # type: textblock
490 #: ../src/guestfs.pod:219
491 msgid ""
492 "Libguestfs will reject attempts to use relative paths and there is no "
493 "concept of a current working directory."
494 msgstr ""
495
496 # type: textblock
497 #: ../src/guestfs.pod:222
498 msgid ""
499 "Libguestfs can return errors in many situations: for example if the "
500 "filesystem isn't writable, or if a file or directory that you requested "
501 "doesn't exist.  If you are using the C API (documented here)  you have to "
502 "check for those error conditions after each call.  (Other language bindings "
503 "turn these errors into exceptions)."
504 msgstr ""
505
506 # type: textblock
507 #: ../src/guestfs.pod:228
508 msgid ""
509 "File writes are affected by the per-handle umask, set by calling L</"
510 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
511 msgstr ""
512
513 # type: =head2
514 #: ../src/guestfs.pod:231
515 msgid "PARTITIONING"
516 msgstr ""
517
518 # type: textblock
519 #: ../src/guestfs.pod:233
520 msgid ""
521 "Libguestfs contains API calls to read, create and modify partition tables on "
522 "disk images."
523 msgstr ""
524
525 # type: textblock
526 #: ../src/guestfs.pod:236
527 msgid ""
528 "In the common case where you want to create a single partition covering the "
529 "whole disk, you should use the L</guestfs_part_disk> call:"
530 msgstr ""
531
532 # type: verbatim
533 #: ../src/guestfs.pod:240
534 #, no-wrap
535 msgid ""
536 " const char *parttype = \"mbr\";\n"
537 " if (disk_is_larger_than_2TB)\n"
538 "   parttype = \"gpt\";\n"
539 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
540 "\n"
541 msgstr ""
542
543 # type: textblock
544 #: ../src/guestfs.pod:245
545 msgid ""
546 "Obviously this effectively wipes anything that was on that disk image before."
547 msgstr ""
548
549 # type: =head2
550 #: ../src/guestfs.pod:248
551 msgid "LVM2"
552 msgstr ""
553
554 # type: textblock
555 #: ../src/guestfs.pod:250
556 msgid ""
557 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
558 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
559 "you familiarize yourself with the concepts of physical volumes, volume "
560 "groups and logical volumes."
561 msgstr ""
562
563 # type: textblock
564 #: ../src/guestfs.pod:255
565 msgid ""
566 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
567 "tldp.org/HOWTO/LVM-HOWTO/>."
568 msgstr ""
569
570 # type: =head2
571 #: ../src/guestfs.pod:258
572 msgid "DOWNLOADING"
573 msgstr ""
574
575 # type: textblock
576 #: ../src/guestfs.pod:260
577 msgid ""
578 "Use L</guestfs_cat> to download small, text only files.  This call is "
579 "limited to files which are less than 2 MB and which cannot contain any ASCII "
580 "NUL (C<\\0>) characters.  However it has a very simple to use API."
581 msgstr ""
582
583 # type: textblock
584 #: ../src/guestfs.pod:265
585 msgid ""
586 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
587 "bit data, since it returns a (pointer, size) pair.  However it is still "
588 "limited to \"small\" files, less than 2 MB."
589 msgstr ""
590
591 # type: textblock
592 #: ../src/guestfs.pod:269
593 msgid ""
594 "L</guestfs_download> can be used to download any file, with no limits on "
595 "content or size (even files larger than 4 GB)."
596 msgstr ""
597
598 # type: textblock
599 #: ../src/guestfs.pod:272
600 msgid ""
601 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
602 msgstr ""
603
604 # type: =head2
605 #: ../src/guestfs.pod:275
606 msgid "UPLOADING"
607 msgstr ""
608
609 # type: textblock
610 #: ../src/guestfs.pod:277
611 msgid ""
612 "It's often the case that you want to write a file or files to the disk image."
613 msgstr ""
614
615 # type: textblock
616 #: ../src/guestfs.pod:280
617 msgid ""
618 "To write a small file with fixed content, use L</guestfs_write>.  To create "
619 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
620 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
621 "of other functions for creating test files, for example L</guestfs_fill> and "
622 "L</guestfs_fill_pattern>."
623 msgstr ""
624
625 # type: textblock
626 #: ../src/guestfs.pod:286
627 msgid ""
628 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
629 "file content or size (even files larger than 4 GB)."
630 msgstr ""
631
632 # type: textblock
633 #: ../src/guestfs.pod:289
634 msgid ""
635 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
636 msgstr ""
637
638 # type: textblock
639 #: ../src/guestfs.pod:291
640 msgid ""
641 "However the fastest way to upload I<large numbers of arbitrary files> is to "
642 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
643 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
644 "in a predictable way (eg. adding it last after all other drives) then you "
645 "can get the device name from L</guestfs_list_devices> and mount it directly "
646 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
647 "portable between kernel versions, and they don't support labels or UUIDs.  "
648 "If you want to pre-build an image or you need to mount it using a label or "
649 "UUID, use an ISO image instead."
650 msgstr ""
651
652 # type: =head2
653 #: ../src/guestfs.pod:302
654 msgid "COPYING"
655 msgstr ""
656
657 # type: textblock
658 #: ../src/guestfs.pod:304
659 msgid ""
660 "There are various different commands for copying between files and devices "
661 "and in and out of the guest filesystem.  These are summarised in the table "
662 "below."
663 msgstr ""
664
665 # type: =item
666 #: ../src/guestfs.pod:310
667 msgid "B<file> to B<file>"
668 msgstr ""
669
670 # type: textblock
671 #: ../src/guestfs.pod:312
672 msgid ""
673 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
674 "directories recursively."
675 msgstr ""
676
677 # type: =item
678 #: ../src/guestfs.pod:315
679 msgid "B<file or device> to B<file or device>"
680 msgstr ""
681
682 # type: textblock
683 #: ../src/guestfs.pod:317
684 msgid ""
685 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
686 "devices in the guest."
687 msgstr ""
688
689 # type: textblock
690 #: ../src/guestfs.pod:320
691 msgid "Example: duplicate the contents of an LV:"
692 msgstr ""
693
694 # type: verbatim
695 #: ../src/guestfs.pod:322
696 #, no-wrap
697 msgid ""
698 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
699 "\n"
700 msgstr ""
701
702 # type: textblock
703 #: ../src/guestfs.pod:324
704 msgid ""
705 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
706 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
707 "guestfs_copy_size>."
708 msgstr ""
709
710 # type: =item
711 #: ../src/guestfs.pod:328
712 msgid "B<file on the host> to B<file or device>"
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:330
717 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
718 msgstr ""
719
720 # type: =item
721 #: ../src/guestfs.pod:332
722 msgid "B<file or device> to B<file on the host>"
723 msgstr ""
724
725 # type: textblock
726 #: ../src/guestfs.pod:334
727 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
728 msgstr ""
729
730 # type: =head2
731 #: ../src/guestfs.pod:338
732 msgid "LISTING FILES"
733 msgstr ""
734
735 # type: textblock
736 #: ../src/guestfs.pod:340
737 msgid ""
738 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
739 "L<guestfish(1)>-equivalent command C<ll>)."
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:343
744 msgid ""
745 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
746 "programs, as a flat list of strings."
747 msgstr ""
748
749 # type: textblock
750 #: ../src/guestfs.pod:346
751 msgid ""
752 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
753 "directory, plus additional information about each one.  It is more "
754 "equivalent to using the L<readdir(3)> call on a local filesystem."
755 msgstr ""
756
757 # type: textblock
758 #: ../src/guestfs.pod:350
759 msgid ""
760 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
761 msgstr ""
762
763 # type: =head2
764 #: ../src/guestfs.pod:353
765 msgid "RUNNING COMMANDS"
766 msgstr ""
767
768 # type: textblock
769 #: ../src/guestfs.pod:355
770 msgid ""
771 "Although libguestfs is primarily an API for manipulating files inside guest "
772 "images, we also provide some limited facilities for running commands inside "
773 "guests."
774 msgstr ""
775
776 # type: textblock
777 #: ../src/guestfs.pod:359
778 msgid "There are many limitations to this:"
779 msgstr ""
780
781 # type: =item
782 #: ../src/guestfs.pod:363 ../src/guestfs.pod:368 ../src/guestfs.pod:373
783 #: ../src/guestfs.pod:377 ../src/guestfs.pod:382 ../src/guestfs.pod:386
784 #: ../src/guestfs.pod:391 ../src/guestfs.pod:396 ../src/guestfs.pod:955
785 #: ../src/guestfs.pod:959 ../src/guestfs.pod:963 ../src/guestfs.pod:968
786 #: ../src/guestfs.pod:976 ../src/guestfs.pod:995 ../src/guestfs.pod:1003
787 #: ../src/guestfs.pod:1025 ../src/guestfs.pod:1029 ../src/guestfs.pod:1033
788 #: ../src/guestfs.pod:1037 ../src/guestfs.pod:1041 ../src/guestfs.pod:1045
789 #: ../src/guestfs.pod:1527 ../src/guestfs.pod:1532 ../src/guestfs.pod:1536
790 #: ../src/guestfs.pod:1646 ../src/guestfs.pod:1651 ../src/guestfs.pod:1655
791 #: ../src/guestfs.pod:1999 ../src/guestfs.pod:2005 ../src/guestfs.pod:2010
792 #: ../src/guestfs.pod:2016 ../src/guestfs.pod:2128 ../src/guestfs.pod:2132
793 #: ../src/guestfs.pod:2136 ../src/guestfs.pod:2140
794 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
795 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
796 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
797 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
798 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
799 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
800 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
801 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
802 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
803 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
804 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
805 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:377
806 #: ../fish/guestfish.pod:381 ../fish/guestfish.pod:385
807 #: ../fish/guestfish.pod:389 ../fish/guestfish-actions.pod:13
808 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
809 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
810 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
811 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
812 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
813 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
814 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
815 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
816 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
817 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
818 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
819 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:352
820 #: ../tools/virt-resize.pl:362
821 msgid "*"
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:365
826 msgid ""
827 "The kernel version that the command runs under will be different from what "
828 "it expects."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:370
833 msgid ""
834 "If the command needs to communicate with daemons, then most likely they "
835 "won't be running."
836 msgstr ""
837
838 # type: textblock
839 #: ../src/guestfs.pod:375
840 msgid "The command will be running in limited memory."
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:379
845 msgid ""
846 "The network may not be available unless you enable it (see L</"
847 "guestfs_set_network>)."
848 msgstr ""
849
850 # type: textblock
851 #: ../src/guestfs.pod:384
852 msgid "Only supports Linux guests (not Windows, BSD, etc)."
853 msgstr ""
854
855 # type: textblock
856 #: ../src/guestfs.pod:388
857 msgid ""
858 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
859 msgstr ""
860
861 # type: textblock
862 #: ../src/guestfs.pod:393
863 msgid ""
864 "For SELinux guests, you may need to enable SELinux and load policy first.  "
865 "See L</SELINUX> in this manpage."
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:398
870 msgid ""
871 "I<Security:> It is not safe to run commands from untrusted, possibly "
872 "malicious guests.  These commands may attempt to exploit your program by "
873 "sending unexpected output.  They could also try to exploit the Linux kernel "
874 "or qemu provided by the libguestfs appliance.  They could use the network "
875 "provided by the libguestfs appliance to bypass ordinary network partitions "
876 "and firewalls.  They could use the elevated privileges or different SELinux "
877 "context of your program to their advantage."
878 msgstr ""
879
880 # type: textblock
881 #: ../src/guestfs.pod:407
882 msgid ""
883 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
884 "(a script which runs when the guest next boots normally), and to have this "
885 "script run the commands you want in the normal context of the running guest, "
886 "network security and so on.  For information about other security issues, "
887 "see L</SECURITY>."
888 msgstr ""
889
890 # type: textblock
891 #: ../src/guestfs.pod:415
892 msgid ""
893 "The two main API calls to run commands are L</guestfs_command> and L</"
894 "guestfs_sh> (there are also variations)."
895 msgstr ""
896
897 # type: textblock
898 #: ../src/guestfs.pod:418
899 msgid ""
900 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
901 "shell globs, redirections, etc will work."
902 msgstr ""
903
904 # type: =head2
905 #: ../src/guestfs.pod:421
906 msgid "CONFIGURATION FILES"
907 msgstr ""
908
909 # type: textblock
910 #: ../src/guestfs.pod:423
911 msgid ""
912 "To read and write configuration files in Linux guest filesystems, we "
913 "strongly recommend using Augeas.  For example, Augeas understands how to "
914 "read and write, say, a Linux shadow password file or X.org configuration "
915 "file, and so avoids you having to write that code."
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:428
920 msgid ""
921 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
922 "document Augeas itself here because there is excellent documentation on the "
923 "L<http://augeas.net/> website."
924 msgstr ""
925
926 # type: textblock
927 #: ../src/guestfs.pod:432
928 msgid ""
929 "If you don't want to use Augeas (you fool!) then try calling L</"
930 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
931 "over."
932 msgstr ""
933
934 # type: =head2
935 #: ../src/guestfs.pod:436
936 msgid "SELINUX"
937 msgstr ""
938
939 # type: textblock
940 #: ../src/guestfs.pod:438
941 msgid ""
942 "We support SELinux guests.  To ensure that labeling happens correctly in "
943 "SELinux guests, you need to enable SELinux and load the guest's policy:"
944 msgstr ""
945
946 # type: =item
947 #: ../src/guestfs.pod:444 ../src/guestfs.pod:1148 ../src/guestfs.pod:1279
948 msgid "1."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:446
953 msgid "Before launching, do:"
954 msgstr ""
955
956 # type: verbatim
957 #: ../src/guestfs.pod:448
958 #, no-wrap
959 msgid ""
960 " guestfs_set_selinux (g, 1);\n"
961 "\n"
962 msgstr ""
963
964 # type: =item
965 #: ../src/guestfs.pod:450 ../src/guestfs.pod:1152 ../src/guestfs.pod:1283
966 msgid "2."
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:452
971 msgid ""
972 "After mounting the guest's filesystem(s), load the policy.  This is best "
973 "done by running the L<load_policy(8)> command in the guest itself:"
974 msgstr ""
975
976 # type: verbatim
977 #: ../src/guestfs.pod:456
978 #, no-wrap
979 msgid ""
980 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
981 "\n"
982 msgstr ""
983
984 # type: textblock
985 #: ../src/guestfs.pod:458
986 msgid ""
987 "(Older versions of C<load_policy> require you to specify the name of the "
988 "policy file)."
989 msgstr ""
990
991 # type: =item
992 #: ../src/guestfs.pod:461 ../src/guestfs.pod:1289
993 msgid "3."
994 msgstr ""
995
996 # type: textblock
997 #: ../src/guestfs.pod:463
998 msgid ""
999 "Optionally, set the security context for the API.  The correct security "
1000 "context to use can only be known by inspecting the guest.  As an example:"
1001 msgstr ""
1002
1003 # type: verbatim
1004 #: ../src/guestfs.pod:467
1005 #, no-wrap
1006 msgid ""
1007 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1008 "\n"
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:471
1013 msgid "This will work for running commands and editing existing files."
1014 msgstr ""
1015
1016 # type: textblock
1017 #: ../src/guestfs.pod:473
1018 msgid ""
1019 "When new files are created, you may need to label them explicitly, for "
1020 "example by running the external command C<restorecon pathname>."
1021 msgstr ""
1022
1023 # type: =head2
1024 #: ../src/guestfs.pod:477
1025 msgid "UMASK"
1026 msgstr ""
1027
1028 # type: textblock
1029 #: ../src/guestfs.pod:479
1030 msgid ""
1031 "Certain calls are affected by the current file mode creation mask (the "
1032 "\"umask\").  In particular ones which create files or directories, such as "
1033 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1034 "either the default mode that the file is created with or modifies the mode "
1035 "that you supply."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:485
1040 msgid ""
1041 "The default umask is C<022>, so files are created with modes such as C<0644> "
1042 "and directories with C<0755>."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:488
1047 msgid ""
1048 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1049 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1050 "guestfs_chmod> after creating each file or directory."
1051 msgstr ""
1052
1053 # type: textblock
1054 #: ../src/guestfs.pod:492
1055 msgid "For more information about umask, see L<umask(2)>."
1056 msgstr ""
1057
1058 # type: =head1
1059 #: ../src/guestfs.pod:494 ../fish/guestfish.pod:670
1060 msgid "ENCRYPTED DISKS"
1061 msgstr ""
1062
1063 # type: textblock
1064 #: ../src/guestfs.pod:496
1065 msgid ""
1066 "Libguestfs allows you to access Linux guests which have been encrypted using "
1067 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1068 "standard.  This includes nearly all whole disk encryption systems used by "
1069 "modern Linux guests."
1070 msgstr ""
1071
1072 # type: textblock
1073 #: ../src/guestfs.pod:502
1074 msgid ""
1075 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1076 "returns the string C<crypto_LUKS>)."
1077 msgstr ""
1078
1079 # type: textblock
1080 #: ../src/guestfs.pod:505
1081 msgid ""
1082 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1083 "will require the passphrase!"
1084 msgstr ""
1085
1086 # type: textblock
1087 #: ../src/guestfs.pod:508
1088 msgid ""
1089 "Opening a LUKS device creates a new device mapper device called C</dev/"
1090 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1091 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1092 "from and encrypted to the underlying block device respectively."
1093 msgstr ""
1094
1095 # type: textblock
1096 #: ../src/guestfs.pod:514
1097 msgid ""
1098 "LVM volume groups on the device can be made visible by calling L</"
1099 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1100 "(s) can now be mounted in the usual way."
1101 msgstr ""
1102
1103 # type: textblock
1104 #: ../src/guestfs.pod:518
1105 msgid ""
1106 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1107 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1108 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1109 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1110 "underlying encrypted block device)."
1111 msgstr ""
1112
1113 # type: =head2
1114 #: ../src/guestfs.pod:525
1115 msgid "INSPECTION"
1116 msgstr ""
1117
1118 # type: textblock
1119 #: ../src/guestfs.pod:527
1120 msgid ""
1121 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1122 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1123 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1124 "frequently used part of this library has been rewritten in C and moved into "
1125 "the core code)."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:533
1130 msgid ""
1131 "Add all disks belonging to the unknown virtual machine and call L</"
1132 "guestfs_launch> in the usual way."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:536
1137 msgid ""
1138 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1139 "and certain heuristics, and returns a list of operating systems that were "
1140 "found.  An empty list means none were found.  A single element is the root "
1141 "filesystem of the operating system.  For dual- or multi-boot guests, "
1142 "multiple roots can be returned, each one corresponding to a separate "
1143 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1144 "world of virtualization, but since this scenario can happen, we have built "
1145 "libguestfs to deal with it.)"
1146 msgstr ""
1147
1148 # type: textblock
1149 #: ../src/guestfs.pod:545
1150 msgid ""
1151 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1152 "to get additional details about that operating system.  For example, call L</"
1153 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1154 "Windows and Linux-based operating systems respectively."
1155 msgstr ""
1156
1157 # type: textblock
1158 #: ../src/guestfs.pod:551
1159 msgid ""
1160 "Un*x-like and Linux-based operating systems usually consist of several "
1161 "filesystems which are mounted at boot time (for example, a separate boot "
1162 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1163 "filesystems correspond to mount points.  Call "
1164 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1165 "hash table like this example:"
1166 msgstr ""
1167
1168 # type: verbatim
1169 #: ../src/guestfs.pod:558
1170 #, no-wrap
1171 msgid ""
1172 " /boot => /dev/sda1\n"
1173 " /     => /dev/vg_guest/lv_root\n"
1174 " /usr  => /dev/vg_guest/lv_usr\n"
1175 "\n"
1176 msgstr ""
1177
1178 # type: textblock
1179 #: ../src/guestfs.pod:562
1180 msgid ""
1181 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1182 "filesystems as suggested."
1183 msgstr ""
1184
1185 # type: textblock
1186 #: ../src/guestfs.pod:565
1187 msgid ""
1188 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1189 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1190 msgstr ""
1191
1192 # type: textblock
1193 #: ../src/guestfs.pod:569
1194 msgid ""
1195 "Inspection currently only works for some common operating systems.  "
1196 "Contributors are welcome to send patches for other operating systems that we "
1197 "currently cannot detect."
1198 msgstr ""
1199
1200 # type: textblock
1201 #: ../src/guestfs.pod:573
1202 msgid ""
1203 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1204 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1205 "encrypted devices."
1206 msgstr ""
1207
1208 # type: textblock
1209 #: ../src/guestfs.pod:577
1210 msgid ""
1211 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1212 "inspection and caches the results in the guest handle.  Subsequent calls to "
1213 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1214 "read the disks.  If you change the content of the guest disks, you can redo "
1215 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1216 "guestfs_inspect_list_applications> works a little differently from the other "
1217 "calls and does read the disks.  See documentation for that function for "
1218 "details)."
1219 msgstr ""
1220
1221 # type: =head2
1222 #: ../src/guestfs.pod:586
1223 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1224 msgstr ""
1225
1226 # type: textblock
1227 #: ../src/guestfs.pod:588
1228 msgid ""
1229 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1230 "ntfs-3g.org/> driver."
1231 msgstr ""
1232
1233 # type: textblock
1234 #: ../src/guestfs.pod:591
1235 msgid ""
1236 "DOS and Windows still use drive letters, and the filesystems are always "
1237 "treated as case insensitive by Windows itself, and therefore you might find "
1238 "a Windows configuration file referring to a path like C<c:\\windows"
1239 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1240 "might be referred to as C</WINDOWS/System32>."
1241 msgstr ""
1242
1243 # type: textblock
1244 #: ../src/guestfs.pod:597
1245 msgid ""
1246 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1247 "libguestfs to read the appropriate Windows Registry and configuration files, "
1248 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1249 "inspector(1)>)."
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:602
1254 msgid ""
1255 "Replacing backslash characters with forward slash characters is also outside "
1256 "the scope of libguestfs, but something that you can easily do."
1257 msgstr ""
1258
1259 # type: textblock
1260 #: ../src/guestfs.pod:605
1261 msgid ""
1262 "Where we can help is in resolving the case insensitivity of paths.  For "
1263 "this, call L</guestfs_case_sensitive_path>."
1264 msgstr ""
1265
1266 # type: textblock
1267 #: ../src/guestfs.pod:608
1268 msgid ""
1269 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1270 "files, through the library C<hivex> which is part of the libguestfs project "
1271 "although ships as a separate tarball.  You have to locate and download the "
1272 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1273 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1274 "reg(1)> for more help on this issue."
1275 msgstr ""
1276
1277 # type: =head2
1278 #: ../src/guestfs.pod:616
1279 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1280 msgstr ""
1281
1282 # type: textblock
1283 #: ../src/guestfs.pod:618
1284 msgid ""
1285 "Although we don't want to discourage you from using the C API, we will "
1286 "mention here that the same API is also available in other languages."
1287 msgstr ""
1288
1289 # type: textblock
1290 #: ../src/guestfs.pod:621
1291 msgid ""
1292 "The API is broadly identical in all supported languages.  This means that "
1293 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1294 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1295 "words, a straightforward, predictable isomorphism between each language."
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:627
1300 msgid ""
1301 "Error messages are automatically transformed into exceptions if the language "
1302 "supports it."
1303 msgstr ""
1304
1305 # type: textblock
1306 #: ../src/guestfs.pod:630
1307 msgid ""
1308 "We don't try to \"object orientify\" parts of the API in OO languages, "
1309 "although contributors are welcome to write higher level APIs above what we "
1310 "provide in their favourite languages if they wish."
1311 msgstr ""
1312
1313 # type: =item
1314 #: ../src/guestfs.pod:636
1315 msgid "B<C++>"
1316 msgstr ""
1317
1318 # type: textblock
1319 #: ../src/guestfs.pod:638
1320 msgid ""
1321 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1322 "identical to the C API.  C++ classes and exceptions are not used."
1323 msgstr ""
1324
1325 # type: =item
1326 #: ../src/guestfs.pod:642
1327 msgid "B<C#>"
1328 msgstr ""
1329
1330 # type: textblock
1331 #: ../src/guestfs.pod:644
1332 msgid ""
1333 "The C# bindings are highly experimental.  Please read the warnings at the "
1334 "top of C<csharp/Libguestfs.cs>."
1335 msgstr ""
1336
1337 # type: =item
1338 #: ../src/guestfs.pod:647
1339 msgid "B<Haskell>"
1340 msgstr ""
1341
1342 # type: textblock
1343 #: ../src/guestfs.pod:649
1344 msgid ""
1345 "This is the only language binding that is working but incomplete.  Only "
1346 "calls which return simple integers have been bound in Haskell, and we are "
1347 "looking for help to complete this binding."
1348 msgstr ""
1349
1350 # type: =item
1351 #: ../src/guestfs.pod:653
1352 msgid "B<Java>"
1353 msgstr ""
1354
1355 # type: textblock
1356 #: ../src/guestfs.pod:655
1357 msgid ""
1358 "Full documentation is contained in the Javadoc which is distributed with "
1359 "libguestfs."
1360 msgstr ""
1361
1362 # type: =item
1363 #: ../src/guestfs.pod:658
1364 msgid "B<OCaml>"
1365 msgstr ""
1366
1367 # type: textblock
1368 #: ../src/guestfs.pod:660
1369 msgid "For documentation see L<guestfs-ocaml(3)>."
1370 msgstr ""
1371
1372 # type: =item
1373 #: ../src/guestfs.pod:662
1374 msgid "B<Perl>"
1375 msgstr ""
1376
1377 # type: textblock
1378 #: ../src/guestfs.pod:664
1379 msgid "For documentation see L<Sys::Guestfs(3)>."
1380 msgstr ""
1381
1382 # type: =item
1383 #: ../src/guestfs.pod:666
1384 msgid "B<PHP>"
1385 msgstr ""
1386
1387 # type: textblock
1388 #: ../src/guestfs.pod:668
1389 msgid ""
1390 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1391 "the php-libguestfs package for your distribution."
1392 msgstr ""
1393
1394 # type: textblock
1395 #: ../src/guestfs.pod:671
1396 msgid "The PHP binding only works correctly on 64 bit machines."
1397 msgstr ""
1398
1399 # type: =item
1400 #: ../src/guestfs.pod:673
1401 msgid "B<Python>"
1402 msgstr ""
1403
1404 # type: textblock
1405 #: ../src/guestfs.pod:675
1406 msgid "For documentation see L<guestfs-python(3)>."
1407 msgstr ""
1408
1409 # type: =item
1410 #: ../src/guestfs.pod:677
1411 msgid "B<Ruby>"
1412 msgstr ""
1413
1414 # type: textblock
1415 #: ../src/guestfs.pod:679
1416 msgid "For documentation see L<guestfs-ruby(3)>."
1417 msgstr ""
1418
1419 # type: =item
1420 #: ../src/guestfs.pod:681
1421 msgid "B<shell scripts>"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:683
1426 msgid "For documentation see L<guestfish(1)>."
1427 msgstr ""
1428
1429 # type: =head2
1430 #: ../src/guestfs.pod:687
1431 msgid "LIBGUESTFS GOTCHAS"
1432 msgstr ""
1433
1434 # type: textblock
1435 #: ../src/guestfs.pod:689
1436 msgid ""
1437 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1438 "system [...] that works in the way it is documented but is counterintuitive "
1439 "and almost invites mistakes.\""
1440 msgstr ""
1441
1442 # type: textblock
1443 #: ../src/guestfs.pod:693
1444 msgid ""
1445 "Since we developed libguestfs and the associated tools, there are several "
1446 "things we would have designed differently, but are now stuck with for "
1447 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1448 "release, you can expect these to change.  Beware of them."
1449 msgstr ""
1450
1451 # type: =item
1452 #: ../src/guestfs.pod:701
1453 msgid "Autosync / forgetting to sync."
1454 msgstr ""
1455
1456 # type: textblock
1457 #: ../src/guestfs.pod:703
1458 msgid ""
1459 "When modifying a filesystem from C or another language, you B<must> unmount "
1460 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1461 "libguestfs handle.  You can also call:"
1462 msgstr ""
1463
1464 # type: verbatim
1465 #: ../src/guestfs.pod:707
1466 #, no-wrap
1467 msgid ""
1468 " guestfs_set_autosync (g, 1);\n"
1469 "\n"
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:709
1474 msgid ""
1475 "to have the unmount/sync done automatically for you when the handle 'g' is "
1476 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:713
1481 msgid ""
1482 "If you forget to do this, then it is entirely possible that your changes "
1483 "won't be written out, or will be partially written, or (very rarely) that "
1484 "you'll get disk corruption."
1485 msgstr ""
1486
1487 # type: textblock
1488 #: ../src/guestfs.pod:717
1489 msgid ""
1490 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1491 "guestfish scripts that forget to sync will work just fine, which can make "
1492 "this very puzzling if you are trying to debug a problem."
1493 msgstr ""
1494
1495 # type: textblock
1496 #: ../src/guestfs.pod:721
1497 msgid ""
1498 "Update: Autosync is enabled by default for all API users starting from "
1499 "libguestfs 1.5.24."
1500 msgstr ""
1501
1502 # type: =item
1503 #: ../src/guestfs.pod:724
1504 msgid "Mount option C<-o sync> should not be the default."
1505 msgstr ""
1506
1507 # type: textblock
1508 #: ../src/guestfs.pod:726
1509 msgid ""
1510 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1511 "However C<-o sync> does not add any reliability benefit, but does have a "
1512 "very large performance impact."
1513 msgstr ""
1514
1515 # type: textblock
1516 #: ../src/guestfs.pod:730
1517 msgid ""
1518 "The work around is to use L</guestfs_mount_options> and set the mount "
1519 "options that you actually want to use."
1520 msgstr ""
1521
1522 # type: =item
1523 #: ../src/guestfs.pod:733
1524 msgid "Read-only should be the default."
1525 msgstr ""
1526
1527 # type: textblock
1528 #: ../src/guestfs.pod:735
1529 msgid ""
1530 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1531 "specify I<--rw> if you want to make changes to the image."
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:738
1536 msgid "This would reduce the potential to corrupt live VM images."
1537 msgstr ""
1538
1539 # type: textblock
1540 #: ../src/guestfs.pod:740
1541 msgid ""
1542 "Note that many filesystems change the disk when you just mount and unmount, "
1543 "even if you didn't perform any writes.  You need to use L</"
1544 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1545 msgstr ""
1546
1547 # type: =item
1548 #: ../src/guestfs.pod:744
1549 msgid "guestfish command line is hard to use."
1550 msgstr ""
1551
1552 # type: textblock
1553 #: ../src/guestfs.pod:746
1554 msgid ""
1555 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1556 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1557 "exist, so it fails.  In earlier versions of guestfish the error message was "
1558 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1559 "we should have used C<guestfish -c command> to run commands."
1560 msgstr ""
1561
1562 # type: =item
1563 #: ../src/guestfs.pod:753
1564 msgid "guestfish megabyte modifiers don't work right on all commands"
1565 msgstr ""
1566
1567 # type: textblock
1568 #: ../src/guestfs.pod:755
1569 msgid ""
1570 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1571 "other modifiers).  What guestfish actually does is to multiply the number "
1572 "part by the modifier part and pass the result to the C API.  However this "
1573 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1574 "expecting some other unit (eg. megabytes)."
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:762
1579 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1580 msgstr ""
1581
1582 # type: verbatim
1583 #: ../src/guestfs.pod:764
1584 #, no-wrap
1585 msgid ""
1586 " lvcreate LV VG 100M\n"
1587 "\n"
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:766
1592 msgid ""
1593 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1594 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1595 "megabytes * megabytes) logical volume.  The error message you get from this "
1596 "is also a little obscure."
1597 msgstr ""
1598
1599 # type: textblock
1600 #: ../src/guestfs.pod:771
1601 msgid ""
1602 "This could be fixed in the generator by specially marking parameters and "
1603 "return values which take bytes or other units."
1604 msgstr ""
1605
1606 # type: =item
1607 #: ../src/guestfs.pod:774
1608 msgid "Ambiguity between devices and paths"
1609 msgstr ""
1610
1611 # type: textblock
1612 #: ../src/guestfs.pod:776
1613 msgid ""
1614 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1615 "sdb2>) and a similar pathname.  A file might just happen to be called "
1616 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:781
1621 msgid ""
1622 "In the current API we usually resolve this ambiguity by having two separate "
1623 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1624 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1625 "detecting if the path supplied begins with C</dev/>."
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:787
1630 msgid ""
1631 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1632 "make paths/devices into structured names.  One way to do this would be to "
1633 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1634 "aspect of grub.  Another way would be to use a structured type, equivalent "
1635 "to this OCaml type:"
1636 msgstr ""
1637
1638 # type: verbatim
1639 #: ../src/guestfs.pod:793
1640 #, no-wrap
1641 msgid ""
1642 " type path = Path of string | Device of int | Partition of int * int\n"
1643 "\n"
1644 msgstr ""
1645
1646 # type: textblock
1647 #: ../src/guestfs.pod:795
1648 msgid "which would allow you to pass arguments like:"
1649 msgstr ""
1650
1651 # type: verbatim
1652 #: ../src/guestfs.pod:797
1653 #, no-wrap
1654 msgid ""
1655 " Path \"/foo/bar\"\n"
1656 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1657 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1658 " Path \"/dev/sdb2\"    (* not a device *)\n"
1659 "\n"
1660 msgstr ""
1661
1662 # type: textblock
1663 #: ../src/guestfs.pod:802
1664 msgid ""
1665 "As you can see there are still problems to resolve even with this "
1666 "representation.  Also consider how it might work in guestfish."
1667 msgstr ""
1668
1669 # type: =head2
1670 #: ../src/guestfs.pod:807
1671 msgid "PROTOCOL LIMITS"
1672 msgstr ""
1673
1674 # type: textblock
1675 #: ../src/guestfs.pod:809
1676 msgid ""
1677 "Internally libguestfs uses a message-based protocol to pass API calls and "
1678 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1679 "plenty more detail about this).  The maximum message size used by the "
1680 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1681 "aware of this limit.  The API calls which may be affected are individually "
1682 "documented, with a link back to this section of the documentation."
1683 msgstr ""
1684
1685 # type: textblock
1686 #: ../src/guestfs.pod:817
1687 msgid ""
1688 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1689 "a simple string.  Because this string is at some point internally encoded as "
1690 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1691 "the requested file is larger than this then you will get an error."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:823
1696 msgid ""
1697 "In order to transfer large files into and out of the guest filesystem, you "
1698 "need to use particular calls that support this.  The sections L</UPLOADING> "
1699 "and L</DOWNLOADING> document how to do this."
1700 msgstr ""
1701
1702 # type: textblock
1703 #: ../src/guestfs.pod:827
1704 msgid ""
1705 "You might also consider mounting the disk image using our FUSE filesystem "
1706 "support (L<guestmount(1)>)."
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:830
1711 msgid "KEYS AND PASSPHRASES"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:832
1716 msgid ""
1717 "Certain libguestfs calls take a parameter that contains sensitive key "
1718 "material, passed in as a C string."
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:835
1723 msgid ""
1724 "In the future we would hope to change the libguestfs implementation so that "
1725 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1726 "swap.  However this is I<not> done at the moment, because of the complexity "
1727 "of such an implementation."
1728 msgstr ""
1729
1730 # type: textblock
1731 #: ../src/guestfs.pod:840
1732 msgid ""
1733 "Therefore you should be aware that any key parameter you pass to libguestfs "
1734 "might end up being written out to the swap partition.  If this is a concern, "
1735 "scrub the swap partition or don't use libguestfs on encrypted devices."
1736 msgstr ""
1737
1738 # type: =head1
1739 #: ../src/guestfs.pod:845
1740 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1741 msgstr ""
1742
1743 # type: textblock
1744 #: ../src/guestfs.pod:847
1745 msgid ""
1746 "All high-level libguestfs actions are synchronous.  If you want to use "
1747 "libguestfs asynchronously then you must create a thread."
1748 msgstr ""
1749
1750 # type: textblock
1751 #: ../src/guestfs.pod:850
1752 msgid ""
1753 "Only use the handle from a single thread.  Either use the handle exclusively "
1754 "from one thread, or provide your own mutex so that two threads cannot issue "
1755 "calls on the same handle at the same time."
1756 msgstr ""
1757
1758 # type: textblock
1759 #: ../src/guestfs.pod:854
1760 msgid ""
1761 "See the graphical program guestfs-browser for one possible architecture for "
1762 "multithreaded programs using libvirt and libguestfs."
1763 msgstr ""
1764
1765 # type: =head1
1766 #: ../src/guestfs.pod:857
1767 msgid "PATH"
1768 msgstr ""
1769
1770 # type: textblock
1771 #: ../src/guestfs.pod:859
1772 msgid ""
1773 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1774 "internal path."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:862
1779 msgid ""
1780 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1781 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:865
1786 msgid ""
1787 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1788 "to change the directories that libguestfs will search in.  The value is a "
1789 "colon-separated list of paths.  The current directory is I<not> searched "
1790 "unless the path contains an empty element or C<.>.  For example "
1791 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1792 "then C</usr/lib/guestfs>."
1793 msgstr ""
1794
1795 # type: =head1
1796 #: ../src/guestfs.pod:872
1797 msgid "QEMU WRAPPERS"
1798 msgstr ""
1799
1800 # type: textblock
1801 #: ../src/guestfs.pod:874
1802 msgid ""
1803 "If you want to compile your own qemu, run qemu from a non-standard location, "
1804 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1805 "around qemu."
1806 msgstr ""
1807
1808 # type: textblock
1809 #: ../src/guestfs.pod:878
1810 msgid ""
1811 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1812 "last command in the shell script (so that qemu replaces the shell and "
1813 "becomes the direct child of the libguestfs-using program).  If you don't do "
1814 "this, then the qemu process won't be cleaned up correctly."
1815 msgstr ""
1816
1817 # type: textblock
1818 #: ../src/guestfs.pod:883
1819 msgid ""
1820 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1821 "source:"
1822 msgstr ""
1823
1824 # type: verbatim
1825 #: ../src/guestfs.pod:886
1826 #, no-wrap
1827 msgid ""
1828 " #!/bin/sh -\n"
1829 " qemudir=/home/rjones/d/qemu\n"
1830 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1831 "\n"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:890
1836 msgid ""
1837 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1838 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1839 "example:"
1840 msgstr ""
1841
1842 # type: verbatim
1843 #: ../src/guestfs.pod:894
1844 #, no-wrap
1845 msgid ""
1846 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1847 "\n"
1848 msgstr ""
1849
1850 # type: textblock
1851 #: ../src/guestfs.pod:896
1852 msgid ""
1853 "Note that libguestfs also calls qemu with the -help and -version options in "
1854 "order to determine features."
1855 msgstr ""
1856
1857 # type: =head2
1858 #: ../src/guestfs.pod:899
1859 msgid "ABI GUARANTEE"
1860 msgstr ""
1861
1862 # type: textblock
1863 #: ../src/guestfs.pod:901
1864 msgid ""
1865 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1866 "actions as outlined in this section.  Although we will deprecate some "
1867 "actions, for example if they get replaced by newer calls, we will keep the "
1868 "old actions forever.  This allows you the developer to program in confidence "
1869 "against the libguestfs API."
1870 msgstr ""
1871
1872 # type: =head1
1873 #: ../src/guestfs.pod:907
1874 msgid "BLOCK DEVICE NAMING"
1875 msgstr ""
1876
1877 # type: textblock
1878 #: ../src/guestfs.pod:909
1879 msgid ""
1880 "In the kernel there is now quite a profusion of schemata for naming block "
1881 "devices (in this context, by I<block device> I mean a physical or virtual "
1882 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1883 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1884 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1885 "for the old IDE driver (particularly for SATA devices) those devices also "
1886 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1887 "paravirtualized drivers.  This has created several different naming systems, "
1888 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1889 msgstr ""
1890
1891 # type: textblock
1892 #: ../src/guestfs.pod:921
1893 msgid ""
1894 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1895 "Linux kernel to access block devices.  We can run a variety of appliances "
1896 "based on a variety of Linux kernels."
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:925
1901 msgid ""
1902 "This causes a problem for libguestfs because many API calls use device or "
1903 "partition names.  Working scripts and the recipe (example) scripts that we "
1904 "make available over the internet could fail if the naming scheme changes."
1905 msgstr ""
1906
1907 # type: textblock
1908 #: ../src/guestfs.pod:930
1909 msgid ""
1910 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1911 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1912 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1913 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1914 msgstr ""
1915
1916 # type: textblock
1917 #: ../src/guestfs.pod:936
1918 msgid ""
1919 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1920 "L</guestfs_list_partitions> and similar calls return the true names of the "
1921 "devices and partitions as known to the appliance."
1922 msgstr ""
1923
1924 # type: =head2
1925 #: ../src/guestfs.pod:941
1926 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:943
1931 msgid ""
1932 "Usually this translation is transparent.  However in some (very rare)  cases "
1933 "you may need to know the exact algorithm.  Such cases include where you use "
1934 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1935 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:949
1940 msgid ""
1941 "The algorithm is applied only to I<parameters> which are known to be either "
1942 "device or partition names.  Return values from functions such as L</"
1943 "guestfs_list_devices> are never changed."
1944 msgstr ""
1945
1946 # type: textblock
1947 #: ../src/guestfs.pod:957
1948 msgid "Is the string a parameter which is a device or partition name?"
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:961
1953 msgid "Does the string begin with C</dev/sd>?"
1954 msgstr ""
1955
1956 # type: textblock
1957 #: ../src/guestfs.pod:965
1958 msgid ""
1959 "Does the named device exist? If so, we use that device.  However if I<not> "
1960 "then we continue with this algorithm."
1961 msgstr ""
1962
1963 # type: textblock
1964 #: ../src/guestfs.pod:970
1965 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1966 msgstr ""
1967
1968 # type: textblock
1969 #: ../src/guestfs.pod:972
1970 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:974
1975 msgid "If that named device exists, use it.  If not, continue."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:978
1980 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:980
1985 msgid "If that named device exists, use it.  If not, return an error."
1986 msgstr ""
1987
1988 # type: =head3
1989 #: ../src/guestfs.pod:984
1990 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1991 msgstr ""
1992
1993 # type: textblock
1994 #: ../src/guestfs.pod:986
1995 msgid ""
1996 "Although the standard naming scheme and automatic translation is useful for "
1997 "simple programs and guestfish scripts, for larger programs it is best not to "
1998 "rely on this mechanism."
1999 msgstr ""
2000
2001 # type: textblock
2002 #: ../src/guestfs.pod:990
2003 msgid ""
2004 "Where possible for maximum future portability programs using libguestfs "
2005 "should use these future-proof techniques:"
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:997
2010 msgid ""
2011 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2012 "device names, and then use those names directly."
2013 msgstr ""
2014
2015 # type: textblock
2016 #: ../src/guestfs.pod:1000
2017 msgid ""
2018 "Since those device names exist by definition, they will never be translated."
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:1005
2023 msgid ""
2024 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2025 "filesystem labels."
2026 msgstr ""
2027
2028 # type: =head1
2029 #: ../src/guestfs.pod:1010
2030 msgid "SECURITY"
2031 msgstr ""
2032
2033 # type: textblock
2034 #: ../src/guestfs.pod:1012
2035 msgid ""
2036 "This section discusses security implications of using libguestfs, "
2037 "particularly with untrusted or malicious guests or disk images."
2038 msgstr ""
2039
2040 # type: =head2
2041 #: ../src/guestfs.pod:1015
2042 msgid "GENERAL SECURITY CONSIDERATIONS"
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:1017
2047 msgid ""
2048 "Be careful with any files or data that you download from a guest (by "
2049 "\"download\" we mean not just the L</guestfs_download> command but any "
2050 "command that reads files, filenames, directories or anything else from a "
2051 "disk image).  An attacker could manipulate the data to fool your program "
2052 "into doing the wrong thing.  Consider cases such as:"
2053 msgstr ""
2054
2055 # type: textblock
2056 #: ../src/guestfs.pod:1027
2057 msgid "the data (file etc) not being present"
2058 msgstr ""
2059
2060 # type: textblock
2061 #: ../src/guestfs.pod:1031
2062 msgid "being present but empty"
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1035
2067 msgid "being much larger than normal"
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1039
2072 msgid "containing arbitrary 8 bit data"
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1043
2077 msgid "being in an unexpected character encoding"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1047
2082 msgid "containing homoglyphs."
2083 msgstr ""
2084
2085 # type: =head2
2086 #: ../src/guestfs.pod:1051
2087 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1053
2092 msgid ""
2093 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2094 "(VFS) module can sometimes be escalated into exploits by deliberately "
2095 "creating a malicious, malformed filesystem.  These exploits are very severe "
2096 "for two reasons.  Firstly there are very many filesystem drivers in the "
2097 "kernel, and many of them are infrequently used and not much developer "
2098 "attention has been paid to the code.  Linux userspace helps potential "
2099 "crackers by detecting the filesystem type and automatically choosing the "
2100 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2101 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2102 "exploit (worse in some ways), giving immediate and total access to the "
2103 "system right down to the hardware level."
2104 msgstr ""
2105
2106 # type: textblock
2107 #: ../src/guestfs.pod:1066
2108 msgid ""
2109 "That explains why you should never mount a filesystem from an untrusted "
2110 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2111 "inside a qemu virtual machine, usually running as a non-root user.  The "
2112 "attacker would need to write a filesystem which first exploited the kernel, "
2113 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2114 "the libguestfs protocol, and finally to be as serious as the host kernel "
2115 "exploit it would need to escalate its privileges to root.  This multi-step "
2116 "escalation, performed by a static piece of data, is thought to be extremely "
2117 "hard to do, although we never say 'never' about security issues."
2118 msgstr ""
2119
2120 # type: textblock
2121 #: ../src/guestfs.pod:1077
2122 msgid ""
2123 "In any case callers can reduce the attack surface by forcing the filesystem "
2124 "type when mounting (use L</guestfs_mount_vfs>)."
2125 msgstr ""
2126
2127 # type: =head2
2128 #: ../src/guestfs.pod:1080
2129 msgid "PROTOCOL SECURITY"
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1082
2134 msgid ""
2135 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2136 "defined upper message size.  However a program that uses libguestfs must "
2137 "also take care - for example you can write a program that downloads a binary "
2138 "from a disk image and executes it locally, and no amount of protocol "
2139 "security will save you from the consequences."
2140 msgstr ""
2141
2142 # type: =head2
2143 #: ../src/guestfs.pod:1088
2144 msgid "INSPECTION SECURITY"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1090
2149 msgid ""
2150 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2151 "directly from the guest, and these could contain any 8 bit data.  Callers "
2152 "should be careful to escape these before printing them to a structured file "
2153 "(for example, use HTML escaping if creating a web page)."
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1096
2158 msgid ""
2159 "Guest configuration may be altered in unusual ways by the administrator of "
2160 "the virtual machine, and may not reflect reality (particularly for untrusted "
2161 "or actively malicious guests).  For example we parse the hostname from "
2162 "configuration files like C</etc/sysconfig/network> that we find in the "
2163 "guest, but the guest administrator can easily manipulate these files to "
2164 "provide the wrong hostname."
2165 msgstr ""
2166
2167 # type: textblock
2168 #: ../src/guestfs.pod:1104
2169 msgid ""
2170 "The inspection API parses guest configuration using two external libraries: "
2171 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2172 "designed to be robust in the face of malicious data, although denial of "
2173 "service attacks are still possible, for example with oversized configuration "
2174 "files."
2175 msgstr ""
2176
2177 # type: =head2
2178 #: ../src/guestfs.pod:1110
2179 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2180 msgstr ""
2181
2182 # type: textblock
2183 #: ../src/guestfs.pod:1112
2184 msgid ""
2185 "Be very cautious about running commands from the guest.  By running a "
2186 "command in the guest, you are giving CPU time to a binary that you do not "
2187 "control, under the same user account as the library, albeit wrapped in qemu "
2188 "virtualization.  More information and alternatives can be found in the "
2189 "section L</RUNNING COMMANDS>."
2190 msgstr ""
2191
2192 # type: =head2
2193 #: ../src/guestfs.pod:1118
2194 msgid "CVE-2010-3851"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1120
2199 msgid "https://bugzilla.redhat.com/642934"
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1122
2204 msgid ""
2205 "This security bug concerns the automatic disk format detection that qemu "
2206 "does on disk images."
2207 msgstr ""
2208
2209 # type: textblock
2210 #: ../src/guestfs.pod:1125
2211 msgid ""
2212 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2213 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2214 "for one of the known headers, and if none is found then assuming the disk "
2215 "image must be raw."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1130
2220 msgid ""
2221 "This allows a guest which has been given a raw disk image to write some "
2222 "other header.  At next boot (or when the disk image is accessed by "
2223 "libguestfs) qemu would do autodetection and think the disk image format was, "
2224 "say, qcow2 based on the header written by the guest."
2225 msgstr ""
2226
2227 # type: textblock
2228 #: ../src/guestfs.pod:1135
2229 msgid ""
2230 "This in itself would not be a problem, but qcow2 offers many features, one "
2231 "of which is to allow a disk image to refer to another image (called the "
2232 "\"backing disk\").  It does this by placing the path to the backing disk "
2233 "into the qcow2 header.  This path is not validated and could point to any "
2234 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2235 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2236 "control of the attacker."
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1143
2241 msgid ""
2242 "In libguestfs this is rather hard to exploit except under two circumstances:"
2243 msgstr ""
2244
2245 # type: textblock
2246 #: ../src/guestfs.pod:1150
2247 msgid "You have enabled the network or have opened the disk in write mode."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1154
2252 msgid ""
2253 "You are also running untrusted code from the guest (see L</RUNNING "
2254 "COMMANDS>)."
2255 msgstr ""
2256
2257 # type: textblock
2258 #: ../src/guestfs.pod:1159
2259 msgid ""
2260 "The way to avoid this is to specify the expected disk format when adding "
2261 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2262 "should always do this if the disk is raw format, and it's a good idea for "
2263 "other cases too."
2264 msgstr ""
2265
2266 # type: textblock
2267 #: ../src/guestfs.pod:1164
2268 msgid ""
2269 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2270 "format is fetched from libvirt and passed through."
2271 msgstr ""
2272
2273 # type: textblock
2274 #: ../src/guestfs.pod:1167
2275 msgid ""
2276 "For libguestfs tools, use the I<--format> command line parameter as "
2277 "appropriate."
2278 msgstr ""
2279
2280 # type: =head1
2281 #: ../src/guestfs.pod:1170
2282 msgid "CONNECTION MANAGEMENT"
2283 msgstr ""
2284
2285 # type: =head2
2286 #: ../src/guestfs.pod:1172
2287 msgid "guestfs_h *"
2288 msgstr ""
2289
2290 # type: textblock
2291 #: ../src/guestfs.pod:1174
2292 msgid ""
2293 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2294 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2295 "handle and release all resources used."
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1178
2300 msgid ""
2301 "For information on using multiple handles and threads, see the section L</"
2302 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2303 msgstr ""
2304
2305 # type: =head2
2306 #: ../src/guestfs.pod:1181
2307 msgid "guestfs_create"
2308 msgstr ""
2309
2310 # type: verbatim
2311 #: ../src/guestfs.pod:1183
2312 #, no-wrap
2313 msgid ""
2314 " guestfs_h *guestfs_create (void);\n"
2315 "\n"
2316 msgstr ""
2317
2318 # type: textblock
2319 #: ../src/guestfs.pod:1185
2320 msgid "Create a connection handle."
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1187
2325 msgid ""
2326 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2327 "on the handle at least once."
2328 msgstr ""
2329
2330 # type: textblock
2331 #: ../src/guestfs.pod:1190
2332 msgid ""
2333 "This function returns a non-NULL pointer to a handle on success or NULL on "
2334 "error."
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1193
2339 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1195
2344 msgid ""
2345 "You may also want to configure error handling for the handle.  See L</ERROR "
2346 "HANDLING> section below."
2347 msgstr ""
2348
2349 # type: =head2
2350 #: ../src/guestfs.pod:1198
2351 msgid "guestfs_close"
2352 msgstr ""
2353
2354 # type: verbatim
2355 #: ../src/guestfs.pod:1200
2356 #, no-wrap
2357 msgid ""
2358 " void guestfs_close (guestfs_h *g);\n"
2359 "\n"
2360 msgstr ""
2361
2362 # type: textblock
2363 #: ../src/guestfs.pod:1202
2364 msgid "This closes the connection handle and frees up all resources used."
2365 msgstr ""
2366
2367 # type: =head1
2368 #: ../src/guestfs.pod:1204
2369 msgid "ERROR HANDLING"
2370 msgstr ""
2371
2372 # type: textblock
2373 #: ../src/guestfs.pod:1206
2374 msgid ""
2375 "API functions can return errors.  For example, almost all functions that "
2376 "return C<int> will return C<-1> to indicate an error."
2377 msgstr ""
2378
2379 # type: textblock
2380 #: ../src/guestfs.pod:1209
2381 msgid ""
2382 "Additional information is available for errors: an error message string and "
2383 "optionally an error number (errno) if the thing that failed was a system "
2384 "call."
2385 msgstr ""
2386
2387 # type: textblock
2388 #: ../src/guestfs.pod:1213
2389 msgid ""
2390 "You can get at the additional information about the last error on the handle "
2391 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2392 "up an error handler with L</guestfs_set_error_handler>."
2393 msgstr ""
2394
2395 # type: textblock
2396 #: ../src/guestfs.pod:1218
2397 msgid ""
2398 "When the handle is created, a default error handler is installed which "
2399 "prints the error message string to C<stderr>.  For small short-running "
2400 "command line programs it is sufficient to do:"
2401 msgstr ""
2402
2403 # type: verbatim
2404 #: ../src/guestfs.pod:1222
2405 #, no-wrap
2406 msgid ""
2407 " if (guestfs_launch (g) == -1)\n"
2408 "   exit (EXIT_FAILURE);\n"
2409 "\n"
2410 msgstr ""
2411
2412 # type: textblock
2413 #: ../src/guestfs.pod:1225
2414 msgid ""
2415 "since the default error handler will ensure that an error message has been "
2416 "printed to C<stderr> before the program exits."
2417 msgstr ""
2418
2419 # type: textblock
2420 #: ../src/guestfs.pod:1228
2421 msgid ""
2422 "For other programs the caller will almost certainly want to install an "
2423 "alternate error handler or do error handling in-line like this:"
2424 msgstr ""
2425
2426 # type: verbatim
2427 #: ../src/guestfs.pod:1231
2428 #, no-wrap
2429 msgid ""
2430 " g = guestfs_create ();\n"
2431 " \n"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1233
2436 #, no-wrap
2437 msgid ""
2438 " /* This disables the default behaviour of printing errors\n"
2439 "    on stderr. */\n"
2440 " guestfs_set_error_handler (g, NULL, NULL);\n"
2441 " \n"
2442 msgstr ""
2443
2444 # type: verbatim
2445 #: ../src/guestfs.pod:1237
2446 #, no-wrap
2447 msgid ""
2448 " if (guestfs_launch (g) == -1) {\n"
2449 "   /* Examine the error message and print it etc. */\n"
2450 "   char *msg = guestfs_last_error (g);\n"
2451 "   int errnum = guestfs_last_errno (g);\n"
2452 "   fprintf (stderr, \"%s\\n\", msg);\n"
2453 "   /* ... */\n"
2454 "  }\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1245
2460 msgid ""
2461 "Out of memory errors are handled differently.  The default action is to call "
2462 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2463 "guestfs_set_out_of_memory_handler>."
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1249
2468 msgid ""
2469 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2470 "because there is no handle if this happens there is no way to get additional "
2471 "error information.  However L</guestfs_create> is supposed to be a "
2472 "lightweight operation which can only fail because of insufficient memory (it "
2473 "returns NULL in this case)."
2474 msgstr ""
2475
2476 # type: =head2
2477 #: ../src/guestfs.pod:1255
2478 msgid "guestfs_last_error"
2479 msgstr ""
2480
2481 # type: verbatim
2482 #: ../src/guestfs.pod:1257
2483 #, no-wrap
2484 msgid ""
2485 " const char *guestfs_last_error (guestfs_h *g);\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1259
2491 msgid ""
2492 "This returns the last error message that happened on C<g>.  If there has not "
2493 "been an error since the handle was created, then this returns C<NULL>."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1263
2498 msgid ""
2499 "The lifetime of the returned string is until the next error occurs, or L</"
2500 "guestfs_close> is called."
2501 msgstr ""
2502
2503 # type: =head2
2504 #: ../src/guestfs.pod:1266
2505 msgid "guestfs_last_errno"
2506 msgstr ""
2507
2508 # type: verbatim
2509 #: ../src/guestfs.pod:1268
2510 #, no-wrap
2511 msgid ""
2512 " int guestfs_last_errno (guestfs_h *g);\n"
2513 "\n"
2514 msgstr ""
2515
2516 # type: textblock
2517 #: ../src/guestfs.pod:1270
2518 msgid "This returns the last error number (errno) that happened on C<g>."
2519 msgstr ""
2520
2521 # type: textblock
2522 #: ../src/guestfs.pod:1272
2523 msgid "If successful, an errno integer not equal to zero is returned."
2524 msgstr ""
2525
2526 # type: textblock
2527 #: ../src/guestfs.pod:1274
2528 msgid ""
2529 "If no error, this returns 0.  This call can return 0 in three situations:"
2530 msgstr ""
2531
2532 # type: textblock
2533 #: ../src/guestfs.pod:1281
2534 msgid "There has not been any error on the handle."
2535 msgstr ""
2536
2537 # type: textblock
2538 #: ../src/guestfs.pod:1285
2539 msgid ""
2540 "There has been an error but the errno was meaningless.  This corresponds to "
2541 "the case where the error did not come from a failed system call, but for "
2542 "some other reason."
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1291
2547 msgid ""
2548 "There was an error from a failed system call, but for some reason the errno "
2549 "was not captured and returned.  This usually indicates a bug in libguestfs."
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1297
2554 msgid ""
2555 "Libguestfs tries to convert the errno from inside the applicance into a "
2556 "corresponding errno for the caller (not entirely trivial: the appliance "
2557 "might be running a completely different operating system from the library "
2558 "and error numbers are not standardized across Un*xen).  If this could not be "
2559 "done, then the error is translated to C<EINVAL>.  In practice this should "
2560 "only happen in very rare circumstances."
2561 msgstr ""
2562
2563 # type: =head2
2564 #: ../src/guestfs.pod:1305
2565 msgid "guestfs_set_error_handler"
2566 msgstr ""
2567
2568 # type: verbatim
2569 #: ../src/guestfs.pod:1307
2570 #, no-wrap
2571 msgid ""
2572 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2573 "                                           void *opaque,\n"
2574 "                                           const char *msg);\n"
2575 " void guestfs_set_error_handler (guestfs_h *g,\n"
2576 "                                 guestfs_error_handler_cb cb,\n"
2577 "                                 void *opaque);\n"
2578 "\n"
2579 msgstr ""
2580
2581 # type: textblock
2582 #: ../src/guestfs.pod:1314
2583 msgid ""
2584 "The callback C<cb> will be called if there is an error.  The parameters "
2585 "passed to the callback are an opaque data pointer and the error message "
2586 "string."
2587 msgstr ""
2588
2589 # type: textblock
2590 #: ../src/guestfs.pod:1318
2591 msgid ""
2592 "C<errno> is not passed to the callback.  To get that the callback must call "
2593 "L</guestfs_last_errno>."
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1321
2598 msgid ""
2599 "Note that the message string C<msg> is freed as soon as the callback "
2600 "function returns, so if you want to stash it somewhere you must make your "
2601 "own copy."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1325
2606 msgid "The default handler prints messages on C<stderr>."
2607 msgstr ""
2608
2609 # type: textblock
2610 #: ../src/guestfs.pod:1327
2611 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2612 msgstr ""
2613
2614 # type: =head2
2615 #: ../src/guestfs.pod:1329
2616 msgid "guestfs_get_error_handler"
2617 msgstr ""
2618
2619 # type: verbatim
2620 #: ../src/guestfs.pod:1331
2621 #, no-wrap
2622 msgid ""
2623 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2624 "                                                     void **opaque_rtn);\n"
2625 "\n"
2626 msgstr ""
2627
2628 # type: textblock
2629 #: ../src/guestfs.pod:1334
2630 msgid "Returns the current error handler callback."
2631 msgstr ""
2632
2633 # type: =head2
2634 #: ../src/guestfs.pod:1336
2635 msgid "guestfs_set_out_of_memory_handler"
2636 msgstr ""
2637
2638 # type: verbatim
2639 #: ../src/guestfs.pod:1338
2640 #, no-wrap
2641 msgid ""
2642 " typedef void (*guestfs_abort_cb) (void);\n"
2643 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2644 "                                        guestfs_abort_cb);\n"
2645 "\n"
2646 msgstr ""
2647
2648 # type: textblock
2649 #: ../src/guestfs.pod:1342
2650 msgid ""
2651 "The callback C<cb> will be called if there is an out of memory situation.  "
2652 "I<Note this callback must not return>."
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1345
2657 msgid "The default is to call L<abort(3)>."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1347
2662 msgid ""
2663 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2664 msgstr ""
2665
2666 # type: =head2
2667 #: ../src/guestfs.pod:1350
2668 msgid "guestfs_get_out_of_memory_handler"
2669 msgstr ""
2670
2671 # type: verbatim
2672 #: ../src/guestfs.pod:1352
2673 #, no-wrap
2674 msgid ""
2675 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1354
2681 msgid "This returns the current out of memory handler."
2682 msgstr ""
2683
2684 # type: =head1
2685 #: ../src/guestfs.pod:1356
2686 msgid "API CALLS"
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1358 ../fish/guestfish.pod:908
2691 msgid "@ACTIONS@"
2692 msgstr ""
2693
2694 # type: =head1
2695 #: ../src/guestfs.pod:1360
2696 msgid "STRUCTURES"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1362
2701 msgid "@STRUCTS@"
2702 msgstr ""
2703
2704 # type: =head1
2705 #: ../src/guestfs.pod:1364
2706 msgid "AVAILABILITY"
2707 msgstr ""
2708
2709 # type: =head2
2710 #: ../src/guestfs.pod:1366
2711 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2712 msgstr ""
2713
2714 # type: textblock
2715 #: ../src/guestfs.pod:1368
2716 msgid ""
2717 "Using L</guestfs_available> you can test availability of the following "
2718 "groups of functions.  This test queries the appliance to see if the "
2719 "appliance you are currently using supports the functionality."
2720 msgstr ""
2721
2722 # type: textblock
2723 #: ../src/guestfs.pod:1373
2724 msgid "@AVAILABILITY@"
2725 msgstr ""
2726
2727 # type: =head2
2728 #: ../src/guestfs.pod:1375
2729 msgid "GUESTFISH supported COMMAND"
2730 msgstr ""
2731
2732 # type: textblock
2733 #: ../src/guestfs.pod:1377
2734 msgid ""
2735 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2736 "prints out the available groups and whether they are supported by this build "
2737 "of libguestfs.  Note however that you have to do C<run> first."
2738 msgstr ""
2739
2740 # type: =head2
2741 #: ../src/guestfs.pod:1382
2742 msgid "SINGLE CALLS AT COMPILE TIME"
2743 msgstr ""
2744
2745 # type: textblock
2746 #: ../src/guestfs.pod:1384
2747 msgid ""
2748 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2749 "function, such as:"
2750 msgstr ""
2751
2752 # type: verbatim
2753 #: ../src/guestfs.pod:1387
2754 #, no-wrap
2755 msgid ""
2756 " #define LIBGUESTFS_HAVE_DD 1\n"
2757 "\n"
2758 msgstr ""
2759
2760 # type: textblock
2761 #: ../src/guestfs.pod:1389
2762 msgid "if L</guestfs_dd> is available."
2763 msgstr ""
2764
2765 # type: textblock
2766 #: ../src/guestfs.pod:1391
2767 msgid ""
2768 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2769 "function is available at compile time, we recommended using build tools such "
2770 "as autoconf or cmake.  For example in autotools you could use:"
2771 msgstr ""
2772
2773 # type: verbatim
2774 #: ../src/guestfs.pod:1396
2775 #, no-wrap
2776 msgid ""
2777 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2778 " AC_CHECK_FUNCS([guestfs_dd])\n"
2779 "\n"
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1399
2784 msgid ""
2785 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2786 "in your program."
2787 msgstr ""
2788
2789 # type: =head2
2790 #: ../src/guestfs.pod:1402
2791 msgid "SINGLE CALLS AT RUN TIME"
2792 msgstr ""
2793
2794 # type: textblock
2795 #: ../src/guestfs.pod:1404
2796 msgid ""
2797 "Testing at compile time doesn't guarantee that a function really exists in "
2798 "the library.  The reason is that you might be dynamically linked against a "
2799 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2800 "This situation unfortunately results in a segmentation fault, which is a "
2801 "shortcoming of the C dynamic linking system itself."
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1411
2806 msgid ""
2807 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2808 "in this example program (note that you still need the compile time check as "
2809 "well):"
2810 msgstr ""
2811
2812 # type: verbatim
2813 #: ../src/guestfs.pod:1415
2814 #, no-wrap
2815 msgid ""
2816 " #include <stdio.h>\n"
2817 " #include <stdlib.h>\n"
2818 " #include <unistd.h>\n"
2819 " #include <dlfcn.h>\n"
2820 " #include <guestfs.h>\n"
2821 " \n"
2822 msgstr ""
2823
2824 # type: verbatim
2825 #: ../src/guestfs.pod:1421
2826 #, no-wrap
2827 msgid ""
2828 " main ()\n"
2829 " {\n"
2830 " #ifdef LIBGUESTFS_HAVE_DD\n"
2831 "   void *dl;\n"
2832 "   int has_function;\n"
2833 " \n"
2834 msgstr ""
2835
2836 # type: verbatim
2837 #: ../src/guestfs.pod:1427
2838 #, no-wrap
2839 msgid ""
2840 "   /* Test if the function guestfs_dd is really available. */\n"
2841 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2842 "   if (!dl) {\n"
2843 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2844 "     exit (EXIT_FAILURE);\n"
2845 "   }\n"
2846 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2847 "   dlclose (dl);\n"
2848 " \n"
2849 msgstr ""
2850
2851 # type: verbatim
2852 #: ../src/guestfs.pod:1436
2853 #, no-wrap
2854 msgid ""
2855 "   if (!has_function)\n"
2856 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2857 "   else {\n"
2858 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2859 "     /* Now it's safe to call\n"
2860 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2861 "     */\n"
2862 "   }\n"
2863 " #else\n"
2864 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2865 " #endif\n"
2866 "  }\n"
2867 "\n"
2868 msgstr ""
2869
2870 # type: textblock
2871 #: ../src/guestfs.pod:1449
2872 msgid ""
2873 "You may think the above is an awful lot of hassle, and it is.  There are "
2874 "other ways outside of the C linking system to ensure that this kind of "
2875 "incompatibility never arises, such as using package versioning:"
2876 msgstr ""
2877
2878 # type: verbatim
2879 #: ../src/guestfs.pod:1454
2880 #, no-wrap
2881 msgid ""
2882 " Requires: libguestfs >= 1.0.80\n"
2883 "\n"
2884 msgstr ""
2885
2886 # type: =head1
2887 #: ../src/guestfs.pod:1456
2888 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2889 msgstr ""
2890
2891 # type: textblock
2892 #: ../src/guestfs.pod:1458
2893 msgid ""
2894 "A recent feature of the API is the introduction of calls which take optional "
2895 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2896 "takes variable arguments (ie. C<...>), as in this example:"
2897 msgstr ""
2898
2899 # type: verbatim
2900 #: ../src/guestfs.pod:1463
2901 #, no-wrap
2902 msgid ""
2903 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2904 "\n"
2905 msgstr ""
2906
2907 # type: textblock
2908 #: ../src/guestfs.pod:1465
2909 msgid ""
2910 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2911 "call with no optional arguments specified:"
2912 msgstr ""
2913
2914 # type: verbatim
2915 #: ../src/guestfs.pod:1468
2916 #, no-wrap
2917 msgid ""
2918 " guestfs_add_drive_opts (g, filename, -1);\n"
2919 "\n"
2920 msgstr ""
2921
2922 # type: textblock
2923 #: ../src/guestfs.pod:1470
2924 msgid "With a single optional argument:"
2925 msgstr ""
2926
2927 # type: verbatim
2928 #: ../src/guestfs.pod:1472
2929 #, no-wrap
2930 msgid ""
2931 " guestfs_add_drive_opts (g, filename,\n"
2932 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2933 "                         -1);\n"
2934 "\n"
2935 msgstr ""
2936
2937 # type: textblock
2938 #: ../src/guestfs.pod:1476
2939 msgid "With two:"
2940 msgstr ""
2941
2942 # type: verbatim
2943 #: ../src/guestfs.pod:1478
2944 #, no-wrap
2945 msgid ""
2946 " guestfs_add_drive_opts (g, filename,\n"
2947 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2948 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2949 "                         -1);\n"
2950 "\n"
2951 msgstr ""
2952
2953 # type: textblock
2954 #: ../src/guestfs.pod:1483
2955 msgid ""
2956 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2957 "happen!"
2958 msgstr ""
2959
2960 # type: =head2
2961 #: ../src/guestfs.pod:1486
2962 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2963 msgstr ""
2964
2965 # type: textblock
2966 #: ../src/guestfs.pod:1488
2967 msgid ""
2968 "The second variant has the same name with the suffix C<_va>, which works the "
2969 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2970 "example function, this is declared:"
2971 msgstr ""
2972
2973 # type: verbatim
2974 #: ../src/guestfs.pod:1492
2975 #, no-wrap
2976 msgid ""
2977 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2978 "                                va_list args);\n"
2979 "\n"
2980 msgstr ""
2981
2982 # type: =head2
2983 #: ../src/guestfs.pod:1495
2984 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2985 msgstr ""
2986
2987 # type: textblock
2988 #: ../src/guestfs.pod:1497
2989 msgid ""
2990 "The third variant is useful where you need to construct these calls.  You "
2991 "pass in a structure where you fill in the optional fields.  The structure "
2992 "has a bitmask as the first element which you must set to indicate which "
2993 "fields you have filled in.  For our example function the structure and call "
2994 "are declared:"
2995 msgstr ""
2996
2997 # type: verbatim
2998 #: ../src/guestfs.pod:1503
2999 #, no-wrap
3000 msgid ""
3001 " struct guestfs_add_drive_opts_argv {\n"
3002 "   uint64_t bitmask;\n"
3003 "   int readonly;\n"
3004 "   const char *format;\n"
3005 "   /* ... */\n"
3006 " };\n"
3007 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3008 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3009 "\n"
3010 msgstr ""
3011
3012 # type: textblock
3013 #: ../src/guestfs.pod:1512
3014 msgid "You could call it like this:"
3015 msgstr ""
3016
3017 # type: verbatim
3018 #: ../src/guestfs.pod:1514
3019 #, no-wrap
3020 msgid ""
3021 " struct guestfs_add_drive_opts_argv optargs = {\n"
3022 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3023 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3024 "   .readonly = 1,\n"
3025 "   .format = \"qcow2\"\n"
3026 " };\n"
3027 " \n"
3028 msgstr ""
3029
3030 # type: verbatim
3031 #: ../src/guestfs.pod:1521
3032 #, no-wrap
3033 msgid ""
3034 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3035 "\n"
3036 msgstr ""
3037
3038 # type: textblock
3039 #: ../src/guestfs.pod:1523 ../src/guestfs-actions.pod:11
3040 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3041 #: ../fish/guestfish-actions.pod:1255
3042 msgid "Notes:"
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1529
3047 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3048 msgstr ""
3049
3050 # type: textblock
3051 #: ../src/guestfs.pod:1534
3052 msgid "You do not need to fill in all fields of the structure."
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1538
3057 msgid ""
3058 "There must be a one-to-one correspondence between fields of the structure "
3059 "that are filled in, and bits set in the bitmask."
3060 msgstr ""
3061
3062 # type: =head2
3063 #: ../src/guestfs.pod:1543
3064 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3065 msgstr ""
3066
3067 # type: textblock
3068 #: ../src/guestfs.pod:1545
3069 msgid ""
3070 "In other languages, optional arguments are expressed in the way that is "
3071 "natural for that language.  We refer you to the language-specific "
3072 "documentation for more details on that."
3073 msgstr ""
3074
3075 # type: textblock
3076 #: ../src/guestfs.pod:1549
3077 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3078 msgstr ""
3079
3080 # type: =head2
3081 #: ../src/guestfs.pod:1551
3082 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3083 msgstr ""
3084
3085 # type: textblock
3086 #: ../src/guestfs.pod:1553
3087 msgid ""
3088 "The child process generates events in some situations.  Current events "
3089 "include: receiving a log message, the child process exits."
3090 msgstr ""
3091
3092 # type: textblock
3093 #: ../src/guestfs.pod:1556
3094 msgid ""
3095 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3096 "types of events."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1559
3101 msgid ""
3102 "Only I<one callback of each type> can be registered for each handle.  "
3103 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3104 "that type.  Cancel all callbacks of this type by calling this function with "
3105 "C<cb> set to C<NULL>."
3106 msgstr ""
3107
3108 # type: =head2
3109 #: ../src/guestfs.pod:1564
3110 msgid "guestfs_set_log_message_callback"
3111 msgstr ""
3112
3113 # type: verbatim
3114 #: ../src/guestfs.pod:1566
3115 #, no-wrap
3116 msgid ""
3117 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3118 "                                         char *buf, int len);\n"
3119 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3120 "                                        guestfs_log_message_cb cb,\n"
3121 "                                        void *opaque);\n"
3122 "\n"
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1572
3127 msgid ""
3128 "The callback function C<cb> will be called whenever qemu or the guest writes "
3129 "anything to the console."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1575
3134 msgid "Use this function to capture kernel messages and similar."
3135 msgstr ""
3136
3137 # type: textblock
3138 #: ../src/guestfs.pod:1577
3139 msgid ""
3140 "Normally there is no log message handler, and log messages are just "
3141 "discarded."
3142 msgstr ""
3143
3144 # type: =head2
3145 #: ../src/guestfs.pod:1580
3146 msgid "guestfs_set_subprocess_quit_callback"
3147 msgstr ""
3148
3149 # type: verbatim
3150 #: ../src/guestfs.pod:1582
3151 #, no-wrap
3152 msgid ""
3153 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3154 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3155 "                                            guestfs_subprocess_quit_cb cb,\n"
3156 "                                            void *opaque);\n"
3157 "\n"
3158 msgstr ""
3159
3160 # type: textblock
3161 #: ../src/guestfs.pod:1587
3162 msgid ""
3163 "The callback function C<cb> will be called when the child process quits, "
3164 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3165 "corresponds to a transition from any state to the CONFIG state)."
3166 msgstr ""
3167
3168 # type: =head2
3169 #: ../src/guestfs.pod:1592
3170 msgid "guestfs_set_launch_done_callback"
3171 msgstr ""
3172
3173 # type: verbatim
3174 #: ../src/guestfs.pod:1594
3175 #, no-wrap
3176 msgid ""
3177 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3178 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3179 "                                        guestfs_launch_done_cb cb,\n"
3180 "                                        void *opaque);\n"
3181 "\n"
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1599
3186 msgid ""
3187 "The callback function C<cb> will be called when the child process becomes "
3188 "ready first time after it has been launched.  (This corresponds to a "
3189 "transition from LAUNCHING to the READY state)."
3190 msgstr ""
3191
3192 # type: =head2
3193 #: ../src/guestfs.pod:1603
3194 msgid "guestfs_set_close_callback"
3195 msgstr ""
3196
3197 # type: verbatim
3198 #: ../src/guestfs.pod:1605
3199 #, no-wrap
3200 msgid ""
3201 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3202 " void guestfs_set_close_callback (guestfs_h *g,\n"
3203 "                                  guestfs_close_cb cb,\n"
3204 "                                  void *opaque);\n"
3205 "\n"
3206 msgstr ""
3207
3208 # type: textblock
3209 #: ../src/guestfs.pod:1610
3210 msgid ""
3211 "The callback function C<cb> will be called while the handle is being closed "
3212 "(synchronously from L</guestfs_close>)."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1613
3217 msgid ""
3218 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3219 "handles that are open when the program exits.  This means that this callback "
3220 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3221 "problems in higher-level languages (eg. if your HLL interpreter has already "
3222 "been cleaned up by the time this is called, and if your callback then jumps "
3223 "into some HLL function)."
3224 msgstr ""
3225
3226 # type: =head2
3227 #: ../src/guestfs.pod:1621
3228 msgid "guestfs_set_progress_callback"
3229 msgstr ""
3230
3231 # type: verbatim
3232 #: ../src/guestfs.pod:1623
3233 #, no-wrap
3234 msgid ""
3235 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3236 "                                      int proc_nr, int serial,\n"
3237 "                                      uint64_t position, uint64_t total);\n"
3238 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3239 "                                     guestfs_progress_cb cb,\n"
3240 "                                     void *opaque);\n"
3241 "\n"
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1630
3246 msgid ""
3247 "Some long-running operations can generate progress messages.  If this "
3248 "callback is registered, then it will be called each time a progress message "
3249 "is generated (usually two seconds after the operation started, and three "
3250 "times per second thereafter until it completes, although the frequency may "
3251 "change in future versions)."
3252 msgstr ""
3253
3254 # type: textblock
3255 #: ../src/guestfs.pod:1636
3256 msgid ""
3257 "The callback receives two numbers: C<position> and C<total>.  The units of "
3258 "C<total> are not defined, although for some operations C<total> may relate "
3259 "in some way to the amount of data to be transferred (eg. in bytes or "
3260 "megabytes), and C<position> may be the portion which has been transferred."
3261 msgstr ""
3262
3263 # type: textblock
3264 #: ../src/guestfs.pod:1642
3265 msgid "The only defined and stable parts of the API are:"
3266 msgstr ""
3267
3268 # type: textblock
3269 #: ../src/guestfs.pod:1648
3270 msgid ""
3271 "The callback can display to the user some type of progress bar or indicator "
3272 "which shows the ratio of C<position>:C<total>."
3273 msgstr ""
3274
3275 # type: textblock
3276 #: ../src/guestfs.pod:1653
3277 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3278 msgstr ""
3279
3280 # type: textblock
3281 #: ../src/guestfs.pod:1657
3282 msgid ""
3283 "If any progress notification is sent during a call, then a final progress "
3284 "notification is always sent when C<position> = C<total>."
3285 msgstr ""
3286
3287 # type: textblock
3288 #: ../src/guestfs.pod:1660
3289 msgid ""
3290 "This is to simplify caller code, so callers can easily set the progress "
3291 "indicator to \"100%\" at the end of the operation, without requiring special "
3292 "code to detect this case."
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1666
3297 msgid ""
3298 "The callback also receives the procedure number and serial number of the "
3299 "call.  These are only useful for debugging protocol issues, and the callback "
3300 "can normally ignore them.  The callback may want to print these numbers in "
3301 "error messages or debugging messages."
3302 msgstr ""
3303
3304 # type: =head1
3305 #: ../src/guestfs.pod:1671
3306 msgid "PRIVATE DATA AREA"
3307 msgstr ""
3308
3309 # type: textblock
3310 #: ../src/guestfs.pod:1673
3311 msgid ""
3312 "You can attach named pieces of private data to the libguestfs handle, and "
3313 "fetch them by name for the lifetime of the handle.  This is called the "
3314 "private data area and is only available from the C API."
3315 msgstr ""
3316
3317 # type: textblock
3318 #: ../src/guestfs.pod:1677
3319 msgid "To attach a named piece of data, use the following call:"
3320 msgstr ""
3321
3322 # type: verbatim
3323 #: ../src/guestfs.pod:1679
3324 #, no-wrap
3325 msgid ""
3326 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3327 "\n"
3328 msgstr ""
3329
3330 # type: textblock
3331 #: ../src/guestfs.pod:1681
3332 msgid ""
3333 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3334 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3335 "overwritten."
3336 msgstr ""
3337
3338 # type: textblock
3339 #: ../src/guestfs.pod:1685
3340 msgid ""
3341 "You can use any C<key> you want, but names beginning with an underscore "
3342 "character are reserved for internal libguestfs purposes (for implementing "
3343 "language bindings).  It is recommended to prefix the name with some unique "
3344 "string to avoid collisions with other users."
3345 msgstr ""
3346
3347 # type: textblock
3348 #: ../src/guestfs.pod:1690
3349 msgid "To retrieve the pointer, use:"
3350 msgstr ""
3351
3352 # type: verbatim
3353 #: ../src/guestfs.pod:1692
3354 #, no-wrap
3355 msgid ""
3356 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3357 "\n"
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1694
3362 msgid ""
3363 "This function returns C<NULL> if either no data is found associated with "
3364 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3365 "C<NULL>."
3366 msgstr ""
3367
3368 # type: textblock
3369 #: ../src/guestfs.pod:1698
3370 msgid ""
3371 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3372 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3373 "all.  In particular, libguestfs does I<not> try to free the data when the "
3374 "handle is closed.  If the data must be freed, then the caller must either "
3375 "free it before calling L</guestfs_close> or must set up a close callback to "
3376 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3377 "can be registered for a handle)."
3378 msgstr ""
3379
3380 # type: textblock
3381 #: ../src/guestfs.pod:1706
3382 msgid ""
3383 "The private data area is implemented using a hash table, and should be "
3384 "reasonably efficient for moderate numbers of keys."
3385 msgstr ""
3386
3387 # type: =end
3388 #: ../src/guestfs.pod:1709 ../src/guestfs.pod:1714
3389 msgid "html"
3390 msgstr ""
3391
3392 # type: textblock
3393 #: ../src/guestfs.pod:1711
3394 msgid ""
3395 "<!-- old anchor for the next section --> <a name="
3396 "\"state_machine_and_low_level_event_api\"/>"
3397 msgstr ""
3398
3399 # type: =head1
3400 #: ../src/guestfs.pod:1716
3401 msgid "ARCHITECTURE"
3402 msgstr ""
3403
3404 # type: textblock
3405 #: ../src/guestfs.pod:1718
3406 msgid ""
3407 "Internally, libguestfs is implemented by running an appliance (a special "
3408 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3409 "process of the main program."
3410 msgstr ""
3411
3412 # type: verbatim
3413 #: ../src/guestfs.pod:1722
3414 #, no-wrap
3415 msgid ""
3416 "  ___________________\n"
3417 " /                   \\\n"
3418 " | main program      |\n"
3419 " |                   |\n"
3420 " |                   |           child process / appliance\n"
3421 " |                   |           __________________________\n"
3422 " |                   |          / qemu                     \\\n"
3423 " +-------------------+   RPC    |      +-----------------+ |\n"
3424 " | libguestfs     <--------------------> guestfsd        | |\n"
3425 " |                   |          |      +-----------------+ |\n"
3426 " \\___________________/          |      | Linux kernel    | |\n"
3427 "                                |      +--^--------------+ |\n"
3428 "                                \\_________|________________/\n"
3429 "                                          |\n"
3430 "                                   _______v______\n"
3431 "                                  /              \\\n"
3432 "                                  | Device or    |\n"
3433 "                                  | disk image   |\n"
3434 "                                  \\______________/\n"
3435 "\n"
3436 msgstr ""
3437
3438 # type: textblock
3439 #: ../src/guestfs.pod:1742
3440 msgid ""
3441 "The library, linked to the main program, creates the child process and hence "
3442 "the appliance in the L</guestfs_launch> function."
3443 msgstr ""
3444
3445 # type: textblock
3446 #: ../src/guestfs.pod:1745
3447 msgid ""
3448 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3449 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3450 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3451 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3452 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3453 "attached to the qemu process which translates device access by the "
3454 "appliance's Linux kernel into accesses to the image."
3455 msgstr ""
3456
3457 # type: textblock
3458 #: ../src/guestfs.pod:1754
3459 msgid ""
3460 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3461 "Although the disk image you are attached to might also be used by some "
3462 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3463 "care if both libguestfs's qemu process and your virtual machine are trying "
3464 "to update the disk image at the same time, since these usually results in "
3465 "massive disk corruption)."
3466 msgstr ""
3467
3468 # type: =head1
3469 #: ../src/guestfs.pod:1761
3470 msgid "STATE MACHINE"
3471 msgstr ""
3472
3473 # type: textblock
3474 #: ../src/guestfs.pod:1763
3475 msgid "libguestfs uses a state machine to model the child process:"
3476 msgstr ""
3477
3478 # type: verbatim
3479 #: ../src/guestfs.pod:1765
3480 #, no-wrap
3481 msgid ""
3482 "                         |\n"
3483 "                    guestfs_create\n"
3484 "                         |\n"
3485 "                         |\n"
3486 "                     ____V_____\n"
3487 "                    /          \\\n"
3488 "                    |  CONFIG  |\n"
3489 "                    \\__________/\n"
3490 "                     ^ ^   ^  \\\n"
3491 "                    /  |    \\  \\ guestfs_launch\n"
3492 "                   /   |    _\\__V______\n"
3493 "                  /    |   /           \\\n"
3494 "                 /     |   | LAUNCHING |\n"
3495 "                /      |   \\___________/\n"
3496 "               /       |       /\n"
3497 "              /        |  guestfs_launch\n"
3498 "             /         |     /\n"
3499 "    ______  /        __|____V\n"
3500 "   /      \\ ------> /        \\\n"
3501 "   | BUSY |         | READY  |\n"
3502 "   \\______/ <------ \\________/\n"
3503 "\n"
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1787
3508 msgid ""
3509 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3510 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3511 "(3) alternating between READY and BUSY as commands are issued to, and "
3512 "carried out by, the child process."
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1792
3517 msgid ""
3518 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3519 "asynchronously at any time (eg. due to some internal error), and that causes "
3520 "the state to transition back to CONFIG."
3521 msgstr ""
3522
3523 # type: textblock
3524 #: ../src/guestfs.pod:1796
3525 msgid ""
3526 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3527 "issued when in the CONFIG state."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs.pod:1799
3532 msgid ""
3533 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3534 "L</guestfs_launch> blocks until the child process is READY to accept "
3535 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3536 "moves the state from CONFIG to LAUNCHING while it is running."
3537 msgstr ""
3538
3539 # type: textblock
3540 #: ../src/guestfs.pod:1805
3541 msgid ""
3542 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3543 "state.  These API calls block waiting for the command to be carried out (ie. "
3544 "the state to transition to BUSY and then back to READY).  There are no non-"
3545 "blocking versions, and no way to issue more than one command per handle at "
3546 "the same time."
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1811
3551 msgid ""
3552 "Finally, the child process sends asynchronous messages back to the main "
3553 "program, such as kernel log messages.  You can register a callback to "
3554 "receive these messages."
3555 msgstr ""
3556
3557 # type: =head1
3558 #: ../src/guestfs.pod:1815
3559 msgid "INTERNALS"
3560 msgstr ""
3561
3562 # type: =head2
3563 #: ../src/guestfs.pod:1817
3564 msgid "COMMUNICATION PROTOCOL"
3565 msgstr ""
3566
3567 # type: textblock
3568 #: ../src/guestfs.pod:1819
3569 msgid ""
3570 "Don't rely on using this protocol directly.  This section documents how it "
3571 "currently works, but it may change at any time."
3572 msgstr ""
3573
3574 # type: textblock
3575 #: ../src/guestfs.pod:1822
3576 msgid ""
3577 "The protocol used to talk between the library and the daemon running inside "
3578 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3579 "1014, RFC 1832, RFC 4506)."
3580 msgstr ""
3581
3582 # type: textblock
3583 #: ../src/guestfs.pod:1826
3584 msgid ""
3585 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3586 "this file is automatically generated)."
3587 msgstr ""
3588
3589 # type: textblock
3590 #: ../src/guestfs.pod:1829
3591 msgid ""
3592 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3593 "and C<FileOut> parameters, which are handled with very simple request/reply "
3594 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3595 "parameters, which use the same request and reply messages, but they may also "
3596 "be followed by files sent using a chunked encoding."
3597 msgstr ""
3598
3599 # type: =head3
3600 #: ../src/guestfs.pod:1836
3601 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1838
3606 msgid "For ordinary functions, the request message is:"
3607 msgstr ""
3608
3609 # type: verbatim
3610 #: ../src/guestfs.pod:1840
3611 #, no-wrap
3612 msgid ""
3613 " total length (header + arguments,\n"
3614 "      but not including the length word itself)\n"
3615 " struct guestfs_message_header (encoded as XDR)\n"
3616 " struct guestfs_<foo>_args (encoded as XDR)\n"
3617 "\n"
3618 msgstr ""
3619
3620 # type: textblock
3621 #: ../src/guestfs.pod:1845
3622 msgid ""
3623 "The total length field allows the daemon to allocate a fixed size buffer "
3624 "into which it slurps the rest of the message.  As a result, the total length "
3625 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3626 "effective size of any request is limited to somewhere under this size."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1851
3631 msgid ""
3632 "Note also that many functions don't take any arguments, in which case the "
3633 "C<guestfs_I<foo>_args> is completely omitted."
3634 msgstr ""
3635
3636 # type: textblock
3637 #: ../src/guestfs.pod:1854
3638 msgid ""
3639 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3640 "receiver knows what type of args structure to expect, or none at all."
3641 msgstr ""
3642
3643 # type: textblock
3644 #: ../src/guestfs.pod:1858
3645 msgid "The reply message for ordinary functions is:"
3646 msgstr ""
3647
3648 # type: verbatim
3649 #: ../src/guestfs.pod:1860
3650 #, no-wrap
3651 msgid ""
3652 " total length (header + ret,\n"
3653 "      but not including the length word itself)\n"
3654 " struct guestfs_message_header (encoded as XDR)\n"
3655 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3656 "\n"
3657 msgstr ""
3658
3659 # type: textblock
3660 #: ../src/guestfs.pod:1865
3661 msgid ""
3662 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3663 "functions that return no formal return values."
3664 msgstr ""
3665
3666 # type: textblock
3667 #: ../src/guestfs.pod:1868
3668 msgid ""
3669 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3670 msgstr ""
3671
3672 # type: textblock
3673 #: ../src/guestfs.pod:1871
3674 msgid ""
3675 "In the case of an error, a flag is set in the header, and the reply message "
3676 "is slightly changed:"
3677 msgstr ""
3678
3679 # type: verbatim
3680 #: ../src/guestfs.pod:1874
3681 #, no-wrap
3682 msgid ""
3683 " total length (header + error,\n"
3684 "      but not including the length word itself)\n"
3685 " struct guestfs_message_header (encoded as XDR)\n"
3686 " struct guestfs_message_error (encoded as XDR)\n"
3687 "\n"
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1879
3692 msgid ""
3693 "The C<guestfs_message_error> structure contains the error message as a "
3694 "string."
3695 msgstr ""
3696
3697 # type: =head3
3698 #: ../src/guestfs.pod:1882
3699 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1884
3704 msgid ""
3705 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3706 "The normal request message is sent (see above).  However this is followed by "
3707 "a sequence of file chunks."
3708 msgstr ""
3709
3710 # type: verbatim
3711 #: ../src/guestfs.pod:1888
3712 #, no-wrap
3713 msgid ""
3714 " total length (header + arguments,\n"
3715 "      but not including the length word itself,\n"
3716 "      and not including the chunks)\n"
3717 " struct guestfs_message_header (encoded as XDR)\n"
3718 " struct guestfs_<foo>_args (encoded as XDR)\n"
3719 " sequence of chunks for FileIn param #0\n"
3720 " sequence of chunks for FileIn param #1 etc.\n"
3721 "\n"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs.pod:1896
3726 msgid "The \"sequence of chunks\" is:"
3727 msgstr ""
3728
3729 # type: verbatim
3730 #: ../src/guestfs.pod:1898
3731 #, no-wrap
3732 msgid ""
3733 " length of chunk (not including length word itself)\n"
3734 " struct guestfs_chunk (encoded as XDR)\n"
3735 " length of chunk\n"
3736 " struct guestfs_chunk (encoded as XDR)\n"
3737 "   ...\n"
3738 " length of chunk\n"
3739 " struct guestfs_chunk (with data.data_len == 0)\n"
3740 "\n"
3741 msgstr ""
3742
3743 # type: textblock
3744 #: ../src/guestfs.pod:1906
3745 msgid ""
3746 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3747 "is set in the final chunk to indicate either successful completion or early "
3748 "cancellation."
3749 msgstr ""
3750
3751 # type: textblock
3752 #: ../src/guestfs.pod:1910
3753 msgid ""
3754 "At time of writing there are no functions that have more than one FileIn "
3755 "parameter.  However this is (theoretically) supported, by sending the "
3756 "sequence of chunks for each FileIn parameter one after another (from left to "
3757 "right)."
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs.pod:1915
3762 msgid ""
3763 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3764 "transfer.  The library does this by sending a chunk with a special flag set "
3765 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3766 "RPC, does I<not> send any reply, and goes back to reading the next request."
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1921
3771 msgid ""
3772 "The daemon may also cancel.  It does this by writing a special word "
3773 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3774 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3775 "cancel chunk).  The special word is chosen so that even if cancellation "
3776 "happens right at the end of the transfer (after the library has finished "
3777 "writing and has started listening for the reply), the \"spurious\" cancel "
3778 "flag will not be confused with the reply message."
3779 msgstr ""
3780
3781 # type: textblock
3782 #: ../src/guestfs.pod:1930
3783 msgid ""
3784 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3785 "limit), and also files where the size is not known in advance (eg. from "
3786 "pipes or sockets).  However the chunks are rather small "
3787 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3788 "to keep much in memory."
3789 msgstr ""
3790
3791 # type: =head3
3792 #: ../src/guestfs.pod:1936
3793 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1938
3798 msgid ""
3799 "The protocol for FileOut parameters is exactly the same as for FileIn "
3800 "parameters, but with the roles of daemon and library reversed."
3801 msgstr ""
3802
3803 # type: verbatim
3804 #: ../src/guestfs.pod:1941
3805 #, no-wrap
3806 msgid ""
3807 " total length (header + ret,\n"
3808 "      but not including the length word itself,\n"
3809 "      and not including the chunks)\n"
3810 " struct guestfs_message_header (encoded as XDR)\n"
3811 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3812 " sequence of chunks for FileOut param #0\n"
3813 " sequence of chunks for FileOut param #1 etc.\n"
3814 "\n"
3815 msgstr ""
3816
3817 # type: =head3
3818 #: ../src/guestfs.pod:1949
3819 msgid "INITIAL MESSAGE"
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs.pod:1951
3824 msgid ""
3825 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3826 "which indicates that the guest and daemon is alive.  This is what L</"
3827 "guestfs_launch> waits for."
3828 msgstr ""
3829
3830 # type: =head3
3831 #: ../src/guestfs.pod:1955
3832 msgid "PROGRESS NOTIFICATION MESSAGES"
3833 msgstr ""
3834
3835 # type: textblock
3836 #: ../src/guestfs.pod:1957
3837 msgid ""
3838 "The daemon may send progress notification messages at any time.  These are "
3839 "distinguished by the normal length word being replaced by "
3840 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3841 msgstr ""
3842
3843 # type: textblock
3844 #: ../src/guestfs.pod:1961
3845 msgid ""
3846 "The library turns them into progress callbacks (see "
3847 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3848 "discards them if not."
3849 msgstr ""
3850
3851 # type: textblock
3852 #: ../src/guestfs.pod:1965
3853 msgid ""
3854 "The daemon self-limits the frequency of progress messages it sends (see "
3855 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3856 "messages."
3857 msgstr ""
3858
3859 # type: =head1
3860 #: ../src/guestfs.pod:1969
3861 msgid "LIBGUESTFS VERSION NUMBERS"
3862 msgstr ""
3863
3864 # type: textblock
3865 #: ../src/guestfs.pod:1971
3866 msgid ""
3867 "Since April 2010, libguestfs has started to make separate development and "
3868 "stable releases, along with corresponding branches in our git repository.  "
3869 "These separate releases can be identified by version number:"
3870 msgstr ""
3871
3872 # type: verbatim
3873 #: ../src/guestfs.pod:1976
3874 #, no-wrap
3875 msgid ""
3876 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3877 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3878 "       |\n"
3879 "       v\n"
3880 " 1  .  3  .  5\n"
3881 " ^           ^\n"
3882 " |           |\n"
3883 " |           `-------- sub-version\n"
3884 " |\n"
3885 " `------ always '1' because we don't change the ABI\n"
3886 "\n"
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs.pod:1987
3891 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs.pod:1989
3896 msgid ""
3897 "As time passes we cherry pick fixes from the development branch and backport "
3898 "those into the stable branch, the effect being that the stable branch should "
3899 "get more stable and less buggy over time.  So the stable releases are ideal "
3900 "for people who don't need new features but would just like the software to "
3901 "work."
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs.pod:1995
3906 msgid "Our criteria for backporting changes are:"
3907 msgstr ""
3908
3909 # type: textblock
3910 #: ../src/guestfs.pod:2001
3911 msgid ""
3912 "Documentation changes which don't affect any code are backported unless the "
3913 "documentation refers to a future feature which is not in stable."
3914 msgstr ""
3915
3916 # type: textblock
3917 #: ../src/guestfs.pod:2007
3918 msgid ""
3919 "Bug fixes which are not controversial, fix obvious problems, and have been "
3920 "well tested are backported."
3921 msgstr ""
3922
3923 # type: textblock
3924 #: ../src/guestfs.pod:2012
3925 msgid ""
3926 "Simple rearrangements of code which shouldn't affect how it works get "
3927 "backported.  This is so that the code in the two branches doesn't get too "
3928 "far out of step, allowing us to backport future fixes more easily."
3929 msgstr ""
3930
3931 # type: textblock
3932 #: ../src/guestfs.pod:2018
3933 msgid ""
3934 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3935 "exceptional case: the new feature is required in order to implement an "
3936 "important bug fix."
3937 msgstr ""
3938
3939 # type: textblock
3940 #: ../src/guestfs.pod:2024
3941 msgid ""
3942 "A new stable branch starts when we think the new features in development are "
3943 "substantial and compelling enough over the current stable branch to warrant "
3944 "it.  When that happens we create new stable and development versions 1.N.0 "
3945 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3946 "stable at this point, but by backporting fixes from development, that branch "
3947 "will stabilize over time."
3948 msgstr ""
3949
3950 # type: =head1
3951 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:915
3952 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3953 msgid "ENVIRONMENT VARIABLES"
3954 msgstr ""
3955
3956 # type: =item
3957 #: ../src/guestfs.pod:2036 ../fish/guestfish.pod:941
3958 msgid "LIBGUESTFS_APPEND"
3959 msgstr ""
3960
3961 # type: textblock
3962 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:943
3963 msgid "Pass additional options to the guest kernel."
3964 msgstr ""
3965
3966 # type: =item
3967 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:945
3968 msgid "LIBGUESTFS_DEBUG"
3969 msgstr ""
3970
3971 # type: textblock
3972 #: ../src/guestfs.pod:2042
3973 msgid ""
3974 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3975 "effect as calling C<guestfs_set_verbose (g, 1)>."
3976 msgstr ""
3977
3978 # type: =item
3979 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:950
3980 msgid "LIBGUESTFS_MEMSIZE"
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:952
3985 msgid ""
3986 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3987 msgstr ""
3988
3989 # type: verbatim
3990 #: ../src/guestfs.pod:2050 ../fish/guestfish.pod:955
3991 #, no-wrap
3992 msgid ""
3993 " LIBGUESTFS_MEMSIZE=700\n"
3994 "\n"
3995 msgstr ""
3996
3997 # type: =item
3998 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:957
3999 msgid "LIBGUESTFS_PATH"
4000 msgstr ""
4001
4002 # type: textblock
4003 #: ../src/guestfs.pod:2054
4004 msgid ""
4005 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4006 "the discussion of paths in section PATH above."
4007 msgstr ""
4008
4009 # type: =item
4010 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:962
4011 msgid "LIBGUESTFS_QEMU"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:964
4016 msgid ""
4017 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4018 "which was found at compile time by the configure script is used."
4019 msgstr ""
4020
4021 # type: textblock
4022 #: ../src/guestfs.pod:2063
4023 msgid "See also L</QEMU WRAPPERS> above."
4024 msgstr ""
4025
4026 # type: =item
4027 #: ../src/guestfs.pod:2065 ../fish/guestfish.pod:968
4028 msgid "LIBGUESTFS_TRACE"
4029 msgstr ""
4030
4031 # type: textblock
4032 #: ../src/guestfs.pod:2067
4033 msgid ""
4034 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4035 "effect as calling C<guestfs_set_trace (g, 1)>."
4036 msgstr ""
4037
4038 # type: =item
4039 #: ../src/guestfs.pod:2070 ../fish/guestfish.pod:977
4040 msgid "TMPDIR"
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:979
4045 msgid "Location of temporary directory, defaults to C</tmp>."
4046 msgstr ""
4047
4048 # type: textblock
4049 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:981
4050 msgid ""
4051 "If libguestfs was compiled to use the supermin appliance then the real "
4052 "appliance is cached in this directory, shared between all handles belonging "
4053 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4054 "use in case C</tmp> is not large enough."
4055 msgstr ""
4056
4057 # type: =head1
4058 #: ../src/guestfs.pod:2082 ../fish/guestfish.pod:1039
4059 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4060 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484
4061 #: ../tools/virt-resize.pl:1485 ../tools/virt-list-filesystems.pl:189
4062 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
4063 #: ../tools/virt-list-partitions.pl:257
4064 msgid "SEE ALSO"
4065 msgstr ""
4066
4067 # type: textblock
4068 #: ../src/guestfs.pod:2084
4069 msgid ""
4070 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4071 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4072 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4073 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4074 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4075 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4076 msgstr ""
4077
4078 # type: textblock
4079 #: ../src/guestfs.pod:2107
4080 msgid ""
4081 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4082 "(8)>, L<disktype(1)>."
4083 msgstr ""
4084
4085 # type: =head1
4086 #: ../src/guestfs.pod:2114 ../tools/virt-win-reg.pl:499
4087 #: ../tools/virt-make-fs.pl:548
4088 msgid "BUGS"
4089 msgstr ""
4090
4091 # type: textblock
4092 #: ../src/guestfs.pod:2116
4093 msgid "To get a list of bugs against libguestfs use this link:"
4094 msgstr ""
4095
4096 # type: textblock
4097 #: ../src/guestfs.pod:2118
4098 msgid ""
4099 "L<https://bugzilla.redhat.com/buglist.cgi?"
4100 "component=libguestfs&product=Virtualization+Tools>"
4101 msgstr ""
4102
4103 # type: textblock
4104 #: ../src/guestfs.pod:2120
4105 msgid "To report a new bug against libguestfs use this link:"
4106 msgstr ""
4107
4108 # type: textblock
4109 #: ../src/guestfs.pod:2122
4110 msgid ""
4111 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4112 "component=libguestfs&product=Virtualization+Tools>"
4113 msgstr ""
4114
4115 # type: textblock
4116 #: ../src/guestfs.pod:2124
4117 msgid "When reporting a bug, please check:"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs.pod:2130
4122 msgid "That the bug hasn't been reported already."
4123 msgstr ""
4124
4125 # type: textblock
4126 #: ../src/guestfs.pod:2134
4127 msgid "That you are testing a recent version."
4128 msgstr ""
4129
4130 # type: textblock
4131 #: ../src/guestfs.pod:2138
4132 msgid "Describe the bug accurately, and give a way to reproduce it."
4133 msgstr ""
4134
4135 # type: textblock
4136 #: ../src/guestfs.pod:2142
4137 msgid ""
4138 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4139 "bug report."
4140 msgstr ""
4141
4142 # type: =head1
4143 #: ../src/guestfs.pod:2147 ../fish/guestfish.pod:1058
4144 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4145 msgid "AUTHORS"
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs.pod:2149 ../fish/guestfish.pod:1060
4150 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4151 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4152 msgstr ""
4153
4154 # type: =head1
4155 #: ../src/guestfs.pod:2151 ../fish/guestfish.pod:1062
4156 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4157 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4158 #: ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:206
4159 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
4160 #: ../tools/virt-list-partitions.pl:273
4161 msgid "COPYRIGHT"
4162 msgstr ""
4163
4164 # type: textblock
4165 #: ../src/guestfs.pod:2153 ../fish/guestfish.pod:1064
4166 #: ../fuse/guestmount.pod:250
4167 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4168 msgstr ""
4169
4170 # type: textblock
4171 #: ../src/guestfs.pod:2156
4172 msgid ""
4173 "This library is free software; you can redistribute it and/or modify it "
4174 "under the terms of the GNU Lesser General Public License as published by the "
4175 "Free Software Foundation; either version 2 of the License, or (at your "
4176 "option) any later version."
4177 msgstr ""
4178
4179 # type: textblock
4180 #: ../src/guestfs.pod:2161
4181 msgid ""
4182 "This library is distributed in the hope that it will be useful, but WITHOUT "
4183 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4184 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4185 "for more details."
4186 msgstr ""
4187
4188 # type: textblock
4189 #: ../src/guestfs.pod:2166
4190 msgid ""
4191 "You should have received a copy of the GNU Lesser General Public License "
4192 "along with this library; if not, write to the Free Software Foundation, "
4193 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4194 msgstr ""
4195
4196 # type: =head2
4197 #: ../src/guestfs-actions.pod:1
4198 msgid "guestfs_add_cdrom"
4199 msgstr ""
4200
4201 # type: verbatim
4202 #: ../src/guestfs-actions.pod:3
4203 #, no-wrap
4204 msgid ""
4205 " int\n"
4206 " guestfs_add_cdrom (guestfs_h *g,\n"
4207 "                    const char *filename);\n"
4208 "\n"
4209 msgstr ""
4210
4211 # type: textblock
4212 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4213 msgid "This function adds a virtual CD-ROM disk image to the guest."
4214 msgstr ""
4215
4216 # type: textblock
4217 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4218 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4219 msgstr ""
4220
4221 # type: textblock
4222 #: ../src/guestfs-actions.pod:17
4223 msgid ""
4224 "This call checks for the existence of C<filename>.  This stops you from "
4225 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4226 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4227 "instead."
4228 msgstr ""
4229
4230 # type: textblock
4231 #: ../src/guestfs-actions.pod:24
4232 msgid ""
4233 "If you just want to add an ISO file (often you use this as an efficient way "
4234 "to transfer large files into the guest), then you should probably use "
4235 "C<guestfs_add_drive_ro> instead."
4236 msgstr ""
4237
4238 # type: textblock
4239 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4240 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4241 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4242 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4243 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4244 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4245 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4246 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4247 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4248 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4249 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4250 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4251 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4252 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4253 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4254 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4255 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4256 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4257 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4258 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4259 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4260 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182
4261 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217
4262 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356
4263 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383
4264 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434
4265 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526
4266 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566
4267 #: ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621
4268 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659
4269 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706
4270 #: ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758
4271 #: ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786
4272 #: ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896
4273 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929
4274 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998
4275 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032
4276 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060
4277 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092
4278 #: ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161
4279 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211
4280 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242
4281 #: ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272
4282 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302
4283 #: ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352
4284 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386
4285 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452
4286 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503
4287 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548
4288 #: ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700
4289 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779
4290 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829
4291 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912
4292 #: ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939
4293 #: ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247
4294 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273
4295 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299
4296 #: ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329
4297 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369
4298 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406
4299 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447
4300 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487
4301 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523
4302 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575
4303 #: ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618
4304 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648
4305 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704
4306 #: ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753
4307 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982
4308 #: ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007
4309 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042
4310 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068
4311 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096
4312 #: ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172
4313 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204
4314 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234
4315 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290
4316 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345
4317 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376
4318 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436
4319 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573
4320 #: ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642
4321 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700
4322 #: ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787
4323 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879
4324 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4325 msgid "This function returns 0 on success or -1 on error."
4326 msgstr ""
4327
4328 # type: textblock
4329 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4330 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4331 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4332 msgid ""
4333 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4334 "instead."
4335 msgstr ""
4336
4337 # type: textblock
4338 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4339 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4340 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4341 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990
4342 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4343 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4344 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4345 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4346 msgid ""
4347 "Deprecated functions will not be removed from the API, but the fact that "
4348 "they are deprecated indicates that there are problems with correct use of "
4349 "these functions."
4350 msgstr ""
4351
4352 # type: textblock
4353 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4354 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4355 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4356 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199
4357 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408
4358 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635
4359 #: ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223
4360 #: ../src/guestfs-actions.pod:6735
4361 msgid "(Added in 0.3)"
4362 msgstr ""
4363
4364 # type: =head2
4365 #: ../src/guestfs-actions.pod:41
4366 msgid "guestfs_add_domain"
4367 msgstr ""
4368
4369 # type: verbatim
4370 #: ../src/guestfs-actions.pod:43
4371 #, no-wrap
4372 msgid ""
4373 " int\n"
4374 " guestfs_add_domain (guestfs_h *g,\n"
4375 "                     const char *dom,\n"
4376 "                     ...);\n"
4377 "\n"
4378 msgstr ""
4379
4380 # type: textblock
4381 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4382 msgid ""
4383 "You may supply a list of optional arguments to this call.  Use zero or more "
4384 "of the following pairs of parameters, and terminate the list with C<-1> on "
4385 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4386 msgstr ""
4387
4388 # type: verbatim
4389 #: ../src/guestfs-actions.pod:53
4390 #, no-wrap
4391 msgid ""
4392 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4393 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4394 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4395 "\n"
4396 msgstr ""
4397
4398 # type: textblock
4399 #: ../src/guestfs-actions.pod:57
4400 msgid ""
4401 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4402 "It works by connecting to libvirt, requesting the domain and domain XML from "
4403 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4404 "one."
4405 msgstr ""
4406
4407 # type: textblock
4408 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4409 msgid ""
4410 "The number of disks added is returned.  This operation is atomic: if an "
4411 "error is returned, then no disks are added."
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4416 msgid ""
4417 "This function does some minimal checks to make sure the libvirt domain is "
4418 "not running (unless C<readonly> is true).  In a future version we will try "
4419 "to acquire the libvirt lock on each disk."
4420 msgstr ""
4421
4422 # type: textblock
4423 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4424 msgid ""
4425 "Disks must be accessible locally.  This often means that adding disks from a "
4426 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4427 "unless those disks are accessible via the same device path locally too."
4428 msgstr ""
4429
4430 # type: textblock
4431 #: ../src/guestfs-actions.pod:74
4432 msgid ""
4433 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4434 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4435 "libvirt URI (or one set through an environment variable, see the libvirt "
4436 "documentation for full details).  If you are using the C API directly then "
4437 "it is more flexible to create the libvirt connection object yourself, get "
4438 "the domain object, and call C<guestfs_add_libvirt_dom>."
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:82
4443 msgid ""
4444 "The other optional parameters are passed directly through to "
4445 "C<guestfs_add_drive_opts>."
4446 msgstr ""
4447
4448 # type: textblock
4449 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4450 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4451 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4452 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4453 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4454 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4455 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4456 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630
4457 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475
4458 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009
4459 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331
4460 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759
4461 #: ../src/guestfs-actions.pod:6772
4462 msgid "On error this function returns -1."
4463 msgstr ""
4464
4465 # type: =head2
4466 #: ../src/guestfs-actions.pod:87
4467 msgid "guestfs_add_domain_va"
4468 msgstr ""
4469
4470 # type: verbatim
4471 #: ../src/guestfs-actions.pod:89
4472 #, no-wrap
4473 msgid ""
4474 " int\n"
4475 " guestfs_add_domain_va (guestfs_h *g,\n"
4476 "                        const char *dom,\n"
4477 "                        va_list args);\n"
4478 "\n"
4479 msgstr ""
4480
4481 # type: textblock
4482 #: ../src/guestfs-actions.pod:94
4483 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4484 msgstr ""
4485
4486 # type: textblock
4487 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4488 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4489 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4490 msgstr ""
4491
4492 # type: =head2
4493 #: ../src/guestfs-actions.pod:98
4494 msgid "guestfs_add_domain_argv"
4495 msgstr ""
4496
4497 # type: verbatim
4498 #: ../src/guestfs-actions.pod:100
4499 #, no-wrap
4500 msgid ""
4501 " int\n"
4502 " guestfs_add_domain_argv (guestfs_h *g,\n"
4503 "                          const char *dom,\n"
4504 "                          const struct guestfs_add_domain_argv *optargs);\n"
4505 "\n"
4506 msgstr ""
4507
4508 # type: textblock
4509 #: ../src/guestfs-actions.pod:105
4510 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4511 msgstr ""
4512
4513 # type: =head2
4514 #: ../src/guestfs-actions.pod:109
4515 msgid "guestfs_add_drive"
4516 msgstr ""
4517
4518 # type: verbatim
4519 #: ../src/guestfs-actions.pod:111
4520 #, no-wrap
4521 msgid ""
4522 " int\n"
4523 " guestfs_add_drive (guestfs_h *g,\n"
4524 "                    const char *filename);\n"
4525 "\n"
4526 msgstr ""
4527
4528 # type: textblock
4529 #: ../src/guestfs-actions.pod:115
4530 msgid ""
4531 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4532 "optional parameters, so the disk is added writable, with the format being "
4533 "detected automatically."
4534 msgstr ""
4535
4536 # type: textblock
4537 #: ../src/guestfs-actions.pod:119
4538 msgid ""
4539 "Automatic detection of the format opens you up to a potential security hole "
4540 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4541 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4542 "you should think about replacing calls to this function with calls to "
4543 "C<guestfs_add_drive_opts>, and specifying the format."
4544 msgstr ""
4545
4546 # type: =head2
4547 #: ../src/guestfs-actions.pod:130
4548 msgid "guestfs_add_drive_opts"
4549 msgstr ""
4550
4551 # type: verbatim
4552 #: ../src/guestfs-actions.pod:132
4553 #, no-wrap
4554 msgid ""
4555 " int\n"
4556 " guestfs_add_drive_opts (guestfs_h *g,\n"
4557 "                         const char *filename,\n"
4558 "                         ...);\n"
4559 "\n"
4560 msgstr ""
4561
4562 # type: verbatim
4563 #: ../src/guestfs-actions.pod:142
4564 #, no-wrap
4565 msgid ""
4566 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4567 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4568 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4569 "\n"
4570 msgstr ""
4571
4572 # type: textblock
4573 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4574 msgid ""
4575 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4576 "The first time you call this function, the disk appears as C</dev/sda>, the "
4577 "second time as C</dev/sdb>, and so on."
4578 msgstr ""
4579
4580 # type: textblock
4581 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4582 msgid ""
4583 "You don't necessarily need to be root when using libguestfs.  However you "
4584 "obviously do need sufficient permissions to access the filename for whatever "
4585 "operations you want to perform (ie. read access if you just want to read the "
4586 "image or write access if you want to modify the image)."
4587 msgstr ""
4588
4589 # type: textblock
4590 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4591 msgid "This call checks that C<filename> exists."
4592 msgstr ""
4593
4594 # type: textblock
4595 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4596 msgid "The optional arguments are:"
4597 msgstr ""
4598
4599 # type: =item
4600 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4601 msgid "C<readonly>"
4602 msgstr ""
4603
4604 # type: textblock
4605 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4606 msgid ""
4607 "If true then the image is treated as read-only.  Writes are still allowed, "
4608 "but they are stored in a temporary snapshot overlay which is discarded at "
4609 "the end.  The disk that you add is not modified."
4610 msgstr ""
4611
4612 # type: =item
4613 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4614 msgid "C<format>"
4615 msgstr ""
4616
4617 # type: textblock
4618 #: ../src/guestfs-actions.pod:171
4619 msgid ""
4620 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4621 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4622 "Possible formats include C<raw> and C<qcow2>."
4623 msgstr ""
4624
4625 # type: textblock
4626 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4627 msgid ""
4628 "Automatic detection of the format opens you up to a potential security hole "
4629 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4630 "RHBZ#642934.  Specifying the format closes this security hole."
4631 msgstr ""
4632
4633 # type: =item
4634 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4635 msgid "C<iface>"
4636 msgstr ""
4637
4638 # type: textblock
4639 #: ../src/guestfs-actions.pod:182
4640 msgid ""
4641 "This rarely-used option lets you emulate the behaviour of the deprecated "
4642 "C<guestfs_add_drive_with_if> call (q.v.)"
4643 msgstr ""
4644
4645 # type: textblock
4646 #: ../src/guestfs-actions.pod:189
4647 msgid "(Added in 1.5.23)"
4648 msgstr ""
4649
4650 # type: =head2
4651 #: ../src/guestfs-actions.pod:191
4652 msgid "guestfs_add_drive_opts_va"
4653 msgstr ""
4654
4655 # type: verbatim
4656 #: ../src/guestfs-actions.pod:193
4657 #, no-wrap
4658 msgid ""
4659 " int\n"
4660 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4661 "                            const char *filename,\n"
4662 "                            va_list args);\n"
4663 "\n"
4664 msgstr ""
4665
4666 # type: textblock
4667 #: ../src/guestfs-actions.pod:198
4668 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4669 msgstr ""
4670
4671 # type: =head2
4672 #: ../src/guestfs-actions.pod:202
4673 msgid "guestfs_add_drive_opts_argv"
4674 msgstr ""
4675
4676 # type: verbatim
4677 #: ../src/guestfs-actions.pod:204
4678 #, no-wrap
4679 msgid ""
4680 " int\n"
4681 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4682 "                              const char *filename,\n"
4683 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4684 "\n"
4685 msgstr ""
4686
4687 # type: textblock
4688 #: ../src/guestfs-actions.pod:209
4689 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4690 msgstr ""
4691
4692 # type: =head2
4693 #: ../src/guestfs-actions.pod:213
4694 msgid "guestfs_add_drive_ro"
4695 msgstr ""
4696
4697 # type: verbatim
4698 #: ../src/guestfs-actions.pod:215
4699 #, no-wrap
4700 msgid ""
4701 " int\n"
4702 " guestfs_add_drive_ro (guestfs_h *g,\n"
4703 "                       const char *filename);\n"
4704 "\n"
4705 msgstr ""
4706
4707 # type: textblock
4708 #: ../src/guestfs-actions.pod:219
4709 msgid ""
4710 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4711 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4712 "disk is added read-only, with the format being detected automatically."
4713 msgstr ""
4714
4715 # type: textblock
4716 #: ../src/guestfs-actions.pod:226
4717 msgid "(Added in 1.0.38)"
4718 msgstr ""
4719
4720 # type: =head2
4721 #: ../src/guestfs-actions.pod:228
4722 msgid "guestfs_add_drive_ro_with_if"
4723 msgstr ""
4724
4725 # type: verbatim
4726 #: ../src/guestfs-actions.pod:230
4727 #, no-wrap
4728 msgid ""
4729 " int\n"
4730 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4731 "                               const char *filename,\n"
4732 "                               const char *iface);\n"
4733 "\n"
4734 msgstr ""
4735
4736 # type: textblock
4737 #: ../src/guestfs-actions.pod:235
4738 msgid ""
4739 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4740 "QEMU interface emulation to use at run time."
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4745 #: ../src/guestfs-actions.pod:2303
4746 msgid "(Added in 1.0.84)"
4747 msgstr ""
4748
4749 # type: =head2
4750 #: ../src/guestfs-actions.pod:249
4751 msgid "guestfs_add_drive_with_if"
4752 msgstr ""
4753
4754 # type: verbatim
4755 #: ../src/guestfs-actions.pod:251
4756 #, no-wrap
4757 msgid ""
4758 " int\n"
4759 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4760 "                            const char *filename,\n"
4761 "                            const char *iface);\n"
4762 "\n"
4763 msgstr ""
4764
4765 # type: textblock
4766 #: ../src/guestfs-actions.pod:256
4767 msgid ""
4768 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4769 "QEMU interface emulation to use at run time."
4770 msgstr ""
4771
4772 # type: =head2
4773 #: ../src/guestfs-actions.pod:270
4774 msgid "guestfs_aug_clear"
4775 msgstr ""
4776
4777 # type: verbatim
4778 #: ../src/guestfs-actions.pod:272
4779 #, no-wrap
4780 msgid ""
4781 " int\n"
4782 " guestfs_aug_clear (guestfs_h *g,\n"
4783 "                    const char *augpath);\n"
4784 "\n"
4785 msgstr ""
4786
4787 # type: textblock
4788 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4789 msgid ""
4790 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4791 "L<augtool(1)> C<clear> command."
4792 msgstr ""
4793
4794 # type: textblock
4795 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4796 msgid "(Added in 1.3.4)"
4797 msgstr ""
4798
4799 # type: =head2
4800 #: ../src/guestfs-actions.pod:283
4801 msgid "guestfs_aug_close"
4802 msgstr ""
4803
4804 # type: verbatim
4805 #: ../src/guestfs-actions.pod:285
4806 #, no-wrap
4807 msgid ""
4808 " int\n"
4809 " guestfs_aug_close (guestfs_h *g);\n"
4810 "\n"
4811 msgstr ""
4812
4813 # type: textblock
4814 #: ../src/guestfs-actions.pod:288
4815 msgid ""
4816 "Close the current Augeas handle and free up any resources used by it.  After "
4817 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4818 "any other Augeas functions."
4819 msgstr ""
4820
4821 # type: textblock
4822 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4823 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4824 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4825 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4826 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4827 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4828 #: ../src/guestfs-actions.pod:5086
4829 msgid "(Added in 0.7)"
4830 msgstr ""
4831
4832 # type: =head2
4833 #: ../src/guestfs-actions.pod:297
4834 msgid "guestfs_aug_defnode"
4835 msgstr ""
4836
4837 # type: verbatim
4838 #: ../src/guestfs-actions.pod:299
4839 #, no-wrap
4840 msgid ""
4841 " struct guestfs_int_bool *\n"
4842 " guestfs_aug_defnode (guestfs_h *g,\n"
4843 "                      const char *name,\n"
4844 "                      const char *expr,\n"
4845 "                      const char *val);\n"
4846 "\n"
4847 msgstr ""
4848
4849 # type: textblock
4850 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4851 msgid ""
4852 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4853 msgstr ""
4854
4855 # type: textblock
4856 #: ../src/guestfs-actions.pod:308
4857 msgid ""
4858 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4859 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4860 "containing that single node."
4861 msgstr ""
4862
4863 # type: textblock
4864 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4865 msgid ""
4866 "On success this returns a pair containing the number of nodes in the "
4867 "nodeset, and a boolean flag if a node was created."
4868 msgstr ""
4869
4870 # type: textblock
4871 #: ../src/guestfs-actions.pod:316
4872 msgid ""
4873 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4874 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4875 msgstr ""
4876
4877 # type: =head2
4878 #: ../src/guestfs-actions.pod:322
4879 msgid "guestfs_aug_defvar"
4880 msgstr ""
4881
4882 # type: verbatim
4883 #: ../src/guestfs-actions.pod:324
4884 #, no-wrap
4885 msgid ""
4886 " int\n"
4887 " guestfs_aug_defvar (guestfs_h *g,\n"
4888 "                     const char *name,\n"
4889 "                     const char *expr);\n"
4890 "\n"
4891 msgstr ""
4892
4893 # type: textblock
4894 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4895 msgid ""
4896 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4897 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4898 msgstr ""
4899
4900 # type: textblock
4901 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4902 msgid ""
4903 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4904 "evaluates to something which is not a nodeset."
4905 msgstr ""
4906
4907 # type: =head2
4908 #: ../src/guestfs-actions.pod:340
4909 msgid "guestfs_aug_get"
4910 msgstr ""
4911
4912 # type: verbatim
4913 #: ../src/guestfs-actions.pod:342
4914 #, no-wrap
4915 msgid ""
4916 " char *\n"
4917 " guestfs_aug_get (guestfs_h *g,\n"
4918 "                  const char *augpath);\n"
4919 "\n"
4920 msgstr ""
4921
4922 # type: textblock
4923 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4924 msgid ""
4925 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4926 "node, the C<value> is returned."
4927 msgstr ""
4928
4929 # type: textblock
4930 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4931 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4932 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4933 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4934 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4935 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4936 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4937 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4938 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4939 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
4940 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712
4941 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763
4942 #: ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846
4943 #: ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678
4944 #: ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958
4945 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814
4946 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162
4947 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774
4948 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807
4949 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495
4950 #: ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532
4951 #: ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4952 msgid ""
4953 "This function returns a string, or NULL on error.  I<The caller must free "
4954 "the returned string after use>."
4955 msgstr ""
4956
4957 # type: =head2
4958 #: ../src/guestfs-actions.pod:354
4959 msgid "guestfs_aug_init"
4960 msgstr ""
4961
4962 # type: verbatim
4963 #: ../src/guestfs-actions.pod:356
4964 #, no-wrap
4965 msgid ""
4966 " int\n"
4967 " guestfs_aug_init (guestfs_h *g,\n"
4968 "                   const char *root,\n"
4969 "                   int flags);\n"
4970 "\n"
4971 msgstr ""
4972
4973 # type: textblock
4974 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4975 msgid ""
4976 "Create a new Augeas handle for editing configuration files.  If there was "
4977 "any previous Augeas handle associated with this guestfs session, then it is "
4978 "closed."
4979 msgstr ""
4980
4981 # type: textblock
4982 #: ../src/guestfs-actions.pod:365
4983 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4984 msgstr ""
4985
4986 # type: textblock
4987 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4988 msgid ""
4989 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4990 msgstr ""
4991
4992 # type: textblock
4993 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4994 msgid ""
4995 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4996 "logical I<or> of the following integers:"
4997 msgstr ""
4998
4999 # type: =item
5000 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5001 msgid "C<AUG_SAVE_BACKUP> = 1"
5002 msgstr ""
5003
5004 # type: textblock
5005 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5006 msgid "Keep the original file with a C<.augsave> extension."
5007 msgstr ""
5008
5009 # type: =item
5010 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5011 msgid "C<AUG_SAVE_NEWFILE> = 2"
5012 msgstr ""
5013
5014 # type: textblock
5015 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5016 msgid ""
5017 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5018 "original.  Overrides C<AUG_SAVE_BACKUP>."
5019 msgstr ""
5020
5021 # type: =item
5022 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5023 msgid "C<AUG_TYPE_CHECK> = 4"
5024 msgstr ""
5025
5026 # type: textblock
5027 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5028 msgid "Typecheck lenses (can be expensive)."
5029 msgstr ""
5030
5031 # type: =item
5032 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5033 msgid "C<AUG_NO_STDINC> = 8"
5034 msgstr ""
5035
5036 # type: textblock
5037 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5038 msgid "Do not use standard load path for modules."
5039 msgstr ""
5040
5041 # type: =item
5042 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5043 msgid "C<AUG_SAVE_NOOP> = 16"
5044 msgstr ""
5045
5046 # type: textblock
5047 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5048 msgid "Make save a no-op, just record what would have been changed."
5049 msgstr ""
5050
5051 # type: =item
5052 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5053 msgid "C<AUG_NO_LOAD> = 32"
5054 msgstr ""
5055
5056 # type: textblock
5057 #: ../src/guestfs-actions.pod:400
5058 msgid "Do not load the tree in C<guestfs_aug_init>."
5059 msgstr ""
5060
5061 # type: textblock
5062 #: ../src/guestfs-actions.pod:404
5063 msgid "To close the handle, you can call C<guestfs_aug_close>."
5064 msgstr ""
5065
5066 # type: textblock
5067 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5068 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5069 msgstr ""
5070
5071 # type: =head2
5072 #: ../src/guestfs-actions.pod:412
5073 msgid "guestfs_aug_insert"
5074 msgstr ""
5075
5076 # type: verbatim
5077 #: ../src/guestfs-actions.pod:414
5078 #, no-wrap
5079 msgid ""
5080 " int\n"
5081 " guestfs_aug_insert (guestfs_h *g,\n"
5082 "                     const char *augpath,\n"
5083 "                     const char *label,\n"
5084 "                     int before);\n"
5085 "\n"
5086 msgstr ""
5087
5088 # type: textblock
5089 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5090 msgid ""
5091 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5092 "or after C<path> (depending on the boolean flag C<before>)."
5093 msgstr ""
5094
5095 # type: textblock
5096 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5097 msgid ""
5098 "C<path> must match exactly one existing node in the tree, and C<label> must "
5099 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5100 msgstr ""
5101
5102 # type: =head2
5103 #: ../src/guestfs-actions.pod:432
5104 msgid "guestfs_aug_load"
5105 msgstr ""
5106
5107 # type: verbatim
5108 #: ../src/guestfs-actions.pod:434
5109 #, no-wrap
5110 msgid ""
5111 " int\n"
5112 " guestfs_aug_load (guestfs_h *g);\n"
5113 "\n"
5114 msgstr ""
5115
5116 # type: textblock
5117 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5118 msgid "Load files into the tree."
5119 msgstr ""
5120
5121 # type: textblock
5122 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5123 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5124 msgstr ""
5125
5126 # type: =head2
5127 #: ../src/guestfs-actions.pod:446
5128 msgid "guestfs_aug_ls"
5129 msgstr ""
5130
5131 # type: verbatim
5132 #: ../src/guestfs-actions.pod:448
5133 #, no-wrap
5134 msgid ""
5135 " char **\n"
5136 " guestfs_aug_ls (guestfs_h *g,\n"
5137 "                 const char *augpath);\n"
5138 "\n"
5139 msgstr ""
5140
5141 # type: textblock
5142 #: ../src/guestfs-actions.pod:452
5143 msgid ""
5144 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5145 "sorting the resulting nodes into alphabetical order."
5146 msgstr ""
5147
5148 # type: textblock
5149 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5150 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5151 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5152 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5153 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5154 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5155 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5156 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5157 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782
5158 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248
5159 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415
5160 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436
5161 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082
5162 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847
5163 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963
5164 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133
5165 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625
5166 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837
5167 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941
5168 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006
5169 #: ../src/guestfs-actions.pod:7025
5170 msgid ""
5171 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5172 ">), or NULL if there was an error.  I<The caller must free the strings and "
5173 "the array after use>."
5174 msgstr ""
5175
5176 # type: textblock
5177 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5178 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5179 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102
5180 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711
5181 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931
5182 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440
5183 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275
5184 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301
5185 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347
5186 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589
5187 #: ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
5188 msgid "(Added in 0.8)"
5189 msgstr ""
5190
5191 # type: =head2
5192 #: ../src/guestfs-actions.pod:461
5193 msgid "guestfs_aug_match"
5194 msgstr ""
5195
5196 # type: verbatim
5197 #: ../src/guestfs-actions.pod:463
5198 #, no-wrap
5199 msgid ""
5200 " char **\n"
5201 " guestfs_aug_match (guestfs_h *g,\n"
5202 "                    const char *augpath);\n"
5203 "\n"
5204 msgstr ""
5205
5206 # type: textblock
5207 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5208 msgid ""
5209 "Returns a list of paths which match the path expression C<path>.  The "
5210 "returned paths are sufficiently qualified so that they match exactly one "
5211 "node in the current tree."
5212 msgstr ""
5213
5214 # type: =head2
5215 #: ../src/guestfs-actions.pod:477
5216 msgid "guestfs_aug_mv"
5217 msgstr ""
5218
5219 # type: verbatim
5220 #: ../src/guestfs-actions.pod:479
5221 #, no-wrap
5222 msgid ""
5223 " int\n"
5224 " guestfs_aug_mv (guestfs_h *g,\n"
5225 "                 const char *src,\n"
5226 "                 const char *dest);\n"
5227 "\n"
5228 msgstr ""
5229
5230 # type: textblock
5231 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5232 msgid ""
5233 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5234 "C<dest> is overwritten if it exists."
5235 msgstr ""
5236
5237 # type: =head2
5238 #: ../src/guestfs-actions.pod:491
5239 msgid "guestfs_aug_rm"
5240 msgstr ""
5241
5242 # type: verbatim
5243 #: ../src/guestfs-actions.pod:493
5244 #, no-wrap
5245 msgid ""
5246 " int\n"
5247 " guestfs_aug_rm (guestfs_h *g,\n"
5248 "                 const char *augpath);\n"
5249 "\n"
5250 msgstr ""
5251
5252 # type: textblock
5253 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5254 msgid "Remove C<path> and all of its children."
5255 msgstr ""
5256
5257 # type: textblock
5258 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5259 msgid "On success this returns the number of entries which were removed."
5260 msgstr ""
5261
5262 # type: =head2
5263 #: ../src/guestfs-actions.pod:505
5264 msgid "guestfs_aug_save"
5265 msgstr ""
5266
5267 # type: verbatim
5268 #: ../src/guestfs-actions.pod:507
5269 #, no-wrap
5270 msgid ""
5271 " int\n"
5272 " guestfs_aug_save (guestfs_h *g);\n"
5273 "\n"
5274 msgstr ""
5275
5276 # type: textblock
5277 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5278 msgid "This writes all pending changes to disk."
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:512
5283 msgid ""
5284 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5285 "are saved."
5286 msgstr ""
5287
5288 # type: =head2
5289 #: ../src/guestfs-actions.pod:519
5290 msgid "guestfs_aug_set"
5291 msgstr ""
5292
5293 # type: verbatim
5294 #: ../src/guestfs-actions.pod:521
5295 #, no-wrap
5296 msgid ""
5297 " int\n"
5298 " guestfs_aug_set (guestfs_h *g,\n"
5299 "                  const char *augpath,\n"
5300 "                  const char *val);\n"
5301 "\n"
5302 msgstr ""
5303
5304 # type: textblock
5305 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5306 msgid "Set the value associated with C<path> to C<val>."
5307 msgstr ""
5308
5309 # type: textblock
5310 #: ../src/guestfs-actions.pod:528
5311 msgid ""
5312 "In the Augeas API, it is possible to clear a node by setting the value to "
5313 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5314 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5315 msgstr ""
5316
5317 # type: =head2
5318 #: ../src/guestfs-actions.pod:537
5319 msgid "guestfs_available"
5320 msgstr ""
5321
5322 # type: verbatim
5323 #: ../src/guestfs-actions.pod:539
5324 #, no-wrap
5325 msgid ""
5326 " int\n"
5327 " guestfs_available (guestfs_h *g,\n"
5328 "                    char *const *groups);\n"
5329 "\n"
5330 msgstr ""
5331
5332 # type: textblock
5333 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5334 msgid ""
5335 "This command is used to check the availability of some groups of "
5336 "functionality in the appliance, which not all builds of the libguestfs "
5337 "appliance will be able to provide."
5338 msgstr ""
5339
5340 # type: textblock
5341 #: ../src/guestfs-actions.pod:547
5342 msgid ""
5343 "The libguestfs groups, and the functions that those groups correspond to, "
5344 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5345 "runtime by calling C<guestfs_available_all_groups>."
5346 msgstr ""
5347
5348 # type: textblock
5349 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5350 msgid ""
5351 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5352 "\"]> would check for the availability of the Linux inotify functions and "
5353 "Augeas (configuration file editing) functions."
5354 msgstr ""
5355
5356 # type: textblock
5357 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5358 msgid "The command returns no error if I<all> requested groups are available."
5359 msgstr ""
5360
5361 # type: textblock
5362 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5363 msgid ""
5364 "It fails with an error if one or more of the requested groups is unavailable "
5365 "in the appliance."
5366 msgstr ""
5367
5368 # type: textblock
5369 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5370 msgid ""
5371 "If an unknown group name is included in the list of groups then an error is "
5372 "always returned."
5373 msgstr ""
5374
5375 # type: textblock
5376 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5377 msgid "I<Notes:>"
5378 msgstr ""
5379
5380 # type: textblock
5381 #: ../src/guestfs-actions.pod:571
5382 msgid "You must call C<guestfs_launch> before calling this function."
5383 msgstr ""
5384
5385 # type: textblock
5386 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5387 msgid ""
5388 "The reason is because we don't know what groups are supported by the "
5389 "appliance/daemon until it is running and can be queried."
5390 msgstr ""
5391
5392 # type: textblock
5393 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5394 msgid ""
5395 "If a group of functions is available, this does not necessarily mean that "
5396 "they will work.  You still have to check for errors when calling individual "
5397 "API functions even if they are available."
5398 msgstr ""
5399
5400 # type: textblock
5401 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5402 msgid ""
5403 "It is usually the job of distro packagers to build complete functionality "
5404 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5405 "with all requirements satisfied, will support everything."
5406 msgstr ""
5407
5408 # type: textblock
5409 #: ../src/guestfs-actions.pod:593
5410 msgid ""
5411 "This call was added in version C<1.0.80>.  In previous versions of "
5412 "libguestfs all you could do would be to speculatively execute a command to "
5413 "find out if the daemon implemented it.  See also C<guestfs_version>."
5414 msgstr ""
5415
5416 # type: textblock
5417 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5418 msgid "(Added in 1.0.80)"
5419 msgstr ""
5420
5421 # type: =head2
5422 #: ../src/guestfs-actions.pod:604
5423 msgid "guestfs_available_all_groups"
5424 msgstr ""
5425
5426 # type: verbatim
5427 #: ../src/guestfs-actions.pod:606
5428 #, no-wrap
5429 msgid ""
5430 " char **\n"
5431 " guestfs_available_all_groups (guestfs_h *g);\n"
5432 "\n"
5433 msgstr ""
5434
5435 # type: textblock
5436 #: ../src/guestfs-actions.pod:609
5437 msgid ""
5438 "This command returns a list of all optional groups that this daemon knows "
5439 "about.  Note this returns both supported and unsupported groups.  To find "
5440 "out which ones the daemon can actually support you have to call "
5441 "C<guestfs_available> on each member of the returned list."
5442 msgstr ""
5443
5444 # type: textblock
5445 #: ../src/guestfs-actions.pod:615
5446 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5447 msgstr ""
5448
5449 # type: textblock
5450 #: ../src/guestfs-actions.pod:621
5451 msgid "(Added in 1.3.15)"
5452 msgstr ""
5453
5454 # type: =head2
5455 #: ../src/guestfs-actions.pod:623
5456 msgid "guestfs_base64_in"
5457 msgstr ""
5458
5459 # type: verbatim
5460 #: ../src/guestfs-actions.pod:625
5461 #, no-wrap
5462 msgid ""
5463 " int\n"
5464 " guestfs_base64_in (guestfs_h *g,\n"
5465 "                    const char *base64file,\n"
5466 "                    const char *filename);\n"
5467 "\n"
5468 msgstr ""
5469
5470 # type: textblock
5471 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5472 msgid ""
5473 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5474 msgstr ""
5475
5476 # type: textblock
5477 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5478 msgid "(Added in 1.3.5)"
5479 msgstr ""
5480
5481 # type: =head2
5482 #: ../src/guestfs-actions.pod:637
5483 msgid "guestfs_base64_out"
5484 msgstr ""
5485
5486 # type: verbatim
5487 #: ../src/guestfs-actions.pod:639
5488 #, no-wrap
5489 msgid ""
5490 " int\n"
5491 " guestfs_base64_out (guestfs_h *g,\n"
5492 "                     const char *filename,\n"
5493 "                     const char *base64file);\n"
5494 "\n"
5495 msgstr ""
5496
5497 # type: textblock
5498 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5499 msgid ""
5500 "This command downloads the contents of C<filename>, writing it out to local "
5501 "file C<base64file> encoded as base64."
5502 msgstr ""
5503
5504 # type: =head2
5505 #: ../src/guestfs-actions.pod:651
5506 msgid "guestfs_blockdev_flushbufs"
5507 msgstr ""
5508
5509 # type: verbatim
5510 #: ../src/guestfs-actions.pod:653
5511 #, no-wrap
5512 msgid ""
5513 " int\n"
5514 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5515 "                             const char *device);\n"
5516 "\n"
5517 msgstr ""
5518
5519 # type: textblock
5520 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5521 msgid ""
5522 "This tells the kernel to flush internal buffers associated with C<device>."
5523 msgstr ""
5524
5525 # type: textblock
5526 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5527 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5528 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5529 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5530 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5531 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5532 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5533 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5534 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5535 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5536 msgid "This uses the L<blockdev(8)> command."
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5541 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5542 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5543 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5544 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5545 msgid "(Added in 0.9.3)"
5546 msgstr ""
5547
5548 # type: =head2
5549 #: ../src/guestfs-actions.pod:666
5550 msgid "guestfs_blockdev_getbsz"
5551 msgstr ""
5552
5553 # type: verbatim
5554 #: ../src/guestfs-actions.pod:668
5555 #, no-wrap
5556 msgid ""
5557 " int\n"
5558 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5559 "                          const char *device);\n"
5560 "\n"
5561 msgstr ""
5562
5563 # type: textblock
5564 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5565 msgid "This returns the block size of a device."
5566 msgstr ""
5567
5568 # type: textblock
5569 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5570 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5571 msgid ""
5572 "(Note this is different from both I<size in blocks> and I<filesystem block "
5573 "size>)."
5574 msgstr ""
5575
5576 # type: =head2
5577 #: ../src/guestfs-actions.pod:683
5578 msgid "guestfs_blockdev_getro"
5579 msgstr ""
5580
5581 # type: verbatim
5582 #: ../src/guestfs-actions.pod:685
5583 #, no-wrap
5584 msgid ""
5585 " int\n"
5586 " guestfs_blockdev_getro (guestfs_h *g,\n"
5587 "                         const char *device);\n"
5588 "\n"
5589 msgstr ""
5590
5591 # type: textblock
5592 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5593 msgid ""
5594 "Returns a boolean indicating if the block device is read-only (true if read-"
5595 "only, false if not)."
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5600 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5601 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5602 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5603 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5604 #: ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024
5605 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053
5606 #: ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084
5607 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114
5608 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141
5609 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171
5610 #: ../src/guestfs-actions.pod:4585
5611 msgid "This function returns a C truth value on success or -1 on error."
5612 msgstr ""
5613
5614 # type: =head2
5615 #: ../src/guestfs-actions.pod:698
5616 msgid "guestfs_blockdev_getsize64"
5617 msgstr ""
5618
5619 # type: verbatim
5620 #: ../src/guestfs-actions.pod:700
5621 #, no-wrap
5622 msgid ""
5623 " int64_t\n"
5624 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5625 "                             const char *device);\n"
5626 "\n"
5627 msgstr ""
5628
5629 # type: textblock
5630 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5631 msgid "This returns the size of the device in bytes."
5632 msgstr ""
5633
5634 # type: textblock
5635 #: ../src/guestfs-actions.pod:706
5636 msgid "See also C<guestfs_blockdev_getsz>."
5637 msgstr ""
5638
5639 # type: =head2
5640 #: ../src/guestfs-actions.pod:714
5641 msgid "guestfs_blockdev_getss"
5642 msgstr ""
5643
5644 # type: verbatim
5645 #: ../src/guestfs-actions.pod:716
5646 #, no-wrap
5647 msgid ""
5648 " int\n"
5649 " guestfs_blockdev_getss (guestfs_h *g,\n"
5650 "                         const char *device);\n"
5651 "\n"
5652 msgstr ""
5653
5654 # type: textblock
5655 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5656 msgid ""
5657 "This returns the size of sectors on a block device.  Usually 512, but can be "
5658 "larger for modern devices."
5659 msgstr ""
5660
5661 # type: textblock
5662 #: ../src/guestfs-actions.pod:723
5663 msgid ""
5664 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5665 "that)."
5666 msgstr ""
5667
5668 # type: =head2
5669 #: ../src/guestfs-actions.pod:732
5670 msgid "guestfs_blockdev_getsz"
5671 msgstr ""
5672
5673 # type: verbatim
5674 #: ../src/guestfs-actions.pod:734
5675 #, no-wrap
5676 msgid ""
5677 " int64_t\n"
5678 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5679 "                         const char *device);\n"
5680 "\n"
5681 msgstr ""
5682
5683 # type: textblock
5684 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5685 msgid ""
5686 "This returns the size of the device in units of 512-byte sectors (even if "
5687 "the sectorsize isn't 512 bytes ... weird)."
5688 msgstr ""
5689
5690 # type: textblock
5691 #: ../src/guestfs-actions.pod:741
5692 msgid ""
5693 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5694 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5695 msgstr ""
5696
5697 # type: =head2
5698 #: ../src/guestfs-actions.pod:751
5699 msgid "guestfs_blockdev_rereadpt"
5700 msgstr ""
5701
5702 # type: verbatim
5703 #: ../src/guestfs-actions.pod:753
5704 #, no-wrap
5705 msgid ""
5706 " int\n"
5707 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5708 "                            const char *device);\n"
5709 "\n"
5710 msgstr ""
5711
5712 # type: textblock
5713 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5714 msgid "Reread the partition table on C<device>."
5715 msgstr ""
5716
5717 # type: =head2
5718 #: ../src/guestfs-actions.pod:765
5719 msgid "guestfs_blockdev_setbsz"
5720 msgstr ""
5721
5722 # type: verbatim
5723 #: ../src/guestfs-actions.pod:767
5724 #, no-wrap
5725 msgid ""
5726 " int\n"
5727 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5728 "                          const char *device,\n"
5729 "                          int blocksize);\n"
5730 "\n"
5731 msgstr ""
5732
5733 # type: textblock
5734 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5735 msgid "This sets the block size of a device."
5736 msgstr ""
5737
5738 # type: =head2
5739 #: ../src/guestfs-actions.pod:783
5740 msgid "guestfs_blockdev_setro"
5741 msgstr ""
5742
5743 # type: verbatim
5744 #: ../src/guestfs-actions.pod:785
5745 #, no-wrap
5746 msgid ""
5747 " int\n"
5748 " guestfs_blockdev_setro (guestfs_h *g,\n"
5749 "                         const char *device);\n"
5750 "\n"
5751 msgstr ""
5752
5753 # type: textblock
5754 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5755 msgid "Sets the block device named C<device> to read-only."
5756 msgstr ""
5757
5758 # type: =head2
5759 #: ../src/guestfs-actions.pod:797
5760 msgid "guestfs_blockdev_setrw"
5761 msgstr ""
5762
5763 # type: verbatim
5764 #: ../src/guestfs-actions.pod:799
5765 #, no-wrap
5766 msgid ""
5767 " int\n"
5768 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5769 "                         const char *device);\n"
5770 "\n"
5771 msgstr ""
5772
5773 # type: textblock
5774 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5775 msgid "Sets the block device named C<device> to read-write."
5776 msgstr ""
5777
5778 # type: =head2
5779 #: ../src/guestfs-actions.pod:811
5780 msgid "guestfs_case_sensitive_path"
5781 msgstr ""
5782
5783 # type: verbatim
5784 #: ../src/guestfs-actions.pod:813
5785 #, no-wrap
5786 msgid ""
5787 " char *\n"
5788 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5789 "                              const char *path);\n"
5790 "\n"
5791 msgstr ""
5792
5793 # type: textblock
5794 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5795 msgid ""
5796 "This can be used to resolve case insensitive paths on a filesystem which is "
5797 "case sensitive.  The use case is to resolve paths which you have read from "
5798 "Windows configuration files or the Windows Registry, to the true path."
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5803 msgid ""
5804 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5805 "(and probably others), which is that although the underlying filesystem is "
5806 "case-insensitive, the driver exports the filesystem to Linux as case-"
5807 "sensitive."
5808 msgstr ""
5809
5810 # type: textblock
5811 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5812 msgid ""
5813 "One consequence of this is that special directories such as C<c:\\windows> "
5814 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5815 "precise details of how they were created.  In Windows itself this would not "
5816 "be a problem."
5817 msgstr ""
5818
5819 # type: textblock
5820 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5821 msgid ""
5822 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5823 "#posixfilenames1>"
5824 msgstr ""
5825
5826 # type: textblock
5827 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5828 msgid ""
5829 "This function resolves the true case of each element in the path and returns "
5830 "the case-sensitive path."
5831 msgstr ""
5832
5833 # type: textblock
5834 #: ../src/guestfs-actions.pod:839
5835 msgid ""
5836 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5837 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5838 "how the directories were originally created under Windows)."
5839 msgstr ""
5840
5841 # type: textblock
5842 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5843 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5844 msgstr ""
5845
5846 # type: textblock
5847 #: ../src/guestfs-actions.pod:847
5848 msgid "See also C<guestfs_realpath>."
5849 msgstr ""
5850
5851 # type: textblock
5852 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5853 msgid "(Added in 1.0.75)"
5854 msgstr ""
5855
5856 # type: =head2
5857 #: ../src/guestfs-actions.pod:854
5858 msgid "guestfs_cat"
5859 msgstr ""
5860
5861 # type: verbatim
5862 #: ../src/guestfs-actions.pod:856
5863 #, no-wrap
5864 msgid ""
5865 " char *\n"
5866 " guestfs_cat (guestfs_h *g,\n"
5867 "              const char *path);\n"
5868 "\n"
5869 msgstr ""
5870
5871 # type: textblock
5872 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072
5873 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5874 msgid "Return the contents of the file named C<path>."
5875 msgstr ""
5876
5877 # type: textblock
5878 #: ../src/guestfs-actions.pod:862
5879 msgid ""
5880 "Note that this function cannot correctly handle binary files (specifically, "
5881 "files containing C<\\0> character which is treated as end of string).  For "
5882 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5883 "functions which have a more complex interface."
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5888 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5889 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5890 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5891 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5892 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5893 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5894 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880
5895 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037
5896 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912
5897 #: ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113
5898 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789
5899 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841
5900 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945
5901 #: ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010
5902 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582
5903 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5904 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5905 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5906 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5907 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5908 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5909 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5910 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5911 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5912 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5913 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5914 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5915 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5916 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5917 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5918 msgid ""
5919 "Because of the message protocol, there is a transfer limit of somewhere "
5920 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252
5925 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331
5926 #: ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824
5927 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960
5928 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676
5929 #: ../src/guestfs-actions.pod:6690
5930 msgid "(Added in 0.4)"
5931 msgstr ""
5932
5933 # type: =head2
5934 #: ../src/guestfs-actions.pod:875
5935 msgid "guestfs_checksum"
5936 msgstr ""
5937
5938 # type: verbatim
5939 #: ../src/guestfs-actions.pod:877
5940 #, no-wrap
5941 msgid ""
5942 " char *\n"
5943 " guestfs_checksum (guestfs_h *g,\n"
5944 "                   const char *csumtype,\n"
5945 "                   const char *path);\n"
5946 "\n"
5947 msgstr ""
5948
5949 # type: textblock
5950 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5951 msgid ""
5952 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5953 msgstr ""
5954
5955 # type: textblock
5956 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5957 msgid ""
5958 "The type of checksum to compute is given by the C<csumtype> parameter which "
5959 "must have one of the following values:"
5960 msgstr ""
5961
5962 # type: =item
5963 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5964 msgid "C<crc>"
5965 msgstr ""
5966
5967 # type: textblock
5968 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5969 msgid ""
5970 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5971 "C<cksum> command."
5972 msgstr ""
5973
5974 # type: =item
5975 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5976 msgid "C<md5>"
5977 msgstr ""
5978
5979 # type: textblock
5980 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5981 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5982 msgstr ""
5983
5984 # type: =item
5985 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5986 msgid "C<sha1>"
5987 msgstr ""
5988
5989 # type: textblock
5990 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5991 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5992 msgstr ""
5993
5994 # type: =item
5995 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5996 msgid "C<sha224>"
5997 msgstr ""
5998
5999 # type: textblock
6000 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6001 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6002 msgstr ""
6003
6004 # type: =item
6005 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6006 msgid "C<sha256>"
6007 msgstr ""
6008
6009 # type: textblock
6010 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6011 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6012 msgstr ""
6013
6014 # type: =item
6015 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6016 msgid "C<sha384>"
6017 msgstr ""
6018
6019 # type: textblock
6020 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6021 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6022 msgstr ""
6023
6024 # type: =item
6025 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6026 msgid "C<sha512>"
6027 msgstr ""
6028
6029 # type: textblock
6030 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6031 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6032 msgstr ""
6033
6034 # type: textblock
6035 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6036 msgid "The checksum is returned as a printable string."
6037 msgstr ""
6038
6039 # type: textblock
6040 #: ../src/guestfs-actions.pod:923
6041 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:925
6046 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6047 msgstr ""
6048
6049 # type: textblock
6050 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6051 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026
6052 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116
6053 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
6054 msgid "(Added in 1.0.2)"
6055 msgstr ""
6056
6057 # type: =head2
6058 #: ../src/guestfs-actions.pod:932
6059 msgid "guestfs_checksum_device"
6060 msgstr ""
6061
6062 # type: verbatim
6063 #: ../src/guestfs-actions.pod:934
6064 #, no-wrap
6065 msgid ""
6066 " char *\n"
6067 " guestfs_checksum_device (guestfs_h *g,\n"
6068 "                          const char *csumtype,\n"
6069 "                          const char *device);\n"
6070 "\n"
6071 msgstr ""
6072
6073 # type: textblock
6074 #: ../src/guestfs-actions.pod:939
6075 msgid ""
6076 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6077 "device named C<device>.  For the types of checksums supported see the "
6078 "C<guestfs_checksum> command."
6079 msgstr ""
6080
6081 # type: textblock
6082 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491
6083 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587
6084 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781
6085 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306
6086 #: ../src/guestfs-actions.pod:6702
6087 msgid "(Added in 1.3.2)"
6088 msgstr ""
6089
6090 # type: =head2
6091 #: ../src/guestfs-actions.pod:948
6092 msgid "guestfs_checksums_out"
6093 msgstr ""
6094
6095 # type: verbatim
6096 #: ../src/guestfs-actions.pod:950
6097 #, no-wrap
6098 msgid ""
6099 " int\n"
6100 " guestfs_checksums_out (guestfs_h *g,\n"
6101 "                        const char *csumtype,\n"
6102 "                        const char *directory,\n"
6103 "                        const char *sumsfile);\n"
6104 "\n"
6105 msgstr ""
6106
6107 # type: textblock
6108 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6109 msgid ""
6110 "This command computes the checksums of all regular files in C<directory> and "
6111 "then emits a list of those checksums to the local output file C<sumsfile>."
6112 msgstr ""
6113
6114 # type: textblock
6115 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6116 msgid ""
6117 "This can be used for verifying the integrity of a virtual machine.  However "
6118 "to be properly secure you should pay attention to the output of the checksum "
6119 "command (it uses the ones from GNU coreutils).  In particular when the "
6120 "filename is not printable, coreutils uses a special backslash syntax.  For "
6121 "more information, see the GNU coreutils info file."
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:970
6126 msgid "(Added in 1.3.7)"
6127 msgstr ""
6128
6129 # type: =head2
6130 #: ../src/guestfs-actions.pod:972
6131 msgid "guestfs_chmod"
6132 msgstr ""
6133
6134 # type: verbatim
6135 #: ../src/guestfs-actions.pod:974
6136 #, no-wrap
6137 msgid ""
6138 " int\n"
6139 " guestfs_chmod (guestfs_h *g,\n"
6140 "                int mode,\n"
6141 "                const char *path);\n"
6142 "\n"
6143 msgstr ""
6144
6145 # type: textblock
6146 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6147 msgid ""
6148 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6149 "supported."
6150 msgstr ""
6151
6152 # type: textblock
6153 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6154 msgid ""
6155 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6156 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6157 "C<700>."
6158 msgstr ""
6159
6160 # type: textblock
6161 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075
6162 #: ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209
6163 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671
6164 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6165 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6166 msgid "The mode actually set is affected by the umask."
6167 msgstr ""
6168
6169 # type: =head2
6170 #: ../src/guestfs-actions.pod:992
6171 msgid "guestfs_chown"
6172 msgstr ""
6173
6174 # type: verbatim
6175 #: ../src/guestfs-actions.pod:994
6176 #, no-wrap
6177 msgid ""
6178 " int\n"
6179 " guestfs_chown (guestfs_h *g,\n"
6180 "                int owner,\n"
6181 "                int group,\n"
6182 "                const char *path);\n"
6183 "\n"
6184 msgstr ""
6185
6186 # type: textblock
6187 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6188 msgid "Change the file owner to C<owner> and group to C<group>."
6189 msgstr ""
6190
6191 # type: textblock
6192 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213
6193 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6194 msgid ""
6195 "Only numeric uid and gid are supported.  If you want to use names, you will "
6196 "need to locate and parse the password file yourself (Augeas support makes "
6197 "this relatively easy)."
6198 msgstr ""
6199
6200 # type: =head2
6201 #: ../src/guestfs-actions.pod:1010
6202 msgid "guestfs_command"
6203 msgstr ""
6204
6205 # type: verbatim
6206 #: ../src/guestfs-actions.pod:1012
6207 #, no-wrap
6208 msgid ""
6209 " char *\n"
6210 " guestfs_command (guestfs_h *g,\n"
6211 "                  char *const *arguments);\n"
6212 "\n"
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6217 msgid ""
6218 "This call runs a command from the guest filesystem.  The filesystem must be "
6219 "mounted, and must contain a compatible operating system (ie. something "
6220 "Linux, with the same or compatible processor architecture)."
6221 msgstr ""
6222
6223 # type: textblock
6224 #: ../src/guestfs-actions.pod:1021
6225 msgid ""
6226 "The single parameter is an argv-style list of arguments.  The first element "
6227 "is the name of the program to run.  Subsequent elements are parameters.  The "
6228 "list must be non-empty (ie. must contain a program name).  Note that the "
6229 "command runs directly, and is I<not> invoked via the shell (see "
6230 "C<guestfs_sh>)."
6231 msgstr ""
6232
6233 # type: textblock
6234 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6235 msgid "The return value is anything printed to I<stdout> by the command."
6236 msgstr ""
6237
6238 # type: textblock
6239 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6240 msgid ""
6241 "If the command returns a non-zero exit status, then this function returns an "
6242 "error message.  The error message string is the content of I<stderr> from "
6243 "the command."
6244 msgstr ""
6245
6246 # type: textblock
6247 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6248 msgid ""
6249 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6250 "bin>.  If you require a program from another location, you should provide "
6251 "the full path in the first parameter."
6252 msgstr ""
6253
6254 # type: textblock
6255 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6256 msgid ""
6257 "Shared libraries and data files required by the program must be available on "
6258 "filesystems which are mounted in the correct places.  It is the caller's "
6259 "responsibility to ensure all filesystems that are needed are mounted at the "
6260 "right locations."
6261 msgstr ""
6262
6263 # type: textblock
6264 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6265 #: ../src/guestfs-actions.pod:1535
6266 msgid "(Added in 0.9.1)"
6267 msgstr ""
6268
6269 # type: =head2
6270 #: ../src/guestfs-actions.pod:1054
6271 msgid "guestfs_command_lines"
6272 msgstr ""
6273
6274 # type: verbatim
6275 #: ../src/guestfs-actions.pod:1056
6276 #, no-wrap
6277 msgid ""
6278 " char **\n"
6279 " guestfs_command_lines (guestfs_h *g,\n"
6280 "                        char *const *arguments);\n"
6281 "\n"
6282 msgstr ""
6283
6284 # type: textblock
6285 #: ../src/guestfs-actions.pod:1060
6286 msgid ""
6287 "This is the same as C<guestfs_command>, but splits the result into a list of "
6288 "lines."
6289 msgstr ""
6290
6291 # type: textblock
6292 #: ../src/guestfs-actions.pod:1063
6293 msgid "See also: C<guestfs_sh_lines>"
6294 msgstr ""
6295
6296 # type: =head2
6297 #: ../src/guestfs-actions.pod:1074
6298 msgid "guestfs_config"
6299 msgstr ""
6300
6301 # type: verbatim
6302 #: ../src/guestfs-actions.pod:1076
6303 #, no-wrap
6304 msgid ""
6305 " int\n"
6306 " guestfs_config (guestfs_h *g,\n"
6307 "                 const char *qemuparam,\n"
6308 "                 const char *qemuvalue);\n"
6309 "\n"
6310 msgstr ""
6311
6312 # type: textblock
6313 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6314 msgid ""
6315 "This can be used to add arbitrary qemu command line parameters of the form "
6316 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6317 "setting some parameters which would interfere with parameters that we use."
6318 msgstr ""
6319
6320 # type: textblock
6321 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6322 msgid "The first character of C<param> string must be a C<-> (dash)."
6323 msgstr ""
6324
6325 # type: textblock
6326 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6327 msgid "C<value> can be NULL."
6328 msgstr ""
6329
6330 # type: =head2
6331 #: ../src/guestfs-actions.pod:1094
6332 msgid "guestfs_copy_size"
6333 msgstr ""
6334
6335 # type: verbatim
6336 #: ../src/guestfs-actions.pod:1096
6337 #, no-wrap
6338 msgid ""
6339 " int\n"
6340 " guestfs_copy_size (guestfs_h *g,\n"
6341 "                    const char *src,\n"
6342 "                    const char *dest,\n"
6343 "                    int64_t size);\n"
6344 "\n"
6345 msgstr ""
6346
6347 # type: textblock
6348 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6349 msgid ""
6350 "This command copies exactly C<size> bytes from one source device or file "
6351 "C<src> to another destination device or file C<dest>."
6352 msgstr ""
6353
6354 # type: textblock
6355 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6356 msgid ""
6357 "Note this will fail if the source is too short or if the destination is not "
6358 "large enough."
6359 msgstr ""
6360
6361 # type: textblock
6362 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6363 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6364 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881
6365 #: ../src/guestfs-actions.pod:6900
6366 msgid ""
6367 "This long-running command can generate progress notification messages so "
6368 "that the caller can display a progress bar or indicator.  To receive these "
6369 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6370 "guestfs_set_progress_callback>."
6371 msgstr ""
6372
6373 # type: textblock
6374 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851
6375 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609
6376 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6377 msgid "(Added in 1.0.87)"
6378 msgstr ""
6379
6380 # type: =head2
6381 #: ../src/guestfs-actions.pod:1117
6382 msgid "guestfs_cp"
6383 msgstr ""
6384
6385 # type: verbatim
6386 #: ../src/guestfs-actions.pod:1119
6387 #, no-wrap
6388 msgid ""
6389 " int\n"
6390 " guestfs_cp (guestfs_h *g,\n"
6391 "             const char *src,\n"
6392 "             const char *dest);\n"
6393 "\n"
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6398 msgid ""
6399 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6400 "destination filename or destination directory."
6401 msgstr ""
6402
6403 # type: textblock
6404 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6405 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6406 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454
6407 #: ../src/guestfs-actions.pod:4831
6408 msgid "(Added in 1.0.18)"
6409 msgstr ""
6410
6411 # type: =head2
6412 #: ../src/guestfs-actions.pod:1131
6413 msgid "guestfs_cp_a"
6414 msgstr ""
6415
6416 # type: verbatim
6417 #: ../src/guestfs-actions.pod:1133
6418 #, no-wrap
6419 msgid ""
6420 " int\n"
6421 " guestfs_cp_a (guestfs_h *g,\n"
6422 "               const char *src,\n"
6423 "               const char *dest);\n"
6424 "\n"
6425 msgstr ""
6426
6427 # type: textblock
6428 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6429 msgid ""
6430 "This copies a file or directory from C<src> to C<dest> recursively using the "
6431 "C<cp -a> command."
6432 msgstr ""
6433
6434 # type: =head2
6435 #: ../src/guestfs-actions.pod:1145
6436 msgid "guestfs_dd"
6437 msgstr ""
6438
6439 # type: verbatim
6440 #: ../src/guestfs-actions.pod:1147
6441 #, no-wrap
6442 msgid ""
6443 " int\n"
6444 " guestfs_dd (guestfs_h *g,\n"
6445 "             const char *src,\n"
6446 "             const char *dest);\n"
6447 "\n"
6448 msgstr ""
6449
6450 # type: textblock
6451 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6452 msgid ""
6453 "This command copies from one source device or file C<src> to another "
6454 "destination device or file C<dest>.  Normally you would use this to copy to "
6455 "or from a device or partition, for example to duplicate a filesystem."
6456 msgstr ""
6457
6458 # type: textblock
6459 #: ../src/guestfs-actions.pod:1157
6460 msgid ""
6461 "If the destination is a device, it must be as large or larger than the "
6462 "source file or device, otherwise the copy will fail.  This command cannot do "
6463 "partial copies (see C<guestfs_copy_size>)."
6464 msgstr ""
6465
6466 # type: =head2
6467 #: ../src/guestfs-actions.pod:1165
6468 msgid "guestfs_df"
6469 msgstr ""
6470
6471 # type: verbatim
6472 #: ../src/guestfs-actions.pod:1167
6473 #, no-wrap
6474 msgid ""
6475 " char *\n"
6476 " guestfs_df (guestfs_h *g);\n"
6477 "\n"
6478 msgstr ""
6479
6480 # type: textblock
6481 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6482 msgid "This command runs the C<df> command to report disk space used."
6483 msgstr ""
6484
6485 # type: textblock
6486 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6487 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6488 msgid ""
6489 "This command is mostly useful for interactive sessions.  It is I<not> "
6490 "intended that you try to parse the output string.  Use C<statvfs> from "
6491 "programs."
6492 msgstr ""
6493
6494 # type: textblock
6495 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6496 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6497 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6498 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354
6499 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140
6500 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761
6501 #: ../src/guestfs-actions.pod:6774
6502 msgid "(Added in 1.0.54)"
6503 msgstr ""
6504
6505 # type: =head2
6506 #: ../src/guestfs-actions.pod:1181
6507 msgid "guestfs_df_h"
6508 msgstr ""
6509
6510 # type: verbatim
6511 #: ../src/guestfs-actions.pod:1183
6512 #, no-wrap
6513 msgid ""
6514 " char *\n"
6515 " guestfs_df_h (guestfs_h *g);\n"
6516 "\n"
6517 msgstr ""
6518
6519 # type: textblock
6520 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6521 msgid ""
6522 "This command runs the C<df -h> command to report disk space used in human-"
6523 "readable format."
6524 msgstr ""
6525
6526 # type: =head2
6527 #: ../src/guestfs-actions.pod:1198
6528 msgid "guestfs_dmesg"
6529 msgstr ""
6530
6531 # type: verbatim
6532 #: ../src/guestfs-actions.pod:1200
6533 #, no-wrap
6534 msgid ""
6535 " char *\n"
6536 " guestfs_dmesg (guestfs_h *g);\n"
6537 "\n"
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6542 msgid ""
6543 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6544 "This is sometimes useful for extended debugging of problems."
6545 msgstr ""
6546
6547 # type: textblock
6548 #: ../src/guestfs-actions.pod:1207
6549 msgid ""
6550 "Another way to get the same information is to enable verbose messages with "
6551 "C<guestfs_set_verbose> or by setting the environment variable "
6552 "C<LIBGUESTFS_DEBUG=1> before running the program."
6553 msgstr ""
6554
6555 # type: =head2
6556 #: ../src/guestfs-actions.pod:1217
6557 msgid "guestfs_download"
6558 msgstr ""
6559
6560 # type: verbatim
6561 #: ../src/guestfs-actions.pod:1219
6562 #, no-wrap
6563 msgid ""
6564 " int\n"
6565 " guestfs_download (guestfs_h *g,\n"
6566 "                   const char *remotefilename,\n"
6567 "                   const char *filename);\n"
6568 "\n"
6569 msgstr ""
6570
6571 # type: textblock
6572 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6573 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6574 msgid ""
6575 "Download file C<remotefilename> and save it as C<filename> on the local "
6576 "machine."
6577 msgstr ""
6578
6579 # type: textblock
6580 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372
6581 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6582 msgid "C<filename> can also be a named pipe."
6583 msgstr ""
6584
6585 # type: textblock
6586 #: ../src/guestfs-actions.pod:1229
6587 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6588 msgstr ""
6589
6590 # type: =head2
6591 #: ../src/guestfs-actions.pod:1240
6592 msgid "guestfs_download_offset"
6593 msgstr ""
6594
6595 # type: verbatim
6596 #: ../src/guestfs-actions.pod:1242
6597 #, no-wrap
6598 msgid ""
6599 " int\n"
6600 " guestfs_download_offset (guestfs_h *g,\n"
6601 "                          const char *remotefilename,\n"
6602 "                          const char *filename,\n"
6603 "                          int64_t offset,\n"
6604 "                          int64_t size);\n"
6605 "\n"
6606 msgstr ""
6607
6608 # type: textblock
6609 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6610 msgid ""
6611 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6612 "region must be within the file or device)."
6613 msgstr ""
6614
6615 # type: textblock
6616 #: ../src/guestfs-actions.pod:1255
6617 msgid ""
6618 "Note that there is no limit on the amount of data that can be downloaded "
6619 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6620 "full amount unless an error occurs."
6621 msgstr ""
6622
6623 # type: textblock
6624 #: ../src/guestfs-actions.pod:1260
6625 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6626 msgstr ""
6627
6628 # type: textblock
6629 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6630 msgid "(Added in 1.5.17)"
6631 msgstr ""
6632
6633 # type: =head2
6634 #: ../src/guestfs-actions.pod:1271
6635 msgid "guestfs_drop_caches"
6636 msgstr ""
6637
6638 # type: verbatim
6639 #: ../src/guestfs-actions.pod:1273
6640 #, no-wrap
6641 msgid ""
6642 " int\n"
6643 " guestfs_drop_caches (guestfs_h *g,\n"
6644 "                      int whattodrop);\n"
6645 "\n"
6646 msgstr ""
6647
6648 # type: textblock
6649 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6650 msgid ""
6651 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6652 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6653 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6654 msgstr ""
6655
6656 # type: textblock
6657 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6658 msgid "Setting C<whattodrop> to 3 should drop everything."
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6663 msgid ""
6664 "This automatically calls L<sync(2)> before the operation, so that the "
6665 "maximum guest memory is freed."
6666 msgstr ""
6667
6668 # type: =head2
6669 #: ../src/guestfs-actions.pod:1291
6670 msgid "guestfs_du"
6671 msgstr ""
6672
6673 # type: verbatim
6674 #: ../src/guestfs-actions.pod:1293
6675 #, no-wrap
6676 msgid ""
6677 " int64_t\n"
6678 " guestfs_du (guestfs_h *g,\n"
6679 "             const char *path);\n"
6680 "\n"
6681 msgstr ""
6682
6683 # type: textblock
6684 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6685 msgid ""
6686 "This command runs the C<du -s> command to estimate file space usage for "
6687 "C<path>."
6688 msgstr ""
6689
6690 # type: textblock
6691 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6692 msgid ""
6693 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6694 "estimate includes the contents of the directory and all subdirectories "
6695 "(recursively)."
6696 msgstr ""
6697
6698 # type: textblock
6699 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6700 msgid ""
6701 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6702 msgstr ""
6703
6704 # type: =head2
6705 #: ../src/guestfs-actions.pod:1311
6706 msgid "guestfs_e2fsck_f"
6707 msgstr ""
6708
6709 # type: verbatim
6710 #: ../src/guestfs-actions.pod:1313
6711 #, no-wrap
6712 msgid ""
6713 " int\n"
6714 " guestfs_e2fsck_f (guestfs_h *g,\n"
6715 "                   const char *device);\n"
6716 "\n"
6717 msgstr ""
6718
6719 # type: textblock
6720 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6721 msgid ""
6722 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6723 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6724 "clean (C<-f>)."
6725 msgstr ""
6726
6727 # type: textblock
6728 #: ../src/guestfs-actions.pod:1321
6729 msgid ""
6730 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6731 "Normally you should use C<guestfs_fsck>."
6732 msgstr ""
6733
6734 # type: textblock
6735 #: ../src/guestfs-actions.pod:1326
6736 msgid "(Added in 1.0.29)"
6737 msgstr ""
6738
6739 # type: =head2
6740 #: ../src/guestfs-actions.pod:1328
6741 msgid "guestfs_echo_daemon"
6742 msgstr ""
6743
6744 # type: verbatim
6745 #: ../src/guestfs-actions.pod:1330
6746 #, no-wrap
6747 msgid ""
6748 " char *\n"
6749 " guestfs_echo_daemon (guestfs_h *g,\n"
6750 "                      char *const *words);\n"
6751 "\n"
6752 msgstr ""
6753
6754 # type: textblock
6755 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6756 msgid ""
6757 "This command concatenates the list of C<words> passed with single spaces "
6758 "between them and returns the resulting string."
6759 msgstr ""
6760
6761 # type: textblock
6762 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6763 msgid "You can use this command to test the connection through to the daemon."
6764 msgstr ""
6765
6766 # type: textblock
6767 #: ../src/guestfs-actions.pod:1339
6768 msgid "See also C<guestfs_ping_daemon>."
6769 msgstr ""
6770
6771 # type: textblock
6772 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6773 #: ../src/guestfs-actions.pod:5620
6774 msgid "(Added in 1.0.69)"
6775 msgstr ""
6776
6777 # type: =head2
6778 #: ../src/guestfs-actions.pod:1346
6779 msgid "guestfs_egrep"
6780 msgstr ""
6781
6782 # type: verbatim
6783 #: ../src/guestfs-actions.pod:1348
6784 #, no-wrap
6785 msgid ""
6786 " char **\n"
6787 " guestfs_egrep (guestfs_h *g,\n"
6788 "                const char *regex,\n"
6789 "                const char *path);\n"
6790 "\n"
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6795 msgid ""
6796 "This calls the external C<egrep> program and returns the matching lines."
6797 msgstr ""
6798
6799 # type: textblock
6800 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6801 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6802 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6803 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6804 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6805 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6806 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344
6807 #: ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371
6808 #: ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289
6809 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214
6810 #: ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996
6811 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022
6812 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057
6813 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083
6814 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863
6815 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967
6816 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6817 msgid "(Added in 1.0.66)"
6818 msgstr ""
6819
6820 # type: =head2
6821 #: ../src/guestfs-actions.pod:1365
6822 msgid "guestfs_egrepi"
6823 msgstr ""
6824
6825 # type: verbatim
6826 #: ../src/guestfs-actions.pod:1367
6827 #, no-wrap
6828 msgid ""
6829 " char **\n"
6830 " guestfs_egrepi (guestfs_h *g,\n"
6831 "                 const char *regex,\n"
6832 "                 const char *path);\n"
6833 "\n"
6834 msgstr ""
6835
6836 # type: textblock
6837 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6838 msgid ""
6839 "This calls the external C<egrep -i> program and returns the matching lines."
6840 msgstr ""
6841
6842 # type: =head2
6843 #: ../src/guestfs-actions.pod:1384
6844 msgid "guestfs_equal"
6845 msgstr ""
6846
6847 # type: verbatim
6848 #: ../src/guestfs-actions.pod:1386
6849 #, no-wrap
6850 msgid ""
6851 " int\n"
6852 " guestfs_equal (guestfs_h *g,\n"
6853 "                const char *file1,\n"
6854 "                const char *file2);\n"
6855 "\n"
6856 msgstr ""
6857
6858 # type: textblock
6859 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6860 msgid ""
6861 "This compares the two files C<file1> and C<file2> and returns true if their "
6862 "content is exactly equal, or false otherwise."
6863 msgstr ""
6864
6865 # type: textblock
6866 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6867 msgid "The external L<cmp(1)> program is used for the comparison."
6868 msgstr ""
6869
6870 # type: =head2
6871 #: ../src/guestfs-actions.pod:1400
6872 msgid "guestfs_exists"
6873 msgstr ""
6874
6875 # type: verbatim
6876 #: ../src/guestfs-actions.pod:1402
6877 #, no-wrap
6878 msgid ""
6879 " int\n"
6880 " guestfs_exists (guestfs_h *g,\n"
6881 "                 const char *path);\n"
6882 "\n"
6883 msgstr ""
6884
6885 # type: textblock
6886 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6887 msgid ""
6888 "This returns C<true> if and only if there is a file, directory (or anything) "
6889 "with the given C<path> name."
6890 msgstr ""
6891
6892 # type: textblock
6893 #: ../src/guestfs-actions.pod:1409
6894 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6895 msgstr ""
6896
6897 # type: =head2
6898 #: ../src/guestfs-actions.pod:1415
6899 msgid "guestfs_fallocate"
6900 msgstr ""
6901
6902 # type: verbatim
6903 #: ../src/guestfs-actions.pod:1417
6904 #, no-wrap
6905 msgid ""
6906 " int\n"
6907 " guestfs_fallocate (guestfs_h *g,\n"
6908 "                    const char *path,\n"
6909 "                    int len);\n"
6910 "\n"
6911 msgstr ""
6912
6913 # type: textblock
6914 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6915 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6916 msgid ""
6917 "This command preallocates a file (containing zero bytes) named C<path> of "
6918 "size C<len> bytes.  If the file exists already, it is overwritten."
6919 msgstr ""
6920
6921 # type: textblock
6922 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6923 msgid ""
6924 "Do not confuse this with the guestfish-specific C<alloc> command which "
6925 "allocates a file in the host and attaches it as a device."
6926 msgstr ""
6927
6928 # type: textblock
6929 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6930 msgid ""
6931 "This function is deprecated.  In new code, use the C<fallocate64> call "
6932 "instead."
6933 msgstr ""
6934
6935 # type: =head2
6936 #: ../src/guestfs-actions.pod:1441
6937 msgid "guestfs_fallocate64"
6938 msgstr ""
6939
6940 # type: verbatim
6941 #: ../src/guestfs-actions.pod:1443
6942 #, no-wrap
6943 msgid ""
6944 " int\n"
6945 " guestfs_fallocate64 (guestfs_h *g,\n"
6946 "                      const char *path,\n"
6947 "                      int64_t len);\n"
6948 "\n"
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1452
6953 msgid ""
6954 "Note that this call allocates disk blocks for the file.  To create a sparse "
6955 "file use C<guestfs_truncate_size> instead."
6956 msgstr ""
6957
6958 # type: textblock
6959 #: ../src/guestfs-actions.pod:1455
6960 msgid ""
6961 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6962 "oversight it only allowed 30 bit lengths to be specified, effectively "
6963 "limiting the maximum size of files created through that call to 1GB."
6964 msgstr ""
6965
6966 # type: textblock
6967 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6968 msgid ""
6969 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6970 "commands which create a file in the host and attach it as a device."
6971 msgstr ""
6972
6973 # type: textblock
6974 #: ../src/guestfs-actions.pod:1466
6975 msgid "(Added in 1.3.17)"
6976 msgstr ""
6977
6978 # type: =head2
6979 #: ../src/guestfs-actions.pod:1468
6980 msgid "guestfs_fgrep"
6981 msgstr ""
6982
6983 # type: verbatim
6984 #: ../src/guestfs-actions.pod:1470
6985 #, no-wrap
6986 msgid ""
6987 " char **\n"
6988 " guestfs_fgrep (guestfs_h *g,\n"
6989 "                const char *pattern,\n"
6990 "                const char *path);\n"
6991 "\n"
6992 msgstr ""
6993
6994 # type: textblock
6995 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6996 msgid ""
6997 "This calls the external C<fgrep> program and returns the matching lines."
6998 msgstr ""
6999
7000 # type: =head2
7001 #: ../src/guestfs-actions.pod:1487
7002 msgid "guestfs_fgrepi"
7003 msgstr ""
7004
7005 # type: verbatim
7006 #: ../src/guestfs-actions.pod:1489
7007 #, no-wrap
7008 msgid ""
7009 " char **\n"
7010 " guestfs_fgrepi (guestfs_h *g,\n"
7011 "                 const char *pattern,\n"
7012 "                 const char *path);\n"
7013 "\n"
7014 msgstr ""
7015
7016 # type: textblock
7017 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7018 msgid ""
7019 "This calls the external C<fgrep -i> program and returns the matching lines."
7020 msgstr ""
7021
7022 # type: =head2
7023 #: ../src/guestfs-actions.pod:1506
7024 msgid "guestfs_file"
7025 msgstr ""
7026
7027 # type: verbatim
7028 #: ../src/guestfs-actions.pod:1508
7029 #, no-wrap
7030 msgid ""
7031 " char *\n"
7032 " guestfs_file (guestfs_h *g,\n"
7033 "               const char *path);\n"
7034 "\n"
7035 msgstr ""
7036
7037 # type: textblock
7038 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7039 msgid ""
7040 "This call uses the standard L<file(1)> command to determine the type or "
7041 "contents of the file."
7042 msgstr ""
7043
7044 # type: textblock
7045 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7046 msgid ""
7047 "This call will also transparently look inside various types of compressed "
7048 "file."
7049 msgstr ""
7050
7051 # type: textblock
7052 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7053 msgid ""
7054 "The exact command which runs is C<file -zb path>.  Note in particular that "
7055 "the filename is not prepended to the output (the C<-b> option)."
7056 msgstr ""
7057
7058 # type: textblock
7059 #: ../src/guestfs-actions.pod:1522
7060 msgid ""
7061 "This command can also be used on C</dev/> devices (and partitions, LV "
7062 "names).  You can for example use this to determine if a device contains a "
7063 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7064 msgstr ""
7065
7066 # type: textblock
7067 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7068 msgid ""
7069 "If the C<path> does not begin with C</dev/> then this command only works for "
7070 "the content of regular files.  For other file types (directory, symbolic "
7071 "link etc) it will just return the string C<directory> etc."
7072 msgstr ""
7073
7074 # type: =head2
7075 #: ../src/guestfs-actions.pod:1537
7076 msgid "guestfs_file_architecture"
7077 msgstr ""
7078
7079 # type: verbatim
7080 #: ../src/guestfs-actions.pod:1539
7081 #, no-wrap
7082 msgid ""
7083 " char *\n"
7084 " guestfs_file_architecture (guestfs_h *g,\n"
7085 "                            const char *filename);\n"
7086 "\n"
7087 msgstr ""
7088
7089 # type: textblock
7090 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7091 msgid ""
7092 "This detects the architecture of the binary C<filename>, and returns it if "
7093 "known."
7094 msgstr ""
7095
7096 # type: textblock
7097 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7098 msgid "Currently defined architectures are:"
7099 msgstr ""
7100
7101 # type: =item
7102 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7103 msgid "\"i386\""
7104 msgstr ""
7105
7106 # type: textblock
7107 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7108 msgid ""
7109 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7110 "irrespective of the precise processor requirements of the binary."
7111 msgstr ""
7112
7113 # type: =item
7114 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7115 msgid "\"x86_64\""
7116 msgstr ""
7117
7118 # type: textblock
7119 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7120 msgid "64 bit x86-64."
7121 msgstr ""
7122
7123 # type: =item
7124 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7125 msgid "\"sparc\""
7126 msgstr ""
7127
7128 # type: textblock
7129 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7130 msgid "32 bit SPARC."
7131 msgstr ""
7132
7133 # type: =item
7134 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7135 msgid "\"sparc64\""
7136 msgstr ""
7137
7138 # type: textblock
7139 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7140 msgid "64 bit SPARC V9 and above."
7141 msgstr ""
7142
7143 # type: =item
7144 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7145 msgid "\"ia64\""
7146 msgstr ""
7147
7148 # type: textblock
7149 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7150 msgid "Intel Itanium."
7151 msgstr ""
7152
7153 # type: =item
7154 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7155 msgid "\"ppc\""
7156 msgstr ""
7157
7158 # type: textblock
7159 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7160 msgid "32 bit Power PC."
7161 msgstr ""
7162
7163 # type: =item
7164 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7165 msgid "\"ppc64\""
7166 msgstr ""
7167
7168 # type: textblock
7169 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7170 msgid "64 bit Power PC."
7171 msgstr ""
7172
7173 # type: textblock
7174 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7175 msgid "Libguestfs may return other architecture strings in future."
7176 msgstr ""
7177
7178 # type: textblock
7179 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7180 msgid "The function works on at least the following types of files:"
7181 msgstr ""
7182
7183 # type: textblock
7184 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7185 msgid "many types of Un*x and Linux binary"
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7190 msgid "many types of Un*x and Linux shared library"
7191 msgstr ""
7192
7193 # type: textblock
7194 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7195 msgid "Windows Win32 and Win64 binaries"
7196 msgstr ""
7197
7198 # type: textblock
7199 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7200 msgid "Windows Win32 and Win64 DLLs"
7201 msgstr ""
7202
7203 # type: textblock
7204 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7205 msgid "Win32 binaries and DLLs return C<i386>."
7206 msgstr ""
7207
7208 # type: textblock
7209 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7210 msgid "Win64 binaries and DLLs return C<x86_64>."
7211 msgstr ""
7212
7213 # type: textblock
7214 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7215 msgid "Linux kernel modules"
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7220 msgid "Linux new-style initrd images"
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7225 msgid "some non-x86 Linux vmlinuz kernels"
7226 msgstr ""
7227
7228 # type: textblock
7229 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7230 msgid "What it can't do currently:"
7231 msgstr ""
7232
7233 # type: textblock
7234 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7235 msgid "static libraries (libfoo.a)"
7236 msgstr ""
7237
7238 # type: textblock
7239 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7240 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7245 msgid "x86 Linux vmlinuz kernels"
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7250 msgid ""
7251 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7252 "compressed code, and are horribly hard to unpack.  If you want to find the "
7253 "architecture of a kernel, use the architecture of the associated initrd or "
7254 "kernel module(s) instead."
7255 msgstr ""
7256
7257 # type: textblock
7258 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7259 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7260 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
7261 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653
7262 #: ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766
7263 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997
7264 #: ../src/guestfs-actions.pod:3129
7265 msgid "(Added in 1.5.3)"
7266 msgstr ""
7267
7268 # type: =head2
7269 #: ../src/guestfs-actions.pod:1649
7270 msgid "guestfs_filesize"
7271 msgstr ""
7272
7273 # type: verbatim
7274 #: ../src/guestfs-actions.pod:1651
7275 #, no-wrap
7276 msgid ""
7277 " int64_t\n"
7278 " guestfs_filesize (guestfs_h *g,\n"
7279 "                   const char *file);\n"
7280 "\n"
7281 msgstr ""
7282
7283 # type: textblock
7284 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7285 msgid "This command returns the size of C<file> in bytes."
7286 msgstr ""
7287
7288 # type: textblock
7289 #: ../src/guestfs-actions.pod:1657
7290 msgid ""
7291 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7292 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7293 "devices, use C<guestfs_blockdev_getsize64>."
7294 msgstr ""
7295
7296 # type: textblock
7297 #: ../src/guestfs-actions.pod:1663
7298 msgid "(Added in 1.0.82)"
7299 msgstr ""
7300
7301 # type: =head2
7302 #: ../src/guestfs-actions.pod:1665
7303 msgid "guestfs_fill"
7304 msgstr ""
7305
7306 # type: verbatim
7307 #: ../src/guestfs-actions.pod:1667
7308 #, no-wrap
7309 msgid ""
7310 " int\n"
7311 " guestfs_fill (guestfs_h *g,\n"
7312 "               int c,\n"
7313 "               int len,\n"
7314 "               const char *path);\n"
7315 "\n"
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7320 msgid ""
7321 "This command creates a new file called C<path>.  The initial content of the "
7322 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7323 "[0..255]>."
7324 msgstr ""
7325
7326 # type: textblock
7327 #: ../src/guestfs-actions.pod:1677
7328 msgid ""
7329 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7330 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7331 "bytes use C<guestfs_fill_pattern>."
7332 msgstr ""
7333
7334 # type: textblock
7335 #: ../src/guestfs-actions.pod:1689
7336 msgid "(Added in 1.0.79)"
7337 msgstr ""
7338
7339 # type: =head2
7340 #: ../src/guestfs-actions.pod:1691
7341 msgid "guestfs_fill_pattern"
7342 msgstr ""
7343
7344 # type: verbatim
7345 #: ../src/guestfs-actions.pod:1693
7346 #, no-wrap
7347 msgid ""
7348 " int\n"
7349 " guestfs_fill_pattern (guestfs_h *g,\n"
7350 "                       const char *pattern,\n"
7351 "                       int len,\n"
7352 "                       const char *path);\n"
7353 "\n"
7354 msgstr ""
7355
7356 # type: textblock
7357 #: ../src/guestfs-actions.pod:1699
7358 msgid ""
7359 "This function is like C<guestfs_fill> except that it creates a new file of "
7360 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7361 "pattern is truncated if necessary to ensure the length of the file is "
7362 "exactly C<len> bytes."
7363 msgstr ""
7364
7365 # type: textblock
7366 #: ../src/guestfs-actions.pod:1711
7367 msgid "(Added in 1.3.12)"
7368 msgstr ""
7369
7370 # type: =head2
7371 #: ../src/guestfs-actions.pod:1713
7372 msgid "guestfs_find"
7373 msgstr ""
7374
7375 # type: verbatim
7376 #: ../src/guestfs-actions.pod:1715
7377 #, no-wrap
7378 msgid ""
7379 " char **\n"
7380 " guestfs_find (guestfs_h *g,\n"
7381 "               const char *directory);\n"
7382 "\n"
7383 msgstr ""
7384
7385 # type: textblock
7386 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7387 msgid ""
7388 "This command lists out all files and directories, recursively, starting at "
7389 "C<directory>.  It is essentially equivalent to running the shell command "
7390 "C<find directory -print> but some post-processing happens on the output, "
7391 "described below."
7392 msgstr ""
7393
7394 # type: textblock
7395 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7396 msgid ""
7397 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7398 "structure was:"
7399 msgstr ""
7400
7401 # type: verbatim
7402 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7403 #, no-wrap
7404 msgid ""
7405 " /tmp/a\n"
7406 " /tmp/b\n"
7407 " /tmp/c/d\n"
7408 "\n"
7409 msgstr ""
7410
7411 # type: textblock
7412 #: ../src/guestfs-actions.pod:1731
7413 msgid ""
7414 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7415 msgstr ""
7416
7417 # type: verbatim
7418 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7419 #, no-wrap
7420 msgid ""
7421 " a\n"
7422 " b\n"
7423 " c\n"
7424 " c/d\n"
7425 "\n"
7426 msgstr ""
7427
7428 # type: textblock
7429 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7430 msgid "If C<directory> is not a directory, then this command returns an error."
7431 msgstr ""
7432
7433 # type: textblock
7434 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7435 msgid "The returned list is sorted."
7436 msgstr ""
7437
7438 # type: textblock
7439 #: ../src/guestfs-actions.pod:1744
7440 msgid "See also C<guestfs_find0>."
7441 msgstr ""
7442
7443 # type: textblock
7444 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788
7445 #: ../src/guestfs-actions.pod:5249
7446 msgid "(Added in 1.0.27)"
7447 msgstr ""
7448
7449 # type: =head2
7450 #: ../src/guestfs-actions.pod:1755
7451 msgid "guestfs_find0"
7452 msgstr ""
7453
7454 # type: verbatim
7455 #: ../src/guestfs-actions.pod:1757
7456 #, no-wrap
7457 msgid ""
7458 " int\n"
7459 " guestfs_find0 (guestfs_h *g,\n"
7460 "                const char *directory,\n"
7461 "                const char *files);\n"
7462 "\n"
7463 msgstr ""
7464
7465 # type: textblock
7466 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7467 msgid ""
7468 "This command lists out all files and directories, recursively, starting at "
7469 "C<directory>, placing the resulting list in the external file called "
7470 "C<files>."
7471 msgstr ""
7472
7473 # type: textblock
7474 #: ../src/guestfs-actions.pod:1766
7475 msgid ""
7476 "This command works the same way as C<guestfs_find> with the following "
7477 "exceptions:"
7478 msgstr ""
7479
7480 # type: textblock
7481 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7482 msgid "The resulting list is written to an external file."
7483 msgstr ""
7484
7485 # type: textblock
7486 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7487 msgid ""
7488 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7489 "L<find(1)> option I<-print0>."
7490 msgstr ""
7491
7492 # type: textblock
7493 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7494 msgid "This command is not limited in the number of names that it can return."
7495 msgstr ""
7496
7497 # type: textblock
7498 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7499 msgid "The result list is not sorted."
7500 msgstr ""
7501
7502 # type: textblock
7503 #: ../src/guestfs-actions.pod:1793
7504 msgid "(Added in 1.0.74)"
7505 msgstr ""
7506
7507 # type: =head2
7508 #: ../src/guestfs-actions.pod:1795
7509 msgid "guestfs_findfs_label"
7510 msgstr ""
7511
7512 # type: verbatim
7513 #: ../src/guestfs-actions.pod:1797
7514 #, no-wrap
7515 msgid ""
7516 " char *\n"
7517 " guestfs_findfs_label (guestfs_h *g,\n"
7518 "                       const char *label);\n"
7519 "\n"
7520 msgstr ""
7521
7522 # type: textblock
7523 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7524 msgid ""
7525 "This command searches the filesystems and returns the one which has the "
7526 "given label.  An error is returned if no such filesystem can be found."
7527 msgstr ""
7528
7529 # type: textblock
7530 #: ../src/guestfs-actions.pod:1805
7531 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7532 msgstr ""
7533
7534 # type: =head2
7535 #: ../src/guestfs-actions.pod:1812
7536 msgid "guestfs_findfs_uuid"
7537 msgstr ""
7538
7539 # type: verbatim
7540 #: ../src/guestfs-actions.pod:1814
7541 #, no-wrap
7542 msgid ""
7543 " char *\n"
7544 " guestfs_findfs_uuid (guestfs_h *g,\n"
7545 "                      const char *uuid);\n"
7546 "\n"
7547 msgstr ""
7548
7549 # type: textblock
7550 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7551 msgid ""
7552 "This command searches the filesystems and returns the one which has the "
7553 "given UUID.  An error is returned if no such filesystem can be found."
7554 msgstr ""
7555
7556 # type: textblock
7557 #: ../src/guestfs-actions.pod:1822
7558 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7559 msgstr ""
7560
7561 # type: =head2
7562 #: ../src/guestfs-actions.pod:1829
7563 msgid "guestfs_fsck"
7564 msgstr ""
7565
7566 # type: verbatim
7567 #: ../src/guestfs-actions.pod:1831
7568 #, no-wrap
7569 msgid ""
7570 " int\n"
7571 " guestfs_fsck (guestfs_h *g,\n"
7572 "               const char *fstype,\n"
7573 "               const char *device);\n"
7574 "\n"
7575 msgstr ""
7576
7577 # type: textblock
7578 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7579 msgid ""
7580 "This runs the filesystem checker (fsck) on C<device> which should have "
7581 "filesystem type C<fstype>."
7582 msgstr ""
7583
7584 # type: textblock
7585 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7586 msgid ""
7587 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7588 "codes from C<fsck>."
7589 msgstr ""
7590
7591 # type: textblock
7592 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7593 msgid "Multiple status codes can be summed together."
7594 msgstr ""
7595
7596 # type: textblock
7597 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7598 msgid ""
7599 "A non-zero return code can mean \"success\", for example if errors have been "
7600 "corrected on the filesystem."
7601 msgstr ""
7602
7603 # type: textblock
7604 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7605 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7606 msgstr ""
7607
7608 # type: textblock
7609 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7610 msgid ""
7611 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7612 msgstr ""
7613
7614 # type: textblock
7615 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7616 msgid "(Added in 1.0.16)"
7617 msgstr ""
7618
7619 # type: =head2
7620 #: ../src/guestfs-actions.pod:1868
7621 msgid "guestfs_get_append"
7622 msgstr ""
7623
7624 # type: verbatim
7625 #: ../src/guestfs-actions.pod:1870
7626 #, no-wrap
7627 msgid ""
7628 " const char *\n"
7629 " guestfs_get_append (guestfs_h *g);\n"
7630 "\n"
7631 msgstr ""
7632
7633 # type: textblock
7634 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7635 msgid ""
7636 "Return the additional kernel options which are added to the guest kernel "
7637 "command line."
7638 msgstr ""
7639
7640 # type: textblock
7641 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7642 msgid "If C<NULL> then no options are added."
7643 msgstr ""
7644
7645 # type: textblock
7646 #: ../src/guestfs-actions.pod:1878
7647 msgid ""
7648 "This function returns a string which may be NULL.  There is no way to return "
7649 "an error from this function.  The string is owned by the guest handle and "
7650 "must I<not> be freed."
7651 msgstr ""
7652
7653 # type: textblock
7654 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927
7655 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758
7656 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793
7657 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557
7658 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7659 msgid "(Added in 1.0.26)"
7660 msgstr ""
7661
7662 # type: =head2
7663 #: ../src/guestfs-actions.pod:1884
7664 msgid "guestfs_get_autosync"
7665 msgstr ""
7666
7667 # type: verbatim
7668 #: ../src/guestfs-actions.pod:1886
7669 #, no-wrap
7670 msgid ""
7671 " int\n"
7672 " guestfs_get_autosync (guestfs_h *g);\n"
7673 "\n"
7674 msgstr ""
7675
7676 # type: textblock
7677 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7678 msgid "Get the autosync flag."
7679 msgstr ""
7680
7681 # type: =head2
7682 #: ../src/guestfs-actions.pod:1895
7683 msgid "guestfs_get_direct"
7684 msgstr ""
7685
7686 # type: verbatim
7687 #: ../src/guestfs-actions.pod:1897
7688 #, no-wrap
7689 msgid ""
7690 " int\n"
7691 " guestfs_get_direct (guestfs_h *g);\n"
7692 "\n"
7693 msgstr ""
7694
7695 # type: textblock
7696 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7697 msgid "Return the direct appliance mode flag."
7698 msgstr ""
7699
7700 # type: textblock
7701 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7702 msgid "(Added in 1.0.72)"
7703 msgstr ""
7704
7705 # type: =head2
7706 #: ../src/guestfs-actions.pod:1906
7707 msgid "guestfs_get_e2label"
7708 msgstr ""
7709
7710 # type: verbatim
7711 #: ../src/guestfs-actions.pod:1908
7712 #, no-wrap
7713 msgid ""
7714 " char *\n"
7715 " guestfs_get_e2label (guestfs_h *g,\n"
7716 "                      const char *device);\n"
7717 "\n"
7718 msgstr ""
7719
7720 # type: textblock
7721 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7722 msgid ""
7723 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7724 msgstr ""
7725
7726 # type: textblock
7727 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7728 msgid ""
7729 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7730 msgstr ""
7731
7732 # type: textblock
7733 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7734 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7735 msgid "(Added in 1.0.15)"
7736 msgstr ""
7737
7738 # type: =head2
7739 #: ../src/guestfs-actions.pod:1927
7740 msgid "guestfs_get_e2uuid"
7741 msgstr ""
7742
7743 # type: verbatim
7744 #: ../src/guestfs-actions.pod:1929
7745 #, no-wrap
7746 msgid ""
7747 " char *\n"
7748 " guestfs_get_e2uuid (guestfs_h *g,\n"
7749 "                     const char *device);\n"
7750 "\n"
7751 msgstr ""
7752
7753 # type: textblock
7754 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7755 msgid ""
7756 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7757 msgstr ""
7758
7759 # type: textblock
7760 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7761 msgid ""
7762 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7763 msgstr ""
7764
7765 # type: =head2
7766 #: ../src/guestfs-actions.pod:1948
7767 msgid "guestfs_get_memsize"
7768 msgstr ""
7769
7770 # type: verbatim
7771 #: ../src/guestfs-actions.pod:1950
7772 #, no-wrap
7773 msgid ""
7774 " int\n"
7775 " guestfs_get_memsize (guestfs_h *g);\n"
7776 "\n"
7777 msgstr ""
7778
7779 # type: textblock
7780 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7781 msgid ""
7782 "This gets the memory size in megabytes allocated to the qemu subprocess."
7783 msgstr ""
7784
7785 # type: textblock
7786 #: ../src/guestfs-actions.pod:1956
7787 msgid ""
7788 "If C<guestfs_set_memsize> was not called on this handle, and if "
7789 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7790 "value for memsize."
7791 msgstr ""
7792
7793 # type: textblock
7794 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7795 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591
7796 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7797 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7798 msgid ""
7799 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7800 msgstr ""
7801
7802 # type: textblock
7803 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079
7804 #: ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213
7805 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244
7806 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274
7807 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489
7808 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7809 msgid "(Added in 1.0.55)"
7810 msgstr ""
7811
7812 # type: =head2
7813 #: ../src/guestfs-actions.pod:1967
7814 msgid "guestfs_get_network"
7815 msgstr ""
7816
7817 # type: verbatim
7818 #: ../src/guestfs-actions.pod:1969
7819 #, no-wrap
7820 msgid ""
7821 " int\n"
7822 " guestfs_get_network (guestfs_h *g);\n"
7823 "\n"
7824 msgstr ""
7825
7826 # type: textblock
7827 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7828 msgid "This returns the enable network flag."
7829 msgstr ""
7830
7831 # type: textblock
7832 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7833 msgid "(Added in 1.5.4)"
7834 msgstr ""
7835
7836 # type: =head2
7837 #: ../src/guestfs-actions.pod:1978
7838 msgid "guestfs_get_path"
7839 msgstr ""
7840
7841 # type: verbatim
7842 #: ../src/guestfs-actions.pod:1980
7843 #, no-wrap
7844 msgid ""
7845 " const char *\n"
7846 " guestfs_get_path (guestfs_h *g);\n"
7847 "\n"
7848 msgstr ""
7849
7850 # type: textblock
7851 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7852 msgid "Return the current search path."
7853 msgstr ""
7854
7855 # type: textblock
7856 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7857 msgid ""
7858 "This is always non-NULL.  If it wasn't set already, then this will return "
7859 "the default path."
7860 msgstr ""
7861
7862 # type: textblock
7863 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7864 msgid ""
7865 "This function returns a string, or NULL on error.  The string is owned by "
7866 "the guest handle and must I<not> be freed."
7867 msgstr ""
7868
7869 # type: =head2
7870 #: ../src/guestfs-actions.pod:1993
7871 msgid "guestfs_get_pid"
7872 msgstr ""
7873
7874 # type: verbatim
7875 #: ../src/guestfs-actions.pod:1995
7876 #, no-wrap
7877 msgid ""
7878 " int\n"
7879 " guestfs_get_pid (guestfs_h *g);\n"
7880 "\n"
7881 msgstr ""
7882
7883 # type: textblock
7884 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7885 msgid ""
7886 "Return the process ID of the qemu subprocess.  If there is no qemu "
7887 "subprocess, then this will return an error."
7888 msgstr ""
7889
7890 # type: textblock
7891 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7892 msgid "This is an internal call used for debugging and testing."
7893 msgstr ""
7894
7895 # type: textblock
7896 #: ../src/guestfs-actions.pod:2005
7897 msgid "(Added in 1.0.56)"
7898 msgstr ""
7899
7900 # type: =head2
7901 #: ../src/guestfs-actions.pod:2007
7902 msgid "guestfs_get_qemu"
7903 msgstr ""
7904
7905 # type: verbatim
7906 #: ../src/guestfs-actions.pod:2009
7907 #, no-wrap
7908 msgid ""
7909 " const char *\n"
7910 " guestfs_get_qemu (guestfs_h *g);\n"
7911 "\n"
7912 msgstr ""
7913
7914 # type: textblock
7915 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7916 msgid "Return the current qemu binary."
7917 msgstr ""
7918
7919 # type: textblock
7920 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7921 msgid ""
7922 "This is always non-NULL.  If it wasn't set already, then this will return "
7923 "the default qemu binary name."
7924 msgstr ""
7925
7926 # type: textblock
7927 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7928 msgid "(Added in 1.0.6)"
7929 msgstr ""
7930
7931 # type: =head2
7932 #: ../src/guestfs-actions.pod:2022
7933 msgid "guestfs_get_recovery_proc"
7934 msgstr ""
7935
7936 # type: verbatim
7937 #: ../src/guestfs-actions.pod:2024
7938 #, no-wrap
7939 msgid ""
7940 " int\n"
7941 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7942 "\n"
7943 msgstr ""
7944
7945 # type: textblock
7946 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7947 msgid "Return the recovery process enabled flag."
7948 msgstr ""
7949
7950 # type: textblock
7951 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219
7952 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886
7953 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857
7954 #: ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577
7955 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256
7956 #: ../src/guestfs-actions.pod:6438
7957 msgid "(Added in 1.0.77)"
7958 msgstr ""
7959
7960 # type: =head2
7961 #: ../src/guestfs-actions.pod:2033
7962 msgid "guestfs_get_selinux"
7963 msgstr ""
7964
7965 # type: verbatim
7966 #: ../src/guestfs-actions.pod:2035
7967 #, no-wrap
7968 msgid ""
7969 " int\n"
7970 " guestfs_get_selinux (guestfs_h *g);\n"
7971 "\n"
7972 msgstr ""
7973
7974 # type: textblock
7975 #: ../src/guestfs-actions.pod:2038
7976 msgid ""
7977 "This returns the current setting of the selinux flag which is passed to the "
7978 "appliance at boot time.  See C<guestfs_set_selinux>."
7979 msgstr ""
7980
7981 # type: textblock
7982 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7983 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7984 msgid "(Added in 1.0.67)"
7985 msgstr ""
7986
7987 # type: =head2
7988 #: ../src/guestfs-actions.pod:2048
7989 msgid "guestfs_get_state"
7990 msgstr ""
7991
7992 # type: verbatim
7993 #: ../src/guestfs-actions.pod:2050
7994 #, no-wrap
7995 msgid ""
7996 " int\n"
7997 " guestfs_get_state (guestfs_h *g);\n"
7998 "\n"
7999 msgstr ""
8000
8001 # type: textblock
8002 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8003 msgid ""
8004 "This returns the current state as an opaque integer.  This is only useful "
8005 "for printing debug and internal error messages."
8006 msgstr ""
8007
8008 # type: textblock
8009 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022
8010 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112
8011 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398
8012 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8013 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8014 msgid "For more information on states, see L<guestfs(3)>."
8015 msgstr ""
8016
8017 # type: =head2
8018 #: ../src/guestfs-actions.pod:2062
8019 msgid "guestfs_get_trace"
8020 msgstr ""
8021
8022 # type: verbatim
8023 #: ../src/guestfs-actions.pod:2064
8024 #, no-wrap
8025 msgid ""
8026 " int\n"
8027 " guestfs_get_trace (guestfs_h *g);\n"
8028 "\n"
8029 msgstr ""
8030
8031 # type: textblock
8032 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8033 msgid "Return the command trace flag."
8034 msgstr ""
8035
8036 # type: =head2
8037 #: ../src/guestfs-actions.pod:2073
8038 msgid "guestfs_get_umask"
8039 msgstr ""
8040
8041 # type: verbatim
8042 #: ../src/guestfs-actions.pod:2075
8043 #, no-wrap
8044 msgid ""
8045 " int\n"
8046 " guestfs_get_umask (guestfs_h *g);\n"
8047 "\n"
8048 msgstr ""
8049
8050 # type: textblock
8051 #: ../src/guestfs-actions.pod:2078
8052 msgid ""
8053 "Return the current umask.  By default the umask is C<022> unless it has been "
8054 "set by calling C<guestfs_umask>."
8055 msgstr ""
8056
8057 # type: =head2
8058 #: ../src/guestfs-actions.pod:2085
8059 msgid "guestfs_get_verbose"
8060 msgstr ""
8061
8062 # type: verbatim
8063 #: ../src/guestfs-actions.pod:2087
8064 #, no-wrap
8065 msgid ""
8066 " int\n"
8067 " guestfs_get_verbose (guestfs_h *g);\n"
8068 "\n"
8069 msgstr ""
8070
8071 # type: textblock
8072 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8073 msgid "This returns the verbose messages flag."
8074 msgstr ""
8075
8076 # type: =head2
8077 #: ../src/guestfs-actions.pod:2096
8078 msgid "guestfs_getcon"
8079 msgstr ""
8080
8081 # type: verbatim
8082 #: ../src/guestfs-actions.pod:2098
8083 #, no-wrap
8084 msgid ""
8085 " char *\n"
8086 " guestfs_getcon (guestfs_h *g);\n"
8087 "\n"
8088 msgstr ""
8089
8090 # type: textblock
8091 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8092 msgid "This gets the SELinux security context of the daemon."
8093 msgstr ""
8094
8095 # type: textblock
8096 #: ../src/guestfs-actions.pod:2103
8097 msgid ""
8098 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8099 msgstr ""
8100
8101 # type: =head2
8102 #: ../src/guestfs-actions.pod:2111
8103 msgid "guestfs_getxattrs"
8104 msgstr ""
8105
8106 # type: verbatim
8107 #: ../src/guestfs-actions.pod:2113
8108 #, no-wrap
8109 msgid ""
8110 " struct guestfs_xattr_list *\n"
8111 " guestfs_getxattrs (guestfs_h *g,\n"
8112 "                    const char *path);\n"
8113 "\n"
8114 msgstr ""
8115
8116 # type: textblock
8117 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8118 msgid ""
8119 "This call lists the extended attributes of the file or directory C<path>."
8120 msgstr ""
8121
8122 # type: textblock
8123 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8124 msgid ""
8125 "At the system call level, this is a combination of the L<listxattr(2)> and "
8126 "L<getxattr(2)> calls."
8127 msgstr ""
8128
8129 # type: textblock
8130 #: ../src/guestfs-actions.pod:2123
8131 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8132 msgstr ""
8133
8134 # type: textblock
8135 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231
8136 #: ../src/guestfs-actions.pod:3882
8137 msgid ""
8138 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8139 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8140 msgstr ""
8141
8142 # type: textblock
8143 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235
8144 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436
8145 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669
8146 #: ../src/guestfs-actions.pod:6994
8147 msgid "(Added in 1.0.59)"
8148 msgstr ""
8149
8150 # type: =head2
8151 #: ../src/guestfs-actions.pod:2131
8152 msgid "guestfs_glob_expand"
8153 msgstr ""
8154
8155 # type: verbatim
8156 #: ../src/guestfs-actions.pod:2133
8157 #, no-wrap
8158 msgid ""
8159 " char **\n"
8160 " guestfs_glob_expand (guestfs_h *g,\n"
8161 "                      const char *pattern);\n"
8162 "\n"
8163 msgstr ""
8164
8165 # type: textblock
8166 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8167 msgid ""
8168 "This command searches for all the pathnames matching C<pattern> according to "
8169 "the wildcard expansion rules used by the shell."
8170 msgstr ""
8171
8172 # type: textblock
8173 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8174 msgid ""
8175 "If no paths match, then this returns an empty list (note: not an error)."
8176 msgstr ""
8177
8178 # type: textblock
8179 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8180 msgid ""
8181 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8182 "GLOB_BRACE>.  See that manual page for more details."
8183 msgstr ""
8184
8185 # type: textblock
8186 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834
8187 #: ../src/guestfs-actions.pod:5851
8188 msgid "(Added in 1.0.50)"
8189 msgstr ""
8190
8191 # type: =head2
8192 #: ../src/guestfs-actions.pod:2154
8193 msgid "guestfs_grep"
8194 msgstr ""
8195
8196 # type: verbatim
8197 #: ../src/guestfs-actions.pod:2156
8198 #, no-wrap
8199 msgid ""
8200 " char **\n"
8201 " guestfs_grep (guestfs_h *g,\n"
8202 "               const char *regex,\n"
8203 "               const char *path);\n"
8204 "\n"
8205 msgstr ""
8206
8207 # type: textblock
8208 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8209 msgid "This calls the external C<grep> program and returns the matching lines."
8210 msgstr ""
8211
8212 # type: =head2
8213 #: ../src/guestfs-actions.pod:2173
8214 msgid "guestfs_grepi"
8215 msgstr ""
8216
8217 # type: verbatim
8218 #: ../src/guestfs-actions.pod:2175
8219 #, no-wrap
8220 msgid ""
8221 " char **\n"
8222 " guestfs_grepi (guestfs_h *g,\n"
8223 "                const char *regex,\n"
8224 "                const char *path);\n"
8225 "\n"
8226 msgstr ""
8227
8228 # type: textblock
8229 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8230 msgid ""
8231 "This calls the external C<grep -i> program and returns the matching lines."
8232 msgstr ""
8233
8234 # type: =head2
8235 #: ../src/guestfs-actions.pod:2192
8236 msgid "guestfs_grub_install"
8237 msgstr ""
8238
8239 # type: verbatim
8240 #: ../src/guestfs-actions.pod:2194
8241 #, no-wrap
8242 msgid ""
8243 " int\n"
8244 " guestfs_grub_install (guestfs_h *g,\n"
8245 "                       const char *root,\n"
8246 "                       const char *device);\n"
8247 "\n"
8248 msgstr ""
8249
8250 # type: textblock
8251 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8252 msgid ""
8253 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8254 "the root directory being C<root>."
8255 msgstr ""
8256
8257 # type: textblock
8258 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8259 msgid ""
8260 "Note: If grub-install reports the error \"No suitable drive was found in the "
8261 "generated device map.\" it may be that you need to create a C</boot/grub/"
8262 "device.map> file first that contains the mapping between grub device names "
8263 "and Linux device names.  It is usually sufficient to create a file "
8264 "containing:"
8265 msgstr ""
8266
8267 # type: verbatim
8268 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8269 #, no-wrap
8270 msgid ""
8271 " (hd0) /dev/vda\n"
8272 "\n"
8273 msgstr ""
8274
8275 # type: textblock
8276 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8277 msgid "replacing C</dev/vda> with the name of the installation device."
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2215
8282 msgid "(Added in 1.0.17)"
8283 msgstr ""
8284
8285 # type: =head2
8286 #: ../src/guestfs-actions.pod:2217
8287 msgid "guestfs_head"
8288 msgstr ""
8289
8290 # type: verbatim
8291 #: ../src/guestfs-actions.pod:2219
8292 #, no-wrap
8293 msgid ""
8294 " char **\n"
8295 " guestfs_head (guestfs_h *g,\n"
8296 "               const char *path);\n"
8297 "\n"
8298 msgstr ""
8299
8300 # type: textblock
8301 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8302 msgid ""
8303 "This command returns up to the first 10 lines of a file as a list of strings."
8304 msgstr ""
8305
8306 # type: =head2
8307 #: ../src/guestfs-actions.pod:2235
8308 msgid "guestfs_head_n"
8309 msgstr ""
8310
8311 # type: verbatim
8312 #: ../src/guestfs-actions.pod:2237
8313 #, no-wrap
8314 msgid ""
8315 " char **\n"
8316 " guestfs_head_n (guestfs_h *g,\n"
8317 "                 int nrlines,\n"
8318 "                 const char *path);\n"
8319 "\n"
8320 msgstr ""
8321
8322 # type: textblock
8323 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8324 msgid ""
8325 "If the parameter C<nrlines> is a positive number, this returns the first "
8326 "C<nrlines> lines of the file C<path>."
8327 msgstr ""
8328
8329 # type: textblock
8330 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8331 msgid ""
8332 "If the parameter C<nrlines> is a negative number, this returns lines from "
8333 "the file C<path>, excluding the last C<nrlines> lines."
8334 msgstr ""
8335
8336 # type: textblock
8337 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131
8338 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8339 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8340 msgstr ""
8341
8342 # type: =head2
8343 #: ../src/guestfs-actions.pod:2259
8344 msgid "guestfs_hexdump"
8345 msgstr ""
8346
8347 # type: verbatim
8348 #: ../src/guestfs-actions.pod:2261
8349 #, no-wrap
8350 msgid ""
8351 " char *\n"
8352 " guestfs_hexdump (guestfs_h *g,\n"
8353 "                  const char *path);\n"
8354 "\n"
8355 msgstr ""
8356
8357 # type: textblock
8358 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8359 msgid ""
8360 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8361 "readable, canonical hex dump of the file."
8362 msgstr ""
8363
8364 # type: textblock
8365 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915
8366 #: ../src/guestfs-actions.pod:5970
8367 msgid "(Added in 1.0.22)"
8368 msgstr ""
8369
8370 # type: =head2
8371 #: ../src/guestfs-actions.pod:2276
8372 msgid "guestfs_initrd_cat"
8373 msgstr ""
8374
8375 # type: verbatim
8376 #: ../src/guestfs-actions.pod:2278
8377 #, no-wrap
8378 msgid ""
8379 " char *\n"
8380 " guestfs_initrd_cat (guestfs_h *g,\n"
8381 "                     const char *initrdpath,\n"
8382 "                     const char *filename,\n"
8383 "                     size_t *size_r);\n"
8384 "\n"
8385 msgstr ""
8386
8387 # type: textblock
8388 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8389 msgid ""
8390 "This command unpacks the file C<filename> from the initrd file called "
8391 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8392 "character."
8393 msgstr ""
8394
8395 # type: textblock
8396 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8397 msgid ""
8398 "For example, in guestfish you could use the following command to examine the "
8399 "boot script (usually called C</init>)  contained in a Linux initrd or "
8400 "initramfs image:"
8401 msgstr ""
8402
8403 # type: verbatim
8404 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8405 #, no-wrap
8406 msgid ""
8407 " initrd-cat /boot/initrd-<version>.img init\n"
8408 "\n"
8409 msgstr ""
8410
8411 # type: textblock
8412 #: ../src/guestfs-actions.pod:2294
8413 msgid "See also C<guestfs_initrd_list>."
8414 msgstr ""
8415
8416 # type: textblock
8417 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850
8418 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8419 msgid ""
8420 "This function returns a buffer, or NULL on error.  The size of the returned "
8421 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8422 "after use>."
8423 msgstr ""
8424
8425 # type: =head2
8426 #: ../src/guestfs-actions.pod:2305
8427 msgid "guestfs_initrd_list"
8428 msgstr ""
8429
8430 # type: verbatim
8431 #: ../src/guestfs-actions.pod:2307
8432 #, no-wrap
8433 msgid ""
8434 " char **\n"
8435 " guestfs_initrd_list (guestfs_h *g,\n"
8436 "                      const char *path);\n"
8437 "\n"
8438 msgstr ""
8439
8440 # type: textblock
8441 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8442 msgid "This command lists out files contained in an initrd."
8443 msgstr ""
8444
8445 # type: textblock
8446 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8447 msgid ""
8448 "The files are listed without any initial C</> character.  The files are "
8449 "listed in the order they appear (not necessarily alphabetical).  Directory "
8450 "names are listed as separate items."
8451 msgstr ""
8452
8453 # type: textblock
8454 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8455 msgid ""
8456 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8457 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8458 "files)."
8459 msgstr ""
8460
8461 # type: =head2
8462 #: ../src/guestfs-actions.pod:2327
8463 msgid "guestfs_inotify_add_watch"
8464 msgstr ""
8465
8466 # type: verbatim
8467 #: ../src/guestfs-actions.pod:2329
8468 #, no-wrap
8469 msgid ""
8470 " int64_t\n"
8471 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8472 "                            const char *path,\n"
8473 "                            int mask);\n"
8474 "\n"
8475 msgstr ""
8476
8477 # type: textblock
8478 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8479 msgid "Watch C<path> for the events listed in C<mask>."
8480 msgstr ""
8481
8482 # type: textblock
8483 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8484 msgid ""
8485 "Note that if C<path> is a directory then events within that directory are "
8486 "watched, but this does I<not> happen recursively (in subdirectories)."
8487 msgstr ""
8488
8489 # type: textblock
8490 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8491 msgid ""
8492 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8493 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8494 msgstr ""
8495
8496 # type: =head2
8497 #: ../src/guestfs-actions.pod:2348
8498 msgid "guestfs_inotify_close"
8499 msgstr ""
8500
8501 # type: verbatim
8502 #: ../src/guestfs-actions.pod:2350
8503 #, no-wrap
8504 msgid ""
8505 " int\n"
8506 " guestfs_inotify_close (guestfs_h *g);\n"
8507 "\n"
8508 msgstr ""
8509
8510 # type: textblock
8511 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8512 msgid ""
8513 "This closes the inotify handle which was previously opened by inotify_init.  "
8514 "It removes all watches, throws away any pending events, and deallocates all "
8515 "resources."
8516 msgstr ""
8517
8518 # type: =head2
8519 #: ../src/guestfs-actions.pod:2361
8520 msgid "guestfs_inotify_files"
8521 msgstr ""
8522
8523 # type: verbatim
8524 #: ../src/guestfs-actions.pod:2363
8525 #, no-wrap
8526 msgid ""
8527 " char **\n"
8528 " guestfs_inotify_files (guestfs_h *g);\n"
8529 "\n"
8530 msgstr ""
8531
8532 # type: textblock
8533 #: ../src/guestfs-actions.pod:2366
8534 msgid ""
8535 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8536 "returns a list of pathnames of objects that were touched.  The returned "
8537 "pathnames are sorted and deduplicated."
8538 msgstr ""
8539
8540 # type: =head2
8541 #: ../src/guestfs-actions.pod:2376
8542 msgid "guestfs_inotify_init"
8543 msgstr ""
8544
8545 # type: verbatim
8546 #: ../src/guestfs-actions.pod:2378
8547 #, no-wrap
8548 msgid ""
8549 " int\n"
8550 " guestfs_inotify_init (guestfs_h *g,\n"
8551 "                       int maxevents);\n"
8552 "\n"
8553 msgstr ""
8554
8555 # type: textblock
8556 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8557 msgid ""
8558 "This command creates a new inotify handle.  The inotify subsystem can be "
8559 "used to notify events which happen to objects in the guest filesystem."
8560 msgstr ""
8561
8562 # type: textblock
8563 #: ../src/guestfs-actions.pod:2386
8564 msgid ""
8565 "C<maxevents> is the maximum number of events which will be queued up between "
8566 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8567 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8568 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8569 "throws away events, but records the fact that it threw them away by setting "
8570 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8571 "C<guestfs_inotify_read>)."
8572 msgstr ""
8573
8574 # type: textblock
8575 #: ../src/guestfs-actions.pod:2396
8576 msgid ""
8577 "Before any events are generated, you have to add some watches to the "
8578 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8579 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8580 msgstr ""
8581
8582 # type: textblock
8583 #: ../src/guestfs-actions.pod:2402
8584 msgid ""
8585 "Queued up events should be read periodically by calling "
8586 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8587 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8588 "often enough then you risk the internal queue overflowing."
8589 msgstr ""
8590
8591 # type: textblock
8592 #: ../src/guestfs-actions.pod:2409
8593 msgid ""
8594 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8595 "This also removes any watches automatically."
8596 msgstr ""
8597
8598 # type: textblock
8599 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8600 msgid ""
8601 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8602 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8603 "that there is one global inotify handle per libguestfs instance."
8604 msgstr ""
8605
8606 # type: =head2
8607 #: ../src/guestfs-actions.pod:2422
8608 msgid "guestfs_inotify_read"
8609 msgstr ""
8610
8611 # type: verbatim
8612 #: ../src/guestfs-actions.pod:2424
8613 #, no-wrap
8614 msgid ""
8615 " struct guestfs_inotify_event_list *\n"
8616 " guestfs_inotify_read (guestfs_h *g);\n"
8617 "\n"
8618 msgstr ""
8619
8620 # type: textblock
8621 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8622 msgid ""
8623 "Return the complete queue of events that have happened since the previous "
8624 "read call."
8625 msgstr ""
8626
8627 # type: textblock
8628 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8629 msgid "If no events have happened, this returns an empty list."
8630 msgstr ""
8631
8632 # type: textblock
8633 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8634 msgid ""
8635 "I<Note>: In order to make sure that all events have been read, you must call "
8636 "this function repeatedly until it returns an empty list.  The reason is that "
8637 "the call will read events up to the maximum appliance-to-host message size "
8638 "and leave remaining events in the queue."
8639 msgstr ""
8640
8641 # type: textblock
8642 #: ../src/guestfs-actions.pod:2438
8643 msgid ""
8644 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8645 "there was an error.  I<The caller must call "
8646 "C<guestfs_free_inotify_event_list> after use>."
8647 msgstr ""
8648
8649 # type: =head2
8650 #: ../src/guestfs-actions.pod:2444
8651 msgid "guestfs_inotify_rm_watch"
8652 msgstr ""
8653
8654 # type: verbatim
8655 #: ../src/guestfs-actions.pod:2446
8656 #, no-wrap
8657 msgid ""
8658 " int\n"
8659 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8660 "                           int wd);\n"
8661 "\n"
8662 msgstr ""
8663
8664 # type: textblock
8665 #: ../src/guestfs-actions.pod:2450
8666 msgid ""
8667 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8668 msgstr ""
8669
8670 # type: =head2
8671 #: ../src/guestfs-actions.pod:2457
8672 msgid "guestfs_inspect_get_arch"
8673 msgstr ""
8674
8675 # type: verbatim
8676 #: ../src/guestfs-actions.pod:2459
8677 #, no-wrap
8678 msgid ""
8679 " char *\n"
8680 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8681 "                           const char *root);\n"
8682 "\n"
8683 msgstr ""
8684
8685 # type: textblock
8686 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8687 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593
8688 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640
8689 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694
8690 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750
8691 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834
8692 #: ../src/guestfs-actions.pod:2857
8693 msgid ""
8694 "This function should only be called with a root device string as returned by "
8695 "C<guestfs_inspect_os>."
8696 msgstr ""
8697
8698 # type: textblock
8699 #: ../src/guestfs-actions.pod:2466
8700 msgid ""
8701 "This returns the architecture of the inspected operating system.  The "
8702 "possible return values are listed under C<guestfs_file_architecture>."
8703 msgstr ""
8704
8705 # type: textblock
8706 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8707 msgid ""
8708 "If the architecture could not be determined, then the string C<unknown> is "
8709 "returned."
8710 msgstr ""
8711
8712 # type: textblock
8713 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554
8714 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628
8715 #: ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739
8716 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780
8717 #: ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844
8718 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989
8719 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8720 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8721 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8722 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8723 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8724 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8725 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8726 msgstr ""
8727
8728 # type: =head2
8729 #: ../src/guestfs-actions.pod:2480
8730 msgid "guestfs_inspect_get_distro"
8731 msgstr ""
8732
8733 # type: verbatim
8734 #: ../src/guestfs-actions.pod:2482
8735 #, no-wrap
8736 msgid ""
8737 " char *\n"
8738 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8739 "                             const char *root);\n"
8740 "\n"
8741 msgstr ""
8742
8743 # type: textblock
8744 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8745 msgid ""
8746 "This returns the distro (distribution) of the inspected operating system."
8747 msgstr ""
8748
8749 # type: textblock
8750 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8751 msgid "Currently defined distros are:"
8752 msgstr ""
8753
8754 # type: =item
8755 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8756 msgid "\"archlinux\""
8757 msgstr ""
8758
8759 # type: textblock
8760 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8761 msgid "Arch Linux."
8762 msgstr ""
8763
8764 # type: =item
8765 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8766 msgid "\"debian\""
8767 msgstr ""
8768
8769 # type: textblock
8770 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8771 msgid "Debian."
8772 msgstr ""
8773
8774 # type: =item
8775 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8776 msgid "\"fedora\""
8777 msgstr ""
8778
8779 # type: textblock
8780 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8781 msgid "Fedora."
8782 msgstr ""
8783
8784 # type: =item
8785 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8786 msgid "\"gentoo\""
8787 msgstr ""
8788
8789 # type: textblock
8790 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8791 msgid "Gentoo."
8792 msgstr ""
8793
8794 # type: =item
8795 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8796 msgid "\"linuxmint\""
8797 msgstr ""
8798
8799 # type: textblock
8800 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8801 msgid "Linux Mint."
8802 msgstr ""
8803
8804 # type: =item
8805 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8806 msgid "\"mandriva\""
8807 msgstr ""
8808
8809 # type: textblock
8810 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8811 msgid "Mandriva."
8812 msgstr ""
8813
8814 # type: =item
8815 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8816 msgid "\"meego\""
8817 msgstr ""
8818
8819 # type: textblock
8820 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8821 msgid "MeeGo."
8822 msgstr ""
8823
8824 # type: =item
8825 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8826 msgid "\"pardus\""
8827 msgstr ""
8828
8829 # type: textblock
8830 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8831 msgid "Pardus."
8832 msgstr ""
8833
8834 # type: =item
8835 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8836 msgid "\"redhat-based\""
8837 msgstr ""
8838
8839 # type: textblock
8840 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8841 msgid "Some Red Hat-derived distro."
8842 msgstr ""
8843
8844 # type: =item
8845 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8846 msgid "\"rhel\""
8847 msgstr ""
8848
8849 # type: textblock
8850 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8851 msgid "Red Hat Enterprise Linux and some derivatives."
8852 msgstr ""
8853
8854 # type: =item
8855 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8856 msgid "\"ubuntu\""
8857 msgstr ""
8858
8859 # type: textblock
8860 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8861 msgid "Ubuntu."
8862 msgstr ""
8863
8864 # type: =item
8865 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812
8866 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8867 msgid "\"unknown\""
8868 msgstr ""
8869
8870 # type: textblock
8871 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8872 msgid "The distro could not be determined."
8873 msgstr ""
8874
8875 # type: =item
8876 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804
8877 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8878 msgid "\"windows\""
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8883 msgid ""
8884 "Windows does not have distributions.  This string is returned if the OS type "
8885 "is Windows."
8886 msgstr ""
8887
8888 # type: textblock
8889 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818
8890 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8891 msgid ""
8892 "Future versions of libguestfs may return other strings here.  The caller "
8893 "should be prepared to handle any string."
8894 msgstr ""
8895
8896 # type: =head2
8897 #: ../src/guestfs-actions.pod:2561
8898 msgid "guestfs_inspect_get_filesystems"
8899 msgstr ""
8900
8901 # type: verbatim
8902 #: ../src/guestfs-actions.pod:2563
8903 #, no-wrap
8904 msgid ""
8905 " char **\n"
8906 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8907 "                                  const char *root);\n"
8908 "\n"
8909 msgstr ""
8910
8911 # type: textblock
8912 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8913 msgid ""
8914 "This returns a list of all the filesystems that we think are associated with "
8915 "this operating system.  This includes the root filesystem, other ordinary "
8916 "filesystems, and non-mounted devices like swap partitions."
8917 msgstr ""
8918
8919 # type: textblock
8920 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8921 msgid ""
8922 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8923 "to be shared between operating systems."
8924 msgstr ""
8925
8926 # type: textblock
8927 #: ../src/guestfs-actions.pod:2578
8928 msgid ""
8929 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8930 "C<guestfs_inspect_get_mountpoints>."
8931 msgstr ""
8932
8933 # type: =head2
8934 #: ../src/guestfs-actions.pod:2587
8935 msgid "guestfs_inspect_get_hostname"
8936 msgstr ""
8937
8938 # type: verbatim
8939 #: ../src/guestfs-actions.pod:2589
8940 #, no-wrap
8941 msgid ""
8942 " char *\n"
8943 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8944 "                               const char *root);\n"
8945 "\n"
8946 msgstr ""
8947
8948 # type: textblock
8949 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8950 msgid ""
8951 "This function returns the hostname of the operating system as found by "
8952 "inspection of the guest's configuration files."
8953 msgstr ""
8954
8955 # type: textblock
8956 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8957 msgid ""
8958 "If the hostname could not be determined, then the string C<unknown> is "
8959 "returned."
8960 msgstr ""
8961
8962 # type: =head2
8963 #: ../src/guestfs-actions.pod:2607
8964 msgid "guestfs_inspect_get_major_version"
8965 msgstr ""
8966
8967 # type: verbatim
8968 #: ../src/guestfs-actions.pod:2609
8969 #, no-wrap
8970 msgid ""
8971 " int\n"
8972 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8973 "                                    const char *root);\n"
8974 "\n"
8975 msgstr ""
8976
8977 # type: textblock
8978 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8979 msgid ""
8980 "This returns the major version number of the inspected operating system."
8981 msgstr ""
8982
8983 # type: textblock
8984 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
8985 msgid ""
8986 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8987 "popular public names used by the operating system.  Notably the operating "
8988 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8989 "1).  You can find out the real versions corresponding to releases of Windows "
8990 "by consulting Wikipedia or MSDN."
8991 msgstr ""
8992
8993 # type: textblock
8994 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646
8995 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8996 msgid "If the version could not be determined, then C<0> is returned."
8997 msgstr ""
8998
8999 # type: =head2
9000 #: ../src/guestfs-actions.pod:2634
9001 msgid "guestfs_inspect_get_minor_version"
9002 msgstr ""
9003
9004 # type: verbatim
9005 #: ../src/guestfs-actions.pod:2636
9006 #, no-wrap
9007 msgid ""
9008 " int\n"
9009 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9010 "                                    const char *root);\n"
9011 "\n"
9012 msgstr ""
9013
9014 # type: textblock
9015 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
9016 msgid ""
9017 "This returns the minor version number of the inspected operating system."
9018 msgstr ""
9019
9020 # type: textblock
9021 #: ../src/guestfs-actions.pod:2648
9022 msgid ""
9023 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9024 "C<guestfs_inspect_get_major_version>."
9025 msgstr ""
9026
9027 # type: =head2
9028 #: ../src/guestfs-actions.pod:2655
9029 msgid "guestfs_inspect_get_mountpoints"
9030 msgstr ""
9031
9032 # type: verbatim
9033 #: ../src/guestfs-actions.pod:2657
9034 #, no-wrap
9035 msgid ""
9036 " char **\n"
9037 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9038 "                                  const char *root);\n"
9039 "\n"
9040 msgstr ""
9041
9042 # type: textblock
9043 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
9044 msgid ""
9045 "This returns a hash of where we think the filesystems associated with this "
9046 "operating system should be mounted.  Callers should note that this is at "
9047 "best an educated guess made by reading configuration files such as C</etc/"
9048 "fstab>."
9049 msgstr ""
9050
9051 # type: textblock
9052 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
9053 msgid ""
9054 "Each element in the returned hashtable has a key which is the path of the "
9055 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9056 "mounted there (eg. C</dev/sda1>)."
9057 msgstr ""
9058
9059 # type: textblock
9060 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
9061 msgid ""
9062 "Non-mounted devices such as swap devices are I<not> returned in this list."
9063 msgstr ""
9064
9065 # type: textblock
9066 #: ../src/guestfs-actions.pod:2677
9067 msgid ""
9068 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9069 "C<guestfs_inspect_get_filesystems>."
9070 msgstr ""
9071
9072 # type: textblock
9073 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288
9074 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
9075 msgid ""
9076 "This function returns a NULL-terminated array of strings, or NULL if there "
9077 "was an error.  The array of strings will always have length C<2n+1>, where "
9078 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9079 "caller must free the strings and the array after use>."
9080 msgstr ""
9081
9082 # type: =head2
9083 #: ../src/guestfs-actions.pod:2688
9084 msgid "guestfs_inspect_get_package_format"
9085 msgstr ""
9086
9087 # type: verbatim
9088 #: ../src/guestfs-actions.pod:2690
9089 #, no-wrap
9090 msgid ""
9091 " char *\n"
9092 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9093 "                                     const char *root);\n"
9094 "\n"
9095 msgstr ""
9096
9097 # type: textblock
9098 #: ../src/guestfs-actions.pod:2697
9099 msgid ""
9100 "This function and C<guestfs_inspect_get_package_management> return the "
9101 "package format and package management tool used by the inspected operating "
9102 "system.  For example for Fedora these functions would return C<rpm> (package "
9103 "format) and C<yum> (package management)."
9104 msgstr ""
9105
9106 # type: textblock
9107 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
9108 msgid ""
9109 "This returns the string C<unknown> if we could not determine the package "
9110 "format I<or> if the operating system does not have a real packaging system "
9111 "(eg. Windows)."
9112 msgstr ""
9113
9114 # type: textblock
9115 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
9116 msgid ""
9117 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9118 "Future versions of libguestfs may return other strings."
9119 msgstr ""
9120
9121 # type: =head2
9122 #: ../src/guestfs-actions.pod:2715
9123 msgid "guestfs_inspect_get_package_management"
9124 msgstr ""
9125
9126 # type: verbatim
9127 #: ../src/guestfs-actions.pod:2717
9128 #, no-wrap
9129 msgid ""
9130 " char *\n"
9131 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9132 "                                         const char *root);\n"
9133 "\n"
9134 msgstr ""
9135
9136 # type: textblock
9137 #: ../src/guestfs-actions.pod:2724
9138 msgid ""
9139 "C<guestfs_inspect_get_package_format> and this function return the package "
9140 "format and package management tool used by the inspected operating system.  "
9141 "For example for Fedora these functions would return C<rpm> (package format) "
9142 "and C<yum> (package management)."
9143 msgstr ""
9144
9145 # type: textblock
9146 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
9147 msgid ""
9148 "This returns the string C<unknown> if we could not determine the package "
9149 "management tool I<or> if the operating system does not have a real packaging "
9150 "system (eg. Windows)."
9151 msgstr ""
9152
9153 # type: textblock
9154 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
9155 msgid ""
9156 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9157 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9158 "libguestfs may return other strings."
9159 msgstr ""
9160
9161 # type: =head2
9162 #: ../src/guestfs-actions.pod:2744
9163 msgid "guestfs_inspect_get_product_name"
9164 msgstr ""
9165
9166 # type: verbatim
9167 #: ../src/guestfs-actions.pod:2746
9168 #, no-wrap
9169 msgid ""
9170 " char *\n"
9171 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9172 "                                   const char *root);\n"
9173 "\n"
9174 msgstr ""
9175
9176 # type: textblock
9177 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
9178 msgid ""
9179 "This returns the product name of the inspected operating system.  The "
9180 "product name is generally some freeform string which can be displayed to the "
9181 "user, but should not be parsed by programs."
9182 msgstr ""
9183
9184 # type: textblock
9185 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
9186 msgid ""
9187 "If the product name could not be determined, then the string C<unknown> is "
9188 "returned."
9189 msgstr ""
9190
9191 # type: =head2
9192 #: ../src/guestfs-actions.pod:2768
9193 msgid "guestfs_inspect_get_roots"
9194 msgstr ""
9195
9196 # type: verbatim
9197 #: ../src/guestfs-actions.pod:2770
9198 #, no-wrap
9199 msgid ""
9200 " char **\n"
9201 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9202 "\n"
9203 msgstr ""
9204
9205 # type: textblock
9206 #: ../src/guestfs-actions.pod:2773
9207 msgid ""
9208 "This function is a convenient way to get the list of root devices, as "
9209 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9210 "the whole inspection process."
9211 msgstr ""
9212
9213 # type: textblock
9214 #: ../src/guestfs-actions.pod:2777
9215 msgid ""
9216 "This returns an empty list if either no root devices were found or the "
9217 "caller has not called C<guestfs_inspect_os>."
9218 msgstr ""
9219
9220 # type: =head2
9221 #: ../src/guestfs-actions.pod:2786
9222 msgid "guestfs_inspect_get_type"
9223 msgstr ""
9224
9225 # type: verbatim
9226 #: ../src/guestfs-actions.pod:2788
9227 #, no-wrap
9228 msgid ""
9229 " char *\n"
9230 " guestfs_inspect_get_type (guestfs_h *g,\n"
9231 "                           const char *root);\n"
9232 "\n"
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
9237 msgid ""
9238 "This returns the type of the inspected operating system.  Currently defined "
9239 "types are:"
9240 msgstr ""
9241
9242 # type: =item
9243 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
9244 msgid "\"linux\""
9245 msgstr ""
9246
9247 # type: textblock
9248 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
9249 msgid "Any Linux-based operating system."
9250 msgstr ""
9251
9252 # type: textblock
9253 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
9254 msgid "Any Microsoft Windows operating system."
9255 msgstr ""
9256
9257 # type: =item
9258 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
9259 msgid "\"freebsd\""
9260 msgstr ""
9261
9262 # type: textblock
9263 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
9264 msgid "FreeBSD."
9265 msgstr ""
9266
9267 # type: textblock
9268 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
9269 msgid "The operating system type could not be determined."
9270 msgstr ""
9271
9272 # type: =head2
9273 #: ../src/guestfs-actions.pod:2828
9274 msgid "guestfs_inspect_get_windows_systemroot"
9275 msgstr ""
9276
9277 # type: verbatim
9278 #: ../src/guestfs-actions.pod:2830
9279 #, no-wrap
9280 msgid ""
9281 " char *\n"
9282 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9283 "                                         const char *root);\n"
9284 "\n"
9285 msgstr ""
9286
9287 # type: textblock
9288 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
9289 msgid ""
9290 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9291 "is a directory path such as C</WINDOWS>."
9292 msgstr ""
9293
9294 # type: textblock
9295 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
9296 msgid ""
9297 "This call assumes that the guest is Windows and that the systemroot could be "
9298 "determined by inspection.  If this is not the case then an error is returned."
9299 msgstr ""
9300
9301 # type: textblock
9302 #: ../src/guestfs-actions.pod:2849
9303 msgid "(Added in 1.5.25)"
9304 msgstr ""
9305
9306 # type: =head2
9307 #: ../src/guestfs-actions.pod:2851
9308 msgid "guestfs_inspect_list_applications"
9309 msgstr ""
9310
9311 # type: verbatim
9312 #: ../src/guestfs-actions.pod:2853
9313 #, no-wrap
9314 msgid ""
9315 " struct guestfs_application_list *\n"
9316 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9317 "                                    const char *root);\n"
9318 "\n"
9319 msgstr ""
9320
9321 # type: textblock
9322 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
9323 msgid "Return the list of applications installed in the operating system."
9324 msgstr ""
9325
9326 # type: textblock
9327 #: ../src/guestfs-actions.pod:2862
9328 msgid ""
9329 "I<Note:> This call works differently from other parts of the inspection "
9330 "API.  You have to call C<guestfs_inspect_os>, then "
9331 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9332 "this.  Listing applications is a significantly more difficult operation "
9333 "which requires access to the full filesystem.  Also note that unlike the "
9334 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9335 "the libguestfs handle, this call actually reads parts of the mounted "
9336 "filesystems during the call."
9337 msgstr ""
9338
9339 # type: textblock
9340 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
9341 msgid ""
9342 "This returns an empty list if the inspection code was not able to determine "
9343 "the list of applications."
9344 msgstr ""
9345
9346 # type: textblock
9347 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
9348 msgid "The application structure contains the following fields:"
9349 msgstr ""
9350
9351 # type: =item
9352 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
9353 msgid "C<app_name>"
9354 msgstr ""
9355
9356 # type: textblock
9357 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
9358 msgid ""
9359 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9360 "guests, this is the package name."
9361 msgstr ""
9362
9363 # type: =item
9364 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
9365 msgid "C<app_display_name>"
9366 msgstr ""
9367
9368 # type: textblock
9369 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
9370 msgid ""
9371 "The display name of the application, sometimes localized to the install "
9372 "language of the guest operating system."
9373 msgstr ""
9374
9375 # type: textblock
9376 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
9377 msgid ""
9378 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9379 "to display something can use C<app_name> instead."
9380 msgstr ""
9381
9382 # type: =item
9383 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
9384 msgid "C<app_epoch>"
9385 msgstr ""
9386
9387 # type: textblock
9388 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
9389 msgid ""
9390 "For package managers which use epochs, this contains the epoch of the "
9391 "package (an integer).  If unavailable, this is returned as C<0>."
9392 msgstr ""
9393
9394 # type: =item
9395 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
9396 msgid "C<app_version>"
9397 msgstr ""
9398
9399 # type: textblock
9400 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
9401 msgid ""
9402 "The version string of the application or package.  If unavailable this is "
9403 "returned as an empty string C<\"\">."
9404 msgstr ""
9405
9406 # type: =item
9407 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
9408 msgid "C<app_release>"
9409 msgstr ""
9410
9411 # type: textblock
9412 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
9413 msgid ""
9414 "The release string of the application or package, for package managers that "
9415 "use this.  If unavailable this is returned as an empty string C<\"\">."
9416 msgstr ""
9417
9418 # type: =item
9419 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
9420 msgid "C<app_install_path>"
9421 msgstr ""
9422
9423 # type: textblock
9424 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
9425 msgid ""
9426 "The installation path of the application (on operating systems such as "
9427 "Windows which use installation paths).  This path is in the format used by "
9428 "the guest operating system, it is not a libguestfs path."
9429 msgstr ""
9430
9431 # type: textblock
9432 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
9433 msgid "If unavailable this is returned as an empty string C<\"\">."
9434 msgstr ""
9435
9436 # type: =item
9437 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
9438 msgid "C<app_trans_path>"
9439 msgstr ""
9440
9441 # type: textblock
9442 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9443 msgid ""
9444 "The install path translated into a libguestfs path.  If unavailable this is "
9445 "returned as an empty string C<\"\">."
9446 msgstr ""
9447
9448 # type: =item
9449 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9450 msgid "C<app_publisher>"
9451 msgstr ""
9452
9453 # type: textblock
9454 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9455 msgid ""
9456 "The name of the publisher of the application, for package managers that use "
9457 "this.  If unavailable this is returned as an empty string C<\"\">."
9458 msgstr ""
9459
9460 # type: =item
9461 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9462 msgid "C<app_url>"
9463 msgstr ""
9464
9465 # type: textblock
9466 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9467 msgid ""
9468 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9469 "returned as an empty string C<\"\">."
9470 msgstr ""
9471
9472 # type: =item
9473 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9474 msgid "C<app_source_package>"
9475 msgstr ""
9476
9477 # type: textblock
9478 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9479 msgid ""
9480 "For packaging systems which support this, the name of the source package.  "
9481 "If unavailable this is returned as an empty string C<\"\">."
9482 msgstr ""
9483
9484 # type: =item
9485 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9486 msgid "C<app_summary>"
9487 msgstr ""
9488
9489 # type: textblock
9490 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9491 msgid ""
9492 "A short (usually one line) description of the application or package.  If "
9493 "unavailable this is returned as an empty string C<\"\">."
9494 msgstr ""
9495
9496 # type: =item
9497 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9498 msgid "C<app_description>"
9499 msgstr ""
9500
9501 # type: textblock
9502 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9503 msgid ""
9504 "A longer description of the application or package.  If unavailable this is "
9505 "returned as an empty string C<\"\">."
9506 msgstr ""
9507
9508 # type: textblock
9509 #: ../src/guestfs-actions.pod:2952
9510 msgid ""
9511 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9512 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9513 "after use>."
9514 msgstr ""
9515
9516 # type: =head2
9517 #: ../src/guestfs-actions.pod:2956
9518 msgid "guestfs_inspect_os"
9519 msgstr ""
9520
9521 # type: verbatim
9522 #: ../src/guestfs-actions.pod:2958
9523 #, no-wrap
9524 msgid ""
9525 " char **\n"
9526 " guestfs_inspect_os (guestfs_h *g);\n"
9527 "\n"
9528 msgstr ""
9529
9530 # type: textblock
9531 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9532 msgid ""
9533 "This function uses other libguestfs functions and certain heuristics to "
9534 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9535 "for operating systems."
9536 msgstr ""
9537
9538 # type: textblock
9539 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9540 msgid "The list returned is empty if no operating systems were found."
9541 msgstr ""
9542
9543 # type: textblock
9544 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9545 msgid ""
9546 "If one operating system was found, then this returns a list with a single "
9547 "element, which is the name of the root filesystem of this operating system.  "
9548 "It is also possible for this function to return a list containing more than "
9549 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9550 "element being the root filesystem of one of the operating systems."
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:2974
9555 msgid ""
9556 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9557 "functions in order to query further information about each operating system, "
9558 "such as the name and version."
9559 msgstr ""
9560
9561 # type: textblock
9562 #: ../src/guestfs-actions.pod:2979
9563 msgid ""
9564 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9565 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9566 "the contents.  This should be called with no disks currently mounted.  The "
9567 "function may also use Augeas, so any existing Augeas handle will be closed."
9568 msgstr ""
9569
9570 # type: textblock
9571 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9572 msgid ""
9573 "This function cannot decrypt encrypted disks.  The caller must do that first "
9574 "(supplying the necessary keys) if the disk is encrypted."
9575 msgstr ""
9576
9577 # type: textblock
9578 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246
9579 #: ../src/guestfs-actions.pod:3308
9580 msgid "See also C<guestfs_list_filesystems>."
9581 msgstr ""
9582
9583 # type: =head2
9584 #: ../src/guestfs-actions.pod:2999
9585 msgid "guestfs_is_blockdev"
9586 msgstr ""
9587
9588 # type: verbatim
9589 #: ../src/guestfs-actions.pod:3001
9590 #, no-wrap
9591 msgid ""
9592 " int\n"
9593 " guestfs_is_blockdev (guestfs_h *g,\n"
9594 "                      const char *path);\n"
9595 "\n"
9596 msgstr ""
9597
9598 # type: textblock
9599 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9600 msgid ""
9601 "This returns C<true> if and only if there is a block device with the given "
9602 "C<path> name."
9603 msgstr ""
9604
9605 # type: textblock
9606 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037
9607 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082
9608 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154
9609 #: ../src/guestfs-actions.pod:3169
9610 msgid "See also C<guestfs_stat>."
9611 msgstr ""
9612
9613 # type: textblock
9614 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041
9615 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158
9616 #: ../src/guestfs-actions.pod:3173
9617 msgid "(Added in 1.5.10)"
9618 msgstr ""
9619
9620 # type: =head2
9621 #: ../src/guestfs-actions.pod:3014
9622 msgid "guestfs_is_busy"
9623 msgstr ""
9624
9625 # type: verbatim
9626 #: ../src/guestfs-actions.pod:3016
9627 #, no-wrap
9628 msgid ""
9629 " int\n"
9630 " guestfs_is_busy (guestfs_h *g);\n"
9631 "\n"
9632 msgstr ""
9633
9634 # type: textblock
9635 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9636 msgid ""
9637 "This returns true iff this handle is busy processing a command (in the "
9638 "C<BUSY> state)."
9639 msgstr ""
9640
9641 # type: =head2
9642 #: ../src/guestfs-actions.pod:3028
9643 msgid "guestfs_is_chardev"
9644 msgstr ""
9645
9646 # type: verbatim
9647 #: ../src/guestfs-actions.pod:3030
9648 #, no-wrap
9649 msgid ""
9650 " int\n"
9651 " guestfs_is_chardev (guestfs_h *g,\n"
9652 "                     const char *path);\n"
9653 "\n"
9654 msgstr ""
9655
9656 # type: textblock
9657 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9658 msgid ""
9659 "This returns C<true> if and only if there is a character device with the "
9660 "given C<path> name."
9661 msgstr ""
9662
9663 # type: =head2
9664 #: ../src/guestfs-actions.pod:3043
9665 msgid "guestfs_is_config"
9666 msgstr ""
9667
9668 # type: verbatim
9669 #: ../src/guestfs-actions.pod:3045
9670 #, no-wrap
9671 msgid ""
9672 " int\n"
9673 " guestfs_is_config (guestfs_h *g);\n"
9674 "\n"
9675 msgstr ""
9676
9677 # type: textblock
9678 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9679 msgid ""
9680 "This returns true iff this handle is being configured (in the C<CONFIG> "
9681 "state)."
9682 msgstr ""
9683
9684 # type: =head2
9685 #: ../src/guestfs-actions.pod:3057
9686 msgid "guestfs_is_dir"
9687 msgstr ""
9688
9689 # type: verbatim
9690 #: ../src/guestfs-actions.pod:3059
9691 #, no-wrap
9692 msgid ""
9693 " int\n"
9694 " guestfs_is_dir (guestfs_h *g,\n"
9695 "                 const char *path);\n"
9696 "\n"
9697 msgstr ""
9698
9699 # type: textblock
9700 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9701 msgid ""
9702 "This returns C<true> if and only if there is a directory with the given "
9703 "C<path> name.  Note that it returns false for other objects like files."
9704 msgstr ""
9705
9706 # type: =head2
9707 #: ../src/guestfs-actions.pod:3073
9708 msgid "guestfs_is_fifo"
9709 msgstr ""
9710
9711 # type: verbatim
9712 #: ../src/guestfs-actions.pod:3075
9713 #, no-wrap
9714 msgid ""
9715 " int\n"
9716 " guestfs_is_fifo (guestfs_h *g,\n"
9717 "                  const char *path);\n"
9718 "\n"
9719 msgstr ""
9720
9721 # type: textblock
9722 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9723 msgid ""
9724 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9725 "given C<path> name."
9726 msgstr ""
9727
9728 # type: =head2
9729 #: ../src/guestfs-actions.pod:3088
9730 msgid "guestfs_is_file"
9731 msgstr ""
9732
9733 # type: verbatim
9734 #: ../src/guestfs-actions.pod:3090
9735 #, no-wrap
9736 msgid ""
9737 " int\n"
9738 " guestfs_is_file (guestfs_h *g,\n"
9739 "                  const char *path);\n"
9740 "\n"
9741 msgstr ""
9742
9743 # type: textblock
9744 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9745 msgid ""
9746 "This returns C<true> if and only if there is a regular file with the given "
9747 "C<path> name.  Note that it returns false for other objects like directories."
9748 msgstr ""
9749
9750 # type: =head2
9751 #: ../src/guestfs-actions.pod:3104
9752 msgid "guestfs_is_launching"
9753 msgstr ""
9754
9755 # type: verbatim
9756 #: ../src/guestfs-actions.pod:3106
9757 #, no-wrap
9758 msgid ""
9759 " int\n"
9760 " guestfs_is_launching (guestfs_h *g);\n"
9761 "\n"
9762 msgstr ""
9763
9764 # type: textblock
9765 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9766 msgid ""
9767 "This returns true iff this handle is launching the subprocess (in the "
9768 "C<LAUNCHING> state)."
9769 msgstr ""
9770
9771 # type: =head2
9772 #: ../src/guestfs-actions.pod:3118
9773 msgid "guestfs_is_lv"
9774 msgstr ""
9775
9776 # type: verbatim
9777 #: ../src/guestfs-actions.pod:3120
9778 #, no-wrap
9779 msgid ""
9780 " int\n"
9781 " guestfs_is_lv (guestfs_h *g,\n"
9782 "                const char *device);\n"
9783 "\n"
9784 msgstr ""
9785
9786 # type: textblock
9787 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9788 msgid ""
9789 "This command tests whether C<device> is a logical volume, and returns true "
9790 "iff this is the case."
9791 msgstr ""
9792
9793 # type: =head2
9794 #: ../src/guestfs-actions.pod:3131
9795 msgid "guestfs_is_ready"
9796 msgstr ""
9797
9798 # type: verbatim
9799 #: ../src/guestfs-actions.pod:3133
9800 #, no-wrap
9801 msgid ""
9802 " int\n"
9803 " guestfs_is_ready (guestfs_h *g);\n"
9804 "\n"
9805 msgstr ""
9806
9807 # type: textblock
9808 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9809 msgid ""
9810 "This returns true iff this handle is ready to accept commands (in the "
9811 "C<READY> state)."
9812 msgstr ""
9813
9814 # type: =head2
9815 #: ../src/guestfs-actions.pod:3145
9816 msgid "guestfs_is_socket"
9817 msgstr ""
9818
9819 # type: verbatim
9820 #: ../src/guestfs-actions.pod:3147
9821 #, no-wrap
9822 msgid ""
9823 " int\n"
9824 " guestfs_is_socket (guestfs_h *g,\n"
9825 "                    const char *path);\n"
9826 "\n"
9827 msgstr ""
9828
9829 # type: textblock
9830 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9831 msgid ""
9832 "This returns C<true> if and only if there is a Unix domain socket with the "
9833 "given C<path> name."
9834 msgstr ""
9835
9836 # type: =head2
9837 #: ../src/guestfs-actions.pod:3160
9838 msgid "guestfs_is_symlink"
9839 msgstr ""
9840
9841 # type: verbatim
9842 #: ../src/guestfs-actions.pod:3162
9843 #, no-wrap
9844 msgid ""
9845 " int\n"
9846 " guestfs_is_symlink (guestfs_h *g,\n"
9847 "                     const char *path);\n"
9848 "\n"
9849 msgstr ""
9850
9851 # type: textblock
9852 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9853 msgid ""
9854 "This returns C<true> if and only if there is a symbolic link with the given "
9855 "C<path> name."
9856 msgstr ""
9857
9858 # type: =head2
9859 #: ../src/guestfs-actions.pod:3175
9860 msgid "guestfs_kill_subprocess"
9861 msgstr ""
9862
9863 # type: verbatim
9864 #: ../src/guestfs-actions.pod:3177
9865 #, no-wrap
9866 msgid ""
9867 " int\n"
9868 " guestfs_kill_subprocess (guestfs_h *g);\n"
9869 "\n"
9870 msgstr ""
9871
9872 # type: textblock
9873 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9874 msgid "This kills the qemu subprocess.  You should never need to call this."
9875 msgstr ""
9876
9877 # type: =head2
9878 #: ../src/guestfs-actions.pod:3186
9879 msgid "guestfs_launch"
9880 msgstr ""
9881
9882 # type: verbatim
9883 #: ../src/guestfs-actions.pod:3188
9884 #, no-wrap
9885 msgid ""
9886 " int\n"
9887 " guestfs_launch (guestfs_h *g);\n"
9888 "\n"
9889 msgstr ""
9890
9891 # type: textblock
9892 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9893 msgid ""
9894 "Internally libguestfs is implemented by running a virtual machine using "
9895 "L<qemu(1)>."
9896 msgstr ""
9897
9898 # type: textblock
9899 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9900 msgid ""
9901 "You should call this after configuring the handle (eg. adding drives) but "
9902 "before performing any actions."
9903 msgstr ""
9904
9905 # type: =head2
9906 #: ../src/guestfs-actions.pod:3201
9907 msgid "guestfs_lchown"
9908 msgstr ""
9909
9910 # type: verbatim
9911 #: ../src/guestfs-actions.pod:3203
9912 #, no-wrap
9913 msgid ""
9914 " int\n"
9915 " guestfs_lchown (guestfs_h *g,\n"
9916 "                 int owner,\n"
9917 "                 int group,\n"
9918 "                 const char *path);\n"
9919 "\n"
9920 msgstr ""
9921
9922 # type: textblock
9923 #: ../src/guestfs-actions.pod:3209
9924 msgid ""
9925 "Change the file owner to C<owner> and group to C<group>.  This is like "
9926 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9927 "changed, not the target."
9928 msgstr ""
9929
9930 # type: =head2
9931 #: ../src/guestfs-actions.pod:3221
9932 msgid "guestfs_lgetxattrs"
9933 msgstr ""
9934
9935 # type: verbatim
9936 #: ../src/guestfs-actions.pod:3223
9937 #, no-wrap
9938 msgid ""
9939 " struct guestfs_xattr_list *\n"
9940 " guestfs_lgetxattrs (guestfs_h *g,\n"
9941 "                     const char *path);\n"
9942 "\n"
9943 msgstr ""
9944
9945 # type: textblock
9946 #: ../src/guestfs-actions.pod:3227
9947 msgid ""
9948 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9949 "then it returns the extended attributes of the link itself."
9950 msgstr ""
9951
9952 # type: =head2
9953 #: ../src/guestfs-actions.pod:3237
9954 msgid "guestfs_list_devices"
9955 msgstr ""
9956
9957 # type: verbatim
9958 #: ../src/guestfs-actions.pod:3239
9959 #, no-wrap
9960 msgid ""
9961 " char **\n"
9962 " guestfs_list_devices (guestfs_h *g);\n"
9963 "\n"
9964 msgstr ""
9965
9966 # type: textblock
9967 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9968 msgid "List all the block devices."
9969 msgstr ""
9970
9971 # type: textblock
9972 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9973 msgid "The full block device names are returned, eg. C</dev/sda>."
9974 msgstr ""
9975
9976 # type: =head2
9977 #: ../src/guestfs-actions.pod:3254
9978 msgid "guestfs_list_filesystems"
9979 msgstr ""
9980
9981 # type: verbatim
9982 #: ../src/guestfs-actions.pod:3256
9983 #, no-wrap
9984 msgid ""
9985 " char **\n"
9986 " guestfs_list_filesystems (guestfs_h *g);\n"
9987 "\n"
9988 msgstr ""
9989
9990 # type: textblock
9991 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
9992 msgid ""
9993 "This inspection command looks for filesystems on partitions, block devices "
9994 "and logical volumes, returning a list of devices containing filesystems and "
9995 "their type."
9996 msgstr ""
9997
9998 # type: textblock
9999 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
10000 msgid ""
10001 "The return value is a hash, where the keys are the devices containing "
10002 "filesystems, and the values are the filesystem types.  For example:"
10003 msgstr ""
10004
10005 # type: verbatim
10006 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
10007 #, no-wrap
10008 msgid ""
10009 " \"/dev/sda1\" => \"ntfs\"\n"
10010 " \"/dev/sda2\" => \"ext2\"\n"
10011 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10012 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10013 "\n"
10014 msgstr ""
10015
10016 # type: textblock
10017 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
10018 msgid ""
10019 "The value can have the special value \"unknown\", meaning the content of the "
10020 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10021 msgstr ""
10022
10023 # type: textblock
10024 #: ../src/guestfs-actions.pod:3276
10025 msgid ""
10026 "This command runs other libguestfs commands, which might include "
10027 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10028 "soon after launch and only when nothing is mounted."
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3280
10033 msgid ""
10034 "Not all of the filesystems returned will be mountable.  In particular, swap "
10035 "partitions are returned in the list.  Also this command does not check that "
10036 "each filesystem found is valid and mountable, and some filesystems might be "
10037 "mountable but require special options.  Filesystems may not all belong to a "
10038 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10039 msgstr ""
10040
10041 # type: textblock
10042 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
10043 msgid "(Added in 1.5.15)"
10044 msgstr ""
10045
10046 # type: =head2
10047 #: ../src/guestfs-actions.pod:3296
10048 msgid "guestfs_list_partitions"
10049 msgstr ""
10050
10051 # type: verbatim
10052 #: ../src/guestfs-actions.pod:3298
10053 #, no-wrap
10054 msgid ""
10055 " char **\n"
10056 " guestfs_list_partitions (guestfs_h *g);\n"
10057 "\n"
10058 msgstr ""
10059
10060 # type: textblock
10061 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
10062 msgid "List all the partitions detected on all block devices."
10063 msgstr ""
10064
10065 # type: textblock
10066 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
10067 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10068 msgstr ""
10069
10070 # type: textblock
10071 #: ../src/guestfs-actions.pod:3305
10072 msgid ""
10073 "This does not return logical volumes.  For that you will need to call "
10074 "C<guestfs_lvs>."
10075 msgstr ""
10076
10077 # type: =head2
10078 #: ../src/guestfs-actions.pod:3316
10079 msgid "guestfs_ll"
10080 msgstr ""
10081
10082 # type: verbatim
10083 #: ../src/guestfs-actions.pod:3318
10084 #, no-wrap
10085 msgid ""
10086 " char *\n"
10087 " guestfs_ll (guestfs_h *g,\n"
10088 "             const char *directory);\n"
10089 "\n"
10090 msgstr ""
10091
10092 # type: textblock
10093 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
10094 msgid ""
10095 "List the files in C<directory> (relative to the root directory, there is no "
10096 "cwd) in the format of 'ls -la'."
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
10101 msgid ""
10102 "This command is mostly useful for interactive sessions.  It is I<not> "
10103 "intended that you try to parse the output string."
10104 msgstr ""
10105
10106 # type: =head2
10107 #: ../src/guestfs-actions.pod:3333
10108 msgid "guestfs_ln"
10109 msgstr ""
10110
10111 # type: verbatim
10112 #: ../src/guestfs-actions.pod:3335
10113 #, no-wrap
10114 msgid ""
10115 " int\n"
10116 " guestfs_ln (guestfs_h *g,\n"
10117 "             const char *target,\n"
10118 "             const char *linkname);\n"
10119 "\n"
10120 msgstr ""
10121
10122 # type: textblock
10123 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
10124 msgid "This command creates a hard link using the C<ln> command."
10125 msgstr ""
10126
10127 # type: =head2
10128 #: ../src/guestfs-actions.pod:3346
10129 msgid "guestfs_ln_f"
10130 msgstr ""
10131
10132 # type: verbatim
10133 #: ../src/guestfs-actions.pod:3348
10134 #, no-wrap
10135 msgid ""
10136 " int\n"
10137 " guestfs_ln_f (guestfs_h *g,\n"
10138 "               const char *target,\n"
10139 "               const char *linkname);\n"
10140 "\n"
10141 msgstr ""
10142
10143 # type: textblock
10144 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
10145 msgid ""
10146 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10147 "option removes the link (C<linkname>) if it exists already."
10148 msgstr ""
10149
10150 # type: =head2
10151 #: ../src/guestfs-actions.pod:3360
10152 msgid "guestfs_ln_s"
10153 msgstr ""
10154
10155 # type: verbatim
10156 #: ../src/guestfs-actions.pod:3362
10157 #, no-wrap
10158 msgid ""
10159 " int\n"
10160 " guestfs_ln_s (guestfs_h *g,\n"
10161 "               const char *target,\n"
10162 "               const char *linkname);\n"
10163 "\n"
10164 msgstr ""
10165
10166 # type: textblock
10167 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
10168 msgid "This command creates a symbolic link using the C<ln -s> command."
10169 msgstr ""
10170
10171 # type: =head2
10172 #: ../src/guestfs-actions.pod:3373
10173 msgid "guestfs_ln_sf"
10174 msgstr ""
10175
10176 # type: verbatim
10177 #: ../src/guestfs-actions.pod:3375
10178 #, no-wrap
10179 msgid ""
10180 " int\n"
10181 " guestfs_ln_sf (guestfs_h *g,\n"
10182 "                const char *target,\n"
10183 "                const char *linkname);\n"
10184 "\n"
10185 msgstr ""
10186
10187 # type: textblock
10188 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
10189 msgid ""
10190 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10191 "option removes the link (C<linkname>) if it exists already."
10192 msgstr ""
10193
10194 # type: =head2
10195 #: ../src/guestfs-actions.pod:3387
10196 msgid "guestfs_lremovexattr"
10197 msgstr ""
10198
10199 # type: verbatim
10200 #: ../src/guestfs-actions.pod:3389
10201 #, no-wrap
10202 msgid ""
10203 " int\n"
10204 " guestfs_lremovexattr (guestfs_h *g,\n"
10205 "                       const char *xattr,\n"
10206 "                       const char *path);\n"
10207 "\n"
10208 msgstr ""
10209
10210 # type: textblock
10211 #: ../src/guestfs-actions.pod:3394
10212 msgid ""
10213 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10214 "link, then it removes an extended attribute of the link itself."
10215 msgstr ""
10216
10217 # type: =head2
10218 #: ../src/guestfs-actions.pod:3402
10219 msgid "guestfs_ls"
10220 msgstr ""
10221
10222 # type: verbatim
10223 #: ../src/guestfs-actions.pod:3404
10224 #, no-wrap
10225 msgid ""
10226 " char **\n"
10227 " guestfs_ls (guestfs_h *g,\n"
10228 "             const char *directory);\n"
10229 "\n"
10230 msgstr ""
10231
10232 # type: textblock
10233 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
10234 msgid ""
10235 "List the files in C<directory> (relative to the root directory, there is no "
10236 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10237 msgstr ""
10238
10239 # type: textblock
10240 #: ../src/guestfs-actions.pod:3412
10241 msgid ""
10242 "This command is mostly useful for interactive sessions.  Programs should "
10243 "probably use C<guestfs_readdir> instead."
10244 msgstr ""
10245
10246 # type: =head2
10247 #: ../src/guestfs-actions.pod:3421
10248 msgid "guestfs_lsetxattr"
10249 msgstr ""
10250
10251 # type: verbatim
10252 #: ../src/guestfs-actions.pod:3423
10253 #, no-wrap
10254 msgid ""
10255 " int\n"
10256 " guestfs_lsetxattr (guestfs_h *g,\n"
10257 "                    const char *xattr,\n"
10258 "                    const char *val,\n"
10259 "                    int vallen,\n"
10260 "                    const char *path);\n"
10261 "\n"
10262 msgstr ""
10263
10264 # type: textblock
10265 #: ../src/guestfs-actions.pod:3430
10266 msgid ""
10267 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10268 "then it sets an extended attribute of the link itself."
10269 msgstr ""
10270
10271 # type: =head2
10272 #: ../src/guestfs-actions.pod:3438
10273 msgid "guestfs_lstat"
10274 msgstr ""
10275
10276 # type: verbatim
10277 #: ../src/guestfs-actions.pod:3440
10278 #, no-wrap
10279 msgid ""
10280 " struct guestfs_stat *\n"
10281 " guestfs_lstat (guestfs_h *g,\n"
10282 "                const char *path);\n"
10283 "\n"
10284 msgstr ""
10285
10286 # type: textblock
10287 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871
10288 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10289 msgid "Returns file information for the given C<path>."
10290 msgstr ""
10291
10292 # type: textblock
10293 #: ../src/guestfs-actions.pod:3446
10294 msgid ""
10295 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10296 "link, then the link is stat-ed, not the file it refers to."
10297 msgstr ""
10298
10299 # type: textblock
10300 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
10301 msgid "This is the same as the C<lstat(2)> system call."
10302 msgstr ""
10303
10304 # type: textblock
10305 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
10306 msgid ""
10307 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10308 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10309 msgstr ""
10310
10311 # type: textblock
10312 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879
10313 #: ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
10314 msgid "(Added in 0.9.2)"
10315 msgstr ""
10316
10317 # type: =head2
10318 #: ../src/guestfs-actions.pod:3458
10319 msgid "guestfs_lstatlist"
10320 msgstr ""
10321
10322 # type: verbatim
10323 #: ../src/guestfs-actions.pod:3460
10324 #, no-wrap
10325 msgid ""
10326 " struct guestfs_stat_list *\n"
10327 " guestfs_lstatlist (guestfs_h *g,\n"
10328 "                    const char *path,\n"
10329 "                    char *const *names);\n"
10330 "\n"
10331 msgstr ""
10332
10333 # type: textblock
10334 #: ../src/guestfs-actions.pod:3465
10335 msgid ""
10336 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10337 "files, where all files are in the directory C<path>.  C<names> is the list "
10338 "of files from this directory."
10339 msgstr ""
10340
10341 # type: textblock
10342 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
10343 msgid ""
10344 "On return you get a list of stat structs, with a one-to-one correspondence "
10345 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10346 "then the C<ino> field of that structure is set to C<-1>."
10347 msgstr ""
10348
10349 # type: textblock
10350 #: ../src/guestfs-actions.pod:3474
10351 msgid ""
10352 "This call is intended for programs that want to efficiently list a directory "
10353 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10354 "for a similarly efficient call for getting extended attributes.  Very long "
10355 "directory listings might cause the protocol message size to be exceeded, "
10356 "causing this call to fail.  The caller must split up such requests into "
10357 "smaller groups of names."
10358 msgstr ""
10359
10360 # type: textblock
10361 #: ../src/guestfs-actions.pod:3482
10362 msgid ""
10363 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10364 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10365 msgstr ""
10366
10367 # type: =head2
10368 #: ../src/guestfs-actions.pod:3488
10369 msgid "guestfs_luks_add_key"
10370 msgstr ""
10371
10372 # type: verbatim
10373 #: ../src/guestfs-actions.pod:3490
10374 #, no-wrap
10375 msgid ""
10376 " int\n"
10377 " guestfs_luks_add_key (guestfs_h *g,\n"
10378 "                       const char *device,\n"
10379 "                       const char *key,\n"
10380 "                       const char *newkey,\n"
10381 "                       int keyslot);\n"
10382 "\n"
10383 msgstr ""
10384
10385 # type: textblock
10386 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
10387 msgid ""
10388 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10389 "existing key, and is used to access the device.  C<newkey> is the new key to "
10390 "add.  C<keyslot> is the key slot that will be replaced."
10391 msgstr ""
10392
10393 # type: textblock
10394 #: ../src/guestfs-actions.pod:3502
10395 msgid ""
10396 "Note that if C<keyslot> already contains a key, then this command will "
10397 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10398 msgstr ""
10399
10400 # type: textblock
10401 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548
10402 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591
10403 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
10404 msgid ""
10405 "This function takes a key or passphrase parameter which could contain "
10406 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10407 "information."
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552
10412 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
10413 msgid "(Added in 1.5.2)"
10414 msgstr ""
10415
10416 # type: =head2
10417 #: ../src/guestfs-actions.pod:3514
10418 msgid "guestfs_luks_close"
10419 msgstr ""
10420
10421 # type: verbatim
10422 #: ../src/guestfs-actions.pod:3516
10423 #, no-wrap
10424 msgid ""
10425 " int\n"
10426 " guestfs_luks_close (guestfs_h *g,\n"
10427 "                     const char *device);\n"
10428 "\n"
10429 msgstr ""
10430
10431 # type: textblock
10432 #: ../src/guestfs-actions.pod:3520
10433 msgid ""
10434 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10435 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10436 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10437 "underlying block device."
10438 msgstr ""
10439
10440 # type: textblock
10441 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627
10442 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696
10443 #: ../src/guestfs-actions.pod:3744
10444 msgid "(Added in 1.5.1)"
10445 msgstr ""
10446
10447 # type: =head2
10448 #: ../src/guestfs-actions.pod:3530
10449 msgid "guestfs_luks_format"
10450 msgstr ""
10451
10452 # type: verbatim
10453 #: ../src/guestfs-actions.pod:3532
10454 #, no-wrap
10455 msgid ""
10456 " int\n"
10457 " guestfs_luks_format (guestfs_h *g,\n"
10458 "                      const char *device,\n"
10459 "                      const char *key,\n"
10460 "                      int keyslot);\n"
10461 "\n"
10462 msgstr ""
10463
10464 # type: textblock
10465 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10466 msgid ""
10467 "This command erases existing data on C<device> and formats the device as a "
10468 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10469 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10470 msgstr ""
10471
10472 # type: textblock
10473 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568
10474 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568
10475 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706
10476 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755
10477 #: ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433
10478 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10479 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10480 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10481 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10482 msgid ""
10483 "B<This command is dangerous.  Without careful use you can easily destroy all "
10484 "your data>."
10485 msgstr ""
10486
10487 # type: =head2
10488 #: ../src/guestfs-actions.pod:3554
10489 msgid "guestfs_luks_format_cipher"
10490 msgstr ""
10491
10492 # type: verbatim
10493 #: ../src/guestfs-actions.pod:3556
10494 #, no-wrap
10495 msgid ""
10496 " int\n"
10497 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10498 "                             const char *device,\n"
10499 "                             const char *key,\n"
10500 "                             int keyslot,\n"
10501 "                             const char *cipher);\n"
10502 "\n"
10503 msgstr ""
10504
10505 # type: textblock
10506 #: ../src/guestfs-actions.pod:3563
10507 msgid ""
10508 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10509 "set the C<cipher> used."
10510 msgstr ""
10511
10512 # type: =head2
10513 #: ../src/guestfs-actions.pod:3577
10514 msgid "guestfs_luks_kill_slot"
10515 msgstr ""
10516
10517 # type: verbatim
10518 #: ../src/guestfs-actions.pod:3579
10519 #, no-wrap
10520 msgid ""
10521 " int\n"
10522 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10523 "                         const char *device,\n"
10524 "                         const char *key,\n"
10525 "                         int keyslot);\n"
10526 "\n"
10527 msgstr ""
10528
10529 # type: textblock
10530 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10531 msgid ""
10532 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10533 "device C<device>.  C<key> must be one of the I<other> keys."
10534 msgstr ""
10535
10536 # type: =head2
10537 #: ../src/guestfs-actions.pod:3597
10538 msgid "guestfs_luks_open"
10539 msgstr ""
10540
10541 # type: verbatim
10542 #: ../src/guestfs-actions.pod:3599
10543 #, no-wrap
10544 msgid ""
10545 " int\n"
10546 " guestfs_luks_open (guestfs_h *g,\n"
10547 "                    const char *device,\n"
10548 "                    const char *key,\n"
10549 "                    const char *mapname);\n"
10550 "\n"
10551 msgstr ""
10552
10553 # type: textblock
10554 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10555 msgid ""
10556 "This command opens a block device which has been encrypted according to the "
10557 "Linux Unified Key Setup (LUKS) standard."
10558 msgstr ""
10559
10560 # type: textblock
10561 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10562 msgid "C<device> is the encrypted block device or partition."
10563 msgstr ""
10564
10565 # type: textblock
10566 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10567 msgid ""
10568 "The caller must supply one of the keys associated with the LUKS block "
10569 "device, in the C<key> parameter."
10570 msgstr ""
10571
10572 # type: textblock
10573 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10574 msgid ""
10575 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10576 "writes to this block device are decrypted from and encrypted to the "
10577 "underlying C<device> respectively."
10578 msgstr ""
10579
10580 # type: textblock
10581 #: ../src/guestfs-actions.pod:3617
10582 msgid ""
10583 "If this block device contains LVM volume groups, then calling "
10584 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10585 "visible."
10586 msgstr ""
10587
10588 # type: =head2
10589 #: ../src/guestfs-actions.pod:3629
10590 msgid "guestfs_luks_open_ro"
10591 msgstr ""
10592
10593 # type: verbatim
10594 #: ../src/guestfs-actions.pod:3631
10595 #, no-wrap
10596 msgid ""
10597 " int\n"
10598 " guestfs_luks_open_ro (guestfs_h *g,\n"
10599 "                       const char *device,\n"
10600 "                       const char *key,\n"
10601 "                       const char *mapname);\n"
10602 "\n"
10603 msgstr ""
10604
10605 # type: textblock
10606 #: ../src/guestfs-actions.pod:3637
10607 msgid ""
10608 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10609 "created."
10610 msgstr ""
10611
10612 # type: =head2
10613 #: ../src/guestfs-actions.pod:3648
10614 msgid "guestfs_lvcreate"
10615 msgstr ""
10616
10617 # type: verbatim
10618 #: ../src/guestfs-actions.pod:3650
10619 #, no-wrap
10620 msgid ""
10621 " int\n"
10622 " guestfs_lvcreate (guestfs_h *g,\n"
10623 "                   const char *logvol,\n"
10624 "                   const char *volgroup,\n"
10625 "                   int mbytes);\n"
10626 "\n"
10627 msgstr ""
10628
10629 # type: textblock
10630 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10631 msgid ""
10632 "This creates an LVM logical volume called C<logvol> on the volume group "
10633 "C<volgroup>, with C<size> megabytes."
10634 msgstr ""
10635
10636 # type: =head2
10637 #: ../src/guestfs-actions.pod:3663
10638 msgid "guestfs_lvm_canonical_lv_name"
10639 msgstr ""
10640
10641 # type: verbatim
10642 #: ../src/guestfs-actions.pod:3665
10643 #, no-wrap
10644 msgid ""
10645 " char *\n"
10646 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10647 "                                const char *lvname);\n"
10648 "\n"
10649 msgstr ""
10650
10651 # type: textblock
10652 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10653 msgid ""
10654 "This converts alternative naming schemes for LVs that you might find to the "
10655 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10656 "LV>."
10657 msgstr ""
10658
10659 # type: textblock
10660 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10661 msgid ""
10662 "This command returns an error if the C<lvname> parameter does not refer to a "
10663 "logical volume."
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3676
10668 msgid "See also C<guestfs_is_lv>."
10669 msgstr ""
10670
10671 # type: textblock
10672 #: ../src/guestfs-actions.pod:3681
10673 msgid "(Added in 1.5.24)"
10674 msgstr ""
10675
10676 # type: =head2
10677 #: ../src/guestfs-actions.pod:3683
10678 msgid "guestfs_lvm_clear_filter"
10679 msgstr ""
10680
10681 # type: verbatim
10682 #: ../src/guestfs-actions.pod:3685
10683 #, no-wrap
10684 msgid ""
10685 " int\n"
10686 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10687 "\n"
10688 msgstr ""
10689
10690 # type: textblock
10691 #: ../src/guestfs-actions.pod:3688
10692 msgid ""
10693 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10694 "see every block device."
10695 msgstr ""
10696
10697 # type: textblock
10698 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733
10699 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10700 msgid ""
10701 "This command also clears the LVM cache and performs a volume group scan."
10702 msgstr ""
10703
10704 # type: =head2
10705 #: ../src/guestfs-actions.pod:3698
10706 msgid "guestfs_lvm_remove_all"
10707 msgstr ""
10708
10709 # type: verbatim
10710 #: ../src/guestfs-actions.pod:3700
10711 #, no-wrap
10712 msgid ""
10713 " int\n"
10714 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10715 "\n"
10716 msgstr ""
10717
10718 # type: textblock
10719 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10720 msgid ""
10721 "This command removes all LVM logical volumes, volume groups and physical "
10722 "volumes."
10723 msgstr ""
10724
10725 # type: =head2
10726 #: ../src/guestfs-actions.pod:3713
10727 msgid "guestfs_lvm_set_filter"
10728 msgstr ""
10729
10730 # type: verbatim
10731 #: ../src/guestfs-actions.pod:3715
10732 #, no-wrap
10733 msgid ""
10734 " int\n"
10735 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10736 "                         char *const *devices);\n"
10737 "\n"
10738 msgstr ""
10739
10740 # type: textblock
10741 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10742 msgid ""
10743 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10744 "block devices in the list C<devices>, and will ignore all other attached "
10745 "block devices."
10746 msgstr ""
10747
10748 # type: textblock
10749 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10750 msgid ""
10751 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10752 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10753 "there are two types of duplication possible: either cloned PVs/VGs which "
10754 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10755 "same name.  In normal operation you cannot create this situation, but you "
10756 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10757 "inside the LVM metadata."
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10762 msgid "You can filter whole block devices or individual partitions."
10763 msgstr ""
10764
10765 # type: textblock
10766 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10767 msgid ""
10768 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10769 "filesystem), even if you are not filtering out that VG."
10770 msgstr ""
10771
10772 # type: =head2
10773 #: ../src/guestfs-actions.pod:3746
10774 msgid "guestfs_lvremove"
10775 msgstr ""
10776
10777 # type: verbatim
10778 #: ../src/guestfs-actions.pod:3748
10779 #, no-wrap
10780 msgid ""
10781 " int\n"
10782 " guestfs_lvremove (guestfs_h *g,\n"
10783 "                   const char *device);\n"
10784 "\n"
10785 msgstr ""
10786
10787 # type: textblock
10788 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10789 msgid ""
10790 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10791 "LV, such as C</dev/VG/LV>."
10792 msgstr ""
10793
10794 # type: textblock
10795 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10796 msgid ""
10797 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10798 "dev/VG>."
10799 msgstr ""
10800
10801 # type: textblock
10802 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914
10803 #: ../src/guestfs-actions.pod:6644
10804 msgid "(Added in 1.0.13)"
10805 msgstr ""
10806
10807 # type: =head2
10808 #: ../src/guestfs-actions.pod:3762
10809 msgid "guestfs_lvrename"
10810 msgstr ""
10811
10812 # type: verbatim
10813 #: ../src/guestfs-actions.pod:3764
10814 #, no-wrap
10815 msgid ""
10816 " int\n"
10817 " guestfs_lvrename (guestfs_h *g,\n"
10818 "                   const char *logvol,\n"
10819 "                   const char *newlogvol);\n"
10820 "\n"
10821 msgstr ""
10822
10823 # type: textblock
10824 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10825 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10826 msgstr ""
10827
10828 # type: textblock
10829 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10830 msgid "(Added in 1.0.83)"
10831 msgstr ""
10832
10833 # type: =head2
10834 #: ../src/guestfs-actions.pod:3775
10835 msgid "guestfs_lvresize"
10836 msgstr ""
10837
10838 # type: verbatim
10839 #: ../src/guestfs-actions.pod:3777
10840 #, no-wrap
10841 msgid ""
10842 " int\n"
10843 " guestfs_lvresize (guestfs_h *g,\n"
10844 "                   const char *device,\n"
10845 "                   int mbytes);\n"
10846 "\n"
10847 msgstr ""
10848
10849 # type: textblock
10850 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10851 msgid ""
10852 "This resizes (expands or shrinks) an existing LVM logical volume to "
10853 "C<mbytes>.  When reducing, data in the reduced part is lost."
10854 msgstr ""
10855
10856 # type: =head2
10857 #: ../src/guestfs-actions.pod:3790
10858 msgid "guestfs_lvresize_free"
10859 msgstr ""
10860
10861 # type: verbatim
10862 #: ../src/guestfs-actions.pod:3792
10863 #, no-wrap
10864 msgid ""
10865 " int\n"
10866 " guestfs_lvresize_free (guestfs_h *g,\n"
10867 "                        const char *lv,\n"
10868 "                        int percent);\n"
10869 "\n"
10870 msgstr ""
10871
10872 # type: textblock
10873 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10874 msgid ""
10875 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10876 "remaining free space in the volume group.  Commonly you would call this with "
10877 "pc = 100 which expands the logical volume as much as possible, using all "
10878 "remaining free space in the volume group."
10879 msgstr ""
10880
10881 # type: textblock
10882 #: ../src/guestfs-actions.pod:3805
10883 msgid "(Added in 1.3.3)"
10884 msgstr ""
10885
10886 # type: =head2
10887 #: ../src/guestfs-actions.pod:3807
10888 msgid "guestfs_lvs"
10889 msgstr ""
10890
10891 # type: verbatim
10892 #: ../src/guestfs-actions.pod:3809
10893 #, no-wrap
10894 msgid ""
10895 " char **\n"
10896 " guestfs_lvs (guestfs_h *g);\n"
10897 "\n"
10898 msgstr ""
10899
10900 # type: textblock
10901 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10902 msgid ""
10903 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10904 "(8)> command."
10905 msgstr ""
10906
10907 # type: textblock
10908 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10909 msgid ""
10910 "This returns a list of the logical volume device names (eg. C</dev/"
10911 "VolGroup00/LogVol00>)."
10912 msgstr ""
10913
10914 # type: textblock
10915 #: ../src/guestfs-actions.pod:3818
10916 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10917 msgstr ""
10918
10919 # type: =head2
10920 #: ../src/guestfs-actions.pod:3826
10921 msgid "guestfs_lvs_full"
10922 msgstr ""
10923
10924 # type: verbatim
10925 #: ../src/guestfs-actions.pod:3828
10926 #, no-wrap
10927 msgid ""
10928 " struct guestfs_lvm_lv_list *\n"
10929 " guestfs_lvs_full (guestfs_h *g);\n"
10930 "\n"
10931 msgstr ""
10932
10933 # type: textblock
10934 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10935 msgid ""
10936 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10937 "(8)> command.  The \"full\" version includes all fields."
10938 msgstr ""
10939
10940 # type: textblock
10941 #: ../src/guestfs-actions.pod:3834
10942 msgid ""
10943 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10944 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10945 msgstr ""
10946
10947 # type: =head2
10948 #: ../src/guestfs-actions.pod:3840
10949 msgid "guestfs_lvuuid"
10950 msgstr ""
10951
10952 # type: verbatim
10953 #: ../src/guestfs-actions.pod:3842
10954 #, no-wrap
10955 msgid ""
10956 " char *\n"
10957 " guestfs_lvuuid (guestfs_h *g,\n"
10958 "                 const char *device);\n"
10959 "\n"
10960 msgstr ""
10961
10962 # type: textblock
10963 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10964 msgid "This command returns the UUID of the LVM LV C<device>."
10965 msgstr ""
10966
10967 # type: =head2
10968 #: ../src/guestfs-actions.pod:3853
10969 msgid "guestfs_lxattrlist"
10970 msgstr ""
10971
10972 # type: verbatim
10973 #: ../src/guestfs-actions.pod:3855
10974 #, no-wrap
10975 msgid ""
10976 " struct guestfs_xattr_list *\n"
10977 " guestfs_lxattrlist (guestfs_h *g,\n"
10978 "                     const char *path,\n"
10979 "                     char *const *names);\n"
10980 "\n"
10981 msgstr ""
10982
10983 # type: textblock
10984 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
10985 msgid ""
10986 "This call allows you to get the extended attributes of multiple files, where "
10987 "all files are in the directory C<path>.  C<names> is the list of files from "
10988 "this directory."
10989 msgstr ""
10990
10991 # type: textblock
10992 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
10993 msgid ""
10994 "On return you get a flat list of xattr structs which must be interpreted "
10995 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10996 "C<attrval> in this struct is zero-length to indicate there was an error "
10997 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10998 "number (the number of following attributes for this file, which could be C<"
10999 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11000 "for the first named file.  This repeats for the second and subsequent files."
11001 msgstr ""
11002
11003 # type: textblock
11004 #: ../src/guestfs-actions.pod:3874
11005 msgid ""
11006 "This call is intended for programs that want to efficiently list a directory "
11007 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11008 "a similarly efficient call for getting standard stats.  Very long directory "
11009 "listings might cause the protocol message size to be exceeded, causing this "
11010 "call to fail.  The caller must split up such requests into smaller groups of "
11011 "names."
11012 msgstr ""
11013
11014 # type: =head2
11015 #: ../src/guestfs-actions.pod:3888
11016 msgid "guestfs_mkdir"
11017 msgstr ""
11018
11019 # type: verbatim
11020 #: ../src/guestfs-actions.pod:3890
11021 #, no-wrap
11022 msgid ""
11023 " int\n"
11024 " guestfs_mkdir (guestfs_h *g,\n"
11025 "                const char *path);\n"
11026 "\n"
11027 msgstr ""
11028
11029 # type: textblock
11030 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
11031 msgid "Create a directory named C<path>."
11032 msgstr ""
11033
11034 # type: =head2
11035 #: ../src/guestfs-actions.pod:3900
11036 msgid "guestfs_mkdir_mode"
11037 msgstr ""
11038
11039 # type: verbatim
11040 #: ../src/guestfs-actions.pod:3902
11041 #, no-wrap
11042 msgid ""
11043 " int\n"
11044 " guestfs_mkdir_mode (guestfs_h *g,\n"
11045 "                     const char *path,\n"
11046 "                     int mode);\n"
11047 "\n"
11048 msgstr ""
11049
11050 # type: textblock
11051 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
11052 msgid ""
11053 "This command creates a directory, setting the initial permissions of the "
11054 "directory to C<mode>."
11055 msgstr ""
11056
11057 # type: textblock
11058 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
11059 msgid ""
11060 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11061 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11062 "other ways."
11063 msgstr ""
11064
11065 # type: textblock
11066 #: ../src/guestfs-actions.pod:3914
11067 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11068 msgstr ""
11069
11070 # type: =head2
11071 #: ../src/guestfs-actions.pod:3920
11072 msgid "guestfs_mkdir_p"
11073 msgstr ""
11074
11075 # type: verbatim
11076 #: ../src/guestfs-actions.pod:3922
11077 #, no-wrap
11078 msgid ""
11079 " int\n"
11080 " guestfs_mkdir_p (guestfs_h *g,\n"
11081 "                  const char *path);\n"
11082 "\n"
11083 msgstr ""
11084
11085 # type: textblock
11086 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
11087 msgid ""
11088 "Create a directory named C<path>, creating any parent directories as "
11089 "necessary.  This is like the C<mkdir -p> shell command."
11090 msgstr ""
11091
11092 # type: =head2
11093 #: ../src/guestfs-actions.pod:3933
11094 msgid "guestfs_mkdtemp"
11095 msgstr ""
11096
11097 # type: verbatim
11098 #: ../src/guestfs-actions.pod:3935
11099 #, no-wrap
11100 msgid ""
11101 " char *\n"
11102 " guestfs_mkdtemp (guestfs_h *g,\n"
11103 "                  const char *template);\n"
11104 "\n"
11105 msgstr ""
11106
11107 # type: textblock
11108 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
11109 msgid ""
11110 "This command creates a temporary directory.  The C<template> parameter "
11111 "should be a full pathname for the temporary directory name with the final "
11112 "six characters being \"XXXXXX\"."
11113 msgstr ""
11114
11115 # type: textblock
11116 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
11117 msgid ""
11118 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11119 "being suitable for Windows filesystems."
11120 msgstr ""
11121
11122 # type: textblock
11123 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
11124 msgid "The name of the temporary directory that was created is returned."
11125 msgstr ""
11126
11127 # type: textblock
11128 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
11129 msgid "The temporary directory is created with mode 0700 and is owned by root."
11130 msgstr ""
11131
11132 # type: textblock
11133 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
11134 msgid ""
11135 "The caller is responsible for deleting the temporary directory and its "
11136 "contents after use."
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
11141 msgid "See also: L<mkdtemp(3)>"
11142 msgstr ""
11143
11144 # type: =head2
11145 #: ../src/guestfs-actions.pod:3963
11146 msgid "guestfs_mke2fs_J"
11147 msgstr ""
11148
11149 # type: verbatim
11150 #: ../src/guestfs-actions.pod:3965
11151 #, no-wrap
11152 msgid ""
11153 " int\n"
11154 " guestfs_mke2fs_J (guestfs_h *g,\n"
11155 "                   const char *fstype,\n"
11156 "                   int blocksize,\n"
11157 "                   const char *device,\n"
11158 "                   const char *journal);\n"
11159 "\n"
11160 msgstr ""
11161
11162 # type: textblock
11163 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
11164 msgid ""
11165 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11166 "C<journal>.  It is equivalent to the command:"
11167 msgstr ""
11168
11169 # type: verbatim
11170 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
11171 #, no-wrap
11172 msgid ""
11173 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11174 "\n"
11175 msgstr ""
11176
11177 # type: textblock
11178 #: ../src/guestfs-actions.pod:3978
11179 msgid "See also C<guestfs_mke2journal>."
11180 msgstr ""
11181
11182 # type: textblock
11183 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000
11184 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034
11185 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062
11186 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
11187 msgid "(Added in 1.0.68)"
11188 msgstr ""
11189
11190 # type: =head2
11191 #: ../src/guestfs-actions.pod:3984
11192 msgid "guestfs_mke2fs_JL"
11193 msgstr ""
11194
11195 # type: verbatim
11196 #: ../src/guestfs-actions.pod:3986
11197 #, no-wrap
11198 msgid ""
11199 " int\n"
11200 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11201 "                    const char *fstype,\n"
11202 "                    int blocksize,\n"
11203 "                    const char *device,\n"
11204 "                    const char *label);\n"
11205 "\n"
11206 msgstr ""
11207
11208 # type: textblock
11209 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
11210 msgid ""
11211 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11212 "the journal labeled C<label>."
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:3996
11217 msgid "See also C<guestfs_mke2journal_L>."
11218 msgstr ""
11219
11220 # type: =head2
11221 #: ../src/guestfs-actions.pod:4002
11222 msgid "guestfs_mke2fs_JU"
11223 msgstr ""
11224
11225 # type: verbatim
11226 #: ../src/guestfs-actions.pod:4004
11227 #, no-wrap
11228 msgid ""
11229 " int\n"
11230 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11231 "                    const char *fstype,\n"
11232 "                    int blocksize,\n"
11233 "                    const char *device,\n"
11234 "                    const char *uuid);\n"
11235 "\n"
11236 msgstr ""
11237
11238 # type: textblock
11239 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
11240 msgid ""
11241 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11242 "the journal with UUID C<uuid>."
11243 msgstr ""
11244
11245 # type: textblock
11246 #: ../src/guestfs-actions.pod:4014
11247 msgid "See also C<guestfs_mke2journal_U>."
11248 msgstr ""
11249
11250 # type: =head2
11251 #: ../src/guestfs-actions.pod:4020
11252 msgid "guestfs_mke2journal"
11253 msgstr ""
11254
11255 # type: verbatim
11256 #: ../src/guestfs-actions.pod:4022
11257 #, no-wrap
11258 msgid ""
11259 " int\n"
11260 " guestfs_mke2journal (guestfs_h *g,\n"
11261 "                      int blocksize,\n"
11262 "                      const char *device);\n"
11263 "\n"
11264 msgstr ""
11265
11266 # type: textblock
11267 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
11268 msgid ""
11269 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11270 "command:"
11271 msgstr ""
11272
11273 # type: verbatim
11274 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
11275 #, no-wrap
11276 msgid ""
11277 " mke2fs -O journal_dev -b blocksize device\n"
11278 "\n"
11279 msgstr ""
11280
11281 # type: =head2
11282 #: ../src/guestfs-actions.pod:4036
11283 msgid "guestfs_mke2journal_L"
11284 msgstr ""
11285
11286 # type: verbatim
11287 #: ../src/guestfs-actions.pod:4038
11288 #, no-wrap
11289 msgid ""
11290 " int\n"
11291 " guestfs_mke2journal_L (guestfs_h *g,\n"
11292 "                        int blocksize,\n"
11293 "                        const char *label,\n"
11294 "                        const char *device);\n"
11295 "\n"
11296 msgstr ""
11297
11298 # type: textblock
11299 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
11300 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11301 msgstr ""
11302
11303 # type: =head2
11304 #: ../src/guestfs-actions.pod:4050
11305 msgid "guestfs_mke2journal_U"
11306 msgstr ""
11307
11308 # type: verbatim
11309 #: ../src/guestfs-actions.pod:4052
11310 #, no-wrap
11311 msgid ""
11312 " int\n"
11313 " guestfs_mke2journal_U (guestfs_h *g,\n"
11314 "                        int blocksize,\n"
11315 "                        const char *uuid,\n"
11316 "                        const char *device);\n"
11317 "\n"
11318 msgstr ""
11319
11320 # type: textblock
11321 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
11322 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11323 msgstr ""
11324
11325 # type: =head2
11326 #: ../src/guestfs-actions.pod:4064
11327 msgid "guestfs_mkfifo"
11328 msgstr ""
11329
11330 # type: verbatim
11331 #: ../src/guestfs-actions.pod:4066
11332 #, no-wrap
11333 msgid ""
11334 " int\n"
11335 " guestfs_mkfifo (guestfs_h *g,\n"
11336 "                 int mode,\n"
11337 "                 const char *path);\n"
11338 "\n"
11339 msgstr ""
11340
11341 # type: textblock
11342 #: ../src/guestfs-actions.pod:4071
11343 msgid ""
11344 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11345 "is just a convenient wrapper around C<guestfs_mknod>."
11346 msgstr ""
11347
11348 # type: =head2
11349 #: ../src/guestfs-actions.pod:4081
11350 msgid "guestfs_mkfs"
11351 msgstr ""
11352
11353 # type: verbatim
11354 #: ../src/guestfs-actions.pod:4083
11355 #, no-wrap
11356 msgid ""
11357 " int\n"
11358 " guestfs_mkfs (guestfs_h *g,\n"
11359 "               const char *fstype,\n"
11360 "               const char *device);\n"
11361 "\n"
11362 msgstr ""
11363
11364 # type: textblock
11365 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
11366 msgid ""
11367 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11368 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11369 msgstr ""
11370
11371 # type: =head2
11372 #: ../src/guestfs-actions.pod:4096
11373 msgid "guestfs_mkfs_b"
11374 msgstr ""
11375
11376 # type: verbatim
11377 #: ../src/guestfs-actions.pod:4098
11378 #, no-wrap
11379 msgid ""
11380 " int\n"
11381 " guestfs_mkfs_b (guestfs_h *g,\n"
11382 "                 const char *fstype,\n"
11383 "                 int blocksize,\n"
11384 "                 const char *device);\n"
11385 "\n"
11386 msgstr ""
11387
11388 # type: textblock
11389 #: ../src/guestfs-actions.pod:4104
11390 msgid ""
11391 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11392 "block size of the resulting filesystem.  Supported block sizes depend on the "
11393 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11394 msgstr ""
11395
11396 # type: textblock
11397 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
11398 msgid ""
11399 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11400 "cluster size."
11401 msgstr ""
11402
11403 # type: =head2
11404 #: ../src/guestfs-actions.pod:4116
11405 msgid "guestfs_mkmountpoint"
11406 msgstr ""
11407
11408 # type: verbatim
11409 #: ../src/guestfs-actions.pod:4118
11410 #, no-wrap
11411 msgid ""
11412 " int\n"
11413 " guestfs_mkmountpoint (guestfs_h *g,\n"
11414 "                       const char *exemptpath);\n"
11415 "\n"
11416 msgstr ""
11417
11418 # type: textblock
11419 #: ../src/guestfs-actions.pod:4122
11420 msgid ""
11421 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11422 "that can be used to create extra mountpoints before mounting the first "
11423 "filesystem."
11424 msgstr ""
11425
11426 # type: textblock
11427 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11428 msgid ""
11429 "These calls are I<only> necessary in some very limited circumstances, mainly "
11430 "the case where you want to mount a mix of unrelated and/or read-only "
11431 "filesystems together."
11432 msgstr ""
11433
11434 # type: textblock
11435 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
11436 msgid ""
11437 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11438 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11439 "inside that.  You can unpack this as follows in guestfish:"
11440 msgstr ""
11441
11442 # type: verbatim
11443 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
11444 #, no-wrap
11445 msgid ""
11446 " add-ro Fedora-11-i686-Live.iso\n"
11447 " run\n"
11448 " mkmountpoint /cd\n"
11449 " mkmountpoint /sqsh\n"
11450 " mkmountpoint /ext3fs\n"
11451 " mount /dev/sda /cd\n"
11452 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11453 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11454 "\n"
11455 msgstr ""
11456
11457 # type: textblock
11458 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
11459 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11460 msgstr ""
11461
11462 # type: textblock
11463 #: ../src/guestfs-actions.pod:4146
11464 msgid ""
11465 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11466 "may get unexpected errors if you try to mix these calls.  It is safest to "
11467 "manually unmount filesystems and remove mountpoints after use."
11468 msgstr ""
11469
11470 # type: textblock
11471 #: ../src/guestfs-actions.pod:4150
11472 msgid ""
11473 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11474 "first, so for this to work for manual mountpoints, you must ensure that the "
11475 "innermost mountpoints have the longest pathnames, as in the example code "
11476 "above."
11477 msgstr ""
11478
11479 # type: textblock
11480 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11481 msgid ""
11482 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11483 msgstr ""
11484
11485 # type: textblock
11486 #: ../src/guestfs-actions.pod:4157
11487 msgid ""
11488 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11489 "means that C<guestfs_umount_all> is called when the handle is closed which "
11490 "can also trigger these issues."
11491 msgstr ""
11492
11493 # type: textblock
11494 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422
11495 #: ../src/guestfs-actions.pod:5315
11496 msgid "(Added in 1.0.62)"
11497 msgstr ""
11498
11499 # type: =head2
11500 #: ../src/guestfs-actions.pod:4165
11501 msgid "guestfs_mknod"
11502 msgstr ""
11503
11504 # type: verbatim
11505 #: ../src/guestfs-actions.pod:4167
11506 #, no-wrap
11507 msgid ""
11508 " int\n"
11509 " guestfs_mknod (guestfs_h *g,\n"
11510 "                int mode,\n"
11511 "                int devmajor,\n"
11512 "                int devminor,\n"
11513 "                const char *path);\n"
11514 "\n"
11515 msgstr ""
11516
11517 # type: textblock
11518 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11519 msgid ""
11520 "This call creates block or character special devices, or named pipes (FIFOs)."
11521 msgstr ""
11522
11523 # type: textblock
11524 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11525 msgid ""
11526 "The C<mode> parameter should be the mode, using the standard constants.  "
11527 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11528 "used when creating block and character special devices."
11529 msgstr ""
11530
11531 # type: textblock
11532 #: ../src/guestfs-actions.pod:4182
11533 msgid ""
11534 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11535 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11536 "regular file).  These constants are available in the standard Linux header "
11537 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11538 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11539 "the appropriate constant for you."
11540 msgstr ""
11541
11542 # type: =head2
11543 #: ../src/guestfs-actions.pod:4196
11544 msgid "guestfs_mknod_b"
11545 msgstr ""
11546
11547 # type: verbatim
11548 #: ../src/guestfs-actions.pod:4198
11549 #, no-wrap
11550 msgid ""
11551 " int\n"
11552 " guestfs_mknod_b (guestfs_h *g,\n"
11553 "                  int mode,\n"
11554 "                  int devmajor,\n"
11555 "                  int devminor,\n"
11556 "                  const char *path);\n"
11557 "\n"
11558 msgstr ""
11559
11560 # type: textblock
11561 #: ../src/guestfs-actions.pod:4205
11562 msgid ""
11563 "This call creates a block device node called C<path> with mode C<mode> and "
11564 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11565 "wrapper around C<guestfs_mknod>."
11566 msgstr ""
11567
11568 # type: =head2
11569 #: ../src/guestfs-actions.pod:4215
11570 msgid "guestfs_mknod_c"
11571 msgstr ""
11572
11573 # type: verbatim
11574 #: ../src/guestfs-actions.pod:4217
11575 #, no-wrap
11576 msgid ""
11577 " int\n"
11578 " guestfs_mknod_c (guestfs_h *g,\n"
11579 "                  int mode,\n"
11580 "                  int devmajor,\n"
11581 "                  int devminor,\n"
11582 "                  const char *path);\n"
11583 "\n"
11584 msgstr ""
11585
11586 # type: textblock
11587 #: ../src/guestfs-actions.pod:4224
11588 msgid ""
11589 "This call creates a char device node called C<path> with mode C<mode> and "
11590 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11591 "wrapper around C<guestfs_mknod>."
11592 msgstr ""
11593
11594 # type: =head2
11595 #: ../src/guestfs-actions.pod:4234
11596 msgid "guestfs_mkswap"
11597 msgstr ""
11598
11599 # type: verbatim
11600 #: ../src/guestfs-actions.pod:4236
11601 #, no-wrap
11602 msgid ""
11603 " int\n"
11604 " guestfs_mkswap (guestfs_h *g,\n"
11605 "                 const char *device);\n"
11606 "\n"
11607 msgstr ""
11608
11609 # type: textblock
11610 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11611 msgid "Create a swap partition on C<device>."
11612 msgstr ""
11613
11614 # type: =head2
11615 #: ../src/guestfs-actions.pod:4246
11616 msgid "guestfs_mkswap_L"
11617 msgstr ""
11618
11619 # type: verbatim
11620 #: ../src/guestfs-actions.pod:4248
11621 #, no-wrap
11622 msgid ""
11623 " int\n"
11624 " guestfs_mkswap_L (guestfs_h *g,\n"
11625 "                   const char *label,\n"
11626 "                   const char *device);\n"
11627 "\n"
11628 msgstr ""
11629
11630 # type: textblock
11631 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11632 msgid "Create a swap partition on C<device> with label C<label>."
11633 msgstr ""
11634
11635 # type: textblock
11636 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11637 msgid ""
11638 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11639 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11640 "or swap tools."
11641 msgstr ""
11642
11643 # type: =head2
11644 #: ../src/guestfs-actions.pod:4263
11645 msgid "guestfs_mkswap_U"
11646 msgstr ""
11647
11648 # type: verbatim
11649 #: ../src/guestfs-actions.pod:4265
11650 #, no-wrap
11651 msgid ""
11652 " int\n"
11653 " guestfs_mkswap_U (guestfs_h *g,\n"
11654 "                   const char *uuid,\n"
11655 "                   const char *device);\n"
11656 "\n"
11657 msgstr ""
11658
11659 # type: textblock
11660 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11661 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11662 msgstr ""
11663
11664 # type: =head2
11665 #: ../src/guestfs-actions.pod:4276
11666 msgid "guestfs_mkswap_file"
11667 msgstr ""
11668
11669 # type: verbatim
11670 #: ../src/guestfs-actions.pod:4278
11671 #, no-wrap
11672 msgid ""
11673 " int\n"
11674 " guestfs_mkswap_file (guestfs_h *g,\n"
11675 "                      const char *path);\n"
11676 "\n"
11677 msgstr ""
11678
11679 # type: textblock
11680 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11681 msgid "Create a swap file."
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4284
11686 msgid ""
11687 "This command just writes a swap file signature to an existing file.  To "
11688 "create the file itself, use something like C<guestfs_fallocate>."
11689 msgstr ""
11690
11691 # type: =head2
11692 #: ../src/guestfs-actions.pod:4291
11693 msgid "guestfs_modprobe"
11694 msgstr ""
11695
11696 # type: verbatim
11697 #: ../src/guestfs-actions.pod:4293
11698 #, no-wrap
11699 msgid ""
11700 " int\n"
11701 " guestfs_modprobe (guestfs_h *g,\n"
11702 "                   const char *modulename);\n"
11703 "\n"
11704 msgstr ""
11705
11706 # type: textblock
11707 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11708 msgid "This loads a kernel module in the appliance."
11709 msgstr ""
11710
11711 # type: textblock
11712 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11713 msgid ""
11714 "The kernel module must have been whitelisted when libguestfs was built (see "
11715 "C<appliance/kmod.whitelist.in> in the source)."
11716 msgstr ""
11717
11718 # type: =head2
11719 #: ../src/guestfs-actions.pod:4306
11720 msgid "guestfs_mount"
11721 msgstr ""
11722
11723 # type: verbatim
11724 #: ../src/guestfs-actions.pod:4308
11725 #, no-wrap
11726 msgid ""
11727 " int\n"
11728 " guestfs_mount (guestfs_h *g,\n"
11729 "                const char *device,\n"
11730 "                const char *mountpoint);\n"
11731 "\n"
11732 msgstr ""
11733
11734 # type: textblock
11735 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11736 msgid ""
11737 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11738 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11739 "those block devices contain partitions, they will have the usual names (eg. "
11740 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11741 msgstr ""
11742
11743 # type: textblock
11744 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11745 msgid ""
11746 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11747 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11748 "mounted on directories which already exist."
11749 msgstr ""
11750
11751 # type: textblock
11752 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11753 msgid ""
11754 "The mounted filesystem is writable, if we have sufficient permissions on the "
11755 "underlying device."
11756 msgstr ""
11757
11758 # type: textblock
11759 #: ../src/guestfs-actions.pod:4327
11760 msgid ""
11761 "B<Important note:> When you use this call, the filesystem options C<sync> "
11762 "and C<noatime> are set implicitly.  This was originally done because we "
11763 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11764 "very large negative performance impact and negligible effect on "
11765 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11766 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11767 "(use an empty string for the first parameter if you don't want any options)."
11768 msgstr ""
11769
11770 # type: =head2
11771 #: ../src/guestfs-actions.pod:4341
11772 msgid "guestfs_mount_loop"
11773 msgstr ""
11774
11775 # type: verbatim
11776 #: ../src/guestfs-actions.pod:4343
11777 #, no-wrap
11778 msgid ""
11779 " int\n"
11780 " guestfs_mount_loop (guestfs_h *g,\n"
11781 "                     const char *file,\n"
11782 "                     const char *mountpoint);\n"
11783 "\n"
11784 msgstr ""
11785
11786 # type: textblock
11787 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11788 msgid ""
11789 "This command lets you mount C<file> (a filesystem image in a file) on a "
11790 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11791 "mountpoint>."
11792 msgstr ""
11793
11794 # type: =head2
11795 #: ../src/guestfs-actions.pod:4356
11796 msgid "guestfs_mount_options"
11797 msgstr ""
11798
11799 # type: verbatim
11800 #: ../src/guestfs-actions.pod:4358
11801 #, no-wrap
11802 msgid ""
11803 " int\n"
11804 " guestfs_mount_options (guestfs_h *g,\n"
11805 "                        const char *options,\n"
11806 "                        const char *device,\n"
11807 "                        const char *mountpoint);\n"
11808 "\n"
11809 msgstr ""
11810
11811 # type: textblock
11812 #: ../src/guestfs-actions.pod:4364
11813 msgid ""
11814 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11815 "the mount options as for the L<mount(8)> I<-o> flag."
11816 msgstr ""
11817
11818 # type: textblock
11819 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11820 msgid ""
11821 "If the C<options> parameter is an empty string, then no options are passed "
11822 "(all options default to whatever the filesystem uses)."
11823 msgstr ""
11824
11825 # type: textblock
11826 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388
11827 #: ../src/guestfs-actions.pod:4405
11828 msgid "(Added in 1.0.10)"
11829 msgstr ""
11830
11831 # type: =head2
11832 #: ../src/guestfs-actions.pod:4376
11833 msgid "guestfs_mount_ro"
11834 msgstr ""
11835
11836 # type: verbatim
11837 #: ../src/guestfs-actions.pod:4378
11838 #, no-wrap
11839 msgid ""
11840 " int\n"
11841 " guestfs_mount_ro (guestfs_h *g,\n"
11842 "                   const char *device,\n"
11843 "                   const char *mountpoint);\n"
11844 "\n"
11845 msgstr ""
11846
11847 # type: textblock
11848 #: ../src/guestfs-actions.pod:4383
11849 msgid ""
11850 "This is the same as the C<guestfs_mount> command, but it mounts the "
11851 "filesystem with the read-only (I<-o ro>) flag."
11852 msgstr ""
11853
11854 # type: =head2
11855 #: ../src/guestfs-actions.pod:4390
11856 msgid "guestfs_mount_vfs"
11857 msgstr ""
11858
11859 # type: verbatim
11860 #: ../src/guestfs-actions.pod:4392
11861 #, no-wrap
11862 msgid ""
11863 " int\n"
11864 " guestfs_mount_vfs (guestfs_h *g,\n"
11865 "                    const char *options,\n"
11866 "                    const char *vfstype,\n"
11867 "                    const char *device,\n"
11868 "                    const char *mountpoint);\n"
11869 "\n"
11870 msgstr ""
11871
11872 # type: textblock
11873 #: ../src/guestfs-actions.pod:4399
11874 msgid ""
11875 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11876 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11877 "t> flags."
11878 msgstr ""
11879
11880 # type: =head2
11881 #: ../src/guestfs-actions.pod:4407
11882 msgid "guestfs_mountpoints"
11883 msgstr ""
11884
11885 # type: verbatim
11886 #: ../src/guestfs-actions.pod:4409
11887 #, no-wrap
11888 msgid ""
11889 " char **\n"
11890 " guestfs_mountpoints (guestfs_h *g);\n"
11891 "\n"
11892 msgstr ""
11893
11894 # type: textblock
11895 #: ../src/guestfs-actions.pod:4412
11896 msgid ""
11897 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11898 "devices.  This one returns a hash table (map) of device name to directory "
11899 "where the device is mounted."
11900 msgstr ""
11901
11902 # type: =head2
11903 #: ../src/guestfs-actions.pod:4424
11904 msgid "guestfs_mounts"
11905 msgstr ""
11906
11907 # type: verbatim
11908 #: ../src/guestfs-actions.pod:4426
11909 #, no-wrap
11910 msgid ""
11911 " char **\n"
11912 " guestfs_mounts (guestfs_h *g);\n"
11913 "\n"
11914 msgstr ""
11915
11916 # type: textblock
11917 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11918 msgid ""
11919 "This returns the list of currently mounted filesystems.  It returns the list "
11920 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11921 msgstr ""
11922
11923 # type: textblock
11924 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11925 msgid "Some internal mounts are not shown."
11926 msgstr ""
11927
11928 # type: textblock
11929 #: ../src/guestfs-actions.pod:4434
11930 msgid "See also: C<guestfs_mountpoints>"
11931 msgstr ""
11932
11933 # type: =head2
11934 #: ../src/guestfs-actions.pod:4442
11935 msgid "guestfs_mv"
11936 msgstr ""
11937
11938 # type: verbatim
11939 #: ../src/guestfs-actions.pod:4444
11940 #, no-wrap
11941 msgid ""
11942 " int\n"
11943 " guestfs_mv (guestfs_h *g,\n"
11944 "             const char *src,\n"
11945 "             const char *dest);\n"
11946 "\n"
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11951 msgid ""
11952 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11953 "destination filename or destination directory."
11954 msgstr ""
11955
11956 # type: =head2
11957 #: ../src/guestfs-actions.pod:4456
11958 msgid "guestfs_ntfs_3g_probe"
11959 msgstr ""
11960
11961 # type: verbatim
11962 #: ../src/guestfs-actions.pod:4458
11963 #, no-wrap
11964 msgid ""
11965 " int\n"
11966 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11967 "                        int rw,\n"
11968 "                        const char *device);\n"
11969 "\n"
11970 msgstr ""
11971
11972 # type: textblock
11973 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11974 msgid ""
11975 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11976 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11977 "write, and some cannot be mounted at all)."
11978 msgstr ""
11979
11980 # type: textblock
11981 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11982 msgid ""
11983 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11984 "can be mounted read-write.  Set it to false if you want to test if the "
11985 "volume can be mounted read-only."
11986 msgstr ""
11987
11988 # type: textblock
11989 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
11990 msgid ""
11991 "The return value is an integer which C<0> if the operation would succeed, or "
11992 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11993 msgstr ""
11994
11995 # type: textblock
11996 #: ../src/guestfs-actions.pod:4477
11997 msgid "(Added in 1.0.43)"
11998 msgstr ""
11999
12000 # type: =head2
12001 #: ../src/guestfs-actions.pod:4479
12002 msgid "guestfs_ntfsresize"
12003 msgstr ""
12004
12005 # type: verbatim
12006 #: ../src/guestfs-actions.pod:4481
12007 #, no-wrap
12008 msgid ""
12009 " int\n"
12010 " guestfs_ntfsresize (guestfs_h *g,\n"
12011 "                     const char *device);\n"
12012 "\n"
12013 msgstr ""
12014
12015 # type: textblock
12016 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
12017 msgid ""
12018 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12019 "size of the underlying device.  See also L<ntfsresize(8)>."
12020 msgstr ""
12021
12022 # type: =head2
12023 #: ../src/guestfs-actions.pod:4493
12024 msgid "guestfs_ntfsresize_size"
12025 msgstr ""
12026
12027 # type: verbatim
12028 #: ../src/guestfs-actions.pod:4495
12029 #, no-wrap
12030 msgid ""
12031 " int\n"
12032 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12033 "                          const char *device,\n"
12034 "                          int64_t size);\n"
12035 "\n"
12036 msgstr ""
12037
12038 # type: textblock
12039 #: ../src/guestfs-actions.pod:4500
12040 msgid ""
12041 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12042 "to specify the new size (in bytes) explicitly."
12043 msgstr ""
12044
12045 # type: textblock
12046 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941
12047 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
12048 msgid "(Added in 1.3.14)"
12049 msgstr ""
12050
12051 # type: =head2
12052 #: ../src/guestfs-actions.pod:4507
12053 msgid "guestfs_part_add"
12054 msgstr ""
12055
12056 # type: verbatim
12057 #: ../src/guestfs-actions.pod:4509
12058 #, no-wrap
12059 msgid ""
12060 " int\n"
12061 " guestfs_part_add (guestfs_h *g,\n"
12062 "                   const char *device,\n"
12063 "                   const char *prlogex,\n"
12064 "                   int64_t startsect,\n"
12065 "                   int64_t endsect);\n"
12066 "\n"
12067 msgstr ""
12068
12069 # type: textblock
12070 #: ../src/guestfs-actions.pod:4516
12071 msgid ""
12072 "This command adds a partition to C<device>.  If there is no partition table "
12073 "on the device, call C<guestfs_part_init> first."
12074 msgstr ""
12075
12076 # type: textblock
12077 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
12078 msgid ""
12079 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12080 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12081 "C<logical>) and C<e> (or C<extended>) partition types."
12082 msgstr ""
12083
12084 # type: textblock
12085 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
12086 msgid ""
12087 "C<startsect> and C<endsect> are the start and end of the partition in "
12088 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12089 "from the end of the disk (C<-1> is the last sector)."
12090 msgstr ""
12091
12092 # type: textblock
12093 #: ../src/guestfs-actions.pod:4528
12094 msgid ""
12095 "Creating a partition which covers the whole disk is not so easy.  Use "
12096 "C<guestfs_part_disk> to do that."
12097 msgstr ""
12098
12099 # type: textblock
12100 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571
12101 #: ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702
12102 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759
12103 #: ../src/guestfs-actions.pod:4799
12104 msgid "(Added in 1.0.78)"
12105 msgstr ""
12106
12107 # type: =head2
12108 #: ../src/guestfs-actions.pod:4535
12109 msgid "guestfs_part_del"
12110 msgstr ""
12111
12112 # type: verbatim
12113 #: ../src/guestfs-actions.pod:4537
12114 #, no-wrap
12115 msgid ""
12116 " int\n"
12117 " guestfs_part_del (guestfs_h *g,\n"
12118 "                   const char *device,\n"
12119 "                   int partnum);\n"
12120 "\n"
12121 msgstr ""
12122
12123 # type: textblock
12124 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
12125 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12126 msgstr ""
12127
12128 # type: textblock
12129 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
12130 msgid ""
12131 "Note that in the case of MBR partitioning, deleting an extended partition "
12132 "also deletes any logical partitions it contains."
12133 msgstr ""
12134
12135 # type: =head2
12136 #: ../src/guestfs-actions.pod:4552
12137 msgid "guestfs_part_disk"
12138 msgstr ""
12139
12140 # type: verbatim
12141 #: ../src/guestfs-actions.pod:4554
12142 #, no-wrap
12143 msgid ""
12144 " int\n"
12145 " guestfs_part_disk (guestfs_h *g,\n"
12146 "                    const char *device,\n"
12147 "                    const char *parttype);\n"
12148 "\n"
12149 msgstr ""
12150
12151 # type: textblock
12152 #: ../src/guestfs-actions.pod:4559
12153 msgid ""
12154 "This command is simply a combination of C<guestfs_part_init> followed by "
12155 "C<guestfs_part_add> to create a single primary partition covering the whole "
12156 "disk."
12157 msgstr ""
12158
12159 # type: textblock
12160 #: ../src/guestfs-actions.pod:4563
12161 msgid ""
12162 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12163 "possible values are described in C<guestfs_part_init>."
12164 msgstr ""
12165
12166 # type: =head2
12167 #: ../src/guestfs-actions.pod:4573
12168 msgid "guestfs_part_get_bootable"
12169 msgstr ""
12170
12171 # type: verbatim
12172 #: ../src/guestfs-actions.pod:4575
12173 #, no-wrap
12174 msgid ""
12175 " int\n"
12176 " guestfs_part_get_bootable (guestfs_h *g,\n"
12177 "                            const char *device,\n"
12178 "                            int partnum);\n"
12179 "\n"
12180 msgstr ""
12181
12182 # type: textblock
12183 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
12184 msgid ""
12185 "This command returns true if the partition C<partnum> on C<device> has the "
12186 "bootable flag set."
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4583
12191 msgid "See also C<guestfs_part_set_bootable>."
12192 msgstr ""
12193
12194 # type: =head2
12195 #: ../src/guestfs-actions.pod:4589
12196 msgid "guestfs_part_get_mbr_id"
12197 msgstr ""
12198
12199 # type: verbatim
12200 #: ../src/guestfs-actions.pod:4591
12201 #, no-wrap
12202 msgid ""
12203 " int\n"
12204 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12205 "                          const char *device,\n"
12206 "                          int partnum);\n"
12207 "\n"
12208 msgstr ""
12209
12210 # type: textblock
12211 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
12212 msgid ""
12213 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12214 "partition C<partnum>."
12215 msgstr ""
12216
12217 # type: textblock
12218 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
12219 msgid ""
12220 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12221 "undefined results for other partition table types (see "
12222 "C<guestfs_part_get_parttype>)."
12223 msgstr ""
12224
12225 # type: =head2
12226 #: ../src/guestfs-actions.pod:4607
12227 msgid "guestfs_part_get_parttype"
12228 msgstr ""
12229
12230 # type: verbatim
12231 #: ../src/guestfs-actions.pod:4609
12232 #, no-wrap
12233 msgid ""
12234 " char *\n"
12235 " guestfs_part_get_parttype (guestfs_h *g,\n"
12236 "                            const char *device);\n"
12237 "\n"
12238 msgstr ""
12239
12240 # type: textblock
12241 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
12242 msgid ""
12243 "This command examines the partition table on C<device> and returns the "
12244 "partition table type (format) being used."
12245 msgstr ""
12246
12247 # type: textblock
12248 #: ../src/guestfs-actions.pod:4616
12249 msgid ""
12250 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12251 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12252 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12253 msgstr ""
12254
12255 # type: =head2
12256 #: ../src/guestfs-actions.pod:4626
12257 msgid "guestfs_part_init"
12258 msgstr ""
12259
12260 # type: verbatim
12261 #: ../src/guestfs-actions.pod:4628
12262 #, no-wrap
12263 msgid ""
12264 " int\n"
12265 " guestfs_part_init (guestfs_h *g,\n"
12266 "                    const char *device,\n"
12267 "                    const char *parttype);\n"
12268 "\n"
12269 msgstr ""
12270
12271 # type: textblock
12272 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
12273 msgid ""
12274 "This creates an empty partition table on C<device> of one of the partition "
12275 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12276 "(for large disks)."
12277 msgstr ""
12278
12279 # type: textblock
12280 #: ../src/guestfs-actions.pod:4637
12281 msgid ""
12282 "Initially there are no partitions.  Following this, you should call "
12283 "C<guestfs_part_add> for each partition required."
12284 msgstr ""
12285
12286 # type: textblock
12287 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
12288 msgid "Possible values for C<parttype> are:"
12289 msgstr ""
12290
12291 # type: =item
12292 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
12293 msgid "B<efi> | B<gpt>"
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
12298 msgid "Intel EFI / GPT partition table."
12299 msgstr ""
12300
12301 # type: textblock
12302 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
12303 msgid ""
12304 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12305 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12306 "the C<mbr> format."
12307 msgstr ""
12308
12309 # type: =item
12310 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
12311 msgid "B<mbr> | B<msdos>"
12312 msgstr ""
12313
12314 # type: textblock
12315 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
12316 msgid ""
12317 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12318 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12319 "TB.  For large disks we recommend using C<gpt>."
12320 msgstr ""
12321
12322 # type: textblock
12323 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
12324 msgid ""
12325 "Other partition table types that may work but are not supported include:"
12326 msgstr ""
12327
12328 # type: =item
12329 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
12330 msgid "B<aix>"
12331 msgstr ""
12332
12333 # type: textblock
12334 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
12335 msgid "AIX disk labels."
12336 msgstr ""
12337
12338 # type: =item
12339 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
12340 msgid "B<amiga> | B<rdb>"
12341 msgstr ""
12342
12343 # type: textblock
12344 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
12345 msgid "Amiga \"Rigid Disk Block\" format."
12346 msgstr ""
12347
12348 # type: =item
12349 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
12350 msgid "B<bsd>"
12351 msgstr ""
12352
12353 # type: textblock
12354 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
12355 msgid "BSD disk labels."
12356 msgstr ""
12357
12358 # type: =item
12359 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
12360 msgid "B<dasd>"
12361 msgstr ""
12362
12363 # type: textblock
12364 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
12365 msgid "DASD, used on IBM mainframes."
12366 msgstr ""
12367
12368 # type: =item
12369 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
12370 msgid "B<dvh>"
12371 msgstr ""
12372
12373 # type: textblock
12374 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
12375 msgid "MIPS/SGI volumes."
12376 msgstr ""
12377
12378 # type: =item
12379 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
12380 msgid "B<mac>"
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
12385 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12386 msgstr ""
12387
12388 # type: =item
12389 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
12390 msgid "B<pc98>"
12391 msgstr ""
12392
12393 # type: textblock
12394 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
12395 msgid "NEC PC-98 format, common in Japan apparently."
12396 msgstr ""
12397
12398 # type: =item
12399 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
12400 msgid "B<sun>"
12401 msgstr ""
12402
12403 # type: textblock
12404 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
12405 msgid "Sun disk labels."
12406 msgstr ""
12407
12408 # type: =head2
12409 #: ../src/guestfs-actions.pod:4704
12410 msgid "guestfs_part_list"
12411 msgstr ""
12412
12413 # type: verbatim
12414 #: ../src/guestfs-actions.pod:4706
12415 #, no-wrap
12416 msgid ""
12417 " struct guestfs_partition_list *\n"
12418 " guestfs_part_list (guestfs_h *g,\n"
12419 "                    const char *device);\n"
12420 "\n"
12421 msgstr ""
12422
12423 # type: textblock
12424 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
12425 msgid ""
12426 "This command parses the partition table on C<device> and returns the list of "
12427 "partitions found."
12428 msgstr ""
12429
12430 # type: textblock
12431 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
12432 msgid "The fields in the returned structure are:"
12433 msgstr ""
12434
12435 # type: =item
12436 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
12437 msgid "B<part_num>"
12438 msgstr ""
12439
12440 # type: textblock
12441 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
12442 msgid "Partition number, counting from 1."
12443 msgstr ""
12444
12445 # type: =item
12446 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
12447 msgid "B<part_start>"
12448 msgstr ""
12449
12450 # type: textblock
12451 #: ../src/guestfs-actions.pod:4723
12452 msgid ""
12453 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12454 "the device's sector size, see C<guestfs_blockdev_getss>."
12455 msgstr ""
12456
12457 # type: =item
12458 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
12459 msgid "B<part_end>"
12460 msgstr ""
12461
12462 # type: textblock
12463 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
12464 msgid "End of the partition in bytes."
12465 msgstr ""
12466
12467 # type: =item
12468 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12469 msgid "B<part_size>"
12470 msgstr ""
12471
12472 # type: textblock
12473 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12474 msgid "Size of the partition in bytes."
12475 msgstr ""
12476
12477 # type: textblock
12478 #: ../src/guestfs-actions.pod:4736
12479 msgid ""
12480 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12481 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12482 "use>."
12483 msgstr ""
12484
12485 # type: =head2
12486 #: ../src/guestfs-actions.pod:4742
12487 msgid "guestfs_part_set_bootable"
12488 msgstr ""
12489
12490 # type: verbatim
12491 #: ../src/guestfs-actions.pod:4744
12492 #, no-wrap
12493 msgid ""
12494 " int\n"
12495 " guestfs_part_set_bootable (guestfs_h *g,\n"
12496 "                            const char *device,\n"
12497 "                            int partnum,\n"
12498 "                            int bootable);\n"
12499 "\n"
12500 msgstr ""
12501
12502 # type: textblock
12503 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12504 msgid ""
12505 "This sets the bootable flag on partition numbered C<partnum> on device "
12506 "C<device>.  Note that partitions are numbered from 1."
12507 msgstr ""
12508
12509 # type: textblock
12510 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12511 msgid ""
12512 "The bootable flag is used by some operating systems (notably Windows) to "
12513 "determine which partition to boot from.  It is by no means universally "
12514 "recognized."
12515 msgstr ""
12516
12517 # type: =head2
12518 #: ../src/guestfs-actions.pod:4761
12519 msgid "guestfs_part_set_mbr_id"
12520 msgstr ""
12521
12522 # type: verbatim
12523 #: ../src/guestfs-actions.pod:4763
12524 #, no-wrap
12525 msgid ""
12526 " int\n"
12527 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12528 "                          const char *device,\n"
12529 "                          int partnum,\n"
12530 "                          int idbyte);\n"
12531 "\n"
12532 msgstr ""
12533
12534 # type: textblock
12535 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12536 msgid ""
12537 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12538 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12539 "documentation are in fact hexadecimal numbers, but usually documented "
12540 "without any leading \"0x\" which might be confusing."
12541 msgstr ""
12542
12543 # type: =head2
12544 #: ../src/guestfs-actions.pod:4783
12545 msgid "guestfs_part_set_name"
12546 msgstr ""
12547
12548 # type: verbatim
12549 #: ../src/guestfs-actions.pod:4785
12550 #, no-wrap
12551 msgid ""
12552 " int\n"
12553 " guestfs_part_set_name (guestfs_h *g,\n"
12554 "                        const char *device,\n"
12555 "                        int partnum,\n"
12556 "                        const char *name);\n"
12557 "\n"
12558 msgstr ""
12559
12560 # type: textblock
12561 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12562 msgid ""
12563 "This sets the partition name on partition numbered C<partnum> on device "
12564 "C<device>.  Note that partitions are numbered from 1."
12565 msgstr ""
12566
12567 # type: textblock
12568 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12569 msgid ""
12570 "The partition name can only be set on certain types of partition table.  "
12571 "This works on C<gpt> but not on C<mbr> partitions."
12572 msgstr ""
12573
12574 # type: =head2
12575 #: ../src/guestfs-actions.pod:4801
12576 msgid "guestfs_part_to_dev"
12577 msgstr ""
12578
12579 # type: verbatim
12580 #: ../src/guestfs-actions.pod:4803
12581 #, no-wrap
12582 msgid ""
12583 " char *\n"
12584 " guestfs_part_to_dev (guestfs_h *g,\n"
12585 "                      const char *partition);\n"
12586 "\n"
12587 msgstr ""
12588
12589 # type: textblock
12590 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12591 msgid ""
12592 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12593 "partition number, returning the device name (eg. \"/dev/sdb\")."
12594 msgstr ""
12595
12596 # type: textblock
12597 #: ../src/guestfs-actions.pod:4811
12598 msgid ""
12599 "The named partition must exist, for example as a string returned from "
12600 "C<guestfs_list_partitions>."
12601 msgstr ""
12602
12603 # type: =head2
12604 #: ../src/guestfs-actions.pod:4819
12605 msgid "guestfs_ping_daemon"
12606 msgstr ""
12607
12608 # type: verbatim
12609 #: ../src/guestfs-actions.pod:4821
12610 #, no-wrap
12611 msgid ""
12612 " int\n"
12613 " guestfs_ping_daemon (guestfs_h *g);\n"
12614 "\n"
12615 msgstr ""
12616
12617 # type: textblock
12618 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12619 msgid ""
12620 "This is a test probe into the guestfs daemon running inside the qemu "
12621 "subprocess.  Calling this function checks that the daemon responds to the "
12622 "ping message, without affecting the daemon or attached block device(s) in "
12623 "any other way."
12624 msgstr ""
12625
12626 # type: =head2
12627 #: ../src/guestfs-actions.pod:4833
12628 msgid "guestfs_pread"
12629 msgstr ""
12630
12631 # type: verbatim
12632 #: ../src/guestfs-actions.pod:4835
12633 #, no-wrap
12634 msgid ""
12635 " char *\n"
12636 " guestfs_pread (guestfs_h *g,\n"
12637 "                const char *path,\n"
12638 "                int count,\n"
12639 "                int64_t offset,\n"
12640 "                size_t *size_r);\n"
12641 "\n"
12642 msgstr ""
12643
12644 # type: textblock
12645 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12646 msgid ""
12647 "This command lets you read part of a file.  It reads C<count> bytes of the "
12648 "file, starting at C<offset>, from file C<path>."
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871
12653 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12654 msgid ""
12655 "This may read fewer bytes than requested.  For further details see the "
12656 "L<pread(2)> system call."
12657 msgstr ""
12658
12659 # type: textblock
12660 #: ../src/guestfs-actions.pod:4848
12661 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12662 msgstr ""
12663
12664 # type: =head2
12665 #: ../src/guestfs-actions.pod:4859
12666 msgid "guestfs_pread_device"
12667 msgstr ""
12668
12669 # type: verbatim
12670 #: ../src/guestfs-actions.pod:4861
12671 #, no-wrap
12672 msgid ""
12673 " char *\n"
12674 " guestfs_pread_device (guestfs_h *g,\n"
12675 "                       const char *device,\n"
12676 "                       int count,\n"
12677 "                       int64_t offset,\n"
12678 "                       size_t *size_r);\n"
12679 "\n"
12680 msgstr ""
12681
12682 # type: textblock
12683 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12684 msgid ""
12685 "This command lets you read part of a file.  It reads C<count> bytes of "
12686 "C<device>, starting at C<offset>."
12687 msgstr ""
12688
12689 # type: textblock
12690 #: ../src/guestfs-actions.pod:4874
12691 msgid "See also C<guestfs_pread>."
12692 msgstr ""
12693
12694 # type: textblock
12695 #: ../src/guestfs-actions.pod:4883
12696 msgid "(Added in 1.5.21)"
12697 msgstr ""
12698
12699 # type: =head2
12700 #: ../src/guestfs-actions.pod:4885
12701 msgid "guestfs_pvcreate"
12702 msgstr ""
12703
12704 # type: verbatim
12705 #: ../src/guestfs-actions.pod:4887
12706 #, no-wrap
12707 msgid ""
12708 " int\n"
12709 " guestfs_pvcreate (guestfs_h *g,\n"
12710 "                   const char *device);\n"
12711 "\n"
12712 msgstr ""
12713
12714 # type: textblock
12715 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12716 msgid ""
12717 "This creates an LVM physical volume on the named C<device>, where C<device> "
12718 "should usually be a partition name such as C</dev/sda1>."
12719 msgstr ""
12720
12721 # type: =head2
12722 #: ../src/guestfs-actions.pod:4899
12723 msgid "guestfs_pvremove"
12724 msgstr ""
12725
12726 # type: verbatim
12727 #: ../src/guestfs-actions.pod:4901
12728 #, no-wrap
12729 msgid ""
12730 " int\n"
12731 " guestfs_pvremove (guestfs_h *g,\n"
12732 "                   const char *device);\n"
12733 "\n"
12734 msgstr ""
12735
12736 # type: textblock
12737 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12738 msgid ""
12739 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12740 "it."
12741 msgstr ""
12742
12743 # type: textblock
12744 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12745 msgid ""
12746 "The implementation uses the C<pvremove> command which refuses to wipe "
12747 "physical volumes that contain any volume groups, so you have to remove those "
12748 "first."
12749 msgstr ""
12750
12751 # type: =head2
12752 #: ../src/guestfs-actions.pod:4916
12753 msgid "guestfs_pvresize"
12754 msgstr ""
12755
12756 # type: verbatim
12757 #: ../src/guestfs-actions.pod:4918
12758 #, no-wrap
12759 msgid ""
12760 " int\n"
12761 " guestfs_pvresize (guestfs_h *g,\n"
12762 "                   const char *device);\n"
12763 "\n"
12764 msgstr ""
12765
12766 # type: textblock
12767 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12768 msgid ""
12769 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12770 "the new size of the underlying device."
12771 msgstr ""
12772
12773 # type: =head2
12774 #: ../src/guestfs-actions.pod:4929
12775 msgid "guestfs_pvresize_size"
12776 msgstr ""
12777
12778 # type: verbatim
12779 #: ../src/guestfs-actions.pod:4931
12780 #, no-wrap
12781 msgid ""
12782 " int\n"
12783 " guestfs_pvresize_size (guestfs_h *g,\n"
12784 "                        const char *device,\n"
12785 "                        int64_t size);\n"
12786 "\n"
12787 msgstr ""
12788
12789 # type: textblock
12790 #: ../src/guestfs-actions.pod:4936
12791 msgid ""
12792 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12793 "specify the new size (in bytes) explicitly."
12794 msgstr ""
12795
12796 # type: =head2
12797 #: ../src/guestfs-actions.pod:4943
12798 msgid "guestfs_pvs"
12799 msgstr ""
12800
12801 # type: verbatim
12802 #: ../src/guestfs-actions.pod:4945
12803 #, no-wrap
12804 msgid ""
12805 " char **\n"
12806 " guestfs_pvs (guestfs_h *g);\n"
12807 "\n"
12808 msgstr ""
12809
12810 # type: textblock
12811 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12812 msgid ""
12813 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12814 "(8)> command."
12815 msgstr ""
12816
12817 # type: textblock
12818 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12819 msgid ""
12820 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12821 "sda2>)."
12822 msgstr ""
12823
12824 # type: textblock
12825 #: ../src/guestfs-actions.pod:4954
12826 msgid "See also C<guestfs_pvs_full>."
12827 msgstr ""
12828
12829 # type: =head2
12830 #: ../src/guestfs-actions.pod:4962
12831 msgid "guestfs_pvs_full"
12832 msgstr ""
12833
12834 # type: verbatim
12835 #: ../src/guestfs-actions.pod:4964
12836 #, no-wrap
12837 msgid ""
12838 " struct guestfs_lvm_pv_list *\n"
12839 " guestfs_pvs_full (guestfs_h *g);\n"
12840 "\n"
12841 msgstr ""
12842
12843 # type: textblock
12844 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12845 msgid ""
12846 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12847 "(8)> command.  The \"full\" version includes all fields."
12848 msgstr ""
12849
12850 # type: textblock
12851 #: ../src/guestfs-actions.pod:4970
12852 msgid ""
12853 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12854 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12855 msgstr ""
12856
12857 # type: =head2
12858 #: ../src/guestfs-actions.pod:4976
12859 msgid "guestfs_pvuuid"
12860 msgstr ""
12861
12862 # type: verbatim
12863 #: ../src/guestfs-actions.pod:4978
12864 #, no-wrap
12865 msgid ""
12866 " char *\n"
12867 " guestfs_pvuuid (guestfs_h *g,\n"
12868 "                 const char *device);\n"
12869 "\n"
12870 msgstr ""
12871
12872 # type: textblock
12873 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12874 msgid "This command returns the UUID of the LVM PV C<device>."
12875 msgstr ""
12876
12877 # type: =head2
12878 #: ../src/guestfs-actions.pod:4989
12879 msgid "guestfs_pwrite"
12880 msgstr ""
12881
12882 # type: verbatim
12883 #: ../src/guestfs-actions.pod:4991
12884 #, no-wrap
12885 msgid ""
12886 " int\n"
12887 " guestfs_pwrite (guestfs_h *g,\n"
12888 "                 const char *path,\n"
12889 "                 const char *content,\n"
12890 "                 size_t content_size,\n"
12891 "                 int64_t offset);\n"
12892 "\n"
12893 msgstr ""
12894
12895 # type: textblock
12896 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12897 msgid ""
12898 "This command writes to part of a file.  It writes the data buffer C<content> "
12899 "to the file C<path> starting at offset C<offset>."
12900 msgstr ""
12901
12902 # type: textblock
12903 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12904 msgid ""
12905 "This command implements the L<pwrite(2)> system call, and like that system "
12906 "call it may not write the full data requested.  The return value is the "
12907 "number of bytes that were actually written to the file.  This could even be "
12908 "0, although short writes are unlikely for regular files in ordinary "
12909 "circumstances."
12910 msgstr ""
12911
12912 # type: textblock
12913 #: ../src/guestfs-actions.pod:5007
12914 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12915 msgstr ""
12916
12917 # type: =head2
12918 #: ../src/guestfs-actions.pod:5016
12919 msgid "guestfs_pwrite_device"
12920 msgstr ""
12921
12922 # type: verbatim
12923 #: ../src/guestfs-actions.pod:5018
12924 #, no-wrap
12925 msgid ""
12926 " int\n"
12927 " guestfs_pwrite_device (guestfs_h *g,\n"
12928 "                        const char *device,\n"
12929 "                        const char *content,\n"
12930 "                        size_t content_size,\n"
12931 "                        int64_t offset);\n"
12932 "\n"
12933 msgstr ""
12934
12935 # type: textblock
12936 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12937 msgid ""
12938 "This command writes to part of a device.  It writes the data buffer "
12939 "C<content> to C<device> starting at offset C<offset>."
12940 msgstr ""
12941
12942 # type: textblock
12943 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12944 msgid ""
12945 "This command implements the L<pwrite(2)> system call, and like that system "
12946 "call it may not write the full data requested (although short writes to disk "
12947 "devices and partitions are probably impossible with standard Linux kernels)."
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:5033
12952 msgid "See also C<guestfs_pwrite>."
12953 msgstr ""
12954
12955 # type: textblock
12956 #: ../src/guestfs-actions.pod:5040
12957 msgid "(Added in 1.5.20)"
12958 msgstr ""
12959
12960 # type: =head2
12961 #: ../src/guestfs-actions.pod:5042
12962 msgid "guestfs_read_file"
12963 msgstr ""
12964
12965 # type: verbatim
12966 #: ../src/guestfs-actions.pod:5044
12967 #, no-wrap
12968 msgid ""
12969 " char *\n"
12970 " guestfs_read_file (guestfs_h *g,\n"
12971 "                    const char *path,\n"
12972 "                    size_t *size_r);\n"
12973 "\n"
12974 msgstr ""
12975
12976 # type: textblock
12977 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12978 msgid "This calls returns the contents of the file C<path> as a buffer."
12979 msgstr ""
12980
12981 # type: textblock
12982 #: ../src/guestfs-actions.pod:5052
12983 msgid ""
12984 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12985 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12986 "function is limited in the total size of file that can be handled."
12987 msgstr ""
12988
12989 # type: textblock
12990 #: ../src/guestfs-actions.pod:5064
12991 msgid "(Added in 1.0.63)"
12992 msgstr ""
12993
12994 # type: =head2
12995 #: ../src/guestfs-actions.pod:5066
12996 msgid "guestfs_read_lines"
12997 msgstr ""
12998
12999 # type: verbatim
13000 #: ../src/guestfs-actions.pod:5068
13001 #, no-wrap
13002 msgid ""
13003 " char **\n"
13004 " guestfs_read_lines (guestfs_h *g,\n"
13005 "                     const char *path);\n"
13006 "\n"
13007 msgstr ""
13008
13009 # type: textblock
13010 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
13011 msgid ""
13012 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13013 "C<CRLF> character sequences are I<not> returned."
13014 msgstr ""
13015
13016 # type: textblock
13017 #: ../src/guestfs-actions.pod:5077
13018 msgid ""
13019 "Note that this function cannot correctly handle binary files (specifically, "
13020 "files containing C<\\0> character which is treated as end of line).  For "
13021 "those you need to use the C<guestfs_read_file> function which has a more "
13022 "complex interface."
13023 msgstr ""
13024
13025 # type: =head2
13026 #: ../src/guestfs-actions.pod:5088
13027 msgid "guestfs_readdir"
13028 msgstr ""
13029
13030 # type: verbatim
13031 #: ../src/guestfs-actions.pod:5090
13032 #, no-wrap
13033 msgid ""
13034 " struct guestfs_dirent_list *\n"
13035 " guestfs_readdir (guestfs_h *g,\n"
13036 "                  const char *dir);\n"
13037 "\n"
13038 msgstr ""
13039
13040 # type: textblock
13041 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
13042 msgid "This returns the list of directory entries in directory C<dir>."
13043 msgstr ""
13044
13045 # type: textblock
13046 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
13047 msgid ""
13048 "All entries in the directory are returned, including C<.> and C<..>.  The "
13049 "entries are I<not> sorted, but returned in the same order as the underlying "
13050 "filesystem."
13051 msgstr ""
13052
13053 # type: textblock
13054 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
13055 msgid ""
13056 "Also this call returns basic file type information about each file.  The "
13057 "C<ftyp> field will contain one of the following characters:"
13058 msgstr ""
13059
13060 # type: =item
13061 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
13062 msgid "'b'"
13063 msgstr ""
13064
13065 # type: textblock
13066 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
13067 msgid "Block special"
13068 msgstr ""
13069
13070 # type: =item
13071 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
13072 msgid "'c'"
13073 msgstr ""
13074
13075 # type: textblock
13076 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
13077 msgid "Char special"
13078 msgstr ""
13079
13080 # type: =item
13081 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
13082 msgid "'d'"
13083 msgstr ""
13084
13085 # type: textblock
13086 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
13087 msgid "Directory"
13088 msgstr ""
13089
13090 # type: =item
13091 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
13092 msgid "'f'"
13093 msgstr ""
13094
13095 # type: textblock
13096 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
13097 msgid "FIFO (named pipe)"
13098 msgstr ""
13099
13100 # type: =item
13101 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
13102 msgid "'l'"
13103 msgstr ""
13104
13105 # type: textblock
13106 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
13107 msgid "Symbolic link"
13108 msgstr ""
13109
13110 # type: =item
13111 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
13112 msgid "'r'"
13113 msgstr ""
13114
13115 # type: textblock
13116 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
13117 msgid "Regular file"
13118 msgstr ""
13119
13120 # type: =item
13121 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
13122 msgid "'s'"
13123 msgstr ""
13124
13125 # type: textblock
13126 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
13127 msgid "Socket"
13128 msgstr ""
13129
13130 # type: =item
13131 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
13132 msgid "'u'"
13133 msgstr ""
13134
13135 # type: textblock
13136 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
13137 msgid "Unknown file type"
13138 msgstr ""
13139
13140 # type: =item
13141 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
13142 msgid "'?'"
13143 msgstr ""
13144
13145 # type: textblock
13146 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
13147 msgid ""
13148 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13149 msgstr ""
13150
13151 # type: textblock
13152 #: ../src/guestfs-actions.pod:5144
13153 msgid ""
13154 "This function is primarily intended for use by programs.  To get a simple "
13155 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13156 "consumption, use C<guestfs_ll>."
13157 msgstr ""
13158
13159 # type: textblock
13160 #: ../src/guestfs-actions.pod:5148
13161 msgid ""
13162 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13163 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13164 msgstr ""
13165
13166 # type: =head2
13167 #: ../src/guestfs-actions.pod:5154
13168 msgid "guestfs_readlink"
13169 msgstr ""
13170
13171 # type: verbatim
13172 #: ../src/guestfs-actions.pod:5156
13173 #, no-wrap
13174 msgid ""
13175 " char *\n"
13176 " guestfs_readlink (guestfs_h *g,\n"
13177 "                   const char *path);\n"
13178 "\n"
13179 msgstr ""
13180
13181 # type: textblock
13182 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
13183 msgid "This command reads the target of a symbolic link."
13184 msgstr ""
13185
13186 # type: =head2
13187 #: ../src/guestfs-actions.pod:5167
13188 msgid "guestfs_readlinklist"
13189 msgstr ""
13190
13191 # type: verbatim
13192 #: ../src/guestfs-actions.pod:5169
13193 #, no-wrap
13194 msgid ""
13195 " char **\n"
13196 " guestfs_readlinklist (guestfs_h *g,\n"
13197 "                       const char *path,\n"
13198 "                       char *const *names);\n"
13199 "\n"
13200 msgstr ""
13201
13202 # type: textblock
13203 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
13204 msgid ""
13205 "This call allows you to do a C<readlink> operation on multiple files, where "
13206 "all files are in the directory C<path>.  C<names> is the list of files from "
13207 "this directory."
13208 msgstr ""
13209
13210 # type: textblock
13211 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
13212 msgid ""
13213 "On return you get a list of strings, with a one-to-one correspondence to the "
13214 "C<names> list.  Each string is the value of the symbolic link."
13215 msgstr ""
13216
13217 # type: textblock
13218 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
13219 msgid ""
13220 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13221 "result string is the empty string C<\"\">.  However the whole operation is "
13222 "completed even if there were C<readlink(2)> errors, and so you can call this "
13223 "function with names where you don't know if they are symbolic links already "
13224 "(albeit slightly less efficient)."
13225 msgstr ""
13226
13227 # type: textblock
13228 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
13229 msgid ""
13230 "This call is intended for programs that want to efficiently list a directory "
13231 "contents without making many round-trips.  Very long directory listings "
13232 "might cause the protocol message size to be exceeded, causing this call to "
13233 "fail.  The caller must split up such requests into smaller groups of names."
13234 msgstr ""
13235
13236 # type: =head2
13237 #: ../src/guestfs-actions.pod:5202
13238 msgid "guestfs_realpath"
13239 msgstr ""
13240
13241 # type: verbatim
13242 #: ../src/guestfs-actions.pod:5204
13243 #, no-wrap
13244 msgid ""
13245 " char *\n"
13246 " guestfs_realpath (guestfs_h *g,\n"
13247 "                   const char *path);\n"
13248 "\n"
13249 msgstr ""
13250
13251 # type: textblock
13252 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
13253 msgid ""
13254 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13255 "has no C<.>, C<..> or symbolic link path elements."
13256 msgstr ""
13257
13258 # type: =head2
13259 #: ../src/guestfs-actions.pod:5216
13260 msgid "guestfs_removexattr"
13261 msgstr ""
13262
13263 # type: verbatim
13264 #: ../src/guestfs-actions.pod:5218
13265 #, no-wrap
13266 msgid ""
13267 " int\n"
13268 " guestfs_removexattr (guestfs_h *g,\n"
13269 "                      const char *xattr,\n"
13270 "                      const char *path);\n"
13271 "\n"
13272 msgstr ""
13273
13274 # type: textblock
13275 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
13276 msgid ""
13277 "This call removes the extended attribute named C<xattr> of the file C<path>."
13278 msgstr ""
13279
13280 # type: textblock
13281 #: ../src/guestfs-actions.pod:5226
13282 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13283 msgstr ""
13284
13285 # type: =head2
13286 #: ../src/guestfs-actions.pod:5232
13287 msgid "guestfs_resize2fs"
13288 msgstr ""
13289
13290 # type: verbatim
13291 #: ../src/guestfs-actions.pod:5234
13292 #, no-wrap
13293 msgid ""
13294 " int\n"
13295 " guestfs_resize2fs (guestfs_h *g,\n"
13296 "                    const char *device);\n"
13297 "\n"
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
13302 msgid ""
13303 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13304 "underlying device."
13305 msgstr ""
13306
13307 # type: textblock
13308 #: ../src/guestfs-actions.pod:5241
13309 msgid ""
13310 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13311 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13312 "sometimes gives an error about this and sometimes not.  In any case, it is "
13313 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13314 msgstr ""
13315
13316 # type: =head2
13317 #: ../src/guestfs-actions.pod:5251
13318 msgid "guestfs_resize2fs_size"
13319 msgstr ""
13320
13321 # type: verbatim
13322 #: ../src/guestfs-actions.pod:5253
13323 #, no-wrap
13324 msgid ""
13325 " int\n"
13326 " guestfs_resize2fs_size (guestfs_h *g,\n"
13327 "                         const char *device,\n"
13328 "                         int64_t size);\n"
13329 "\n"
13330 msgstr ""
13331
13332 # type: textblock
13333 #: ../src/guestfs-actions.pod:5258
13334 msgid ""
13335 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13336 "to specify the new size (in bytes) explicitly."
13337 msgstr ""
13338
13339 # type: =head2
13340 #: ../src/guestfs-actions.pod:5265
13341 msgid "guestfs_rm"
13342 msgstr ""
13343
13344 # type: verbatim
13345 #: ../src/guestfs-actions.pod:5267
13346 #, no-wrap
13347 msgid ""
13348 " int\n"
13349 " guestfs_rm (guestfs_h *g,\n"
13350 "             const char *path);\n"
13351 "\n"
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
13356 msgid "Remove the single file C<path>."
13357 msgstr ""
13358
13359 # type: =head2
13360 #: ../src/guestfs-actions.pod:5277
13361 msgid "guestfs_rm_rf"
13362 msgstr ""
13363
13364 # type: verbatim
13365 #: ../src/guestfs-actions.pod:5279
13366 #, no-wrap
13367 msgid ""
13368 " int\n"
13369 " guestfs_rm_rf (guestfs_h *g,\n"
13370 "                const char *path);\n"
13371 "\n"
13372 msgstr ""
13373
13374 # type: textblock
13375 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
13376 msgid ""
13377 "Remove the file or directory C<path>, recursively removing the contents if "
13378 "its a directory.  This is like the C<rm -rf> shell command."
13379 msgstr ""
13380
13381 # type: =head2
13382 #: ../src/guestfs-actions.pod:5291
13383 msgid "guestfs_rmdir"
13384 msgstr ""
13385
13386 # type: verbatim
13387 #: ../src/guestfs-actions.pod:5293
13388 #, no-wrap
13389 msgid ""
13390 " int\n"
13391 " guestfs_rmdir (guestfs_h *g,\n"
13392 "                const char *path);\n"
13393 "\n"
13394 msgstr ""
13395
13396 # type: textblock
13397 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
13398 msgid "Remove the single directory C<path>."
13399 msgstr ""
13400
13401 # type: =head2
13402 #: ../src/guestfs-actions.pod:5303
13403 msgid "guestfs_rmmountpoint"
13404 msgstr ""
13405
13406 # type: verbatim
13407 #: ../src/guestfs-actions.pod:5305
13408 #, no-wrap
13409 msgid ""
13410 " int\n"
13411 " guestfs_rmmountpoint (guestfs_h *g,\n"
13412 "                       const char *exemptpath);\n"
13413 "\n"
13414 msgstr ""
13415
13416 # type: textblock
13417 #: ../src/guestfs-actions.pod:5309
13418 msgid ""
13419 "This calls removes a mountpoint that was previously created with "
13420 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13421 msgstr ""
13422
13423 # type: =head2
13424 #: ../src/guestfs-actions.pod:5317
13425 msgid "guestfs_scrub_device"
13426 msgstr ""
13427
13428 # type: verbatim
13429 #: ../src/guestfs-actions.pod:5319
13430 #, no-wrap
13431 msgid ""
13432 " int\n"
13433 " guestfs_scrub_device (guestfs_h *g,\n"
13434 "                       const char *device);\n"
13435 "\n"
13436 msgstr ""
13437
13438 # type: textblock
13439 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
13440 msgid ""
13441 "This command writes patterns over C<device> to make data retrieval more "
13442 "difficult."
13443 msgstr ""
13444
13445 # type: textblock
13446 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347
13447 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564
13448 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13449 msgid ""
13450 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13451 "more details."
13452 msgstr ""
13453
13454 # type: textblock
13455 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352
13456 #: ../src/guestfs-actions.pod:5371
13457 msgid "(Added in 1.0.52)"
13458 msgstr ""
13459
13460 # type: =head2
13461 #: ../src/guestfs-actions.pod:5336
13462 msgid "guestfs_scrub_file"
13463 msgstr ""
13464
13465 # type: verbatim
13466 #: ../src/guestfs-actions.pod:5338
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_scrub_file (guestfs_h *g,\n"
13471 "                     const char *file);\n"
13472 "\n"
13473 msgstr ""
13474
13475 # type: textblock
13476 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13477 msgid ""
13478 "This command writes patterns over a file to make data retrieval more "
13479 "difficult."
13480 msgstr ""
13481
13482 # type: textblock
13483 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13484 msgid "The file is I<removed> after scrubbing."
13485 msgstr ""
13486
13487 # type: =head2
13488 #: ../src/guestfs-actions.pod:5354
13489 msgid "guestfs_scrub_freespace"
13490 msgstr ""
13491
13492 # type: verbatim
13493 #: ../src/guestfs-actions.pod:5356
13494 #, no-wrap
13495 msgid ""
13496 " int\n"
13497 " guestfs_scrub_freespace (guestfs_h *g,\n"
13498 "                          const char *dir);\n"
13499 "\n"
13500 msgstr ""
13501
13502 # type: textblock
13503 #: ../src/guestfs-actions.pod:5360
13504 msgid ""
13505 "This command creates the directory C<dir> and then fills it with files until "
13506 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13507 "and deletes them.  The intention is to scrub any free space on the partition "
13508 "containing C<dir>."
13509 msgstr ""
13510
13511 # type: =head2
13512 #: ../src/guestfs-actions.pod:5373
13513 msgid "guestfs_set_append"
13514 msgstr ""
13515
13516 # type: verbatim
13517 #: ../src/guestfs-actions.pod:5375
13518 #, no-wrap
13519 msgid ""
13520 " int\n"
13521 " guestfs_set_append (guestfs_h *g,\n"
13522 "                     const char *append);\n"
13523 "\n"
13524 msgstr ""
13525
13526 # type: textblock
13527 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13528 msgid ""
13529 "This function is used to add additional options to the guest kernel command "
13530 "line."
13531 msgstr ""
13532
13533 # type: textblock
13534 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13535 msgid ""
13536 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13537 "environment variable."
13538 msgstr ""
13539
13540 # type: textblock
13541 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13542 msgid ""
13543 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13544 "(libguestfs always adds a few of its own)."
13545 msgstr ""
13546
13547 # type: =head2
13548 #: ../src/guestfs-actions.pod:5392
13549 msgid "guestfs_set_autosync"
13550 msgstr ""
13551
13552 # type: verbatim
13553 #: ../src/guestfs-actions.pod:5394
13554 #, no-wrap
13555 msgid ""
13556 " int\n"
13557 " guestfs_set_autosync (guestfs_h *g,\n"
13558 "                       int autosync);\n"
13559 "\n"
13560 msgstr ""
13561
13562 # type: textblock
13563 #: ../src/guestfs-actions.pod:5398
13564 msgid ""
13565 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13566 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13567 "the handle is closed (also if the program exits without closing handles)."
13568 msgstr ""
13569
13570 # type: textblock
13571 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13572 msgid ""
13573 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13574 "disabled by default)."
13575 msgstr ""
13576
13577 # type: =head2
13578 #: ../src/guestfs-actions.pod:5410
13579 msgid "guestfs_set_direct"
13580 msgstr ""
13581
13582 # type: verbatim
13583 #: ../src/guestfs-actions.pod:5412
13584 #, no-wrap
13585 msgid ""
13586 " int\n"
13587 " guestfs_set_direct (guestfs_h *g,\n"
13588 "                     int direct);\n"
13589 "\n"
13590 msgstr ""
13591
13592 # type: textblock
13593 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13594 msgid ""
13595 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13596 "passed directly through to the appliance once it is launched."
13597 msgstr ""
13598
13599 # type: textblock
13600 #: ../src/guestfs-actions.pod:5420
13601 msgid ""
13602 "One consequence of this is that log messages aren't caught by the library "
13603 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13604 "stdout."
13605 msgstr ""
13606
13607 # type: textblock
13608 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13609 msgid "You probably don't want to use this unless you know what you are doing."
13610 msgstr ""
13611
13612 # type: textblock
13613 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13614 msgid "The default is disabled."
13615 msgstr ""
13616
13617 # type: =head2
13618 #: ../src/guestfs-actions.pod:5433
13619 msgid "guestfs_set_e2label"
13620 msgstr ""
13621
13622 # type: verbatim
13623 #: ../src/guestfs-actions.pod:5435
13624 #, no-wrap
13625 msgid ""
13626 " int\n"
13627 " guestfs_set_e2label (guestfs_h *g,\n"
13628 "                      const char *device,\n"
13629 "                      const char *label);\n"
13630 "\n"
13631 msgstr ""
13632
13633 # type: textblock
13634 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13635 msgid ""
13636 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13637 "C<label>.  Filesystem labels are limited to 16 characters."
13638 msgstr ""
13639
13640 # type: textblock
13641 #: ../src/guestfs-actions.pod:5444
13642 msgid ""
13643 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13644 "the existing label on a filesystem."
13645 msgstr ""
13646
13647 # type: =head2
13648 #: ../src/guestfs-actions.pod:5451
13649 msgid "guestfs_set_e2uuid"
13650 msgstr ""
13651
13652 # type: verbatim
13653 #: ../src/guestfs-actions.pod:5453
13654 #, no-wrap
13655 msgid ""
13656 " int\n"
13657 " guestfs_set_e2uuid (guestfs_h *g,\n"
13658 "                     const char *device,\n"
13659 "                     const char *uuid);\n"
13660 "\n"
13661 msgstr ""
13662
13663 # type: textblock
13664 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13665 msgid ""
13666 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13667 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13668 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13669 msgstr ""
13670
13671 # type: textblock
13672 #: ../src/guestfs-actions.pod:5463
13673 msgid ""
13674 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13675 "the existing UUID of a filesystem."
13676 msgstr ""
13677
13678 # type: =head2
13679 #: ../src/guestfs-actions.pod:5470
13680 msgid "guestfs_set_memsize"
13681 msgstr ""
13682
13683 # type: verbatim
13684 #: ../src/guestfs-actions.pod:5472
13685 #, no-wrap
13686 msgid ""
13687 " int\n"
13688 " guestfs_set_memsize (guestfs_h *g,\n"
13689 "                      int memsize);\n"
13690 "\n"
13691 msgstr ""
13692
13693 # type: textblock
13694 #: ../src/guestfs-actions.pod:5476
13695 msgid ""
13696 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13697 "This only has any effect if called before C<guestfs_launch>."
13698 msgstr ""
13699
13700 # type: textblock
13701 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13702 msgid ""
13703 "You can also change this by setting the environment variable "
13704 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13705 msgstr ""
13706
13707 # type: =head2
13708 #: ../src/guestfs-actions.pod:5491
13709 msgid "guestfs_set_network"
13710 msgstr ""
13711
13712 # type: verbatim
13713 #: ../src/guestfs-actions.pod:5493
13714 #, no-wrap
13715 msgid ""
13716 " int\n"
13717 " guestfs_set_network (guestfs_h *g,\n"
13718 "                      int network);\n"
13719 "\n"
13720 msgstr ""
13721
13722 # type: textblock
13723 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13724 msgid ""
13725 "If C<network> is true, then the network is enabled in the libguestfs "
13726 "appliance.  The default is false."
13727 msgstr ""
13728
13729 # type: textblock
13730 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13731 msgid ""
13732 "This affects whether commands are able to access the network (see L<guestfs"
13733 "(3)/RUNNING COMMANDS>)."
13734 msgstr ""
13735
13736 # type: textblock
13737 #: ../src/guestfs-actions.pod:5503
13738 msgid ""
13739 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13740 "effect."
13741 msgstr ""
13742
13743 # type: =head2
13744 #: ../src/guestfs-actions.pod:5510
13745 msgid "guestfs_set_path"
13746 msgstr ""
13747
13748 # type: verbatim
13749 #: ../src/guestfs-actions.pod:5512
13750 #, no-wrap
13751 msgid ""
13752 " int\n"
13753 " guestfs_set_path (guestfs_h *g,\n"
13754 "                   const char *searchpath);\n"
13755 "\n"
13756 msgstr ""
13757
13758 # type: textblock
13759 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13760 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13761 msgstr ""
13762
13763 # type: textblock
13764 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13765 msgid ""
13766 "The default is C<$libdir/guestfs> unless overridden by setting "
13767 "C<LIBGUESTFS_PATH> environment variable."
13768 msgstr ""
13769
13770 # type: textblock
13771 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13772 msgid "Setting C<path> to C<NULL> restores the default path."
13773 msgstr ""
13774
13775 # type: =head2
13776 #: ../src/guestfs-actions.pod:5527
13777 msgid "guestfs_set_qemu"
13778 msgstr ""
13779
13780 # type: verbatim
13781 #: ../src/guestfs-actions.pod:5529
13782 #, no-wrap
13783 msgid ""
13784 " int\n"
13785 " guestfs_set_qemu (guestfs_h *g,\n"
13786 "                   const char *qemu);\n"
13787 "\n"
13788 msgstr ""
13789
13790 # type: textblock
13791 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13792 msgid "Set the qemu binary that we will use."
13793 msgstr ""
13794
13795 # type: textblock
13796 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13797 msgid ""
13798 "The default is chosen when the library was compiled by the configure script."
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13803 msgid ""
13804 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13805 "variable."
13806 msgstr ""
13807
13808 # type: textblock
13809 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13810 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13811 msgstr ""
13812
13813 # type: textblock
13814 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13815 msgid ""
13816 "Note that you should call this function as early as possible after creating "
13817 "the handle.  This is because some pre-launch operations depend on testing "
13818 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13819 "don't retest features, and so you might see inconsistent results.  Using the "
13820 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13821 "the qemu binary at the same time as the handle is created."
13822 msgstr ""
13823
13824 # type: =head2
13825 #: ../src/guestfs-actions.pod:5555
13826 msgid "guestfs_set_recovery_proc"
13827 msgstr ""
13828
13829 # type: verbatim
13830 #: ../src/guestfs-actions.pod:5557
13831 #, no-wrap
13832 msgid ""
13833 " int\n"
13834 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13835 "                            int recoveryproc);\n"
13836 "\n"
13837 msgstr ""
13838
13839 # type: textblock
13840 #: ../src/guestfs-actions.pod:5561
13841 msgid ""
13842 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13843 "not create a recovery process.  The purpose of the recovery process is to "
13844 "stop runaway qemu processes in the case where the main program aborts "
13845 "abruptly."
13846 msgstr ""
13847
13848 # type: textblock
13849 #: ../src/guestfs-actions.pod:5566
13850 msgid ""
13851 "This only has any effect if called before C<guestfs_launch>, and the default "
13852 "is true."
13853 msgstr ""
13854
13855 # type: textblock
13856 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13857 msgid ""
13858 "About the only time when you would want to disable this is if the main "
13859 "process will fork itself into the background (\"daemonize\" itself).  In "
13860 "this case the recovery process thinks that the main program has disappeared "
13861 "and so kills qemu, which is not very helpful."
13862 msgstr ""
13863
13864 # type: =head2
13865 #: ../src/guestfs-actions.pod:5579
13866 msgid "guestfs_set_selinux"
13867 msgstr ""
13868
13869 # type: verbatim
13870 #: ../src/guestfs-actions.pod:5581
13871 #, no-wrap
13872 msgid ""
13873 " int\n"
13874 " guestfs_set_selinux (guestfs_h *g,\n"
13875 "                      int selinux);\n"
13876 "\n"
13877 msgstr ""
13878
13879 # type: textblock
13880 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13881 msgid ""
13882 "This sets the selinux flag that is passed to the appliance at boot time.  "
13883 "The default is C<selinux=0> (disabled)."
13884 msgstr ""
13885
13886 # type: textblock
13887 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13888 msgid ""
13889 "Note that if SELinux is enabled, it is always in Permissive mode "
13890 "(C<enforcing=0>)."
13891 msgstr ""
13892
13893 # type: =head2
13894 #: ../src/guestfs-actions.pod:5598
13895 msgid "guestfs_set_trace"
13896 msgstr ""
13897
13898 # type: verbatim
13899 #: ../src/guestfs-actions.pod:5600
13900 #, no-wrap
13901 msgid ""
13902 " int\n"
13903 " guestfs_set_trace (guestfs_h *g,\n"
13904 "                    int trace);\n"
13905 "\n"
13906 msgstr ""
13907
13908 # type: textblock
13909 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13910 msgid ""
13911 "If the command trace flag is set to 1, then commands are printed on stderr "
13912 "before they are executed in a format which is very similar to the one used "
13913 "by guestfish.  In other words, you can run a program with this enabled, and "
13914 "you will get out a script which you can feed to guestfish to perform the "
13915 "same set of actions."
13916 msgstr ""
13917
13918 # type: textblock
13919 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13920 msgid ""
13921 "If you want to trace C API calls into libguestfs (and other libraries) then "
13922 "possibly a better way is to use the external ltrace(1) command."
13923 msgstr ""
13924
13925 # type: textblock
13926 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13927 msgid ""
13928 "Command traces are disabled unless the environment variable "
13929 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13930 msgstr ""
13931
13932 # type: =head2
13933 #: ../src/guestfs-actions.pod:5622
13934 msgid "guestfs_set_verbose"
13935 msgstr ""
13936
13937 # type: verbatim
13938 #: ../src/guestfs-actions.pod:5624
13939 #, no-wrap
13940 msgid ""
13941 " int\n"
13942 " guestfs_set_verbose (guestfs_h *g,\n"
13943 "                      int verbose);\n"
13944 "\n"
13945 msgstr ""
13946
13947 # type: textblock
13948 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13949 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13950 msgstr ""
13951
13952 # type: textblock
13953 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13954 msgid ""
13955 "Verbose messages are disabled unless the environment variable "
13956 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13957 msgstr ""
13958
13959 # type: =head2
13960 #: ../src/guestfs-actions.pod:5637
13961 msgid "guestfs_setcon"
13962 msgstr ""
13963
13964 # type: verbatim
13965 #: ../src/guestfs-actions.pod:5639
13966 #, no-wrap
13967 msgid ""
13968 " int\n"
13969 " guestfs_setcon (guestfs_h *g,\n"
13970 "                 const char *context);\n"
13971 "\n"
13972 msgstr ""
13973
13974 # type: textblock
13975 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13976 msgid ""
13977 "This sets the SELinux security context of the daemon to the string "
13978 "C<context>."
13979 msgstr ""
13980
13981 # type: textblock
13982 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13983 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13984 msgstr ""
13985
13986 # type: =head2
13987 #: ../src/guestfs-actions.pod:5652
13988 msgid "guestfs_setxattr"
13989 msgstr ""
13990
13991 # type: verbatim
13992 #: ../src/guestfs-actions.pod:5654
13993 #, no-wrap
13994 msgid ""
13995 " int\n"
13996 " guestfs_setxattr (guestfs_h *g,\n"
13997 "                   const char *xattr,\n"
13998 "                   const char *val,\n"
13999 "                   int vallen,\n"
14000 "                   const char *path);\n"
14001 "\n"
14002 msgstr ""
14003
14004 # type: textblock
14005 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
14006 msgid ""
14007 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14008 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14009 msgstr ""
14010
14011 # type: textblock
14012 #: ../src/guestfs-actions.pod:5665
14013 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14014 msgstr ""
14015
14016 # type: =head2
14017 #: ../src/guestfs-actions.pod:5671
14018 msgid "guestfs_sfdisk"
14019 msgstr ""
14020
14021 # type: verbatim
14022 #: ../src/guestfs-actions.pod:5673
14023 #, no-wrap
14024 msgid ""
14025 " int\n"
14026 " guestfs_sfdisk (guestfs_h *g,\n"
14027 "                 const char *device,\n"
14028 "                 int cyls,\n"
14029 "                 int heads,\n"
14030 "                 int sectors,\n"
14031 "                 char *const *lines);\n"
14032 "\n"
14033 msgstr ""
14034
14035 # type: textblock
14036 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
14037 msgid ""
14038 "This is a direct interface to the L<sfdisk(8)> program for creating "
14039 "partitions on block devices."
14040 msgstr ""
14041
14042 # type: textblock
14043 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
14044 msgid "C<device> should be a block device, for example C</dev/sda>."
14045 msgstr ""
14046
14047 # type: textblock
14048 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
14049 msgid ""
14050 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14051 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14052 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14053 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14054 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14055 "the kernel) cannot work out the right geometry and you will need to tell it."
14056 msgstr ""
14057
14058 # type: textblock
14059 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
14060 msgid ""
14061 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14062 "refer to the L<sfdisk(8)> manpage."
14063 msgstr ""
14064
14065 # type: textblock
14066 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
14067 msgid ""
14068 "To create a single partition occupying the whole disk, you would pass "
14069 "C<lines> as a single element list, when the single element being the string "
14070 "C<,> (comma)."
14071 msgstr ""
14072
14073 # type: textblock
14074 #: ../src/guestfs-actions.pod:5701
14075 msgid ""
14076 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14077 msgstr ""
14078
14079 # type: =head2
14080 #: ../src/guestfs-actions.pod:5711
14081 msgid "guestfs_sfdiskM"
14082 msgstr ""
14083
14084 # type: verbatim
14085 #: ../src/guestfs-actions.pod:5713
14086 #, no-wrap
14087 msgid ""
14088 " int\n"
14089 " guestfs_sfdiskM (guestfs_h *g,\n"
14090 "                  const char *device,\n"
14091 "                  char *const *lines);\n"
14092 "\n"
14093 msgstr ""
14094
14095 # type: textblock
14096 #: ../src/guestfs-actions.pod:5718
14097 msgid ""
14098 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14099 "partition sizes are specified in megabytes only (rounded to the nearest "
14100 "cylinder) and you don't need to specify the cyls, heads and sectors "
14101 "parameters which were rarely if ever used anyway."
14102 msgstr ""
14103
14104 # type: textblock
14105 #: ../src/guestfs-actions.pod:5724
14106 msgid ""
14107 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14108 "C<guestfs_part_disk>"
14109 msgstr ""
14110
14111 # type: =head2
14112 #: ../src/guestfs-actions.pod:5734
14113 msgid "guestfs_sfdisk_N"
14114 msgstr ""
14115
14116 # type: verbatim
14117 #: ../src/guestfs-actions.pod:5736
14118 #, no-wrap
14119 msgid ""
14120 " int\n"
14121 " guestfs_sfdisk_N (guestfs_h *g,\n"
14122 "                   const char *device,\n"
14123 "                   int partnum,\n"
14124 "                   int cyls,\n"
14125 "                   int heads,\n"
14126 "                   int sectors,\n"
14127 "                   const char *line);\n"
14128 "\n"
14129 msgstr ""
14130
14131 # type: textblock
14132 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
14133 msgid ""
14134 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14135 "(note: C<n> counts from 1)."
14136 msgstr ""
14137
14138 # type: textblock
14139 #: ../src/guestfs-actions.pod:5748
14140 msgid ""
14141 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14142 "for the cyls/heads/sectors parameters."
14143 msgstr ""
14144
14145 # type: textblock
14146 #: ../src/guestfs-actions.pod:5751
14147 msgid "See also: C<guestfs_part_add>"
14148 msgstr ""
14149
14150 # type: =head2
14151 #: ../src/guestfs-actions.pod:5760
14152 msgid "guestfs_sfdisk_disk_geometry"
14153 msgstr ""
14154
14155 # type: verbatim
14156 #: ../src/guestfs-actions.pod:5762
14157 #, no-wrap
14158 msgid ""
14159 " char *\n"
14160 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14161 "                               const char *device);\n"
14162 "\n"
14163 msgstr ""
14164
14165 # type: textblock
14166 #: ../src/guestfs-actions.pod:5766
14167 msgid ""
14168 "This displays the disk geometry of C<device> read from the partition table.  "
14169 "Especially in the case where the underlying block device has been resized, "
14170 "this can be different from the kernel's idea of the geometry (see "
14171 "C<guestfs_sfdisk_kernel_geometry>)."
14172 msgstr ""
14173
14174 # type: textblock
14175 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787
14176 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14177 msgid "The result is in human-readable format, and not designed to be parsed."
14178 msgstr ""
14179
14180 # type: =head2
14181 #: ../src/guestfs-actions.pod:5779
14182 msgid "guestfs_sfdisk_kernel_geometry"
14183 msgstr ""
14184
14185 # type: verbatim
14186 #: ../src/guestfs-actions.pod:5781
14187 #, no-wrap
14188 msgid ""
14189 " char *\n"
14190 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14191 "                                 const char *device);\n"
14192 "\n"
14193 msgstr ""
14194
14195 # type: textblock
14196 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
14197 msgid "This displays the kernel's idea of the geometry of C<device>."
14198 msgstr ""
14199
14200 # type: =head2
14201 #: ../src/guestfs-actions.pod:5795
14202 msgid "guestfs_sfdisk_l"
14203 msgstr ""
14204
14205 # type: verbatim
14206 #: ../src/guestfs-actions.pod:5797
14207 #, no-wrap
14208 msgid ""
14209 " char *\n"
14210 " guestfs_sfdisk_l (guestfs_h *g,\n"
14211 "                   const char *device);\n"
14212 "\n"
14213 msgstr ""
14214
14215 # type: textblock
14216 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
14217 msgid ""
14218 "This displays the partition table on C<device>, in the human-readable output "
14219 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14220 msgstr ""
14221
14222 # type: textblock
14223 #: ../src/guestfs-actions.pod:5805
14224 msgid "See also: C<guestfs_part_list>"
14225 msgstr ""
14226
14227 # type: =head2
14228 #: ../src/guestfs-actions.pod:5812
14229 msgid "guestfs_sh"
14230 msgstr ""
14231
14232 # type: verbatim
14233 #: ../src/guestfs-actions.pod:5814
14234 #, no-wrap
14235 msgid ""
14236 " char *\n"
14237 " guestfs_sh (guestfs_h *g,\n"
14238 "             const char *command);\n"
14239 "\n"
14240 msgstr ""
14241
14242 # type: textblock
14243 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
14244 msgid ""
14245 "This call runs a command from the guest filesystem via the guest's C</bin/"
14246 "sh>."
14247 msgstr ""
14248
14249 # type: textblock
14250 #: ../src/guestfs-actions.pod:5821
14251 msgid "This is like C<guestfs_command>, but passes the command to:"
14252 msgstr ""
14253
14254 # type: verbatim
14255 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
14256 #, no-wrap
14257 msgid ""
14258 " /bin/sh -c \"command\"\n"
14259 "\n"
14260 msgstr ""
14261
14262 # type: textblock
14263 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
14264 msgid ""
14265 "Depending on the guest's shell, this usually results in wildcards being "
14266 "expanded, shell expressions being interpolated and so on."
14267 msgstr ""
14268
14269 # type: textblock
14270 #: ../src/guestfs-actions.pod:5829
14271 msgid "All the provisos about C<guestfs_command> apply to this call."
14272 msgstr ""
14273
14274 # type: =head2
14275 #: ../src/guestfs-actions.pod:5836
14276 msgid "guestfs_sh_lines"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #: ../src/guestfs-actions.pod:5838
14281 #, no-wrap
14282 msgid ""
14283 " char **\n"
14284 " guestfs_sh_lines (guestfs_h *g,\n"
14285 "                   const char *command);\n"
14286 "\n"
14287 msgstr ""
14288
14289 # type: textblock
14290 #: ../src/guestfs-actions.pod:5842
14291 msgid ""
14292 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14293 "lines."
14294 msgstr ""
14295
14296 # type: textblock
14297 #: ../src/guestfs-actions.pod:5845
14298 msgid "See also: C<guestfs_command_lines>"
14299 msgstr ""
14300
14301 # type: =head2
14302 #: ../src/guestfs-actions.pod:5853
14303 msgid "guestfs_sleep"
14304 msgstr ""
14305
14306 # type: verbatim
14307 #: ../src/guestfs-actions.pod:5855
14308 #, no-wrap
14309 msgid ""
14310 " int\n"
14311 " guestfs_sleep (guestfs_h *g,\n"
14312 "                int secs);\n"
14313 "\n"
14314 msgstr ""
14315
14316 # type: textblock
14317 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
14318 msgid "Sleep for C<secs> seconds."
14319 msgstr ""
14320
14321 # type: textblock
14322 #: ../src/guestfs-actions.pod:5863
14323 msgid "(Added in 1.0.41)"
14324 msgstr ""
14325
14326 # type: =head2
14327 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
14328 msgid "guestfs_stat"
14329 msgstr ""
14330
14331 # type: verbatim
14332 #: ../src/guestfs-actions.pod:5867
14333 #, no-wrap
14334 msgid ""
14335 " struct guestfs_stat *\n"
14336 " guestfs_stat (guestfs_h *g,\n"
14337 "               const char *path);\n"
14338 "\n"
14339 msgstr ""
14340
14341 # type: textblock
14342 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
14343 msgid "This is the same as the C<stat(2)> system call."
14344 msgstr ""
14345
14346 # type: =head2
14347 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
14348 msgid "guestfs_statvfs"
14349 msgstr ""
14350
14351 # type: verbatim
14352 #: ../src/guestfs-actions.pod:5883
14353 #, no-wrap
14354 msgid ""
14355 " struct guestfs_statvfs *\n"
14356 " guestfs_statvfs (guestfs_h *g,\n"
14357 "                  const char *path);\n"
14358 "\n"
14359 msgstr ""
14360
14361 # type: textblock
14362 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
14363 msgid ""
14364 "Returns file system statistics for any mounted file system.  C<path> should "
14365 "be a file or directory in the mounted file system (typically it is the mount "
14366 "point itself, but it doesn't need to be)."
14367 msgstr ""
14368
14369 # type: textblock
14370 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
14371 msgid "This is the same as the C<statvfs(2)> system call."
14372 msgstr ""
14373
14374 # type: textblock
14375 #: ../src/guestfs-actions.pod:5893
14376 msgid ""
14377 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14378 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14379 msgstr ""
14380
14381 # type: =head2
14382 #: ../src/guestfs-actions.pod:5899
14383 msgid "guestfs_strings"
14384 msgstr ""
14385
14386 # type: verbatim
14387 #: ../src/guestfs-actions.pod:5901
14388 #, no-wrap
14389 msgid ""
14390 " char **\n"
14391 " guestfs_strings (guestfs_h *g,\n"
14392 "                  const char *path);\n"
14393 "\n"
14394 msgstr ""
14395
14396 # type: textblock
14397 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
14398 msgid ""
14399 "This runs the L<strings(1)> command on a file and returns the list of "
14400 "printable strings found."
14401 msgstr ""
14402
14403 # type: =head2
14404 #: ../src/guestfs-actions.pod:5917
14405 msgid "guestfs_strings_e"
14406 msgstr ""
14407
14408 # type: verbatim
14409 #: ../src/guestfs-actions.pod:5919
14410 #, no-wrap
14411 msgid ""
14412 " char **\n"
14413 " guestfs_strings_e (guestfs_h *g,\n"
14414 "                    const char *encoding,\n"
14415 "                    const char *path);\n"
14416 "\n"
14417 msgstr ""
14418
14419 # type: textblock
14420 #: ../src/guestfs-actions.pod:5924
14421 msgid ""
14422 "This is like the C<guestfs_strings> command, but allows you to specify the "
14423 "encoding of strings that are looked for in the source file C<path>."
14424 msgstr ""
14425
14426 # type: textblock
14427 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
14428 msgid "Allowed encodings are:"
14429 msgstr ""
14430
14431 # type: =item
14432 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
14433 msgid "s"
14434 msgstr ""
14435
14436 # type: textblock
14437 #: ../src/guestfs-actions.pod:5934
14438 msgid ""
14439 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14440 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14441 msgstr ""
14442
14443 # type: =item
14444 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
14445 msgid "S"
14446 msgstr ""
14447
14448 # type: textblock
14449 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
14450 msgid "Single 8-bit-byte characters."
14451 msgstr ""
14452
14453 # type: =item
14454 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
14455 msgid "b"
14456 msgstr ""
14457
14458 # type: textblock
14459 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
14460 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14461 msgstr ""
14462
14463 # type: =item
14464 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
14465 msgid "l (lower case letter L)"
14466 msgstr ""
14467
14468 # type: textblock
14469 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
14470 msgid ""
14471 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14472 "examining binaries in Windows guests."
14473 msgstr ""
14474
14475 # type: =item
14476 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14477 msgid "B"
14478 msgstr ""
14479
14480 # type: textblock
14481 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14482 msgid "32-bit big endian such as UCS-4BE."
14483 msgstr ""
14484
14485 # type: =item
14486 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14487 msgid "L"
14488 msgstr ""
14489
14490 # type: textblock
14491 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14492 msgid "32-bit little endian such as UCS-4LE."
14493 msgstr ""
14494
14495 # type: textblock
14496 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14497 msgid "The returned strings are transcoded to UTF-8."
14498 msgstr ""
14499
14500 # type: =head2
14501 #: ../src/guestfs-actions.pod:5972
14502 msgid "guestfs_swapoff_device"
14503 msgstr ""
14504
14505 # type: verbatim
14506 #: ../src/guestfs-actions.pod:5974
14507 #, no-wrap
14508 msgid ""
14509 " int\n"
14510 " guestfs_swapoff_device (guestfs_h *g,\n"
14511 "                         const char *device);\n"
14512 "\n"
14513 msgstr ""
14514
14515 # type: textblock
14516 #: ../src/guestfs-actions.pod:5978
14517 msgid ""
14518 "This command disables the libguestfs appliance swap device or partition "
14519 "named C<device>.  See C<guestfs_swapon_device>."
14520 msgstr ""
14521
14522 # type: =head2
14523 #: ../src/guestfs-actions.pod:5986
14524 msgid "guestfs_swapoff_file"
14525 msgstr ""
14526
14527 # type: verbatim
14528 #: ../src/guestfs-actions.pod:5988
14529 #, no-wrap
14530 msgid ""
14531 " int\n"
14532 " guestfs_swapoff_file (guestfs_h *g,\n"
14533 "                       const char *file);\n"
14534 "\n"
14535 msgstr ""
14536
14537 # type: textblock
14538 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14539 msgid "This command disables the libguestfs appliance swap on file."
14540 msgstr ""
14541
14542 # type: =head2
14543 #: ../src/guestfs-actions.pod:5998
14544 msgid "guestfs_swapoff_label"
14545 msgstr ""
14546
14547 # type: verbatim
14548 #: ../src/guestfs-actions.pod:6000
14549 #, no-wrap
14550 msgid ""
14551 " int\n"
14552 " guestfs_swapoff_label (guestfs_h *g,\n"
14553 "                        const char *label);\n"
14554 "\n"
14555 msgstr ""
14556
14557 # type: textblock
14558 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14559 msgid ""
14560 "This command disables the libguestfs appliance swap on labeled swap "
14561 "partition."
14562 msgstr ""
14563
14564 # type: =head2
14565 #: ../src/guestfs-actions.pod:6011
14566 msgid "guestfs_swapoff_uuid"
14567 msgstr ""
14568
14569 # type: verbatim
14570 #: ../src/guestfs-actions.pod:6013
14571 #, no-wrap
14572 msgid ""
14573 " int\n"
14574 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14575 "                       const char *uuid);\n"
14576 "\n"
14577 msgstr ""
14578
14579 # type: textblock
14580 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14581 msgid ""
14582 "This command disables the libguestfs appliance swap partition with the given "
14583 "UUID."
14584 msgstr ""
14585
14586 # type: =head2
14587 #: ../src/guestfs-actions.pod:6024
14588 msgid "guestfs_swapon_device"
14589 msgstr ""
14590
14591 # type: verbatim
14592 #: ../src/guestfs-actions.pod:6026
14593 #, no-wrap
14594 msgid ""
14595 " int\n"
14596 " guestfs_swapon_device (guestfs_h *g,\n"
14597 "                        const char *device);\n"
14598 "\n"
14599 msgstr ""
14600
14601 # type: textblock
14602 #: ../src/guestfs-actions.pod:6030
14603 msgid ""
14604 "This command enables the libguestfs appliance to use the swap device or "
14605 "partition named C<device>.  The increased memory is made available for all "
14606 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14607 msgstr ""
14608
14609 # type: textblock
14610 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14611 msgid ""
14612 "Note that you should not swap to existing guest swap partitions unless you "
14613 "know what you are doing.  They may contain hibernation information, or other "
14614 "information that the guest doesn't want you to trash.  You also risk leaking "
14615 "information about the host to the guest this way.  Instead, attach a new "
14616 "host device to the guest and swap on that."
14617 msgstr ""
14618
14619 # type: =head2
14620 #: ../src/guestfs-actions.pod:6046
14621 msgid "guestfs_swapon_file"
14622 msgstr ""
14623
14624 # type: verbatim
14625 #: ../src/guestfs-actions.pod:6048
14626 #, no-wrap
14627 msgid ""
14628 " int\n"
14629 " guestfs_swapon_file (guestfs_h *g,\n"
14630 "                      const char *file);\n"
14631 "\n"
14632 msgstr ""
14633
14634 # type: textblock
14635 #: ../src/guestfs-actions.pod:6052
14636 msgid ""
14637 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14638 "notes."
14639 msgstr ""
14640
14641 # type: =head2
14642 #: ../src/guestfs-actions.pod:6059
14643 msgid "guestfs_swapon_label"
14644 msgstr ""
14645
14646 # type: verbatim
14647 #: ../src/guestfs-actions.pod:6061
14648 #, no-wrap
14649 msgid ""
14650 " int\n"
14651 " guestfs_swapon_label (guestfs_h *g,\n"
14652 "                       const char *label);\n"
14653 "\n"
14654 msgstr ""
14655
14656 # type: textblock
14657 #: ../src/guestfs-actions.pod:6065
14658 msgid ""
14659 "This command enables swap to a labeled swap partition.  See "
14660 "C<guestfs_swapon_device> for other notes."
14661 msgstr ""
14662
14663 # type: =head2
14664 #: ../src/guestfs-actions.pod:6072
14665 msgid "guestfs_swapon_uuid"
14666 msgstr ""
14667
14668 # type: verbatim
14669 #: ../src/guestfs-actions.pod:6074
14670 #, no-wrap
14671 msgid ""
14672 " int\n"
14673 " guestfs_swapon_uuid (guestfs_h *g,\n"
14674 "                      const char *uuid);\n"
14675 "\n"
14676 msgstr ""
14677
14678 # type: textblock
14679 #: ../src/guestfs-actions.pod:6078
14680 msgid ""
14681 "This command enables swap to a swap partition with the given UUID.  See "
14682 "C<guestfs_swapon_device> for other notes."
14683 msgstr ""
14684
14685 # type: =head2
14686 #: ../src/guestfs-actions.pod:6085
14687 msgid "guestfs_sync"
14688 msgstr ""
14689
14690 # type: verbatim
14691 #: ../src/guestfs-actions.pod:6087
14692 #, no-wrap
14693 msgid ""
14694 " int\n"
14695 " guestfs_sync (guestfs_h *g);\n"
14696 "\n"
14697 msgstr ""
14698
14699 # type: textblock
14700 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14701 msgid ""
14702 "This syncs the disk, so that any writes are flushed through to the "
14703 "underlying disk image."
14704 msgstr ""
14705
14706 # type: textblock
14707 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14708 msgid ""
14709 "You should always call this if you have modified a disk image, before "
14710 "closing the handle."
14711 msgstr ""
14712
14713 # type: =head2
14714 #: ../src/guestfs-actions.pod:6100
14715 msgid "guestfs_tail"
14716 msgstr ""
14717
14718 # type: verbatim
14719 #: ../src/guestfs-actions.pod:6102
14720 #, no-wrap
14721 msgid ""
14722 " char **\n"
14723 " guestfs_tail (guestfs_h *g,\n"
14724 "               const char *path);\n"
14725 "\n"
14726 msgstr ""
14727
14728 # type: textblock
14729 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14730 msgid ""
14731 "This command returns up to the last 10 lines of a file as a list of strings."
14732 msgstr ""
14733
14734 # type: =head2
14735 #: ../src/guestfs-actions.pod:6118
14736 msgid "guestfs_tail_n"
14737 msgstr ""
14738
14739 # type: verbatim
14740 #: ../src/guestfs-actions.pod:6120
14741 #, no-wrap
14742 msgid ""
14743 " char **\n"
14744 " guestfs_tail_n (guestfs_h *g,\n"
14745 "                 int nrlines,\n"
14746 "                 const char *path);\n"
14747 "\n"
14748 msgstr ""
14749
14750 # type: textblock
14751 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14752 msgid ""
14753 "If the parameter C<nrlines> is a positive number, this returns the last "
14754 "C<nrlines> lines of the file C<path>."
14755 msgstr ""
14756
14757 # type: textblock
14758 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14759 msgid ""
14760 "If the parameter C<nrlines> is a negative number, this returns lines from "
14761 "the file C<path>, starting with the C<-nrlines>th line."
14762 msgstr ""
14763
14764 # type: =head2
14765 #: ../src/guestfs-actions.pod:6142
14766 msgid "guestfs_tar_in"
14767 msgstr ""
14768
14769 # type: verbatim
14770 #: ../src/guestfs-actions.pod:6144
14771 #, no-wrap
14772 msgid ""
14773 " int\n"
14774 " guestfs_tar_in (guestfs_h *g,\n"
14775 "                 const char *tarfile,\n"
14776 "                 const char *directory);\n"
14777 "\n"
14778 msgstr ""
14779
14780 # type: textblock
14781 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14782 msgid ""
14783 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14784 "tar file) into C<directory>."
14785 msgstr ""
14786
14787 # type: textblock
14788 #: ../src/guestfs-actions.pod:6152
14789 msgid ""
14790 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14791 msgstr ""
14792
14793 # type: textblock
14794 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174
14795 #: ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14796 msgid "(Added in 1.0.3)"
14797 msgstr ""
14798
14799 # type: =head2
14800 #: ../src/guestfs-actions.pod:6159
14801 msgid "guestfs_tar_out"
14802 msgstr ""
14803
14804 # type: verbatim
14805 #: ../src/guestfs-actions.pod:6161
14806 #, no-wrap
14807 msgid ""
14808 " int\n"
14809 " guestfs_tar_out (guestfs_h *g,\n"
14810 "                  const char *directory,\n"
14811 "                  const char *tarfile);\n"
14812 "\n"
14813 msgstr ""
14814
14815 # type: textblock
14816 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14817 msgid ""
14818 "This command packs the contents of C<directory> and downloads it to local "
14819 "file C<tarfile>."
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../src/guestfs-actions.pod:6169
14824 msgid ""
14825 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14826 "C<guestfs_txz_out>."
14827 msgstr ""
14828
14829 # type: =head2
14830 #: ../src/guestfs-actions.pod:6176
14831 msgid "guestfs_tgz_in"
14832 msgstr ""
14833
14834 # type: verbatim
14835 #: ../src/guestfs-actions.pod:6178
14836 #, no-wrap
14837 msgid ""
14838 " int\n"
14839 " guestfs_tgz_in (guestfs_h *g,\n"
14840 "                 const char *tarball,\n"
14841 "                 const char *directory);\n"
14842 "\n"
14843 msgstr ""
14844
14845 # type: textblock
14846 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14847 msgid ""
14848 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14849 "tar file) into C<directory>."
14850 msgstr ""
14851
14852 # type: textblock
14853 #: ../src/guestfs-actions.pod:6186
14854 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14855 msgstr ""
14856
14857 # type: =head2
14858 #: ../src/guestfs-actions.pod:6192
14859 msgid "guestfs_tgz_out"
14860 msgstr ""
14861
14862 # type: verbatim
14863 #: ../src/guestfs-actions.pod:6194
14864 #, no-wrap
14865 msgid ""
14866 " int\n"
14867 " guestfs_tgz_out (guestfs_h *g,\n"
14868 "                  const char *directory,\n"
14869 "                  const char *tarball);\n"
14870 "\n"
14871 msgstr ""
14872
14873 # type: textblock
14874 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14875 msgid ""
14876 "This command packs the contents of C<directory> and downloads it to local "
14877 "file C<tarball>."
14878 msgstr ""
14879
14880 # type: textblock
14881 #: ../src/guestfs-actions.pod:6202
14882 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14883 msgstr ""
14884
14885 # type: =head2
14886 #: ../src/guestfs-actions.pod:6208
14887 msgid "guestfs_touch"
14888 msgstr ""
14889
14890 # type: verbatim
14891 #: ../src/guestfs-actions.pod:6210
14892 #, no-wrap
14893 msgid ""
14894 " int\n"
14895 " guestfs_touch (guestfs_h *g,\n"
14896 "                const char *path);\n"
14897 "\n"
14898 msgstr ""
14899
14900 # type: textblock
14901 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14902 msgid ""
14903 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14904 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14905 "length file."
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14910 msgid ""
14911 "This command only works on regular files, and will fail on other file types "
14912 "such as directories, symbolic links, block special etc."
14913 msgstr ""
14914
14915 # type: =head2
14916 #: ../src/guestfs-actions.pod:6225
14917 msgid "guestfs_truncate"
14918 msgstr ""
14919
14920 # type: verbatim
14921 #: ../src/guestfs-actions.pod:6227
14922 #, no-wrap
14923 msgid ""
14924 " int\n"
14925 " guestfs_truncate (guestfs_h *g,\n"
14926 "                   const char *path);\n"
14927 "\n"
14928 msgstr ""
14929
14930 # type: textblock
14931 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14932 msgid ""
14933 "This command truncates C<path> to a zero-length file.  The file must exist "
14934 "already."
14935 msgstr ""
14936
14937 # type: =head2
14938 #: ../src/guestfs-actions.pod:6238
14939 msgid "guestfs_truncate_size"
14940 msgstr ""
14941
14942 # type: verbatim
14943 #: ../src/guestfs-actions.pod:6240
14944 #, no-wrap
14945 msgid ""
14946 " int\n"
14947 " guestfs_truncate_size (guestfs_h *g,\n"
14948 "                        const char *path,\n"
14949 "                        int64_t size);\n"
14950 "\n"
14951 msgstr ""
14952
14953 # type: textblock
14954 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14955 msgid ""
14956 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14957 "already."
14958 msgstr ""
14959
14960 # type: textblock
14961 #: ../src/guestfs-actions.pod:6248
14962 msgid ""
14963 "If the current file size is less than C<size> then the file is extended to "
14964 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14965 "blocks are not allocated for the file until you write to it).  To create a "
14966 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14967 msgstr ""
14968
14969 # type: =head2
14970 #: ../src/guestfs-actions.pod:6258
14971 msgid "guestfs_tune2fs_l"
14972 msgstr ""
14973
14974 # type: verbatim
14975 #: ../src/guestfs-actions.pod:6260
14976 #, no-wrap
14977 msgid ""
14978 " char **\n"
14979 " guestfs_tune2fs_l (guestfs_h *g,\n"
14980 "                    const char *device);\n"
14981 "\n"
14982 msgstr ""
14983
14984 # type: textblock
14985 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
14986 msgid ""
14987 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14988 "C<device>."
14989 msgstr ""
14990
14991 # type: textblock
14992 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
14993 msgid ""
14994 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14995 "for more details.  The list of fields returned isn't clearly defined, and "
14996 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14997 "and the filesystem itself."
14998 msgstr ""
14999
15000 # type: =head2
15001 #: ../src/guestfs-actions.pod:6280
15002 msgid "guestfs_txz_in"
15003 msgstr ""
15004
15005 # type: verbatim
15006 #: ../src/guestfs-actions.pod:6282
15007 #, no-wrap
15008 msgid ""
15009 " int\n"
15010 " guestfs_txz_in (guestfs_h *g,\n"
15011 "                 const char *tarball,\n"
15012 "                 const char *directory);\n"
15013 "\n"
15014 msgstr ""
15015
15016 # type: textblock
15017 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
15018 msgid ""
15019 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15020 "tar file) into C<directory>."
15021 msgstr ""
15022
15023 # type: =head2
15024 #: ../src/guestfs-actions.pod:6294
15025 msgid "guestfs_txz_out"
15026 msgstr ""
15027
15028 # type: verbatim
15029 #: ../src/guestfs-actions.pod:6296
15030 #, no-wrap
15031 msgid ""
15032 " int\n"
15033 " guestfs_txz_out (guestfs_h *g,\n"
15034 "                  const char *directory,\n"
15035 "                  const char *tarball);\n"
15036 "\n"
15037 msgstr ""
15038
15039 # type: textblock
15040 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
15041 msgid ""
15042 "This command packs the contents of C<directory> and downloads it to local "
15043 "file C<tarball> (as an xz compressed tar archive)."
15044 msgstr ""
15045
15046 # type: =head2
15047 #: ../src/guestfs-actions.pod:6308
15048 msgid "guestfs_umask"
15049 msgstr ""
15050
15051 # type: verbatim
15052 #: ../src/guestfs-actions.pod:6310
15053 #, no-wrap
15054 msgid ""
15055 " int\n"
15056 " guestfs_umask (guestfs_h *g,\n"
15057 "                int mask);\n"
15058 "\n"
15059 msgstr ""
15060
15061 # type: textblock
15062 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
15063 msgid ""
15064 "This function sets the mask used for creating new files and device nodes to "
15065 "C<mask & 0777>."
15066 msgstr ""
15067
15068 # type: textblock
15069 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
15070 msgid ""
15071 "Typical umask values would be C<022> which creates new files with "
15072 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15073 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15074 msgstr ""
15075
15076 # type: textblock
15077 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
15078 msgid ""
15079 "The default umask is C<022>.  This is important because it means that "
15080 "directories and device nodes will be created with C<0644> or C<0755> mode "
15081 "even if you specify C<0777>."
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../src/guestfs-actions.pod:6326
15086 msgid ""
15087 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15088 "C<guestfs_mkdir>."
15089 msgstr ""
15090
15091 # type: textblock
15092 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
15093 msgid "This call returns the previous umask."
15094 msgstr ""
15095
15096 # type: =head2
15097 #: ../src/guestfs-actions.pod:6335
15098 msgid "guestfs_umount"
15099 msgstr ""
15100
15101 # type: verbatim
15102 #: ../src/guestfs-actions.pod:6337
15103 #, no-wrap
15104 msgid ""
15105 " int\n"
15106 " guestfs_umount (guestfs_h *g,\n"
15107 "                 const char *pathordevice);\n"
15108 "\n"
15109 msgstr ""
15110
15111 # type: textblock
15112 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
15113 msgid ""
15114 "This unmounts the given filesystem.  The filesystem may be specified either "
15115 "by its mountpoint (path) or the device which contains the filesystem."
15116 msgstr ""
15117
15118 # type: =head2
15119 #: ../src/guestfs-actions.pod:6349
15120 msgid "guestfs_umount_all"
15121 msgstr ""
15122
15123 # type: verbatim
15124 #: ../src/guestfs-actions.pod:6351
15125 #, no-wrap
15126 msgid ""
15127 " int\n"
15128 " guestfs_umount_all (guestfs_h *g);\n"
15129 "\n"
15130 msgstr ""
15131
15132 # type: textblock
15133 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
15134 msgid "This unmounts all mounted filesystems."
15135 msgstr ""
15136
15137 # type: textblock
15138 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
15139 msgid "Some internal mounts are not unmounted by this call."
15140 msgstr ""
15141
15142 # type: =head2
15143 #: ../src/guestfs-actions.pod:6362
15144 msgid "guestfs_upload"
15145 msgstr ""
15146
15147 # type: verbatim
15148 #: ../src/guestfs-actions.pod:6364
15149 #, no-wrap
15150 msgid ""
15151 " int\n"
15152 " guestfs_upload (guestfs_h *g,\n"
15153 "                 const char *filename,\n"
15154 "                 const char *remotefilename);\n"
15155 "\n"
15156 msgstr ""
15157
15158 # type: textblock
15159 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388
15160 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15161 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15162 msgstr ""
15163
15164 # type: textblock
15165 #: ../src/guestfs-actions.pod:6374
15166 msgid "See also C<guestfs_download>."
15167 msgstr ""
15168
15169 # type: =head2
15170 #: ../src/guestfs-actions.pod:6380
15171 msgid "guestfs_upload_offset"
15172 msgstr ""
15173
15174 # type: verbatim
15175 #: ../src/guestfs-actions.pod:6382
15176 #, no-wrap
15177 msgid ""
15178 " int\n"
15179 " guestfs_upload_offset (guestfs_h *g,\n"
15180 "                        const char *filename,\n"
15181 "                        const char *remotefilename,\n"
15182 "                        int64_t offset);\n"
15183 "\n"
15184 msgstr ""
15185
15186 # type: textblock
15187 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
15188 msgid ""
15189 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15190 "The intention is to overwrite parts of existing files or devices, although "
15191 "if a non-existant file is specified then it is created with a \"hole\" "
15192 "before C<offset>.  The size of the data written is implicit in the size of "
15193 "the source C<filename>."
15194 msgstr ""
15195
15196 # type: textblock
15197 #: ../src/guestfs-actions.pod:6398
15198 msgid ""
15199 "Note that there is no limit on the amount of data that can be uploaded with "
15200 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15201 "full amount unless an error occurs."
15202 msgstr ""
15203
15204 # type: textblock
15205 #: ../src/guestfs-actions.pod:6403
15206 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15207 msgstr ""
15208
15209 # type: =head2
15210 #: ../src/guestfs-actions.pod:6409
15211 msgid "guestfs_utimens"
15212 msgstr ""
15213
15214 # type: verbatim
15215 #: ../src/guestfs-actions.pod:6411
15216 #, no-wrap
15217 msgid ""
15218 " int\n"
15219 " guestfs_utimens (guestfs_h *g,\n"
15220 "                  const char *path,\n"
15221 "                  int64_t atsecs,\n"
15222 "                  int64_t atnsecs,\n"
15223 "                  int64_t mtsecs,\n"
15224 "                  int64_t mtnsecs);\n"
15225 "\n"
15226 msgstr ""
15227
15228 # type: textblock
15229 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
15230 msgid "This command sets the timestamps of a file with nanosecond precision."
15231 msgstr ""
15232
15233 # type: textblock
15234 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
15235 msgid ""
15236 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15237 "from the epoch."
15238 msgstr ""
15239
15240 # type: textblock
15241 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
15242 msgid ""
15243 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15244 "nanoseconds from the epoch."
15245 msgstr ""
15246
15247 # type: textblock
15248 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
15249 msgid ""
15250 "If the C<*nsecs> field contains the special value C<-1> then the "
15251 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15252 "ignored in this case)."
15253 msgstr ""
15254
15255 # type: textblock
15256 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
15257 msgid ""
15258 "If the C<*nsecs> field contains the special value C<-2> then the "
15259 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15260 "in this case)."
15261 msgstr ""
15262
15263 # type: =head2
15264 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
15265 msgid "guestfs_version"
15266 msgstr ""
15267
15268 # type: verbatim
15269 #: ../src/guestfs-actions.pod:6442
15270 #, no-wrap
15271 msgid ""
15272 " struct guestfs_version *\n"
15273 " guestfs_version (guestfs_h *g);\n"
15274 "\n"
15275 msgstr ""
15276
15277 # type: textblock
15278 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
15279 msgid ""
15280 "Return the libguestfs version number that the program is linked against."
15281 msgstr ""
15282
15283 # type: textblock
15284 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
15285 msgid ""
15286 "Note that because of dynamic linking this is not necessarily the version of "
15287 "libguestfs that you compiled against.  You can compile the program, and then "
15288 "at runtime dynamically link against a completely different C<libguestfs.so> "
15289 "library."
15290 msgstr ""
15291
15292 # type: textblock
15293 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
15294 msgid ""
15295 "This call was added in version C<1.0.58>.  In previous versions of "
15296 "libguestfs there was no way to get the version number.  From C code you can "
15297 "use dynamic linker functions to find out if this symbol exists (if it "
15298 "doesn't, then it's an earlier version)."
15299 msgstr ""
15300
15301 # type: textblock
15302 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
15303 msgid ""
15304 "The call returns a structure with four elements.  The first three (C<major>, "
15305 "C<minor> and C<release>) are numbers and correspond to the usual version "
15306 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15307 "but may be used for distro-specific information."
15308 msgstr ""
15309
15310 # type: textblock
15311 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
15312 msgid ""
15313 "To construct the original version string: C<$major.$minor.$release$extra>"
15314 msgstr ""
15315
15316 # type: textblock
15317 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
15318 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15319 msgstr ""
15320
15321 # type: textblock
15322 #: ../src/guestfs-actions.pod:6470
15323 msgid ""
15324 "I<Note:> Don't use this call to test for availability of features.  In "
15325 "enterprise distributions we backport features from later versions into "
15326 "earlier versions, making this an unreliable way to test for features.  Use "
15327 "C<guestfs_available> instead."
15328 msgstr ""
15329
15330 # type: textblock
15331 #: ../src/guestfs-actions.pod:6476
15332 msgid ""
15333 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15334 "error.  I<The caller must call C<guestfs_free_version> after use>."
15335 msgstr ""
15336
15337 # type: textblock
15338 #: ../src/guestfs-actions.pod:6480
15339 msgid "(Added in 1.0.58)"
15340 msgstr ""
15341
15342 # type: =head2
15343 #: ../src/guestfs-actions.pod:6482
15344 msgid "guestfs_vfs_label"
15345 msgstr ""
15346
15347 # type: verbatim
15348 #: ../src/guestfs-actions.pod:6484
15349 #, no-wrap
15350 msgid ""
15351 " char *\n"
15352 " guestfs_vfs_label (guestfs_h *g,\n"
15353 "                    const char *device);\n"
15354 "\n"
15355 msgstr ""
15356
15357 # type: textblock
15358 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
15359 msgid "This returns the filesystem label of the filesystem on C<device>."
15360 msgstr ""
15361
15362 # type: textblock
15363 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
15364 msgid "If the filesystem is unlabeled, this returns the empty string."
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../src/guestfs-actions.pod:6493
15369 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15370 msgstr ""
15371
15372 # type: textblock
15373 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
15374 msgid "(Added in 1.3.18)"
15375 msgstr ""
15376
15377 # type: =head2
15378 #: ../src/guestfs-actions.pod:6500
15379 msgid "guestfs_vfs_type"
15380 msgstr ""
15381
15382 # type: verbatim
15383 #: ../src/guestfs-actions.pod:6502
15384 #, no-wrap
15385 msgid ""
15386 " char *\n"
15387 " guestfs_vfs_type (guestfs_h *g,\n"
15388 "                   const char *device);\n"
15389 "\n"
15390 msgstr ""
15391
15392 # type: textblock
15393 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
15394 msgid ""
15395 "This command gets the filesystem type corresponding to the filesystem on "
15396 "C<device>."
15397 msgstr ""
15398
15399 # type: textblock
15400 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
15401 msgid ""
15402 "For most filesystems, the result is the name of the Linux VFS module which "
15403 "would be used to mount this filesystem if you mounted it without specifying "
15404 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15405 msgstr ""
15406
15407 # type: =head2
15408 #: ../src/guestfs-actions.pod:6519
15409 msgid "guestfs_vfs_uuid"
15410 msgstr ""
15411
15412 # type: verbatim
15413 #: ../src/guestfs-actions.pod:6521
15414 #, no-wrap
15415 msgid ""
15416 " char *\n"
15417 " guestfs_vfs_uuid (guestfs_h *g,\n"
15418 "                   const char *device);\n"
15419 "\n"
15420 msgstr ""
15421
15422 # type: textblock
15423 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
15424 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15425 msgstr ""
15426
15427 # type: textblock
15428 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
15429 msgid "If the filesystem does not have a UUID, this returns the empty string."
15430 msgstr ""
15431
15432 # type: textblock
15433 #: ../src/guestfs-actions.pod:6530
15434 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15435 msgstr ""
15436
15437 # type: =head2
15438 #: ../src/guestfs-actions.pod:6537
15439 msgid "guestfs_vg_activate"
15440 msgstr ""
15441
15442 # type: verbatim
15443 #: ../src/guestfs-actions.pod:6539
15444 #, no-wrap
15445 msgid ""
15446 " int\n"
15447 " guestfs_vg_activate (guestfs_h *g,\n"
15448 "                      int activate,\n"
15449 "                      char *const *volgroups);\n"
15450 "\n"
15451 msgstr ""
15452
15453 # type: textblock
15454 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
15455 msgid ""
15456 "This command activates or (if C<activate> is false) deactivates all logical "
15457 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15458 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15459 "deactivated, then those devices disappear."
15460 msgstr ""
15461
15462 # type: textblock
15463 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
15464 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15465 msgstr ""
15466
15467 # type: textblock
15468 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
15469 msgid ""
15470 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15471 "activated or deactivated."
15472 msgstr ""
15473
15474 # type: =head2
15475 #: ../src/guestfs-actions.pod:6559
15476 msgid "guestfs_vg_activate_all"
15477 msgstr ""
15478
15479 # type: verbatim
15480 #: ../src/guestfs-actions.pod:6561
15481 #, no-wrap
15482 msgid ""
15483 " int\n"
15484 " guestfs_vg_activate_all (guestfs_h *g,\n"
15485 "                          int activate);\n"
15486 "\n"
15487 msgstr ""
15488
15489 # type: textblock
15490 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15491 msgid ""
15492 "This command activates or (if C<activate> is false) deactivates all logical "
15493 "volumes in all volume groups.  If activated, then they are made known to the "
15494 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15495 "those devices disappear."
15496 msgstr ""
15497
15498 # type: textblock
15499 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15500 msgid "This command is the same as running C<vgchange -a y|n>"
15501 msgstr ""
15502
15503 # type: =head2
15504 #: ../src/guestfs-actions.pod:6577
15505 msgid "guestfs_vgcreate"
15506 msgstr ""
15507
15508 # type: verbatim
15509 #: ../src/guestfs-actions.pod:6579
15510 #, no-wrap
15511 msgid ""
15512 " int\n"
15513 " guestfs_vgcreate (guestfs_h *g,\n"
15514 "                   const char *volgroup,\n"
15515 "                   char *const *physvols);\n"
15516 "\n"
15517 msgstr ""
15518
15519 # type: textblock
15520 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15521 msgid ""
15522 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15523 "of physical volumes C<physvols>."
15524 msgstr ""
15525
15526 # type: =head2
15527 #: ../src/guestfs-actions.pod:6591
15528 msgid "guestfs_vglvuuids"
15529 msgstr ""
15530
15531 # type: verbatim
15532 #: ../src/guestfs-actions.pod:6593
15533 #, no-wrap
15534 msgid ""
15535 " char **\n"
15536 " guestfs_vglvuuids (guestfs_h *g,\n"
15537 "                    const char *vgname);\n"
15538 "\n"
15539 msgstr ""
15540
15541 # type: textblock
15542 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15543 msgid ""
15544 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15545 "volumes created in this volume group."
15546 msgstr ""
15547
15548 # type: textblock
15549 #: ../src/guestfs-actions.pod:6600
15550 msgid ""
15551 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15552 "associate logical volumes and volume groups."
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../src/guestfs-actions.pod:6603
15557 msgid "See also C<guestfs_vgpvuuids>."
15558 msgstr ""
15559
15560 # type: =head2
15561 #: ../src/guestfs-actions.pod:6611
15562 msgid "guestfs_vgpvuuids"
15563 msgstr ""
15564
15565 # type: verbatim
15566 #: ../src/guestfs-actions.pod:6613
15567 #, no-wrap
15568 msgid ""
15569 " char **\n"
15570 " guestfs_vgpvuuids (guestfs_h *g,\n"
15571 "                    const char *vgname);\n"
15572 "\n"
15573 msgstr ""
15574
15575 # type: textblock
15576 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15577 msgid ""
15578 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15579 "volumes that this volume group resides on."
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-actions.pod:6620
15584 msgid ""
15585 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15586 "associate physical volumes and volume groups."
15587 msgstr ""
15588
15589 # type: textblock
15590 #: ../src/guestfs-actions.pod:6623
15591 msgid "See also C<guestfs_vglvuuids>."
15592 msgstr ""
15593
15594 # type: =head2
15595 #: ../src/guestfs-actions.pod:6631
15596 msgid "guestfs_vgremove"
15597 msgstr ""
15598
15599 # type: verbatim
15600 #: ../src/guestfs-actions.pod:6633
15601 #, no-wrap
15602 msgid ""
15603 " int\n"
15604 " guestfs_vgremove (guestfs_h *g,\n"
15605 "                   const char *vgname);\n"
15606 "\n"
15607 msgstr ""
15608
15609 # type: textblock
15610 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15611 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15612 msgstr ""
15613
15614 # type: textblock
15615 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15616 msgid ""
15617 "This also forcibly removes all logical volumes in the volume group (if any)."
15618 msgstr ""
15619
15620 # type: =head2
15621 #: ../src/guestfs-actions.pod:6646
15622 msgid "guestfs_vgrename"
15623 msgstr ""
15624
15625 # type: verbatim
15626 #: ../src/guestfs-actions.pod:6648
15627 #, no-wrap
15628 msgid ""
15629 " int\n"
15630 " guestfs_vgrename (guestfs_h *g,\n"
15631 "                   const char *volgroup,\n"
15632 "                   const char *newvolgroup);\n"
15633 "\n"
15634 msgstr ""
15635
15636 # type: textblock
15637 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15638 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15639 msgstr ""
15640
15641 # type: =head2
15642 #: ../src/guestfs-actions.pod:6659
15643 msgid "guestfs_vgs"
15644 msgstr ""
15645
15646 # type: verbatim
15647 #: ../src/guestfs-actions.pod:6661
15648 #, no-wrap
15649 msgid ""
15650 " char **\n"
15651 " guestfs_vgs (guestfs_h *g);\n"
15652 "\n"
15653 msgstr ""
15654
15655 # type: textblock
15656 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15657 msgid ""
15658 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15659 "> command."
15660 msgstr ""
15661
15662 # type: textblock
15663 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15664 msgid ""
15665 "This returns a list of just the volume group names that were detected (eg. "
15666 "C<VolGroup00>)."
15667 msgstr ""
15668
15669 # type: textblock
15670 #: ../src/guestfs-actions.pod:6670
15671 msgid "See also C<guestfs_vgs_full>."
15672 msgstr ""
15673
15674 # type: =head2
15675 #: ../src/guestfs-actions.pod:6678
15676 msgid "guestfs_vgs_full"
15677 msgstr ""
15678
15679 # type: verbatim
15680 #: ../src/guestfs-actions.pod:6680
15681 #, no-wrap
15682 msgid ""
15683 " struct guestfs_lvm_vg_list *\n"
15684 " guestfs_vgs_full (guestfs_h *g);\n"
15685 "\n"
15686 msgstr ""
15687
15688 # type: textblock
15689 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15690 msgid ""
15691 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15692 "> command.  The \"full\" version includes all fields."
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../src/guestfs-actions.pod:6686
15697 msgid ""
15698 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15699 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15700 msgstr ""
15701
15702 # type: =head2
15703 #: ../src/guestfs-actions.pod:6692
15704 msgid "guestfs_vgscan"
15705 msgstr ""
15706
15707 # type: verbatim
15708 #: ../src/guestfs-actions.pod:6694
15709 #, no-wrap
15710 msgid ""
15711 " int\n"
15712 " guestfs_vgscan (guestfs_h *g);\n"
15713 "\n"
15714 msgstr ""
15715
15716 # type: textblock
15717 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15718 msgid ""
15719 "This rescans all block devices and rebuilds the list of LVM physical "
15720 "volumes, volume groups and logical volumes."
15721 msgstr ""
15722
15723 # type: =head2
15724 #: ../src/guestfs-actions.pod:6704
15725 msgid "guestfs_vguuid"
15726 msgstr ""
15727
15728 # type: verbatim
15729 #: ../src/guestfs-actions.pod:6706
15730 #, no-wrap
15731 msgid ""
15732 " char *\n"
15733 " guestfs_vguuid (guestfs_h *g,\n"
15734 "                 const char *vgname);\n"
15735 "\n"
15736 msgstr ""
15737
15738 # type: textblock
15739 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15740 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15741 msgstr ""
15742
15743 # type: =head2
15744 #: ../src/guestfs-actions.pod:6717
15745 msgid "guestfs_wait_ready"
15746 msgstr ""
15747
15748 # type: verbatim
15749 #: ../src/guestfs-actions.pod:6719
15750 #, no-wrap
15751 msgid ""
15752 " int\n"
15753 " guestfs_wait_ready (guestfs_h *g);\n"
15754 "\n"
15755 msgstr ""
15756
15757 # type: textblock
15758 #: ../src/guestfs-actions.pod:6722
15759 msgid "This function is a no op."
15760 msgstr ""
15761
15762 # type: textblock
15763 #: ../src/guestfs-actions.pod:6724
15764 msgid ""
15765 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15766 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15767 "is no longer necessary because C<guestfs_launch> now does the waiting."
15768 msgstr ""
15769
15770 # type: textblock
15771 #: ../src/guestfs-actions.pod:6729
15772 msgid ""
15773 "If you see any calls to this function in code then you can just remove them, "
15774 "unless you want to retain compatibility with older versions of the API."
15775 msgstr ""
15776
15777 # type: =head2
15778 #: ../src/guestfs-actions.pod:6737
15779 msgid "guestfs_wc_c"
15780 msgstr ""
15781
15782 # type: verbatim
15783 #: ../src/guestfs-actions.pod:6739
15784 #, no-wrap
15785 msgid ""
15786 " int\n"
15787 " guestfs_wc_c (guestfs_h *g,\n"
15788 "               const char *path);\n"
15789 "\n"
15790 msgstr ""
15791
15792 # type: textblock
15793 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15794 msgid ""
15795 "This command counts the characters in a file, using the C<wc -c> external "
15796 "command."
15797 msgstr ""
15798
15799 # type: =head2
15800 #: ../src/guestfs-actions.pod:6750
15801 msgid "guestfs_wc_l"
15802 msgstr ""
15803
15804 # type: verbatim
15805 #: ../src/guestfs-actions.pod:6752
15806 #, no-wrap
15807 msgid ""
15808 " int\n"
15809 " guestfs_wc_l (guestfs_h *g,\n"
15810 "               const char *path);\n"
15811 "\n"
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15816 msgid ""
15817 "This command counts the lines in a file, using the C<wc -l> external command."
15818 msgstr ""
15819
15820 # type: =head2
15821 #: ../src/guestfs-actions.pod:6763
15822 msgid "guestfs_wc_w"
15823 msgstr ""
15824
15825 # type: verbatim
15826 #: ../src/guestfs-actions.pod:6765
15827 #, no-wrap
15828 msgid ""
15829 " int\n"
15830 " guestfs_wc_w (guestfs_h *g,\n"
15831 "               const char *path);\n"
15832 "\n"
15833 msgstr ""
15834
15835 # type: textblock
15836 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15837 msgid ""
15838 "This command counts the words in a file, using the C<wc -w> external command."
15839 msgstr ""
15840
15841 # type: =head2
15842 #: ../src/guestfs-actions.pod:6776
15843 msgid "guestfs_write"
15844 msgstr ""
15845
15846 # type: verbatim
15847 #: ../src/guestfs-actions.pod:6778
15848 #, no-wrap
15849 msgid ""
15850 " int\n"
15851 " guestfs_write (guestfs_h *g,\n"
15852 "                const char *path,\n"
15853 "                const char *content,\n"
15854 "                size_t content_size);\n"
15855 "\n"
15856 msgstr ""
15857
15858 # type: textblock
15859 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15860 msgid ""
15861 "This call creates a file called C<path>.  The content of the file is the "
15862 "string C<content> (which can contain any 8 bit data)."
15863 msgstr ""
15864
15865 # type: =head2
15866 #: ../src/guestfs-actions.pod:6794
15867 msgid "guestfs_write_file"
15868 msgstr ""
15869
15870 # type: verbatim
15871 #: ../src/guestfs-actions.pod:6796
15872 #, no-wrap
15873 msgid ""
15874 " int\n"
15875 " guestfs_write_file (guestfs_h *g,\n"
15876 "                     const char *path,\n"
15877 "                     const char *content,\n"
15878 "                     int size);\n"
15879 "\n"
15880 msgstr ""
15881
15882 # type: textblock
15883 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15884 msgid ""
15885 "This call creates a file called C<path>.  The contents of the file is the "
15886 "string C<content> (which can contain any 8 bit data), with length C<size>."
15887 msgstr ""
15888
15889 # type: textblock
15890 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15891 msgid ""
15892 "As a special case, if C<size> is C<0> then the length is calculated using "
15893 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15894 msgstr ""
15895
15896 # type: textblock
15897 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15898 msgid ""
15899 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15900 "I<not> work, even if the length is specified."
15901 msgstr ""
15902
15903 # type: textblock
15904 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15905 msgid ""
15906 "This function is deprecated.  In new code, use the C<write> call instead."
15907 msgstr ""
15908
15909 # type: =head2
15910 #: ../src/guestfs-actions.pod:6827
15911 msgid "guestfs_zegrep"
15912 msgstr ""
15913
15914 # type: verbatim
15915 #: ../src/guestfs-actions.pod:6829
15916 #, no-wrap
15917 msgid ""
15918 " char **\n"
15919 " guestfs_zegrep (guestfs_h *g,\n"
15920 "                 const char *regex,\n"
15921 "                 const char *path);\n"
15922 "\n"
15923 msgstr ""
15924
15925 # type: textblock
15926 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15927 msgid ""
15928 "This calls the external C<zegrep> program and returns the matching lines."
15929 msgstr ""
15930
15931 # type: =head2
15932 #: ../src/guestfs-actions.pod:6846
15933 msgid "guestfs_zegrepi"
15934 msgstr ""
15935
15936 # type: verbatim
15937 #: ../src/guestfs-actions.pod:6848
15938 #, no-wrap
15939 msgid ""
15940 " char **\n"
15941 " guestfs_zegrepi (guestfs_h *g,\n"
15942 "                  const char *regex,\n"
15943 "                  const char *path);\n"
15944 "\n"
15945 msgstr ""
15946
15947 # type: textblock
15948 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15949 msgid ""
15950 "This calls the external C<zegrep -i> program and returns the matching lines."
15951 msgstr ""
15952
15953 # type: =head2
15954 #: ../src/guestfs-actions.pod:6865
15955 msgid "guestfs_zero"
15956 msgstr ""
15957
15958 # type: verbatim
15959 #: ../src/guestfs-actions.pod:6867
15960 #, no-wrap
15961 msgid ""
15962 " int\n"
15963 " guestfs_zero (guestfs_h *g,\n"
15964 "               const char *device);\n"
15965 "\n"
15966 msgstr ""
15967
15968 # type: textblock
15969 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15970 msgid "This command writes zeroes over the first few blocks of C<device>."
15971 msgstr ""
15972
15973 # type: textblock
15974 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15975 msgid ""
15976 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15977 "securely wipe the device).  It should be sufficient to remove any partition "
15978 "tables, filesystem superblocks and so on."
15979 msgstr ""
15980
15981 # type: textblock
15982 #: ../src/guestfs-actions.pod:6877
15983 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15984 msgstr ""
15985
15986 # type: =head2
15987 #: ../src/guestfs-actions.pod:6888
15988 msgid "guestfs_zero_device"
15989 msgstr ""
15990
15991 # type: verbatim
15992 #: ../src/guestfs-actions.pod:6890
15993 #, no-wrap
15994 msgid ""
15995 " int\n"
15996 " guestfs_zero_device (guestfs_h *g,\n"
15997 "                      const char *device);\n"
15998 "\n"
15999 msgstr ""
16000
16001 # type: textblock
16002 #: ../src/guestfs-actions.pod:6894
16003 msgid ""
16004 "This command writes zeroes over the entire C<device>.  Compare with "
16005 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16006 msgstr ""
16007
16008 # type: textblock
16009 #: ../src/guestfs-actions.pod:6908
16010 msgid "(Added in 1.3.1)"
16011 msgstr ""
16012
16013 # type: =head2
16014 #: ../src/guestfs-actions.pod:6910
16015 msgid "guestfs_zerofree"
16016 msgstr ""
16017
16018 # type: verbatim
16019 #: ../src/guestfs-actions.pod:6912
16020 #, no-wrap
16021 msgid ""
16022 " int\n"
16023 " guestfs_zerofree (guestfs_h *g,\n"
16024 "                   const char *device);\n"
16025 "\n"
16026 msgstr ""
16027
16028 # type: textblock
16029 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
16030 msgid ""
16031 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16032 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16033 "possible to compress the filesystem more effectively."
16034 msgstr ""
16035
16036 # type: textblock
16037 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
16038 msgid "You should B<not> run this program if the filesystem is mounted."
16039 msgstr ""
16040
16041 # type: textblock
16042 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
16043 msgid ""
16044 "It is possible that using this program can damage the filesystem or data on "
16045 "the filesystem."
16046 msgstr ""
16047
16048 # type: =head2
16049 #: ../src/guestfs-actions.pod:6931
16050 msgid "guestfs_zfgrep"
16051 msgstr ""
16052
16053 # type: verbatim
16054 #: ../src/guestfs-actions.pod:6933
16055 #, no-wrap
16056 msgid ""
16057 " char **\n"
16058 " guestfs_zfgrep (guestfs_h *g,\n"
16059 "                 const char *pattern,\n"
16060 "                 const char *path);\n"
16061 "\n"
16062 msgstr ""
16063
16064 # type: textblock
16065 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
16066 msgid ""
16067 "This calls the external C<zfgrep> program and returns the matching lines."
16068 msgstr ""
16069
16070 # type: =head2
16071 #: ../src/guestfs-actions.pod:6950
16072 msgid "guestfs_zfgrepi"
16073 msgstr ""
16074
16075 # type: verbatim
16076 #: ../src/guestfs-actions.pod:6952
16077 #, no-wrap
16078 msgid ""
16079 " char **\n"
16080 " guestfs_zfgrepi (guestfs_h *g,\n"
16081 "                  const char *pattern,\n"
16082 "                  const char *path);\n"
16083 "\n"
16084 msgstr ""
16085
16086 # type: textblock
16087 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
16088 msgid ""
16089 "This calls the external C<zfgrep -i> program and returns the matching lines."
16090 msgstr ""
16091
16092 # type: =head2
16093 #: ../src/guestfs-actions.pod:6969
16094 msgid "guestfs_zfile"
16095 msgstr ""
16096
16097 # type: verbatim
16098 #: ../src/guestfs-actions.pod:6971
16099 #, no-wrap
16100 msgid ""
16101 " char *\n"
16102 " guestfs_zfile (guestfs_h *g,\n"
16103 "                const char *meth,\n"
16104 "                const char *path);\n"
16105 "\n"
16106 msgstr ""
16107
16108 # type: textblock
16109 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
16110 msgid ""
16111 "This command runs C<file> after first decompressing C<path> using C<method>."
16112 msgstr ""
16113
16114 # type: textblock
16115 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
16116 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16117 msgstr ""
16118
16119 # type: textblock
16120 #: ../src/guestfs-actions.pod:6981
16121 msgid ""
16122 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16123 "files."
16124 msgstr ""
16125
16126 # type: textblock
16127 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
16128 msgid ""
16129 "This function is deprecated.  In new code, use the C<file> call instead."
16130 msgstr ""
16131
16132 # type: =head2
16133 #: ../src/guestfs-actions.pod:6996
16134 msgid "guestfs_zgrep"
16135 msgstr ""
16136
16137 # type: verbatim
16138 #: ../src/guestfs-actions.pod:6998
16139 #, no-wrap
16140 msgid ""
16141 " char **\n"
16142 " guestfs_zgrep (guestfs_h *g,\n"
16143 "                const char *regex,\n"
16144 "                const char *path);\n"
16145 "\n"
16146 msgstr ""
16147
16148 # type: textblock
16149 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
16150 msgid ""
16151 "This calls the external C<zgrep> program and returns the matching lines."
16152 msgstr ""
16153
16154 # type: =head2
16155 #: ../src/guestfs-actions.pod:7015
16156 msgid "guestfs_zgrepi"
16157 msgstr ""
16158
16159 # type: verbatim
16160 #: ../src/guestfs-actions.pod:7017
16161 #, no-wrap
16162 msgid ""
16163 " char **\n"
16164 " guestfs_zgrepi (guestfs_h *g,\n"
16165 "                 const char *regex,\n"
16166 "                 const char *path);\n"
16167 "\n"
16168 msgstr ""
16169
16170 # type: textblock
16171 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
16172 msgid ""
16173 "This calls the external C<zgrep -i> program and returns the matching lines."
16174 msgstr ""
16175
16176 # type: =item
16177 #: ../src/guestfs-availability.pod:3
16178 msgid "B<augeas>"
16179 msgstr ""
16180
16181 # type: textblock
16182 #: ../src/guestfs-availability.pod:5
16183 msgid ""
16184 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16185 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16186 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16187 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16188 "L</guestfs_aug_save> L</guestfs_aug_set>"
16189 msgstr ""
16190
16191 # type: =item
16192 #: ../src/guestfs-availability.pod:21
16193 msgid "B<inotify>"
16194 msgstr ""
16195
16196 # type: textblock
16197 #: ../src/guestfs-availability.pod:23
16198 msgid ""
16199 "The following functions: L</guestfs_inotify_add_watch> L</"
16200 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16201 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16202 msgstr ""
16203
16204 # type: =item
16205 #: ../src/guestfs-availability.pod:31
16206 msgid "B<linuxfsuuid>"
16207 msgstr ""
16208
16209 # type: textblock
16210 #: ../src/guestfs-availability.pod:33
16211 msgid ""
16212 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16213 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16214 msgstr ""
16215
16216 # type: =item
16217 #: ../src/guestfs-availability.pod:40
16218 msgid "B<linuxmodules>"
16219 msgstr ""
16220
16221 # type: textblock
16222 #: ../src/guestfs-availability.pod:42
16223 msgid "The following functions: L</guestfs_modprobe>"
16224 msgstr ""
16225
16226 # type: =item
16227 #: ../src/guestfs-availability.pod:45
16228 msgid "B<linuxxattrs>"
16229 msgstr ""
16230
16231 # type: textblock
16232 #: ../src/guestfs-availability.pod:47
16233 msgid ""
16234 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16235 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16236 "guestfs_removexattr> L</guestfs_setxattr>"
16237 msgstr ""
16238
16239 # type: =item
16240 #: ../src/guestfs-availability.pod:56
16241 msgid "B<luks>"
16242 msgstr ""
16243
16244 # type: textblock
16245 #: ../src/guestfs-availability.pod:58
16246 msgid ""
16247 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16248 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16249 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16250 msgstr ""
16251
16252 # type: =item
16253 #: ../src/guestfs-availability.pod:67
16254 msgid "B<lvm2>"
16255 msgstr ""
16256
16257 # type: textblock
16258 #: ../src/guestfs-availability.pod:69
16259 msgid ""
16260 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16261 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16262 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16263 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16264 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16265 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16266 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16267 msgstr ""
16268
16269 # type: =item
16270 #: ../src/guestfs-availability.pod:92
16271 msgid "B<mknod>"
16272 msgstr ""
16273
16274 # type: textblock
16275 #: ../src/guestfs-availability.pod:94
16276 msgid ""
16277 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16278 "guestfs_mknod_b> L</guestfs_mknod_c>"
16279 msgstr ""
16280
16281 # type: =item
16282 #: ../src/guestfs-availability.pod:100
16283 msgid "B<ntfs3g>"
16284 msgstr ""
16285
16286 # type: textblock
16287 #: ../src/guestfs-availability.pod:102
16288 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16289 msgstr ""
16290
16291 # type: =item
16292 #: ../src/guestfs-availability.pod:105
16293 msgid "B<ntfsprogs>"
16294 msgstr ""
16295
16296 # type: textblock
16297 #: ../src/guestfs-availability.pod:107
16298 msgid ""
16299 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16300 msgstr ""
16301
16302 # type: =item
16303 #: ../src/guestfs-availability.pod:111
16304 msgid "B<realpath>"
16305 msgstr ""
16306
16307 # type: textblock
16308 #: ../src/guestfs-availability.pod:113
16309 msgid "The following functions: L</guestfs_realpath>"
16310 msgstr ""
16311
16312 # type: =item
16313 #: ../src/guestfs-availability.pod:116
16314 msgid "B<scrub>"
16315 msgstr ""
16316
16317 # type: textblock
16318 #: ../src/guestfs-availability.pod:118
16319 msgid ""
16320 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16321 "guestfs_scrub_freespace>"
16322 msgstr ""
16323
16324 # type: =item
16325 #: ../src/guestfs-availability.pod:123
16326 msgid "B<selinux>"
16327 msgstr ""
16328
16329 # type: textblock
16330 #: ../src/guestfs-availability.pod:125
16331 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16332 msgstr ""
16333
16334 # type: =item
16335 #: ../src/guestfs-availability.pod:129
16336 msgid "B<xz>"
16337 msgstr ""
16338
16339 # type: textblock
16340 #: ../src/guestfs-availability.pod:131
16341 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16342 msgstr ""
16343
16344 # type: =item
16345 #: ../src/guestfs-availability.pod:135
16346 msgid "B<zerofree>"
16347 msgstr ""
16348
16349 # type: textblock
16350 #: ../src/guestfs-availability.pod:137
16351 msgid "The following functions: L</guestfs_zerofree>"
16352 msgstr ""
16353
16354 # type: =head2
16355 #: ../src/guestfs-structs.pod:1
16356 msgid "guestfs_int_bool"
16357 msgstr ""
16358
16359 # type: verbatim
16360 #: ../src/guestfs-structs.pod:3
16361 #, no-wrap
16362 msgid ""
16363 " struct guestfs_int_bool {\n"
16364 "   int32_t i;\n"
16365 "   int32_t b;\n"
16366 " };\n"
16367 " \n"
16368 msgstr ""
16369
16370 # type: verbatim
16371 #: ../src/guestfs-structs.pod:8
16372 #, no-wrap
16373 msgid ""
16374 " struct guestfs_int_bool_list {\n"
16375 "   uint32_t len; /* Number of elements in list. */\n"
16376 "   struct guestfs_int_bool *val; /* Elements. */\n"
16377 " };\n"
16378 " \n"
16379 msgstr ""
16380
16381 # type: verbatim
16382 #: ../src/guestfs-structs.pod:13
16383 #, no-wrap
16384 msgid ""
16385 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16386 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16387 "\n"
16388 msgstr ""
16389
16390 # type: =head2
16391 #: ../src/guestfs-structs.pod:16
16392 msgid "guestfs_lvm_pv"
16393 msgstr ""
16394
16395 # type: verbatim
16396 #: ../src/guestfs-structs.pod:18
16397 #, no-wrap
16398 msgid ""
16399 " struct guestfs_lvm_pv {\n"
16400 "   char *pv_name;\n"
16401 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16402 "   char pv_uuid[32];\n"
16403 "   char *pv_fmt;\n"
16404 "   uint64_t pv_size;\n"
16405 "   uint64_t dev_size;\n"
16406 "   uint64_t pv_free;\n"
16407 "   uint64_t pv_used;\n"
16408 "   char *pv_attr;\n"
16409 "   int64_t pv_pe_count;\n"
16410 "   int64_t pv_pe_alloc_count;\n"
16411 "   char *pv_tags;\n"
16412 "   uint64_t pe_start;\n"
16413 "   int64_t pv_mda_count;\n"
16414 "   uint64_t pv_mda_free;\n"
16415 " };\n"
16416 " \n"
16417 msgstr ""
16418
16419 # type: verbatim
16420 #: ../src/guestfs-structs.pod:36
16421 #, no-wrap
16422 msgid ""
16423 " struct guestfs_lvm_pv_list {\n"
16424 "   uint32_t len; /* Number of elements in list. */\n"
16425 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16426 " };\n"
16427 " \n"
16428 msgstr ""
16429
16430 # type: verbatim
16431 #: ../src/guestfs-structs.pod:41
16432 #, no-wrap
16433 msgid ""
16434 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16435 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16436 "\n"
16437 msgstr ""
16438
16439 # type: =head2
16440 #: ../src/guestfs-structs.pod:44
16441 msgid "guestfs_lvm_vg"
16442 msgstr ""
16443
16444 # type: verbatim
16445 #: ../src/guestfs-structs.pod:46
16446 #, no-wrap
16447 msgid ""
16448 " struct guestfs_lvm_vg {\n"
16449 "   char *vg_name;\n"
16450 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16451 "   char vg_uuid[32];\n"
16452 "   char *vg_fmt;\n"
16453 "   char *vg_attr;\n"
16454 "   uint64_t vg_size;\n"
16455 "   uint64_t vg_free;\n"
16456 "   char *vg_sysid;\n"
16457 "   uint64_t vg_extent_size;\n"
16458 "   int64_t vg_extent_count;\n"
16459 "   int64_t vg_free_count;\n"
16460 "   int64_t max_lv;\n"
16461 "   int64_t max_pv;\n"
16462 "   int64_t pv_count;\n"
16463 "   int64_t lv_count;\n"
16464 "   int64_t snap_count;\n"
16465 "   int64_t vg_seqno;\n"
16466 "   char *vg_tags;\n"
16467 "   int64_t vg_mda_count;\n"
16468 "   uint64_t vg_mda_free;\n"
16469 " };\n"
16470 " \n"
16471 msgstr ""
16472
16473 # type: verbatim
16474 #: ../src/guestfs-structs.pod:69
16475 #, no-wrap
16476 msgid ""
16477 " struct guestfs_lvm_vg_list {\n"
16478 "   uint32_t len; /* Number of elements in list. */\n"
16479 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16480 " };\n"
16481 " \n"
16482 msgstr ""
16483
16484 # type: verbatim
16485 #: ../src/guestfs-structs.pod:74
16486 #, no-wrap
16487 msgid ""
16488 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16489 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16490 "\n"
16491 msgstr ""
16492
16493 # type: =head2
16494 #: ../src/guestfs-structs.pod:77
16495 msgid "guestfs_lvm_lv"
16496 msgstr ""
16497
16498 # type: verbatim
16499 #: ../src/guestfs-structs.pod:79
16500 #, no-wrap
16501 msgid ""
16502 " struct guestfs_lvm_lv {\n"
16503 "   char *lv_name;\n"
16504 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16505 "   char lv_uuid[32];\n"
16506 "   char *lv_attr;\n"
16507 "   int64_t lv_major;\n"
16508 "   int64_t lv_minor;\n"
16509 "   int64_t lv_kernel_major;\n"
16510 "   int64_t lv_kernel_minor;\n"
16511 "   uint64_t lv_size;\n"
16512 "   int64_t seg_count;\n"
16513 "   char *origin;\n"
16514 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16515 "   float snap_percent;\n"
16516 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16517 "   float copy_percent;\n"
16518 "   char *move_pv;\n"
16519 "   char *lv_tags;\n"
16520 "   char *mirror_log;\n"
16521 "   char *modules;\n"
16522 " };\n"
16523 " \n"
16524 msgstr ""
16525
16526 # type: verbatim
16527 #: ../src/guestfs-structs.pod:101
16528 #, no-wrap
16529 msgid ""
16530 " struct guestfs_lvm_lv_list {\n"
16531 "   uint32_t len; /* Number of elements in list. */\n"
16532 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16533 " };\n"
16534 " \n"
16535 msgstr ""
16536
16537 # type: verbatim
16538 #: ../src/guestfs-structs.pod:106
16539 #, no-wrap
16540 msgid ""
16541 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16542 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16543 "\n"
16544 msgstr ""
16545
16546 # type: verbatim
16547 #: ../src/guestfs-structs.pod:111
16548 #, no-wrap
16549 msgid ""
16550 " struct guestfs_stat {\n"
16551 "   int64_t dev;\n"
16552 "   int64_t ino;\n"
16553 "   int64_t mode;\n"
16554 "   int64_t nlink;\n"
16555 "   int64_t uid;\n"
16556 "   int64_t gid;\n"
16557 "   int64_t rdev;\n"
16558 "   int64_t size;\n"
16559 "   int64_t blksize;\n"
16560 "   int64_t blocks;\n"
16561 "   int64_t atime;\n"
16562 "   int64_t mtime;\n"
16563 "   int64_t ctime;\n"
16564 " };\n"
16565 " \n"
16566 msgstr ""
16567
16568 # type: verbatim
16569 #: ../src/guestfs-structs.pod:127
16570 #, no-wrap
16571 msgid ""
16572 " struct guestfs_stat_list {\n"
16573 "   uint32_t len; /* Number of elements in list. */\n"
16574 "   struct guestfs_stat *val; /* Elements. */\n"
16575 " };\n"
16576 " \n"
16577 msgstr ""
16578
16579 # type: verbatim
16580 #: ../src/guestfs-structs.pod:132
16581 #, no-wrap
16582 msgid ""
16583 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16584 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16585 "\n"
16586 msgstr ""
16587
16588 # type: verbatim
16589 #: ../src/guestfs-structs.pod:137
16590 #, no-wrap
16591 msgid ""
16592 " struct guestfs_statvfs {\n"
16593 "   int64_t bsize;\n"
16594 "   int64_t frsize;\n"
16595 "   int64_t blocks;\n"
16596 "   int64_t bfree;\n"
16597 "   int64_t bavail;\n"
16598 "   int64_t files;\n"
16599 "   int64_t ffree;\n"
16600 "   int64_t favail;\n"
16601 "   int64_t fsid;\n"
16602 "   int64_t flag;\n"
16603 "   int64_t namemax;\n"
16604 " };\n"
16605 " \n"
16606 msgstr ""
16607
16608 # type: verbatim
16609 #: ../src/guestfs-structs.pod:151
16610 #, no-wrap
16611 msgid ""
16612 " struct guestfs_statvfs_list {\n"
16613 "   uint32_t len; /* Number of elements in list. */\n"
16614 "   struct guestfs_statvfs *val; /* Elements. */\n"
16615 " };\n"
16616 " \n"
16617 msgstr ""
16618
16619 # type: verbatim
16620 #: ../src/guestfs-structs.pod:156
16621 #, no-wrap
16622 msgid ""
16623 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16624 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16625 "\n"
16626 msgstr ""
16627
16628 # type: =head2
16629 #: ../src/guestfs-structs.pod:159
16630 msgid "guestfs_dirent"
16631 msgstr ""
16632
16633 # type: verbatim
16634 #: ../src/guestfs-structs.pod:161
16635 #, no-wrap
16636 msgid ""
16637 " struct guestfs_dirent {\n"
16638 "   int64_t ino;\n"
16639 "   char ftyp;\n"
16640 "   char *name;\n"
16641 " };\n"
16642 " \n"
16643 msgstr ""
16644
16645 # type: verbatim
16646 #: ../src/guestfs-structs.pod:167
16647 #, no-wrap
16648 msgid ""
16649 " struct guestfs_dirent_list {\n"
16650 "   uint32_t len; /* Number of elements in list. */\n"
16651 "   struct guestfs_dirent *val; /* Elements. */\n"
16652 " };\n"
16653 " \n"
16654 msgstr ""
16655
16656 # type: verbatim
16657 #: ../src/guestfs-structs.pod:172
16658 #, no-wrap
16659 msgid ""
16660 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16661 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16662 "\n"
16663 msgstr ""
16664
16665 # type: verbatim
16666 #: ../src/guestfs-structs.pod:177
16667 #, no-wrap
16668 msgid ""
16669 " struct guestfs_version {\n"
16670 "   int64_t major;\n"
16671 "   int64_t minor;\n"
16672 "   int64_t release;\n"
16673 "   char *extra;\n"
16674 " };\n"
16675 " \n"
16676 msgstr ""
16677
16678 # type: verbatim
16679 #: ../src/guestfs-structs.pod:184
16680 #, no-wrap
16681 msgid ""
16682 " struct guestfs_version_list {\n"
16683 "   uint32_t len; /* Number of elements in list. */\n"
16684 "   struct guestfs_version *val; /* Elements. */\n"
16685 " };\n"
16686 " \n"
16687 msgstr ""
16688
16689 # type: verbatim
16690 #: ../src/guestfs-structs.pod:189
16691 #, no-wrap
16692 msgid ""
16693 " void guestfs_free_version (struct guestfs_free_version *);\n"
16694 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16695 "\n"
16696 msgstr ""
16697
16698 # type: =head2
16699 #: ../src/guestfs-structs.pod:192
16700 msgid "guestfs_xattr"
16701 msgstr ""
16702
16703 # type: verbatim
16704 #: ../src/guestfs-structs.pod:194
16705 #, no-wrap
16706 msgid ""
16707 " struct guestfs_xattr {\n"
16708 "   char *attrname;\n"
16709 "   /* The next two fields describe a byte array. */\n"
16710 "   uint32_t attrval_len;\n"
16711 "   char *attrval;\n"
16712 " };\n"
16713 " \n"
16714 msgstr ""
16715
16716 # type: verbatim
16717 #: ../src/guestfs-structs.pod:201
16718 #, no-wrap
16719 msgid ""
16720 " struct guestfs_xattr_list {\n"
16721 "   uint32_t len; /* Number of elements in list. */\n"
16722 "   struct guestfs_xattr *val; /* Elements. */\n"
16723 " };\n"
16724 " \n"
16725 msgstr ""
16726
16727 # type: verbatim
16728 #: ../src/guestfs-structs.pod:206
16729 #, no-wrap
16730 msgid ""
16731 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16732 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16733 "\n"
16734 msgstr ""
16735
16736 # type: =head2
16737 #: ../src/guestfs-structs.pod:209
16738 msgid "guestfs_inotify_event"
16739 msgstr ""
16740
16741 # type: verbatim
16742 #: ../src/guestfs-structs.pod:211
16743 #, no-wrap
16744 msgid ""
16745 " struct guestfs_inotify_event {\n"
16746 "   int64_t in_wd;\n"
16747 "   uint32_t in_mask;\n"
16748 "   uint32_t in_cookie;\n"
16749 "   char *in_name;\n"
16750 " };\n"
16751 " \n"
16752 msgstr ""
16753
16754 # type: verbatim
16755 #: ../src/guestfs-structs.pod:218
16756 #, no-wrap
16757 msgid ""
16758 " struct guestfs_inotify_event_list {\n"
16759 "   uint32_t len; /* Number of elements in list. */\n"
16760 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16761 " };\n"
16762 " \n"
16763 msgstr ""
16764
16765 # type: verbatim
16766 #: ../src/guestfs-structs.pod:223
16767 #, no-wrap
16768 msgid ""
16769 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16770 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16771 "\n"
16772 msgstr ""
16773
16774 # type: =head2
16775 #: ../src/guestfs-structs.pod:226
16776 msgid "guestfs_partition"
16777 msgstr ""
16778
16779 # type: verbatim
16780 #: ../src/guestfs-structs.pod:228
16781 #, no-wrap
16782 msgid ""
16783 " struct guestfs_partition {\n"
16784 "   int32_t part_num;\n"
16785 "   uint64_t part_start;\n"
16786 "   uint64_t part_end;\n"
16787 "   uint64_t part_size;\n"
16788 " };\n"
16789 " \n"
16790 msgstr ""
16791
16792 # type: verbatim
16793 #: ../src/guestfs-structs.pod:235
16794 #, no-wrap
16795 msgid ""
16796 " struct guestfs_partition_list {\n"
16797 "   uint32_t len; /* Number of elements in list. */\n"
16798 "   struct guestfs_partition *val; /* Elements. */\n"
16799 " };\n"
16800 " \n"
16801 msgstr ""
16802
16803 # type: verbatim
16804 #: ../src/guestfs-structs.pod:240
16805 #, no-wrap
16806 msgid ""
16807 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16808 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16809 "\n"
16810 msgstr ""
16811
16812 # type: =head2
16813 #: ../src/guestfs-structs.pod:243
16814 msgid "guestfs_application"
16815 msgstr ""
16816
16817 # type: verbatim
16818 #: ../src/guestfs-structs.pod:245
16819 #, no-wrap
16820 msgid ""
16821 " struct guestfs_application {\n"
16822 "   char *app_name;\n"
16823 "   char *app_display_name;\n"
16824 "   int32_t app_epoch;\n"
16825 "   char *app_version;\n"
16826 "   char *app_release;\n"
16827 "   char *app_install_path;\n"
16828 "   char *app_trans_path;\n"
16829 "   char *app_publisher;\n"
16830 "   char *app_url;\n"
16831 "   char *app_source_package;\n"
16832 "   char *app_summary;\n"
16833 "   char *app_description;\n"
16834 " };\n"
16835 " \n"
16836 msgstr ""
16837
16838 # type: verbatim
16839 #: ../src/guestfs-structs.pod:260
16840 #, no-wrap
16841 msgid ""
16842 " struct guestfs_application_list {\n"
16843 "   uint32_t len; /* Number of elements in list. */\n"
16844 "   struct guestfs_application *val; /* Elements. */\n"
16845 " };\n"
16846 " \n"
16847 msgstr ""
16848
16849 # type: verbatim
16850 #: ../src/guestfs-structs.pod:265
16851 #, no-wrap
16852 msgid ""
16853 " void guestfs_free_application (struct guestfs_free_application *);\n"
16854 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16855 "\n"
16856 msgstr ""
16857
16858 # type: textblock
16859 #: ../fish/guestfish.pod:5
16860 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16861 msgstr ""
16862
16863 # type: verbatim
16864 #: ../fish/guestfish.pod:9
16865 #, no-wrap
16866 msgid ""
16867 " guestfish [--options] [commands]\n"
16868 "\n"
16869 msgstr ""
16870
16871 # type: verbatim
16872 #: ../fish/guestfish.pod:11
16873 #, no-wrap
16874 msgid ""
16875 " guestfish\n"
16876 "\n"
16877 msgstr ""
16878
16879 # type: verbatim
16880 #: ../fish/guestfish.pod:13
16881 #, no-wrap
16882 msgid ""
16883 " guestfish [--ro|--rw] -a disk.img\n"
16884 "\n"
16885 msgstr ""
16886
16887 # type: verbatim
16888 #: ../fish/guestfish.pod:15
16889 #, no-wrap
16890 msgid ""
16891 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16892 "\n"
16893 msgstr ""
16894
16895 # type: verbatim
16896 #: ../fish/guestfish.pod:17
16897 #, no-wrap
16898 msgid ""
16899 " guestfish -d libvirt-domain\n"
16900 "\n"
16901 msgstr ""
16902
16903 # type: verbatim
16904 #: ../fish/guestfish.pod:19
16905 #, no-wrap
16906 msgid ""
16907 " guestfish [--ro|--rw] -a disk.img -i\n"
16908 "\n"
16909 msgstr ""
16910
16911 # type: verbatim
16912 #: ../fish/guestfish.pod:21
16913 #, no-wrap
16914 msgid ""
16915 " guestfish -d libvirt-domain -i\n"
16916 "\n"
16917 msgstr ""
16918
16919 # type: =head1
16920 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16921 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16922 msgid "WARNING"
16923 msgstr ""
16924
16925 # type: textblock
16926 #: ../fish/guestfish.pod:25
16927 msgid ""
16928 "Using guestfish in read/write mode on live virtual machines can be "
16929 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16930 "option to use guestfish safely if the disk image or virtual machine might be "
16931 "live."
16932 msgstr ""
16933
16934 # type: textblock
16935 #: ../fish/guestfish.pod:32
16936 msgid ""
16937 "Guestfish is a shell and command-line tool for examining and modifying "
16938 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16939 "functionality of the guestfs API, see L<guestfs(3)>."
16940 msgstr ""
16941
16942 # type: textblock
16943 #: ../fish/guestfish.pod:36
16944 msgid ""
16945 "Guestfish gives you structured access to the libguestfs API, from shell "
16946 "scripts or the command line or interactively.  If you want to rescue a "
16947 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16948 "command."
16949 msgstr ""
16950
16951 # type: =head1
16952 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847
16953 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16954 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16955 msgid "EXAMPLES"
16956 msgstr ""
16957
16958 # type: =head2
16959 #: ../fish/guestfish.pod:43
16960 msgid "As an interactive shell"
16961 msgstr ""
16962
16963 # type: verbatim
16964 #: ../fish/guestfish.pod:45
16965 #, no-wrap
16966 msgid ""
16967 " $ guestfish\n"
16968 " \n"
16969 msgstr ""
16970
16971 # type: verbatim
16972 #: ../fish/guestfish.pod:47
16973 #, no-wrap
16974 msgid ""
16975 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16976 " editing virtual machine filesystems.\n"
16977 " \n"
16978 msgstr ""
16979
16980 # type: verbatim
16981 #: ../fish/guestfish.pod:50
16982 #, no-wrap
16983 msgid ""
16984 " Type: 'help' for a list of commands\n"
16985 "       'man' to read the manual\n"
16986 "       'quit' to quit the shell\n"
16987 " \n"
16988 msgstr ""
16989
16990 # type: verbatim
16991 #: ../fish/guestfish.pod:54
16992 #, no-wrap
16993 msgid ""
16994 " ><fs> add-ro disk.img\n"
16995 " ><fs> run\n"
16996 " ><fs> list-filesystems\n"
16997 " /dev/sda1: ext4\n"
16998 " /dev/vg_guest/lv_root: ext4\n"
16999 " /dev/vg_guest/lv_swap: swap\n"
17000 " ><fs> mount /dev/vg_guest/lv_root /\n"
17001 " ><fs> cat /etc/fstab\n"
17002 " # /etc/fstab\n"
17003 " # Created by anaconda\n"
17004 " [...]\n"
17005 " ><fs> exit\n"
17006 "\n"
17007 msgstr ""
17008
17009 # type: =head2
17010 #: ../fish/guestfish.pod:67
17011 msgid "From shell scripts"
17012 msgstr ""
17013
17014 # type: textblock
17015 #: ../fish/guestfish.pod:69
17016 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17017 msgstr ""
17018
17019 # type: verbatim
17020 #: ../fish/guestfish.pod:71
17021 #, no-wrap
17022 msgid ""
17023 " guestfish <<_EOF_\n"
17024 " add disk.img\n"
17025 " run\n"
17026 " mount /dev/vg_guest/lv_root /\n"
17027 " write /etc/motd \"Welcome, new users\"\n"
17028 " _EOF_\n"
17029 "\n"
17030 msgstr ""
17031
17032 # type: textblock
17033 #: ../fish/guestfish.pod:78
17034 msgid "List the LVM logical volumes in a disk image:"
17035 msgstr ""
17036
17037 # type: verbatim
17038 #: ../fish/guestfish.pod:80
17039 #, no-wrap
17040 msgid ""
17041 " guestfish -a disk.img --ro <<_EOF_\n"
17042 " run\n"
17043 " lvs\n"
17044 " _EOF_\n"
17045 "\n"
17046 msgstr ""
17047
17048 # type: textblock
17049 #: ../fish/guestfish.pod:85
17050 msgid "List all the filesystems in a disk image:"
17051 msgstr ""
17052
17053 # type: verbatim
17054 #: ../fish/guestfish.pod:87
17055 #, no-wrap
17056 msgid ""
17057 " guestfish -a disk.img --ro <<_EOF_\n"
17058 " run\n"
17059 " list-filesystems\n"
17060 " _EOF_\n"
17061 "\n"
17062 msgstr ""
17063
17064 # type: =head2
17065 #: ../fish/guestfish.pod:92
17066 msgid "On one command line"
17067 msgstr ""
17068
17069 # type: textblock
17070 #: ../fish/guestfish.pod:94
17071 msgid "Update C</etc/resolv.conf> in a guest:"
17072 msgstr ""
17073
17074 # type: verbatim
17075 #: ../fish/guestfish.pod:96
17076 #, no-wrap
17077 msgid ""
17078 " guestfish \\\n"
17079 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17080 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17081 "\n"
17082 msgstr ""
17083
17084 # type: textblock
17085 #: ../fish/guestfish.pod:100
17086 msgid "Edit C</boot/grub/grub.conf> interactively:"
17087 msgstr ""
17088
17089 # type: verbatim
17090 #: ../fish/guestfish.pod:102
17091 #, no-wrap
17092 msgid ""
17093 " guestfish --rw --add disk.img \\\n"
17094 "   --mount /dev/vg_guest/lv_root \\\n"
17095 "   --mount /dev/sda1:/boot \\\n"
17096 "   edit /boot/grub/grub.conf\n"
17097 "\n"
17098 msgstr ""
17099
17100 # type: =head2
17101 #: ../fish/guestfish.pod:107
17102 msgid "Mount disks automatically"
17103 msgstr ""
17104
17105 # type: textblock
17106 #: ../fish/guestfish.pod:109
17107 msgid ""
17108 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17109 msgstr ""
17110
17111 # type: verbatim
17112 #: ../fish/guestfish.pod:112
17113 #, no-wrap
17114 msgid ""
17115 " guestfish --ro -a disk.img -i cat /etc/group\n"
17116 "\n"
17117 msgstr ""
17118
17119 # type: verbatim
17120 #: ../fish/guestfish.pod:114
17121 #, no-wrap
17122 msgid ""
17123 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17124 "\n"
17125 msgstr ""
17126
17127 # type: textblock
17128 #: ../fish/guestfish.pod:116
17129 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17130 msgstr ""
17131
17132 # type: verbatim
17133 #: ../fish/guestfish.pod:118
17134 #, no-wrap
17135 msgid ""
17136 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17137 "\n"
17138 msgstr ""
17139
17140 # type: =head2
17141 #: ../fish/guestfish.pod:120
17142 msgid "As a script interpreter"
17143 msgstr ""
17144
17145 # type: textblock
17146 #: ../fish/guestfish.pod:122
17147 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17148 msgstr ""
17149
17150 # type: verbatim
17151 #: ../fish/guestfish.pod:124
17152 #, no-wrap
17153 msgid ""
17154 " #!/usr/bin/guestfish -f\n"
17155 " sparse test1.img 100M\n"
17156 " run\n"
17157 " part-disk /dev/sda mbr\n"
17158 " mkfs ext2 /dev/sda1\n"
17159 "\n"
17160 msgstr ""
17161
17162 # type: =head2
17163 #: ../fish/guestfish.pod:130
17164 msgid "Start with a prepared disk"
17165 msgstr ""
17166
17167 # type: textblock
17168 #: ../fish/guestfish.pod:132
17169 msgid ""
17170 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17171 "single ext2-formatted partition:"
17172 msgstr ""
17173
17174 # type: verbatim
17175 #: ../fish/guestfish.pod:135
17176 #, no-wrap
17177 msgid ""
17178 " guestfish -N fs\n"
17179 "\n"
17180 msgstr ""
17181
17182 # type: textblock
17183 #: ../fish/guestfish.pod:137
17184 msgid "To list what is available do:"
17185 msgstr ""
17186
17187 # type: verbatim
17188 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
17189 #, no-wrap
17190 msgid ""
17191 " guestfish -N help | less\n"
17192 "\n"
17193 msgstr ""
17194
17195 # type: =head2
17196 #: ../fish/guestfish.pod:141
17197 msgid "Remote control"
17198 msgstr ""
17199
17200 # type: verbatim
17201 #: ../fish/guestfish.pod:143
17202 #, no-wrap
17203 msgid ""
17204 " eval \"`guestfish --listen`\"\n"
17205 " guestfish --remote add-ro disk.img\n"
17206 " guestfish --remote run\n"
17207 " guestfish --remote lvs\n"
17208 "\n"
17209 msgstr ""
17210
17211 # type: =head1
17212 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17213 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17214 #: ../tools/virt-win-reg.pl:171 ../tools/virt-resize.pl:256
17215 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17216 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17217 msgid "OPTIONS"
17218 msgstr ""
17219
17220 # type: =item
17221 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17222 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17223 #: ../tools/virt-resize.pl:264 ../tools/virt-list-filesystems.pl:61
17224 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
17225 #: ../tools/virt-list-partitions.pl:62
17226 msgid "B<--help>"
17227 msgstr ""
17228
17229 # type: textblock
17230 #: ../fish/guestfish.pod:154
17231 msgid "Displays general help on options."
17232 msgstr ""
17233
17234 # type: =item
17235 #: ../fish/guestfish.pod:156
17236 msgid "B<-h> | B<--cmd-help>"
17237 msgstr ""
17238
17239 # type: textblock
17240 #: ../fish/guestfish.pod:158
17241 msgid "Lists all available guestfish commands."
17242 msgstr ""
17243
17244 # type: =item
17245 #: ../fish/guestfish.pod:160
17246 msgid "B<-h cmd> | B<--cmd-help cmd>"
17247 msgstr ""
17248
17249 # type: textblock
17250 #: ../fish/guestfish.pod:162
17251 msgid "Displays detailed help on a single command C<cmd>."
17252 msgstr ""
17253
17254 # type: =item
17255 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17256 msgid "B<-a image> | B<--add image>"
17257 msgstr ""
17258
17259 # type: textblock
17260 #: ../fish/guestfish.pod:166
17261 msgid "Add a block device or virtual machine image to the shell."
17262 msgstr ""
17263
17264 # type: textblock
17265 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17266 msgid ""
17267 "The format of the disk image is auto-detected.  To override this and force a "
17268 "particular format use the I<--format=..> option."
17269 msgstr ""
17270
17271 # type: =item
17272 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17273 msgid "B<-c URI> | B<--connect URI>"
17274 msgstr ""
17275
17276 # type: textblock
17277 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17278 msgid ""
17279 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17280 "URI to use.  The default is to use the default libvirt connection."
17281 msgstr ""
17282
17283 # type: =item
17284 #: ../fish/guestfish.pod:177
17285 msgid "B<--csh>"
17286 msgstr ""
17287
17288 # type: textblock
17289 #: ../fish/guestfish.pod:179
17290 msgid ""
17291 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17292 "section L</REMOTE CONTROL AND CSH> below."
17293 msgstr ""
17294
17295 # type: =item
17296 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17297 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17298 msgstr ""
17299
17300 # type: textblock
17301 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17302 msgid ""
17303 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17304 "used, then any libvirt domain can be used.  However in write mode, only "
17305 "libvirt domains which are shut down can be named here."
17306 msgstr ""
17307
17308 # type: =item
17309 #: ../fish/guestfish.pod:188
17310 msgid "B<-D> | B<--no-dest-paths>"
17311 msgstr ""
17312
17313 # type: textblock
17314 #: ../fish/guestfish.pod:190
17315 msgid ""
17316 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17317 "to hit the tab key to complete paths on the guest filesystem, but this "
17318 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17319 "allow this feature to be disabled."
17320 msgstr ""
17321
17322 # type: =item
17323 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17324 msgid "B<--echo-keys>"
17325 msgstr ""
17326
17327 # type: textblock
17328 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17329 msgid ""
17330 "When prompting for keys and passphrases, guestfish normally turns echoing "
17331 "off so you cannot see what you are typing.  If you are not worried about "
17332 "Tempest attacks and there is no one else in the room you can specify this "
17333 "flag to see what you are typing."
17334 msgstr ""
17335
17336 # type: =item
17337 #: ../fish/guestfish.pod:202
17338 msgid "B<-f file> | B<--file file>"
17339 msgstr ""
17340
17341 # type: textblock
17342 #: ../fish/guestfish.pod:204
17343 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17344 msgstr ""
17345
17346 # type: verbatim
17347 #: ../fish/guestfish.pod:207
17348 #, no-wrap
17349 msgid ""
17350 " #!/usr/bin/guestfish -f\n"
17351 "\n"
17352 msgstr ""
17353
17354 # type: =item
17355 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17356 msgid "B<--format=raw|qcow2|..> | B<--format>"
17357 msgstr ""
17358
17359 # type: textblock
17360 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17361 msgid ""
17362 "The default for the I<-a> option is to auto-detect the format of the disk "
17363 "image.  Using this forces the disk format for I<-a> options which follow on "
17364 "the command line.  Using I<--format> with no argument switches back to auto-"
17365 "detection for subsequent I<-a> options."
17366 msgstr ""
17367
17368 # type: textblock
17369 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17370 msgid "For example:"
17371 msgstr ""
17372
17373 # type: verbatim
17374 #: ../fish/guestfish.pod:218
17375 #, no-wrap
17376 msgid ""
17377 " guestfish --format=raw -a disk.img\n"
17378 "\n"
17379 msgstr ""
17380
17381 # type: textblock
17382 #: ../fish/guestfish.pod:220
17383 msgid "forces raw format (no auto-detection) for C<disk.img>."
17384 msgstr ""
17385
17386 # type: verbatim
17387 #: ../fish/guestfish.pod:222
17388 #, no-wrap
17389 msgid ""
17390 " guestfish --format=raw -a disk.img --format -a another.img\n"
17391 "\n"
17392 msgstr ""
17393
17394 # type: textblock
17395 #: ../fish/guestfish.pod:224
17396 msgid ""
17397 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17398 "detection for C<another.img>."
17399 msgstr ""
17400
17401 # type: textblock
17402 #: ../fish/guestfish.pod:227
17403 msgid ""
17404 "If you have untrusted raw-format guest disk images, you should use this "
17405 "option to specify the disk format.  This avoids a possible security problem "
17406 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17407 msgstr ""
17408
17409 # type: =item
17410 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17411 msgid "B<-i> | B<--inspector>"
17412 msgstr ""
17413
17414 # type: textblock
17415 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17416 msgid ""
17417 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17418 "system and mount filesystems as they would be mounted on the real virtual "
17419 "machine."
17420 msgstr ""
17421
17422 # type: textblock
17423 #: ../fish/guestfish.pod:238
17424 msgid "Typical usage is either:"
17425 msgstr ""
17426
17427 # type: verbatim
17428 #: ../fish/guestfish.pod:240
17429 #, no-wrap
17430 msgid ""
17431 " guestfish -d myguest -i\n"
17432 "\n"
17433 msgstr ""
17434
17435 # type: textblock
17436 #: ../fish/guestfish.pod:242
17437 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17438 msgstr ""
17439
17440 # type: verbatim
17441 #: ../fish/guestfish.pod:244
17442 #, no-wrap
17443 msgid ""
17444 " guestfish --ro -d myguest -i\n"
17445 "\n"
17446 msgstr ""
17447
17448 # type: textblock
17449 #: ../fish/guestfish.pod:246
17450 msgid "(for active domains, readonly), or specify the block device directly:"
17451 msgstr ""
17452
17453 # type: verbatim
17454 #: ../fish/guestfish.pod:248
17455 #, no-wrap
17456 msgid ""
17457 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17458 "\n"
17459 msgstr ""
17460
17461 # type: textblock
17462 #: ../fish/guestfish.pod:250
17463 msgid ""
17464 "Note that the command line syntax changed slightly over older versions of "
17465 "guestfish.  You can still use the old syntax:"
17466 msgstr ""
17467
17468 # type: verbatim
17469 #: ../fish/guestfish.pod:253
17470 #, no-wrap
17471 msgid ""
17472 " guestfish [--ro] -i disk.img\n"
17473 "\n"
17474 msgstr ""
17475
17476 # type: verbatim
17477 #: ../fish/guestfish.pod:255
17478 #, no-wrap
17479 msgid ""
17480 " guestfish [--ro] -i libvirt-domain\n"
17481 "\n"
17482 msgstr ""
17483
17484 # type: =item
17485 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17486 msgid "B<--keys-from-stdin>"
17487 msgstr ""
17488
17489 # type: textblock
17490 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17491 msgid ""
17492 "Read key or passphrase parameters from stdin.  The default is to try to read "
17493 "passphrases from the user by opening C</dev/tty>."
17494 msgstr ""
17495
17496 # type: =item
17497 #: ../fish/guestfish.pod:262
17498 msgid "B<--listen>"
17499 msgstr ""
17500
17501 # type: textblock
17502 #: ../fish/guestfish.pod:264
17503 msgid ""
17504 "Fork into the background and listen for remote commands.  See section L</"
17505 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17506 msgstr ""
17507
17508 # type: =item
17509 #: ../fish/guestfish.pod:267
17510 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17511 msgstr ""
17512
17513 # type: textblock
17514 #: ../fish/guestfish.pod:269
17515 msgid "Mount the named partition or logical volume on the given mountpoint."
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish.pod:271
17520 msgid "If the mountpoint is omitted, it defaults to C</>."
17521 msgstr ""
17522
17523 # type: textblock
17524 #: ../fish/guestfish.pod:273
17525 msgid "You have to mount something on C</> before most commands will work."
17526 msgstr ""
17527
17528 # type: textblock
17529 #: ../fish/guestfish.pod:275
17530 msgid ""
17531 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17532 "launched."
17533 msgstr ""
17534
17535 # type: textblock
17536 #: ../fish/guestfish.pod:278
17537 msgid ""
17538 "If you don't know what filesystems a disk image contains, you can either run "
17539 "guestfish without this option, then list the partitions, filesystems and LVs "
17540 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17541 "commands), or you can use the L<virt-filesystems(1)> program."
17542 msgstr ""
17543
17544 # type: =item
17545 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17546 msgid "B<-n> | B<--no-sync>"
17547 msgstr ""
17548
17549 # type: textblock
17550 #: ../fish/guestfish.pod:286
17551 msgid ""
17552 "Disable autosync.  This is enabled by default.  See the discussion of "
17553 "autosync in the L<guestfs(3)> manpage."
17554 msgstr ""
17555
17556 # type: =item
17557 #: ../fish/guestfish.pod:289
17558 msgid "B<-N type> | B<--new type> | B<-N help>"
17559 msgstr ""
17560
17561 # type: textblock
17562 #: ../fish/guestfish.pod:291
17563 msgid ""
17564 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17565 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17566 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17567 "IMAGES> below."
17568 msgstr ""
17569
17570 # type: =item
17571 #: ../fish/guestfish.pod:296
17572 msgid "B<--progress-bars>"
17573 msgstr ""
17574
17575 # type: textblock
17576 #: ../fish/guestfish.pod:298
17577 msgid "Enable progress bars, even when guestfish is used non-interactively."
17578 msgstr ""
17579
17580 # type: textblock
17581 #: ../fish/guestfish.pod:300
17582 msgid ""
17583 "Progress bars are enabled by default when guestfish is used as an "
17584 "interactive shell."
17585 msgstr ""
17586
17587 # type: =item
17588 #: ../fish/guestfish.pod:303
17589 msgid "B<--no-progress-bars>"
17590 msgstr ""
17591
17592 # type: textblock
17593 #: ../fish/guestfish.pod:305
17594 msgid "Disable progress bars."
17595 msgstr ""
17596
17597 # type: =item
17598 #: ../fish/guestfish.pod:307
17599 msgid "B<--remote[=pid]>"
17600 msgstr ""
17601
17602 # type: textblock
17603 #: ../fish/guestfish.pod:309
17604 msgid ""
17605 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17606 "CONTROL GUESTFISH OVER A SOCKET> below."
17607 msgstr ""
17608
17609 # type: =item
17610 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17611 msgid "B<-r> | B<--ro>"
17612 msgstr ""
17613
17614 # type: textblock
17615 #: ../fish/guestfish.pod:314
17616 msgid ""
17617 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17618 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17619 msgstr ""
17620
17621 # type: textblock
17622 #: ../fish/guestfish.pod:317
17623 msgid ""
17624 "The option must always be used if the disk image or virtual machine might be "
17625 "running, and is generally recommended in cases where you don't need write "
17626 "access to the disk."
17627 msgstr ""
17628
17629 # type: textblock
17630 #: ../fish/guestfish.pod:321
17631 msgid ""
17632 "Note that prepared disk images created with I<-N> are not affected by the "
17633 "I<--ro> option."
17634 msgstr ""
17635
17636 # type: textblock
17637 #: ../fish/guestfish.pod:324
17638 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17639 msgstr ""
17640
17641 # type: =item
17642 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17643 msgid "B<--selinux>"
17644 msgstr ""
17645
17646 # type: textblock
17647 #: ../fish/guestfish.pod:328
17648 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17649 msgstr ""
17650
17651 # type: =item
17652 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17653 msgid "B<-v> | B<--verbose>"
17654 msgstr ""
17655
17656 # type: textblock
17657 #: ../fish/guestfish.pod:332
17658 msgid ""
17659 "Enable very verbose messages.  This is particularly useful if you find a bug."
17660 msgstr ""
17661
17662 # type: =item
17663 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17664 msgid "B<-V> | B<--version>"
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish.pod:337
17669 msgid "Display the guestfish / libguestfs version number and exit."
17670 msgstr ""
17671
17672 # type: =item
17673 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17674 msgid "B<-w> | B<--rw>"
17675 msgstr ""
17676
17677 # type: textblock
17678 #: ../fish/guestfish.pod:341
17679 msgid ""
17680 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17681 "WRITE> below."
17682 msgstr ""
17683
17684 # type: =item
17685 #: ../fish/guestfish.pod:344
17686 msgid "B<-x>"
17687 msgstr ""
17688
17689 # type: textblock
17690 #: ../fish/guestfish.pod:346
17691 msgid "Echo each command before executing it."
17692 msgstr ""
17693
17694 # type: =head1
17695 #: ../fish/guestfish.pod:350
17696 msgid "COMMANDS ON COMMAND LINE"
17697 msgstr ""
17698
17699 # type: textblock
17700 #: ../fish/guestfish.pod:352
17701 msgid ""
17702 "Any additional (non-option) arguments are treated as commands to execute."
17703 msgstr ""
17704
17705 # type: textblock
17706 #: ../fish/guestfish.pod:355
17707 msgid ""
17708 "Commands to execute should be separated by a colon (C<:>), where the colon "
17709 "is a separate parameter.  Thus:"
17710 msgstr ""
17711
17712 # type: verbatim
17713 #: ../fish/guestfish.pod:358
17714 #, no-wrap
17715 msgid ""
17716 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17717 "\n"
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish.pod:360
17722 msgid ""
17723 "If there are no additional arguments, then we enter a shell, either an "
17724 "interactive shell with a prompt (if the input is a terminal) or a non-"
17725 "interactive shell."
17726 msgstr ""
17727
17728 # type: textblock
17729 #: ../fish/guestfish.pod:364
17730 msgid ""
17731 "In either command line mode or non-interactive shell, the first command that "
17732 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17733 "prompt) if a command fails, you can continue to enter commands."
17734 msgstr ""
17735
17736 # type: =head1
17737 #: ../fish/guestfish.pod:369
17738 msgid "USING launch (OR run)"
17739 msgstr ""
17740
17741 # type: textblock
17742 #: ../fish/guestfish.pod:371
17743 msgid ""
17744 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17745 "then launch it, then mount any disks you need, and finally issue actions/"
17746 "commands.  So the general order of the day is:"
17747 msgstr ""
17748
17749 # type: textblock
17750 #: ../fish/guestfish.pod:379
17751 msgid "add or -a/--add"
17752 msgstr ""
17753
17754 # type: textblock
17755 #: ../fish/guestfish.pod:383
17756 msgid "launch (aka run)"
17757 msgstr ""
17758
17759 # type: textblock
17760 #: ../fish/guestfish.pod:387
17761 msgid "mount or -m/--mount"
17762 msgstr ""
17763
17764 # type: textblock
17765 #: ../fish/guestfish.pod:391
17766 msgid "any other commands"
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:395
17771 msgid ""
17772 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17773 "guest before mounting or performing any other commands."
17774 msgstr ""
17775
17776 # type: textblock
17777 #: ../fish/guestfish.pod:398
17778 msgid ""
17779 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17780 "I<--new> options were given then C<run> is done automatically, simply "
17781 "because guestfish can't perform the action you asked for without doing this."
17782 msgstr ""
17783
17784 # type: =head1
17785 #: ../fish/guestfish.pod:403
17786 msgid "OPENING DISKS FOR READ AND WRITE"
17787 msgstr ""
17788
17789 # type: textblock
17790 #: ../fish/guestfish.pod:405
17791 msgid ""
17792 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17793 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17794 "open disk images read-only or for writing."
17795 msgstr ""
17796
17797 # type: textblock
17798 #: ../fish/guestfish.pod:409
17799 msgid ""
17800 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17801 "disk images supplied on the command line for write.  To open a disk image "
17802 "read-only you have to do I<-a image --ro>."
17803 msgstr ""
17804
17805 # type: textblock
17806 #: ../fish/guestfish.pod:413
17807 msgid ""
17808 "This matters: If you accidentally open a live VM disk image writable then "
17809 "you will cause irreversible disk corruption."
17810 msgstr ""
17811
17812 # type: textblock
17813 #: ../fish/guestfish.pod:416
17814 msgid ""
17815 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17816 "images will be opened read-only.  You will have to either specify "
17817 "I<guestfish --rw> or change a configuration file in order to get write "
17818 "access for disk images specified by those other command line options."
17819 msgstr ""
17820
17821 # type: textblock
17822 #: ../fish/guestfish.pod:421
17823 msgid ""
17824 "This version of guestfish has a I<--rw> option which does nothing (it is "
17825 "already the default).  However it is highly recommended that you use this "
17826 "option to indicate that guestfish needs write access, and to prepare your "
17827 "scripts for the day when this option will be required for write access."
17828 msgstr ""
17829
17830 # type: textblock
17831 #: ../fish/guestfish.pod:427
17832 msgid ""
17833 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17834 "other libguestfs program apart from guestfish and guestmount."
17835 msgstr ""
17836
17837 # type: =head1
17838 #: ../fish/guestfish.pod:430
17839 msgid "QUOTING"
17840 msgstr ""
17841
17842 # type: textblock
17843 #: ../fish/guestfish.pod:432
17844 msgid ""
17845 "You can quote ordinary parameters using either single or double quotes.  For "
17846 "example:"
17847 msgstr ""
17848
17849 # type: verbatim
17850 #: ../fish/guestfish.pod:435
17851 #, no-wrap
17852 msgid ""
17853 " add \"file with a space.img\"\n"
17854 "\n"
17855 msgstr ""
17856
17857 # type: verbatim
17858 #: ../fish/guestfish.pod:437
17859 #, no-wrap
17860 msgid ""
17861 " rm '/file name'\n"
17862 "\n"
17863 msgstr ""
17864
17865 # type: verbatim
17866 #: ../fish/guestfish.pod:439
17867 #, no-wrap
17868 msgid ""
17869 " rm '/\"'\n"
17870 "\n"
17871 msgstr ""
17872
17873 # type: textblock
17874 #: ../fish/guestfish.pod:441
17875 msgid ""
17876 "A few commands require a list of strings to be passed.  For these, use a "
17877 "whitespace-separated list, enclosed in quotes.  Strings containing "
17878 "whitespace to be passed through must be enclosed in single quotes.  A "
17879 "literal single quote must be escaped with a backslash."
17880 msgstr ""
17881
17882 # type: verbatim
17883 #: ../fish/guestfish.pod:446
17884 #, no-wrap
17885 msgid ""
17886 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17887 " command \"/bin/echo 'foo      bar'\"\n"
17888 " command \"/bin/echo \\'foo\\'\"\n"
17889 "\n"
17890 msgstr ""
17891
17892 # type: =head1
17893 #: ../fish/guestfish.pod:450
17894 msgid "OPTIONAL ARGUMENTS"
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish.pod:452
17899 msgid ""
17900 "Some commands take optional arguments.  These arguments appear in this "
17901 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17902 msgstr ""
17903
17904 # type: verbatim
17905 #: ../fish/guestfish.pod:456
17906 #, no-wrap
17907 msgid ""
17908 " add-drive-opts filename\n"
17909 "\n"
17910 msgstr ""
17911
17912 # type: verbatim
17913 #: ../fish/guestfish.pod:458
17914 #, no-wrap
17915 msgid ""
17916 " add-drive-opts filename readonly:true\n"
17917 "\n"
17918 msgstr ""
17919
17920 # type: verbatim
17921 #: ../fish/guestfish.pod:460
17922 #, no-wrap
17923 msgid ""
17924 " add-drive-opts filename format:qcow2 readonly:false\n"
17925 "\n"
17926 msgstr ""
17927
17928 # type: textblock
17929 #: ../fish/guestfish.pod:462
17930 msgid ""
17931 "Each optional argument can appear at most once.  All optional arguments must "
17932 "appear after the required ones."
17933 msgstr ""
17934
17935 # type: =head1
17936 #: ../fish/guestfish.pod:465
17937 msgid "NUMBERS"
17938 msgstr ""
17939
17940 # type: textblock
17941 #: ../fish/guestfish.pod:467
17942 msgid ""
17943 "This section applies to all commands which can take integers as parameters."
17944 msgstr ""
17945
17946 # type: =head2
17947 #: ../fish/guestfish.pod:470
17948 msgid "SIZE SUFFIX"
17949 msgstr ""
17950
17951 # type: textblock
17952 #: ../fish/guestfish.pod:472
17953 msgid ""
17954 "When the command takes a parameter measured in bytes, you can use one of the "
17955 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17956 msgstr ""
17957
17958 # type: =item
17959 #: ../fish/guestfish.pod:478
17960 msgid "B<k> or B<K> or B<KiB>"
17961 msgstr ""
17962
17963 # type: textblock
17964 #: ../fish/guestfish.pod:480
17965 msgid "The size in kilobytes (multiplied by 1024)."
17966 msgstr ""
17967
17968 # type: =item
17969 #: ../fish/guestfish.pod:482
17970 msgid "B<KB>"
17971 msgstr ""
17972
17973 # type: textblock
17974 #: ../fish/guestfish.pod:484
17975 msgid "The size in SI 1000 byte units."
17976 msgstr ""
17977
17978 # type: =item
17979 #: ../fish/guestfish.pod:486
17980 msgid "B<M> or B<MiB>"
17981 msgstr ""
17982
17983 # type: textblock
17984 #: ../fish/guestfish.pod:488
17985 msgid "The size in megabytes (multiplied by 1048576)."
17986 msgstr ""
17987
17988 # type: =item
17989 #: ../fish/guestfish.pod:490
17990 msgid "B<MB>"
17991 msgstr ""
17992
17993 # type: textblock
17994 #: ../fish/guestfish.pod:492
17995 msgid "The size in SI 1000000 byte units."
17996 msgstr ""
17997
17998 # type: =item
17999 #: ../fish/guestfish.pod:494
18000 msgid "B<G> or B<GiB>"
18001 msgstr ""
18002
18003 # type: textblock
18004 #: ../fish/guestfish.pod:496
18005 msgid "The size in gigabytes (multiplied by 2**30)."
18006 msgstr ""
18007
18008 # type: =item
18009 #: ../fish/guestfish.pod:498
18010 msgid "B<GB>"
18011 msgstr ""
18012
18013 # type: textblock
18014 #: ../fish/guestfish.pod:500
18015 msgid "The size in SI 10**9 byte units."
18016 msgstr ""
18017
18018 # type: =item
18019 #: ../fish/guestfish.pod:502
18020 msgid "B<T> or B<TiB>"
18021 msgstr ""
18022
18023 # type: textblock
18024 #: ../fish/guestfish.pod:504
18025 msgid "The size in terabytes (multiplied by 2**40)."
18026 msgstr ""
18027
18028 # type: =item
18029 #: ../fish/guestfish.pod:506
18030 msgid "B<TB>"
18031 msgstr ""
18032
18033 # type: textblock
18034 #: ../fish/guestfish.pod:508
18035 msgid "The size in SI 10**12 byte units."
18036 msgstr ""
18037
18038 # type: =item
18039 #: ../fish/guestfish.pod:510
18040 msgid "B<P> or B<PiB>"
18041 msgstr ""
18042
18043 # type: textblock
18044 #: ../fish/guestfish.pod:512
18045 msgid "The size in petabytes (multiplied by 2**50)."
18046 msgstr ""
18047
18048 # type: =item
18049 #: ../fish/guestfish.pod:514
18050 msgid "B<PB>"
18051 msgstr ""
18052
18053 # type: textblock
18054 #: ../fish/guestfish.pod:516
18055 msgid "The size in SI 10**15 byte units."
18056 msgstr ""
18057
18058 # type: =item
18059 #: ../fish/guestfish.pod:518
18060 msgid "B<E> or B<EiB>"
18061 msgstr ""
18062
18063 # type: textblock
18064 #: ../fish/guestfish.pod:520
18065 msgid "The size in exabytes (multiplied by 2**60)."
18066 msgstr ""
18067
18068 # type: =item
18069 #: ../fish/guestfish.pod:522
18070 msgid "B<EB>"
18071 msgstr ""
18072
18073 # type: textblock
18074 #: ../fish/guestfish.pod:524
18075 msgid "The size in SI 10**18 byte units."
18076 msgstr ""
18077
18078 # type: =item
18079 #: ../fish/guestfish.pod:526
18080 msgid "B<Z> or B<ZiB>"
18081 msgstr ""
18082
18083 # type: textblock
18084 #: ../fish/guestfish.pod:528
18085 msgid "The size in zettabytes (multiplied by 2**70)."
18086 msgstr ""
18087
18088 # type: =item
18089 #: ../fish/guestfish.pod:530
18090 msgid "B<ZB>"
18091 msgstr ""
18092
18093 # type: textblock
18094 #: ../fish/guestfish.pod:532
18095 msgid "The size in SI 10**21 byte units."
18096 msgstr ""
18097
18098 # type: =item
18099 #: ../fish/guestfish.pod:534
18100 msgid "B<Y> or B<YiB>"
18101 msgstr ""
18102
18103 # type: textblock
18104 #: ../fish/guestfish.pod:536
18105 msgid "The size in yottabytes (multiplied by 2**80)."
18106 msgstr ""
18107
18108 # type: =item
18109 #: ../fish/guestfish.pod:538
18110 msgid "B<YB>"
18111 msgstr ""
18112
18113 # type: textblock
18114 #: ../fish/guestfish.pod:540
18115 msgid "The size in SI 10**24 byte units."
18116 msgstr ""
18117
18118 # type: verbatim
18119 #: ../fish/guestfish.pod:546
18120 #, no-wrap
18121 msgid ""
18122 " truncate-size /file 1G\n"
18123 "\n"
18124 msgstr ""
18125
18126 # type: textblock
18127 #: ../fish/guestfish.pod:548
18128 msgid "would truncate the file to 1 gigabyte."
18129 msgstr ""
18130
18131 # type: textblock
18132 #: ../fish/guestfish.pod:550
18133 msgid ""
18134 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18135 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18136 "suffix will probably not do what you expect."
18137 msgstr ""
18138
18139 # type: =head2
18140 #: ../fish/guestfish.pod:554
18141 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18142 msgstr ""
18143
18144 # type: textblock
18145 #: ../fish/guestfish.pod:556
18146 msgid ""
18147 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18148 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18149 msgstr ""
18150
18151 # type: verbatim
18152 #: ../fish/guestfish.pod:559
18153 #, no-wrap
18154 msgid ""
18155 " 1234      decimal number 1234\n"
18156 " 02322     octal number, equivalent to decimal 1234\n"
18157 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18158 "\n"
18159 msgstr ""
18160
18161 # type: textblock
18162 #: ../fish/guestfish.pod:563
18163 msgid ""
18164 "When using the C<chmod> command, you almost always want to specify an octal "
18165 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18166 "L<chmod(1)> program):"
18167 msgstr ""
18168
18169 # type: verbatim
18170 #: ../fish/guestfish.pod:567
18171 #, no-wrap
18172 msgid ""
18173 " chmod 0777 /public  # OK\n"
18174 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18175 "\n"
18176 msgstr ""
18177
18178 # type: textblock
18179 #: ../fish/guestfish.pod:570
18180 msgid ""
18181 "Commands that return numbers usually print them in decimal, but some "
18182 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18183 "octal, preceeded by C<0>)."
18184 msgstr ""
18185
18186 # type: =head1
18187 #: ../fish/guestfish.pod:574
18188 msgid "WILDCARDS AND GLOBBING"
18189 msgstr ""
18190
18191 # type: textblock
18192 #: ../fish/guestfish.pod:576
18193 msgid ""
18194 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18195 "(globbing) by default.  So for example the following will not do what you "
18196 "expect:"
18197 msgstr ""
18198
18199 # type: verbatim
18200 #: ../fish/guestfish.pod:580
18201 #, no-wrap
18202 msgid ""
18203 " rm-rf /home/*\n"
18204 "\n"
18205 msgstr ""
18206
18207 # type: textblock
18208 #: ../fish/guestfish.pod:582
18209 msgid ""
18210 "Assuming you don't have a directory called literally C</home/*> then the "
18211 "above command will return an error."
18212 msgstr ""
18213
18214 # type: textblock
18215 #: ../fish/guestfish.pod:585
18216 msgid "To perform wildcard expansion, use the C<glob> command."
18217 msgstr ""
18218
18219 # type: verbatim
18220 #: ../fish/guestfish.pod:587
18221 #, no-wrap
18222 msgid ""
18223 " glob rm-rf /home/*\n"
18224 "\n"
18225 msgstr ""
18226
18227 # type: textblock
18228 #: ../fish/guestfish.pod:589
18229 msgid ""
18230 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18231 "many times), equivalent to:"
18232 msgstr ""
18233
18234 # type: verbatim
18235 #: ../fish/guestfish.pod:592
18236 #, no-wrap
18237 msgid ""
18238 " rm-rf /home/jim\n"
18239 " rm-rf /home/joe\n"
18240 " rm-rf /home/mary\n"
18241 "\n"
18242 msgstr ""
18243
18244 # type: textblock
18245 #: ../fish/guestfish.pod:596
18246 msgid "C<glob> only works on simple guest paths and not on device names."
18247 msgstr ""
18248
18249 # type: textblock
18250 #: ../fish/guestfish.pod:598
18251 msgid ""
18252 "If you have several parameters, each containing a wildcard, then glob will "
18253 "perform a Cartesian product."
18254 msgstr ""
18255
18256 # type: =head1
18257 #: ../fish/guestfish.pod:601
18258 msgid "COMMENTS"
18259 msgstr ""
18260
18261 # type: textblock
18262 #: ../fish/guestfish.pod:603
18263 msgid ""
18264 "Any line which starts with a I<#> character is treated as a comment and "
18265 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18266 "a command.  For example:"
18267 msgstr ""
18268
18269 # type: verbatim
18270 #: ../fish/guestfish.pod:607
18271 #, no-wrap
18272 msgid ""
18273 " # this is a comment\n"
18274 "         # this is a comment\n"
18275 " foo # NOT a comment\n"
18276 "\n"
18277 msgstr ""
18278
18279 # type: textblock
18280 #: ../fish/guestfish.pod:611
18281 msgid "Blank lines are also ignored."
18282 msgstr ""
18283
18284 # type: =head1
18285 #: ../fish/guestfish.pod:613
18286 msgid "RUNNING COMMANDS LOCALLY"
18287 msgstr ""
18288
18289 # type: textblock
18290 #: ../fish/guestfish.pod:615
18291 msgid ""
18292 "Any line which starts with a I<!> character is treated as a command sent to "
18293 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18294 msgstr ""
18295
18296 # type: verbatim
18297 #: ../fish/guestfish.pod:619
18298 #, no-wrap
18299 msgid ""
18300 " !mkdir local\n"
18301 " tgz-out /remote local/remote-data.tar.gz\n"
18302 "\n"
18303 msgstr ""
18304
18305 # type: textblock
18306 #: ../fish/guestfish.pod:622
18307 msgid ""
18308 "will create a directory C<local> on the host, and then export the contents "
18309 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18310 "(See C<tgz-out>)."
18311 msgstr ""
18312
18313 # type: textblock
18314 #: ../fish/guestfish.pod:626
18315 msgid ""
18316 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18317 "effect, due to the way that subprocesses work in Unix."
18318 msgstr ""
18319
18320 # type: =head1
18321 #: ../fish/guestfish.pod:629
18322 msgid "PIPES"
18323 msgstr ""
18324
18325 # type: textblock
18326 #: ../fish/guestfish.pod:631
18327 msgid ""
18328 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18329 "command (a guestfish command) to the second command (any host command).  For "
18330 "example:"
18331 msgstr ""
18332
18333 # type: verbatim
18334 #: ../fish/guestfish.pod:635
18335 #, no-wrap
18336 msgid ""
18337 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18338 "\n"
18339 msgstr ""
18340
18341 # type: textblock
18342 #: ../fish/guestfish.pod:637
18343 msgid ""
18344 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18345 "program).  The above command would list all accounts in the guest filesystem "
18346 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18347 msgstr ""
18348
18349 # type: verbatim
18350 #: ../fish/guestfish.pod:642
18351 #, no-wrap
18352 msgid ""
18353 " hexdump /bin/ls | head\n"
18354 " list-devices | tail -1\n"
18355 " tgz-out / - | tar ztf -\n"
18356 "\n"
18357 msgstr ""
18358
18359 # type: textblock
18360 #: ../fish/guestfish.pod:646
18361 msgid ""
18362 "The space before the pipe symbol is required, any space after the pipe "
18363 "symbol is optional.  Everything after the pipe symbol is just passed "
18364 "straight to the host shell, so it can contain redirections, globs and "
18365 "anything else that makes sense on the host side."
18366 msgstr ""
18367
18368 # type: textblock
18369 #: ../fish/guestfish.pod:651
18370 msgid ""
18371 "To use a literal argument which begins with a pipe symbol, you have to quote "
18372 "it, eg:"
18373 msgstr ""
18374
18375 # type: verbatim
18376 #: ../fish/guestfish.pod:654
18377 #, no-wrap
18378 msgid ""
18379 " echo \"|\"\n"
18380 "\n"
18381 msgstr ""
18382
18383 # type: =head1
18384 #: ../fish/guestfish.pod:656
18385 msgid "HOME DIRECTORIES"
18386 msgstr ""
18387
18388 # type: textblock
18389 #: ../fish/guestfish.pod:658
18390 msgid ""
18391 "If a parameter starts with the character C<~> then the tilde may be expanded "
18392 "as a home directory path (either C<~> for the current user's home directory, "
18393 "or C<~user> for another user)."
18394 msgstr ""
18395
18396 # type: textblock
18397 #: ../fish/guestfish.pod:662
18398 msgid ""
18399 "Note that home directory expansion happens for users known I<on the host>, "
18400 "not in the guest filesystem."
18401 msgstr ""
18402
18403 # type: textblock
18404 #: ../fish/guestfish.pod:665
18405 msgid ""
18406 "To use a literal argument which begins with a tilde, you have to quote it, "
18407 "eg:"
18408 msgstr ""
18409
18410 # type: verbatim
18411 #: ../fish/guestfish.pod:668
18412 #, no-wrap
18413 msgid ""
18414 " echo \"~\"\n"
18415 "\n"
18416 msgstr ""
18417
18418 # type: textblock
18419 #: ../fish/guestfish.pod:672
18420 msgid ""
18421 "Libguestfs has some support for Linux guests encrypted according to the "
18422 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18423 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18424 "LUKS is supported."
18425 msgstr ""
18426
18427 # type: textblock
18428 #: ../fish/guestfish.pod:677
18429 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18430 msgstr ""
18431
18432 # type: verbatim
18433 #: ../fish/guestfish.pod:679
18434 #, no-wrap
18435 msgid ""
18436 " ><fs> vfs-type /dev/sda2\n"
18437 " crypto_LUKS\n"
18438 "\n"
18439 msgstr ""
18440
18441 # type: textblock
18442 #: ../fish/guestfish.pod:682
18443 msgid ""
18444 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18445 "device called C</dev/mapper/luksdev>."
18446 msgstr ""
18447
18448 # type: verbatim
18449 #: ../fish/guestfish.pod:685
18450 #, no-wrap
18451 msgid ""
18452 " ><fs> luks-open /dev/sda2 luksdev\n"
18453 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18454 "\n"
18455 msgstr ""
18456
18457 # type: textblock
18458 #: ../fish/guestfish.pod:688
18459 msgid ""
18460 "Finally you have to tell LVM to scan for volume groups on the newly created "
18461 "mapper device:"
18462 msgstr ""
18463
18464 # type: verbatim
18465 #: ../fish/guestfish.pod:691
18466 #, no-wrap
18467 msgid ""
18468 " vgscan\n"
18469 " vg-activate-all true\n"
18470 "\n"
18471 msgstr ""
18472
18473 # type: textblock
18474 #: ../fish/guestfish.pod:694
18475 msgid "The logical volume(s) can now be mounted in the usual way."
18476 msgstr ""
18477
18478 # type: textblock
18479 #: ../fish/guestfish.pod:696
18480 msgid ""
18481 "Before closing a LUKS device you must unmount any logical volumes on it and "
18482 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18483 "one.  Then you can close the mapper device:"
18484 msgstr ""
18485
18486 # type: verbatim
18487 #: ../fish/guestfish.pod:700
18488 #, no-wrap
18489 msgid ""
18490 " vg-activate false /dev/VG\n"
18491 " luks-close /dev/mapper/luksdev\n"
18492 "\n"
18493 msgstr ""
18494
18495 # type: =head1
18496 #: ../fish/guestfish.pod:703
18497 msgid "WINDOWS PATHS"
18498 msgstr ""
18499
18500 # type: textblock
18501 #: ../fish/guestfish.pod:705
18502 msgid ""
18503 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18504 "(with some limitations).  The following commands are equivalent:"
18505 msgstr ""
18506
18507 # type: verbatim
18508 #: ../fish/guestfish.pod:708
18509 #, no-wrap
18510 msgid ""
18511 " file /WINDOWS/system32/config/system.LOG\n"
18512 "\n"
18513 msgstr ""
18514
18515 # type: verbatim
18516 #: ../fish/guestfish.pod:710
18517 #, no-wrap
18518 msgid ""
18519 " file win:/windows/system32/config/system.log\n"
18520 "\n"
18521 msgstr ""
18522
18523 # type: verbatim
18524 #: ../fish/guestfish.pod:712
18525 #, no-wrap
18526 msgid ""
18527 " file win:\\windows\\system32\\config\\system.log\n"
18528 "\n"
18529 msgstr ""
18530
18531 # type: verbatim
18532 #: ../fish/guestfish.pod:714
18533 #, no-wrap
18534 msgid ""
18535 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18536 "\n"
18537 msgstr ""
18538
18539 # type: textblock
18540 #: ../fish/guestfish.pod:716
18541 msgid ""
18542 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18543 "handles case insensitivity like Windows would.  This only works in argument "
18544 "positions that expect a path."
18545 msgstr ""
18546
18547 # type: =head1
18548 #: ../fish/guestfish.pod:720
18549 msgid "UPLOADING AND DOWNLOADING FILES"
18550 msgstr ""
18551
18552 # type: textblock
18553 #: ../fish/guestfish.pod:722
18554 msgid ""
18555 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18556 "others which upload from or download to a local file, you can use the "
18557 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18558 msgstr ""
18559
18560 # type: verbatim
18561 #: ../fish/guestfish.pod:726
18562 #, no-wrap
18563 msgid ""
18564 " upload - /foo\n"
18565 "\n"
18566 msgstr ""
18567
18568 # type: textblock
18569 #: ../fish/guestfish.pod:728
18570 msgid ""
18571 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18572 msgstr ""
18573
18574 # type: verbatim
18575 #: ../fish/guestfish.pod:731
18576 #, no-wrap
18577 msgid ""
18578 " tar-out /etc - | tar tf -\n"
18579 "\n"
18580 msgstr ""
18581
18582 # type: textblock
18583 #: ../fish/guestfish.pod:733
18584 msgid ""
18585 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18586 "command (see L</PIPES>)."
18587 msgstr ""
18588
18589 # type: textblock
18590 #: ../fish/guestfish.pod:736
18591 msgid ""
18592 "When using C<-> to read from stdin, the input is read up to the end of "
18593 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18594 "some arbitrary end marker:"
18595 msgstr ""
18596
18597 # type: verbatim
18598 #: ../fish/guestfish.pod:740
18599 #, no-wrap
18600 msgid ""
18601 " upload -<<END /foo\n"
18602 " input line 1\n"
18603 " input line 2\n"
18604 " input line 3\n"
18605 " END\n"
18606 "\n"
18607 msgstr ""
18608
18609 # type: textblock
18610 #: ../fish/guestfish.pod:746
18611 msgid ""
18612 "Any string of characters can be used instead of C<END>.  The end marker must "
18613 "appear on a line of its own, without any preceeding or following characters "
18614 "(not even spaces)."
18615 msgstr ""
18616
18617 # type: textblock
18618 #: ../fish/guestfish.pod:750
18619 msgid ""
18620 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18621 "upload local files (so-called \"FileIn\" parameters in the generator)."
18622 msgstr ""
18623
18624 # type: =head1
18625 #: ../fish/guestfish.pod:753
18626 msgid "EXIT ON ERROR BEHAVIOUR"
18627 msgstr ""
18628
18629 # type: textblock
18630 #: ../fish/guestfish.pod:755
18631 msgid ""
18632 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18633 "taking commands from a human over a tty), and will exit on the first error "
18634 "in non-interactive mode (scripts, commands given on the command line)."
18635 msgstr ""
18636
18637 # type: textblock
18638 #: ../fish/guestfish.pod:760
18639 msgid ""
18640 "If you prefix a command with a I<-> character, then that command will not "
18641 "cause guestfish to exit, even if that (one) command returns an error."
18642 msgstr ""
18643
18644 # type: =head1
18645 #: ../fish/guestfish.pod:764
18646 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18647 msgstr ""
18648
18649 # type: textblock
18650 #: ../fish/guestfish.pod:766
18651 msgid ""
18652 "Guestfish can be remote-controlled over a socket.  This is useful "
18653 "particularly in shell scripts where you want to make several different "
18654 "changes to a filesystem, but you don't want the overhead of starting up a "
18655 "guestfish process each time."
18656 msgstr ""
18657
18658 # type: textblock
18659 #: ../fish/guestfish.pod:771
18660 msgid "Start a guestfish server process using:"
18661 msgstr ""
18662
18663 # type: verbatim
18664 #: ../fish/guestfish.pod:773
18665 #, no-wrap
18666 msgid ""
18667 " eval \"`guestfish --listen`\"\n"
18668 "\n"
18669 msgstr ""
18670
18671 # type: textblock
18672 #: ../fish/guestfish.pod:775
18673 msgid "and then send it commands by doing:"
18674 msgstr ""
18675
18676 # type: verbatim
18677 #: ../fish/guestfish.pod:777
18678 #, no-wrap
18679 msgid ""
18680 " guestfish --remote cmd [...]\n"
18681 "\n"
18682 msgstr ""
18683
18684 # type: textblock
18685 #: ../fish/guestfish.pod:779
18686 msgid "To cause the server to exit, send it the exit command:"
18687 msgstr ""
18688
18689 # type: verbatim
18690 #: ../fish/guestfish.pod:781
18691 #, no-wrap
18692 msgid ""
18693 " guestfish --remote exit\n"
18694 "\n"
18695 msgstr ""
18696
18697 # type: textblock
18698 #: ../fish/guestfish.pod:783
18699 msgid ""
18700 "Note that the server will normally exit if there is an error in a command.  "
18701 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18702 "BEHAVIOUR>."
18703 msgstr ""
18704
18705 # type: =head2
18706 #: ../fish/guestfish.pod:787
18707 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18708 msgstr ""
18709
18710 # type: textblock
18711 #: ../fish/guestfish.pod:789
18712 msgid ""
18713 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18714 "is how the I<--remote> option knows where to send the commands.  You can "
18715 "have several guestfish listener processes running using:"
18716 msgstr ""
18717
18718 # type: verbatim
18719 #: ../fish/guestfish.pod:793
18720 #, no-wrap
18721 msgid ""
18722 " eval \"`guestfish --listen`\"\n"
18723 " pid1=$GUESTFISH_PID\n"
18724 " eval \"`guestfish --listen`\"\n"
18725 " pid2=$GUESTFISH_PID\n"
18726 " ...\n"
18727 " guestfish --remote=$pid1 cmd\n"
18728 " guestfish --remote=$pid2 cmd\n"
18729 "\n"
18730 msgstr ""
18731
18732 # type: =head2
18733 #: ../fish/guestfish.pod:801
18734 msgid "REMOTE CONTROL AND CSH"
18735 msgstr ""
18736
18737 # type: textblock
18738 #: ../fish/guestfish.pod:803
18739 msgid ""
18740 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18741 "option:"
18742 msgstr ""
18743
18744 # type: verbatim
18745 #: ../fish/guestfish.pod:806
18746 #, no-wrap
18747 msgid ""
18748 " eval \"`guestfish --listen --csh`\"\n"
18749 "\n"
18750 msgstr ""
18751
18752 # type: =head2
18753 #: ../fish/guestfish.pod:808
18754 msgid "REMOTE CONTROL DETAILS"
18755 msgstr ""
18756
18757 # type: textblock
18758 #: ../fish/guestfish.pod:810
18759 msgid ""
18760 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18761 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18762 "and C<$PID> is the process ID of the server."
18763 msgstr ""
18764
18765 # type: textblock
18766 #: ../fish/guestfish.pod:814
18767 msgid "Guestfish client and server versions must match exactly."
18768 msgstr ""
18769
18770 # type: =head1
18771 #: ../fish/guestfish.pod:816
18772 msgid "PREPARED DISK IMAGES"
18773 msgstr ""
18774
18775 # type: textblock
18776 #: ../fish/guestfish.pod:818
18777 msgid ""
18778 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18779 "preformatted disk images that guestfish can make for you to save typing.  "
18780 "This is particularly useful for testing purposes.  This option is used "
18781 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18782 "can be mixed with I<-a>)."
18783 msgstr ""
18784
18785 # type: textblock
18786 #: ../fish/guestfish.pod:824
18787 msgid ""
18788 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18789 "the second and so on.  Existing files in the current directory are "
18790 "I<overwritten>."
18791 msgstr ""
18792
18793 # type: textblock
18794 #: ../fish/guestfish.pod:828
18795 msgid ""
18796 "The type briefly describes how the disk should be sized, partitioned, how "
18797 "filesystem(s) should be created, and how content should be added.  "
18798 "Optionally the type can be followed by extra parameters, separated by C<:> "
18799 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18800 "allocated disk, containing a single partition, with the partition formatted "
18801 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18802 "disk instead."
18803 msgstr ""
18804
18805 # type: textblock
18806 #: ../fish/guestfish.pod:836
18807 msgid "To list the available types and any extra parameters they take, run:"
18808 msgstr ""
18809
18810 # type: textblock
18811 #: ../fish/guestfish.pod:840
18812 msgid ""
18813 "Note that the prepared filesystem is not mounted.  You would usually have to "
18814 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18815 msgstr ""
18816
18817 # type: textblock
18818 #: ../fish/guestfish.pod:844
18819 msgid ""
18820 "If any I<-N> or I<--new> options are given, the guest is automatically "
18821 "launched."
18822 msgstr ""
18823
18824 # type: textblock
18825 #: ../fish/guestfish.pod:849
18826 msgid "Create a 100MB disk with an ext4-formatted partition:"
18827 msgstr ""
18828
18829 # type: verbatim
18830 #: ../fish/guestfish.pod:851
18831 #, no-wrap
18832 msgid ""
18833 " guestfish -N fs:ext4\n"
18834 "\n"
18835 msgstr ""
18836
18837 # type: textblock
18838 #: ../fish/guestfish.pod:853
18839 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18840 msgstr ""
18841
18842 # type: verbatim
18843 #: ../fish/guestfish.pod:855
18844 #, no-wrap
18845 msgid ""
18846 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18847 "\n"
18848 msgstr ""
18849
18850 # type: textblock
18851 #: ../fish/guestfish.pod:857
18852 msgid "Create a blank 200MB disk:"
18853 msgstr ""
18854
18855 # type: verbatim
18856 #: ../fish/guestfish.pod:859
18857 #, no-wrap
18858 msgid ""
18859 " guestfish -N disk:200M\n"
18860 "\n"
18861 msgstr ""
18862
18863 # type: =head1
18864 #: ../fish/guestfish.pod:861
18865 msgid "PROGRESS BARS"
18866 msgstr ""
18867
18868 # type: textblock
18869 #: ../fish/guestfish.pod:863
18870 msgid ""
18871 "Some (not all) long-running commands send progress notification messages as "
18872 "they are running.  Guestfish turns these messages into progress bars."
18873 msgstr ""
18874
18875 # type: textblock
18876 #: ../fish/guestfish.pod:867
18877 msgid ""
18878 "When a command that supports progress bars takes longer than two seconds to "
18879 "run, and if progress bars are enabled, then you will see one appearing below "
18880 "the command:"
18881 msgstr ""
18882
18883 # type: verbatim
18884 #: ../fish/guestfish.pod:871
18885 #, no-wrap
18886 msgid ""
18887 " ><fs> copy-size /large-file /another-file 2048M\n"
18888 " / 10% [#####-----------------------------------------] 00:30\n"
18889 "\n"
18890 msgstr ""
18891
18892 # type: textblock
18893 #: ../fish/guestfish.pod:874
18894 msgid ""
18895 "The spinner on the left hand side moves round once for every progress "
18896 "notification received from the backend.  This is a (reasonably) golden "
18897 "assurance that the command is \"doing something\" even if the progress bar "
18898 "is not moving, because the command is able to send the progress "
18899 "notifications.  When the bar reaches 100% and the command finishes, the "
18900 "spinner disappears."
18901 msgstr ""
18902
18903 # type: textblock
18904 #: ../fish/guestfish.pod:881
18905 msgid ""
18906 "Progress bars are enabled by default when guestfish is used interactively.  "
18907 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18908 "and you can disable them completely using I<--no-progress-bars>."
18909 msgstr ""
18910
18911 # type: =head1
18912 #: ../fish/guestfish.pod:886
18913 msgid "GUESTFISH COMMANDS"
18914 msgstr ""
18915
18916 # type: textblock
18917 #: ../fish/guestfish.pod:888
18918 msgid ""
18919 "The commands in this section are guestfish convenience commands, in other "
18920 "words, they are not part of the L<guestfs(3)> API."
18921 msgstr ""
18922
18923 # type: =head2
18924 #: ../fish/guestfish.pod:891
18925 msgid "help"
18926 msgstr ""
18927
18928 # type: verbatim
18929 #: ../fish/guestfish.pod:893
18930 #, no-wrap
18931 msgid ""
18932 " help\n"
18933 " help cmd\n"
18934 "\n"
18935 msgstr ""
18936
18937 # type: textblock
18938 #: ../fish/guestfish.pod:896
18939 msgid "Without any parameter, this provides general help."
18940 msgstr ""
18941
18942 # type: textblock
18943 #: ../fish/guestfish.pod:898
18944 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18945 msgstr ""
18946
18947 # type: =head2
18948 #: ../fish/guestfish.pod:900
18949 msgid "quit | exit"
18950 msgstr ""
18951
18952 # type: textblock
18953 #: ../fish/guestfish.pod:902
18954 msgid "This exits guestfish.  You can also use C<^D> key."
18955 msgstr ""
18956
18957 # type: textblock
18958 #: ../fish/guestfish.pod:904
18959 msgid "@FISH_COMMANDS@"
18960 msgstr ""
18961
18962 # type: =head1
18963 #: ../fish/guestfish.pod:906
18964 msgid "COMMANDS"
18965 msgstr ""
18966
18967 # type: =head1
18968 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18969 msgid "EXIT CODE"
18970 msgstr ""
18971
18972 # type: textblock
18973 #: ../fish/guestfish.pod:912
18974 msgid ""
18975 "guestfish returns 0 if the commands completed without error, or 1 if there "
18976 "was an error."
18977 msgstr ""
18978
18979 # type: =item
18980 #: ../fish/guestfish.pod:919
18981 msgid "EDITOR"
18982 msgstr ""
18983
18984 # type: textblock
18985 #: ../fish/guestfish.pod:921
18986 msgid ""
18987 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18988 "C<vi>."
18989 msgstr ""
18990
18991 # type: =item
18992 #: ../fish/guestfish.pod:924
18993 msgid "GUESTFISH_PID"
18994 msgstr ""
18995
18996 # type: textblock
18997 #: ../fish/guestfish.pod:926
18998 msgid ""
18999 "Used with the I<--remote> option to specify the remote guestfish process to "
19000 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19001 msgstr ""
19002
19003 # type: =item
19004 #: ../fish/guestfish.pod:930
19005 msgid "HEXEDITOR"
19006 msgstr ""
19007
19008 # type: textblock
19009 #: ../fish/guestfish.pod:932
19010 msgid ""
19011 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19012 "not specified, the external L<hexedit(1)> program is used."
19013 msgstr ""
19014
19015 # type: =item
19016 #: ../fish/guestfish.pod:936
19017 msgid "HOME"
19018 msgstr ""
19019
19020 # type: textblock
19021 #: ../fish/guestfish.pod:938
19022 msgid ""
19023 "If compiled with GNU readline support, various files in the home directory "
19024 "can be used.  See L</FILES>."
19025 msgstr ""
19026
19027 # type: textblock
19028 #: ../fish/guestfish.pod:947
19029 msgid ""
19030 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19031 "effect as using the B<-v> option."
19032 msgstr ""
19033
19034 # type: textblock
19035 #: ../fish/guestfish.pod:959
19036 msgid ""
19037 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19038 "the discussion of paths in L<guestfs(3)>."
19039 msgstr ""
19040
19041 # type: textblock
19042 #: ../fish/guestfish.pod:970
19043 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19044 msgstr ""
19045
19046 # type: =item
19047 #: ../fish/guestfish.pod:972
19048 msgid "PAGER"
19049 msgstr ""
19050
19051 # type: textblock
19052 #: ../fish/guestfish.pod:974
19053 msgid ""
19054 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19055 "C<more>."
19056 msgstr ""
19057
19058 # type: =head1
19059 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
19060 msgid "FILES"
19061 msgstr ""
19062
19063 # type: =item
19064 #: ../fish/guestfish.pod:993
19065 msgid "$HOME/.guestfish"
19066 msgstr ""
19067
19068 # type: textblock
19069 #: ../fish/guestfish.pod:995
19070 msgid ""
19071 "If compiled with GNU readline support, then the command history is saved in "
19072 "this file."
19073 msgstr ""
19074
19075 # type: =item
19076 #: ../fish/guestfish.pod:998
19077 msgid "$HOME/.inputrc"
19078 msgstr ""
19079
19080 # type: =item
19081 #: ../fish/guestfish.pod:1000
19082 msgid "/etc/inputrc"
19083 msgstr ""
19084
19085 # type: textblock
19086 #: ../fish/guestfish.pod:1002
19087 msgid ""
19088 "If compiled with GNU readline support, then these files can be used to "
19089 "configure readline.  For further information, please see L<readline(3)/"
19090 "INITIALIZATION FILE>."
19091 msgstr ""
19092
19093 # type: textblock
19094 #: ../fish/guestfish.pod:1006
19095 msgid "To write rules which only apply to guestfish, use:"
19096 msgstr ""
19097
19098 # type: verbatim
19099 #: ../fish/guestfish.pod:1008
19100 #, no-wrap
19101 msgid ""
19102 " $if guestfish\n"
19103 " ...\n"
19104 " $endif\n"
19105 "\n"
19106 msgstr ""
19107
19108 # type: textblock
19109 #: ../fish/guestfish.pod:1012
19110 msgid ""
19111 "Variables that you can set in inputrc that change the behaviour of guestfish "
19112 "in useful ways include:"
19113 msgstr ""
19114
19115 # type: =item
19116 #: ../fish/guestfish.pod:1017
19117 msgid "completion-ignore-case (default: on)"
19118 msgstr ""
19119
19120 # type: textblock
19121 #: ../fish/guestfish.pod:1019
19122 msgid ""
19123 "By default, guestfish will ignore case when tab-completing paths on the "
19124 "disk.  Use:"
19125 msgstr ""
19126
19127 # type: verbatim
19128 #: ../fish/guestfish.pod:1022
19129 #, no-wrap
19130 msgid ""
19131 " set completion-ignore-case off\n"
19132 "\n"
19133 msgstr ""
19134
19135 # type: textblock
19136 #: ../fish/guestfish.pod:1024
19137 msgid "to make guestfish case sensitive."
19138 msgstr ""
19139
19140 # type: =item
19141 #: ../fish/guestfish.pod:1028
19142 msgid "test1.img"
19143 msgstr ""
19144
19145 # type: =item
19146 #: ../fish/guestfish.pod:1030
19147 msgid "test2.img (etc)"
19148 msgstr ""
19149
19150 # type: textblock
19151 #: ../fish/guestfish.pod:1032
19152 msgid ""
19153 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19154 "will be created in the file C<test1.img> in the current directory.  The "
19155 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19156 "the same name will be overwritten."
19157 msgstr ""
19158
19159 # type: textblock
19160 #: ../fish/guestfish.pod:1041
19161 msgid ""
19162 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19163 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19164 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19165 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19166 "L<hexedit(1)>."
19167 msgstr ""
19168
19169 # type: textblock
19170 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124
19171 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19172 #: ../tools/virt-win-reg.pl:518 ../tools/virt-resize.pl:1514
19173 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19174 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19175 msgid ""
19176 "This program is free software; you can redistribute it and/or modify it "
19177 "under the terms of the GNU General Public License as published by the Free "
19178 "Software Foundation; either version 2 of the License, or (at your option) "
19179 "any later version."
19180 msgstr ""
19181
19182 # type: textblock
19183 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129
19184 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19185 #: ../tools/virt-win-reg.pl:523 ../tools/virt-resize.pl:1519
19186 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19187 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19188 msgid ""
19189 "This program is distributed in the hope that it will be useful, but WITHOUT "
19190 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19191 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19192 "more details."
19193 msgstr ""
19194
19195 # type: textblock
19196 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134
19197 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19198 #: ../tools/virt-win-reg.pl:528 ../tools/virt-resize.pl:1524
19199 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19200 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19201 msgid ""
19202 "You should have received a copy of the GNU General Public License along with "
19203 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19204 "Ave, Cambridge, MA 02139, USA."
19205 msgstr ""
19206
19207 # type: =head2
19208 #: ../fish/guestfish-actions.pod:1
19209 msgid "add-cdrom"
19210 msgstr ""
19211
19212 # type: verbatim
19213 #: ../fish/guestfish-actions.pod:3
19214 #, no-wrap
19215 msgid ""
19216 " add-cdrom filename\n"
19217 "\n"
19218 msgstr ""
19219
19220 # type: textblock
19221 #: ../fish/guestfish-actions.pod:15
19222 msgid ""
19223 "This call checks for the existence of C<filename>.  This stops you from "
19224 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19225 "and C<http:> URLs.  To specify those, use the general L</config> call "
19226 "instead."
19227 msgstr ""
19228
19229 # type: textblock
19230 #: ../fish/guestfish-actions.pod:22
19231 msgid ""
19232 "If you just want to add an ISO file (often you use this as an efficient way "
19233 "to transfer large files into the guest), then you should probably use L</add-"
19234 "drive-ro> instead."
19235 msgstr ""
19236
19237 # type: =head2
19238 #: ../fish/guestfish-actions.pod:35
19239 msgid "add-domain"
19240 msgstr ""
19241
19242 # type: =head2
19243 #: ../fish/guestfish-actions.pod:37
19244 msgid "domain"
19245 msgstr ""
19246
19247 # type: verbatim
19248 #: ../fish/guestfish-actions.pod:39
19249 #, no-wrap
19250 msgid ""
19251 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19252 "\n"
19253 msgstr ""
19254
19255 # type: textblock
19256 #: ../fish/guestfish-actions.pod:41
19257 msgid ""
19258 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19259 "It works by connecting to libvirt, requesting the domain and domain XML from "
19260 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19261 msgstr ""
19262
19263 # type: textblock
19264 #: ../fish/guestfish-actions.pod:58
19265 msgid ""
19266 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19267 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19268 "libvirt URI (or one set through an environment variable, see the libvirt "
19269 "documentation for full details).  If you are using the C API directly then "
19270 "it is more flexible to create the libvirt connection object yourself, get "
19271 "the domain object, and call L</add-libvirt-dom>."
19272 msgstr ""
19273
19274 # type: textblock
19275 #: ../fish/guestfish-actions.pod:66
19276 msgid ""
19277 "The other optional parameters are passed directly through to L</add-drive-"
19278 "opts>."
19279 msgstr ""
19280
19281 # type: textblock
19282 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19283 msgid ""
19284 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19285 msgstr ""
19286
19287 # type: =head2
19288 #: ../fish/guestfish-actions.pod:71
19289 msgid "add-drive"
19290 msgstr ""
19291
19292 # type: verbatim
19293 #: ../fish/guestfish-actions.pod:73
19294 #, no-wrap
19295 msgid ""
19296 " add-drive filename\n"
19297 "\n"
19298 msgstr ""
19299
19300 # type: textblock
19301 #: ../fish/guestfish-actions.pod:75
19302 msgid ""
19303 "This function is the equivalent of calling L</add-drive-opts> with no "
19304 "optional parameters, so the disk is added writable, with the format being "
19305 "detected automatically."
19306 msgstr ""
19307
19308 # type: textblock
19309 #: ../fish/guestfish-actions.pod:79
19310 msgid ""
19311 "Automatic detection of the format opens you up to a potential security hole "
19312 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19313 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19314 "you should think about replacing calls to this function with calls to L</add-"
19315 "drive-opts>, and specifying the format."
19316 msgstr ""
19317
19318 # type: =head2
19319 #: ../fish/guestfish-actions.pod:86
19320 msgid "add-drive-opts"
19321 msgstr ""
19322
19323 # type: =head2
19324 #: ../fish/guestfish-actions.pod:88
19325 msgid "add"
19326 msgstr ""
19327
19328 # type: verbatim
19329 #: ../fish/guestfish-actions.pod:90
19330 #, no-wrap
19331 msgid ""
19332 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19333 "\n"
19334 msgstr ""
19335
19336 # type: textblock
19337 #: ../fish/guestfish-actions.pod:117
19338 msgid ""
19339 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19340 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19341 "include C<raw> and C<qcow2>."
19342 msgstr ""
19343
19344 # type: textblock
19345 #: ../fish/guestfish-actions.pod:128
19346 msgid ""
19347 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19348 "add-drive-with-if> call (q.v.)"
19349 msgstr ""
19350
19351 # type: =head2
19352 #: ../fish/guestfish-actions.pod:135
19353 msgid "add-drive-ro"
19354 msgstr ""
19355
19356 # type: =head2
19357 #: ../fish/guestfish-actions.pod:137
19358 msgid "add-ro"
19359 msgstr ""
19360
19361 # type: verbatim
19362 #: ../fish/guestfish-actions.pod:139
19363 #, no-wrap
19364 msgid ""
19365 " add-drive-ro filename\n"
19366 "\n"
19367 msgstr ""
19368
19369 # type: textblock
19370 #: ../fish/guestfish-actions.pod:141
19371 msgid ""
19372 "This function is the equivalent of calling L</add-drive-opts> with the "
19373 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19374 "is added read-only, with the format being detected automatically."
19375 msgstr ""
19376
19377 # type: =head2
19378 #: ../fish/guestfish-actions.pod:146
19379 msgid "add-drive-ro-with-if"
19380 msgstr ""
19381
19382 # type: verbatim
19383 #: ../fish/guestfish-actions.pod:148
19384 #, no-wrap
19385 msgid ""
19386 " add-drive-ro-with-if filename iface\n"
19387 "\n"
19388 msgstr ""
19389
19390 # type: textblock
19391 #: ../fish/guestfish-actions.pod:150
19392 msgid ""
19393 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19394 "interface emulation to use at run time."
19395 msgstr ""
19396
19397 # type: =head2
19398 #: ../fish/guestfish-actions.pod:160
19399 msgid "add-drive-with-if"
19400 msgstr ""
19401
19402 # type: verbatim
19403 #: ../fish/guestfish-actions.pod:162
19404 #, no-wrap
19405 msgid ""
19406 " add-drive-with-if filename iface\n"
19407 "\n"
19408 msgstr ""
19409
19410 # type: textblock
19411 #: ../fish/guestfish-actions.pod:164
19412 msgid ""
19413 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19414 "interface emulation to use at run time."
19415 msgstr ""
19416
19417 # type: =head2
19418 #: ../fish/guestfish-actions.pod:174
19419 msgid "aug-clear"
19420 msgstr ""
19421
19422 # type: verbatim
19423 #: ../fish/guestfish-actions.pod:176
19424 #, no-wrap
19425 msgid ""
19426 " aug-clear augpath\n"
19427 "\n"
19428 msgstr ""
19429
19430 # type: =head2
19431 #: ../fish/guestfish-actions.pod:181
19432 msgid "aug-close"
19433 msgstr ""
19434
19435 # type: verbatim
19436 #: ../fish/guestfish-actions.pod:183
19437 #, no-wrap
19438 msgid ""
19439 " aug-close\n"
19440 "\n"
19441 msgstr ""
19442
19443 # type: textblock
19444 #: ../fish/guestfish-actions.pod:185
19445 msgid ""
19446 "Close the current Augeas handle and free up any resources used by it.  After "
19447 "calling this, you have to call L</aug-init> again before you can use any "
19448 "other Augeas functions."
19449 msgstr ""
19450
19451 # type: =head2
19452 #: ../fish/guestfish-actions.pod:190
19453 msgid "aug-defnode"
19454 msgstr ""
19455
19456 # type: verbatim
19457 #: ../fish/guestfish-actions.pod:192
19458 #, no-wrap
19459 msgid ""
19460 " aug-defnode name expr val\n"
19461 "\n"
19462 msgstr ""
19463
19464 # type: textblock
19465 #: ../fish/guestfish-actions.pod:197
19466 msgid ""
19467 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19468 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19469 "containing that single node."
19470 msgstr ""
19471
19472 # type: =head2
19473 #: ../fish/guestfish-actions.pod:205
19474 msgid "aug-defvar"
19475 msgstr ""
19476
19477 # type: verbatim
19478 #: ../fish/guestfish-actions.pod:207
19479 #, no-wrap
19480 msgid ""
19481 " aug-defvar name expr\n"
19482 "\n"
19483 msgstr ""
19484
19485 # type: =head2
19486 #: ../fish/guestfish-actions.pod:216
19487 msgid "aug-get"
19488 msgstr ""
19489
19490 # type: verbatim
19491 #: ../fish/guestfish-actions.pod:218
19492 #, no-wrap
19493 msgid ""
19494 " aug-get augpath\n"
19495 "\n"
19496 msgstr ""
19497
19498 # type: =head2
19499 #: ../fish/guestfish-actions.pod:223
19500 msgid "aug-init"
19501 msgstr ""
19502
19503 # type: verbatim
19504 #: ../fish/guestfish-actions.pod:225
19505 #, no-wrap
19506 msgid ""
19507 " aug-init root flags\n"
19508 "\n"
19509 msgstr ""
19510
19511 # type: textblock
19512 #: ../fish/guestfish-actions.pod:231
19513 msgid "You must call this before using any other L</aug-*> commands."
19514 msgstr ""
19515
19516 # type: textblock
19517 #: ../fish/guestfish-actions.pod:266
19518 msgid "Do not load the tree in L</aug-init>."
19519 msgstr ""
19520
19521 # type: textblock
19522 #: ../fish/guestfish-actions.pod:270
19523 msgid "To close the handle, you can call L</aug-close>."
19524 msgstr ""
19525
19526 # type: =head2
19527 #: ../fish/guestfish-actions.pod:274
19528 msgid "aug-insert"
19529 msgstr ""
19530
19531 # type: verbatim
19532 #: ../fish/guestfish-actions.pod:276
19533 #, no-wrap
19534 msgid ""
19535 " aug-insert augpath label true|false\n"
19536 "\n"
19537 msgstr ""
19538
19539 # type: =head2
19540 #: ../fish/guestfish-actions.pod:286
19541 msgid "aug-load"
19542 msgstr ""
19543
19544 # type: verbatim
19545 #: ../fish/guestfish-actions.pod:288
19546 #, no-wrap
19547 msgid ""
19548 " aug-load\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: =head2
19553 #: ../fish/guestfish-actions.pod:295
19554 msgid "aug-ls"
19555 msgstr ""
19556
19557 # type: verbatim
19558 #: ../fish/guestfish-actions.pod:297
19559 #, no-wrap
19560 msgid ""
19561 " aug-ls augpath\n"
19562 "\n"
19563 msgstr ""
19564
19565 # type: textblock
19566 #: ../fish/guestfish-actions.pod:299
19567 msgid ""
19568 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19569 "resulting nodes into alphabetical order."
19570 msgstr ""
19571
19572 # type: =head2
19573 #: ../fish/guestfish-actions.pod:302
19574 msgid "aug-match"
19575 msgstr ""
19576
19577 # type: verbatim
19578 #: ../fish/guestfish-actions.pod:304
19579 #, no-wrap
19580 msgid ""
19581 " aug-match augpath\n"
19582 "\n"
19583 msgstr ""
19584
19585 # type: =head2
19586 #: ../fish/guestfish-actions.pod:310
19587 msgid "aug-mv"
19588 msgstr ""
19589
19590 # type: verbatim
19591 #: ../fish/guestfish-actions.pod:312
19592 #, no-wrap
19593 msgid ""
19594 " aug-mv src dest\n"
19595 "\n"
19596 msgstr ""
19597
19598 # type: =head2
19599 #: ../fish/guestfish-actions.pod:317
19600 msgid "aug-rm"
19601 msgstr ""
19602
19603 # type: verbatim
19604 #: ../fish/guestfish-actions.pod:319
19605 #, no-wrap
19606 msgid ""
19607 " aug-rm augpath\n"
19608 "\n"
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:325
19613 msgid "aug-save"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:327
19618 #, no-wrap
19619 msgid ""
19620 " aug-save\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: textblock
19625 #: ../fish/guestfish-actions.pod:331
19626 msgid ""
19627 "The flags which were passed to L</aug-init> affect exactly how files are "
19628 "saved."
19629 msgstr ""
19630
19631 # type: =head2
19632 #: ../fish/guestfish-actions.pod:334
19633 msgid "aug-set"
19634 msgstr ""
19635
19636 # type: verbatim
19637 #: ../fish/guestfish-actions.pod:336
19638 #, no-wrap
19639 msgid ""
19640 " aug-set augpath val\n"
19641 "\n"
19642 msgstr ""
19643
19644 # type: textblock
19645 #: ../fish/guestfish-actions.pod:340
19646 msgid ""
19647 "In the Augeas API, it is possible to clear a node by setting the value to "
19648 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19649 "this call.  Instead you must use the L</aug-clear> call."
19650 msgstr ""
19651
19652 # type: =head2
19653 #: ../fish/guestfish-actions.pod:345
19654 msgid "available"
19655 msgstr ""
19656
19657 # type: verbatim
19658 #: ../fish/guestfish-actions.pod:347
19659 #, no-wrap
19660 msgid ""
19661 " available 'groups ...'\n"
19662 "\n"
19663 msgstr ""
19664
19665 # type: textblock
19666 #: ../fish/guestfish-actions.pod:353
19667 msgid ""
19668 "The libguestfs groups, and the functions that those groups correspond to, "
19669 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19670 "runtime by calling L</available-all-groups>."
19671 msgstr ""
19672
19673 # type: textblock
19674 #: ../fish/guestfish-actions.pod:377
19675 msgid "You must call L</launch> before calling this function."
19676 msgstr ""
19677
19678 # type: textblock
19679 #: ../fish/guestfish-actions.pod:399
19680 msgid ""
19681 "This call was added in version C<1.0.80>.  In previous versions of "
19682 "libguestfs all you could do would be to speculatively execute a command to "
19683 "find out if the daemon implemented it.  See also L</version>."
19684 msgstr ""
19685
19686 # type: =head2
19687 #: ../fish/guestfish-actions.pod:406
19688 msgid "available-all-groups"
19689 msgstr ""
19690
19691 # type: verbatim
19692 #: ../fish/guestfish-actions.pod:408
19693 #, no-wrap
19694 msgid ""
19695 " available-all-groups\n"
19696 "\n"
19697 msgstr ""
19698
19699 # type: textblock
19700 #: ../fish/guestfish-actions.pod:410
19701 msgid ""
19702 "This command returns a list of all optional groups that this daemon knows "
19703 "about.  Note this returns both supported and unsupported groups.  To find "
19704 "out which ones the daemon can actually support you have to call L</"
19705 "available> on each member of the returned list."
19706 msgstr ""
19707
19708 # type: textblock
19709 #: ../fish/guestfish-actions.pod:416
19710 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19711 msgstr ""
19712
19713 # type: =head2
19714 #: ../fish/guestfish-actions.pod:418
19715 msgid "base64-in"
19716 msgstr ""
19717
19718 # type: verbatim
19719 #: ../fish/guestfish-actions.pod:420
19720 #, no-wrap
19721 msgid ""
19722 " base64-in (base64file|-) filename\n"
19723 "\n"
19724 msgstr ""
19725
19726 # type: textblock
19727 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19728 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19729 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19730 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19731 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19732 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19733 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19734 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19735 msgstr ""
19736
19737 # type: =head2
19738 #: ../fish/guestfish-actions.pod:427
19739 msgid "base64-out"
19740 msgstr ""
19741
19742 # type: verbatim
19743 #: ../fish/guestfish-actions.pod:429
19744 #, no-wrap
19745 msgid ""
19746 " base64-out filename (base64file|-)\n"
19747 "\n"
19748 msgstr ""
19749
19750 # type: =head2
19751 #: ../fish/guestfish-actions.pod:436
19752 msgid "blockdev-flushbufs"
19753 msgstr ""
19754
19755 # type: verbatim
19756 #: ../fish/guestfish-actions.pod:438
19757 #, no-wrap
19758 msgid ""
19759 " blockdev-flushbufs device\n"
19760 "\n"
19761 msgstr ""
19762
19763 # type: =head2
19764 #: ../fish/guestfish-actions.pod:445
19765 msgid "blockdev-getbsz"
19766 msgstr ""
19767
19768 # type: verbatim
19769 #: ../fish/guestfish-actions.pod:447
19770 #, no-wrap
19771 msgid ""
19772 " blockdev-getbsz device\n"
19773 "\n"
19774 msgstr ""
19775
19776 # type: =head2
19777 #: ../fish/guestfish-actions.pod:456
19778 msgid "blockdev-getro"
19779 msgstr ""
19780
19781 # type: verbatim
19782 #: ../fish/guestfish-actions.pod:458
19783 #, no-wrap
19784 msgid ""
19785 " blockdev-getro device\n"
19786 "\n"
19787 msgstr ""
19788
19789 # type: =head2
19790 #: ../fish/guestfish-actions.pod:465
19791 msgid "blockdev-getsize64"
19792 msgstr ""
19793
19794 # type: verbatim
19795 #: ../fish/guestfish-actions.pod:467
19796 #, no-wrap
19797 msgid ""
19798 " blockdev-getsize64 device\n"
19799 "\n"
19800 msgstr ""
19801
19802 # type: textblock
19803 #: ../fish/guestfish-actions.pod:471
19804 msgid "See also L</blockdev-getsz>."
19805 msgstr ""
19806
19807 # type: =head2
19808 #: ../fish/guestfish-actions.pod:475
19809 msgid "blockdev-getss"
19810 msgstr ""
19811
19812 # type: verbatim
19813 #: ../fish/guestfish-actions.pod:477
19814 #, no-wrap
19815 msgid ""
19816 " blockdev-getss device\n"
19817 "\n"
19818 msgstr ""
19819
19820 # type: textblock
19821 #: ../fish/guestfish-actions.pod:482
19822 msgid ""
19823 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19824 msgstr ""
19825
19826 # type: =head2
19827 #: ../fish/guestfish-actions.pod:487
19828 msgid "blockdev-getsz"
19829 msgstr ""
19830
19831 # type: verbatim
19832 #: ../fish/guestfish-actions.pod:489
19833 #, no-wrap
19834 msgid ""
19835 " blockdev-getsz device\n"
19836 "\n"
19837 msgstr ""
19838
19839 # type: textblock
19840 #: ../fish/guestfish-actions.pod:494
19841 msgid ""
19842 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19843 "blockdev-getsize64> for the more useful I<size in bytes>."
19844 msgstr ""
19845
19846 # type: =head2
19847 #: ../fish/guestfish-actions.pod:500
19848 msgid "blockdev-rereadpt"
19849 msgstr ""
19850
19851 # type: verbatim
19852 #: ../fish/guestfish-actions.pod:502
19853 #, no-wrap
19854 msgid ""
19855 " blockdev-rereadpt device\n"
19856 "\n"
19857 msgstr ""
19858
19859 # type: =head2
19860 #: ../fish/guestfish-actions.pod:508
19861 msgid "blockdev-setbsz"
19862 msgstr ""
19863
19864 # type: verbatim
19865 #: ../fish/guestfish-actions.pod:510
19866 #, no-wrap
19867 msgid ""
19868 " blockdev-setbsz device blocksize\n"
19869 "\n"
19870 msgstr ""
19871
19872 # type: =head2
19873 #: ../fish/guestfish-actions.pod:519
19874 msgid "blockdev-setro"
19875 msgstr ""
19876
19877 # type: verbatim
19878 #: ../fish/guestfish-actions.pod:521
19879 #, no-wrap
19880 msgid ""
19881 " blockdev-setro device\n"
19882 "\n"
19883 msgstr ""
19884
19885 # type: =head2
19886 #: ../fish/guestfish-actions.pod:527
19887 msgid "blockdev-setrw"
19888 msgstr ""
19889
19890 # type: verbatim
19891 #: ../fish/guestfish-actions.pod:529
19892 #, no-wrap
19893 msgid ""
19894 " blockdev-setrw device\n"
19895 "\n"
19896 msgstr ""
19897
19898 # type: =head2
19899 #: ../fish/guestfish-actions.pod:535
19900 msgid "case-sensitive-path"
19901 msgstr ""
19902
19903 # type: verbatim
19904 #: ../fish/guestfish-actions.pod:537
19905 #, no-wrap
19906 msgid ""
19907 " case-sensitive-path path\n"
19908 "\n"
19909 msgstr ""
19910
19911 # type: textblock
19912 #: ../fish/guestfish-actions.pod:561
19913 msgid ""
19914 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19915 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19916 "the directories were originally created under Windows)."
19917 msgstr ""
19918
19919 # type: textblock
19920 #: ../fish/guestfish-actions.pod:569
19921 msgid "See also L</realpath>."
19922 msgstr ""
19923
19924 # type: =head2
19925 #: ../fish/guestfish-actions.pod:571
19926 msgid "cat"
19927 msgstr ""
19928
19929 # type: verbatim
19930 #: ../fish/guestfish-actions.pod:573
19931 #, no-wrap
19932 msgid ""
19933 " cat path\n"
19934 "\n"
19935 msgstr ""
19936
19937 # type: textblock
19938 #: ../fish/guestfish-actions.pod:577
19939 msgid ""
19940 "Note that this function cannot correctly handle binary files (specifically, "
19941 "files containing C<\\0> character which is treated as end of string).  For "
19942 "those you need to use the L</read-file> or L</download> functions which have "
19943 "a more complex interface."
19944 msgstr ""
19945
19946 # type: =head2
19947 #: ../fish/guestfish-actions.pod:585
19948 msgid "checksum"
19949 msgstr ""
19950
19951 # type: verbatim
19952 #: ../fish/guestfish-actions.pod:587
19953 #, no-wrap
19954 msgid ""
19955 " checksum csumtype path\n"
19956 "\n"
19957 msgstr ""
19958
19959 # type: textblock
19960 #: ../fish/guestfish-actions.pod:630
19961 msgid "To get the checksum for a device, use L</checksum-device>."
19962 msgstr ""
19963
19964 # type: textblock
19965 #: ../fish/guestfish-actions.pod:632
19966 msgid "To get the checksums for many files, use L</checksums-out>."
19967 msgstr ""
19968
19969 # type: =head2
19970 #: ../fish/guestfish-actions.pod:634
19971 msgid "checksum-device"
19972 msgstr ""
19973
19974 # type: verbatim
19975 #: ../fish/guestfish-actions.pod:636
19976 #, no-wrap
19977 msgid ""
19978 " checksum-device csumtype device\n"
19979 "\n"
19980 msgstr ""
19981
19982 # type: textblock
19983 #: ../fish/guestfish-actions.pod:638
19984 msgid ""
19985 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19986 "device named C<device>.  For the types of checksums supported see the L</"
19987 "checksum> command."
19988 msgstr ""
19989
19990 # type: =head2
19991 #: ../fish/guestfish-actions.pod:642
19992 msgid "checksums-out"
19993 msgstr ""
19994
19995 # type: verbatim
19996 #: ../fish/guestfish-actions.pod:644
19997 #, no-wrap
19998 msgid ""
19999 " checksums-out csumtype directory (sumsfile|-)\n"
20000 "\n"
20001 msgstr ""
20002
20003 # type: =head2
20004 #: ../fish/guestfish-actions.pod:660
20005 msgid "chmod"
20006 msgstr ""
20007
20008 # type: verbatim
20009 #: ../fish/guestfish-actions.pod:662
20010 #, no-wrap
20011 msgid ""
20012 " chmod mode path\n"
20013 "\n"
20014 msgstr ""
20015
20016 # type: =head2
20017 #: ../fish/guestfish-actions.pod:673
20018 msgid "chown"
20019 msgstr ""
20020
20021 # type: verbatim
20022 #: ../fish/guestfish-actions.pod:675
20023 #, no-wrap
20024 msgid ""
20025 " chown owner group path\n"
20026 "\n"
20027 msgstr ""
20028
20029 # type: =head2
20030 #: ../fish/guestfish-actions.pod:683
20031 msgid "command"
20032 msgstr ""
20033
20034 # type: verbatim
20035 #: ../fish/guestfish-actions.pod:685
20036 #, no-wrap
20037 msgid ""
20038 " command 'arguments ...'\n"
20039 "\n"
20040 msgstr ""
20041
20042 # type: textblock
20043 #: ../fish/guestfish-actions.pod:692
20044 msgid ""
20045 "The single parameter is an argv-style list of arguments.  The first element "
20046 "is the name of the program to run.  Subsequent elements are parameters.  The "
20047 "list must be non-empty (ie. must contain a program name).  Note that the "
20048 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20049 msgstr ""
20050
20051 # type: =head2
20052 #: ../fish/guestfish-actions.pod:720
20053 msgid "command-lines"
20054 msgstr ""
20055
20056 # type: verbatim
20057 #: ../fish/guestfish-actions.pod:722
20058 #, no-wrap
20059 msgid ""
20060 " command-lines 'arguments ...'\n"
20061 "\n"
20062 msgstr ""
20063
20064 # type: textblock
20065 #: ../fish/guestfish-actions.pod:724
20066 msgid ""
20067 "This is the same as L</command>, but splits the result into a list of lines."
20068 msgstr ""
20069
20070 # type: textblock
20071 #: ../fish/guestfish-actions.pod:727
20072 msgid "See also: L</sh-lines>"
20073 msgstr ""
20074
20075 # type: =head2
20076 #: ../fish/guestfish-actions.pod:732
20077 msgid "config"
20078 msgstr ""
20079
20080 # type: verbatim
20081 #: ../fish/guestfish-actions.pod:734
20082 #, no-wrap
20083 msgid ""
20084 " config qemuparam qemuvalue\n"
20085 "\n"
20086 msgstr ""
20087
20088 # type: =head2
20089 #: ../fish/guestfish-actions.pod:745
20090 msgid "copy-size"
20091 msgstr ""
20092
20093 # type: verbatim
20094 #: ../fish/guestfish-actions.pod:747
20095 #, no-wrap
20096 msgid ""
20097 " copy-size src dest size\n"
20098 "\n"
20099 msgstr ""
20100
20101 # type: =head2
20102 #: ../fish/guestfish-actions.pod:755
20103 msgid "cp"
20104 msgstr ""
20105
20106 # type: verbatim
20107 #: ../fish/guestfish-actions.pod:757
20108 #, no-wrap
20109 msgid ""
20110 " cp src dest\n"
20111 "\n"
20112 msgstr ""
20113
20114 # type: =head2
20115 #: ../fish/guestfish-actions.pod:762
20116 msgid "cp-a"
20117 msgstr ""
20118
20119 # type: verbatim
20120 #: ../fish/guestfish-actions.pod:764
20121 #, no-wrap
20122 msgid ""
20123 " cp-a src dest\n"
20124 "\n"
20125 msgstr ""
20126
20127 # type: =head2
20128 #: ../fish/guestfish-actions.pod:769
20129 msgid "dd"
20130 msgstr ""
20131
20132 # type: verbatim
20133 #: ../fish/guestfish-actions.pod:771
20134 #, no-wrap
20135 msgid ""
20136 " dd src dest\n"
20137 "\n"
20138 msgstr ""
20139
20140 # type: textblock
20141 #: ../fish/guestfish-actions.pod:778
20142 msgid ""
20143 "If the destination is a device, it must be as large or larger than the "
20144 "source file or device, otherwise the copy will fail.  This command cannot do "
20145 "partial copies (see L</copy-size>)."
20146 msgstr ""
20147
20148 # type: =head2
20149 #: ../fish/guestfish-actions.pod:782
20150 msgid "df"
20151 msgstr ""
20152
20153 # type: verbatim
20154 #: ../fish/guestfish-actions.pod:784
20155 #, no-wrap
20156 msgid ""
20157 " df\n"
20158 "\n"
20159 msgstr ""
20160
20161 # type: =head2
20162 #: ../fish/guestfish-actions.pod:792
20163 msgid "df-h"
20164 msgstr ""
20165
20166 # type: verbatim
20167 #: ../fish/guestfish-actions.pod:794
20168 #, no-wrap
20169 msgid ""
20170 " df-h\n"
20171 "\n"
20172 msgstr ""
20173
20174 # type: =head2
20175 #: ../fish/guestfish-actions.pod:803
20176 msgid "dmesg"
20177 msgstr ""
20178
20179 # type: verbatim
20180 #: ../fish/guestfish-actions.pod:805
20181 #, no-wrap
20182 msgid ""
20183 " dmesg\n"
20184 "\n"
20185 msgstr ""
20186
20187 # type: textblock
20188 #: ../fish/guestfish-actions.pod:811
20189 msgid ""
20190 "Another way to get the same information is to enable verbose messages with "
20191 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20192 "before running the program."
20193 msgstr ""
20194
20195 # type: =head2
20196 #: ../fish/guestfish-actions.pod:816
20197 msgid "download"
20198 msgstr ""
20199
20200 # type: verbatim
20201 #: ../fish/guestfish-actions.pod:818
20202 #, no-wrap
20203 msgid ""
20204 " download remotefilename (filename|-)\n"
20205 "\n"
20206 msgstr ""
20207
20208 # type: textblock
20209 #: ../fish/guestfish-actions.pod:825
20210 msgid "See also L</upload>, L</cat>."
20211 msgstr ""
20212
20213 # type: =head2
20214 #: ../fish/guestfish-actions.pod:829
20215 msgid "download-offset"
20216 msgstr ""
20217
20218 # type: verbatim
20219 #: ../fish/guestfish-actions.pod:831
20220 #, no-wrap
20221 msgid ""
20222 " download-offset remotefilename (filename|-) offset size\n"
20223 "\n"
20224 msgstr ""
20225
20226 # type: textblock
20227 #: ../fish/guestfish-actions.pod:839
20228 msgid ""
20229 "Note that there is no limit on the amount of data that can be downloaded "
20230 "with this call, unlike with L</pread>, and this call always reads the full "
20231 "amount unless an error occurs."
20232 msgstr ""
20233
20234 # type: textblock
20235 #: ../fish/guestfish-actions.pod:844
20236 msgid "See also L</download>, L</pread>."
20237 msgstr ""
20238
20239 # type: =head2
20240 #: ../fish/guestfish-actions.pod:848
20241 msgid "drop-caches"
20242 msgstr ""
20243
20244 # type: verbatim
20245 #: ../fish/guestfish-actions.pod:850
20246 #, no-wrap
20247 msgid ""
20248 " drop-caches whattodrop\n"
20249 "\n"
20250 msgstr ""
20251
20252 # type: =head2
20253 #: ../fish/guestfish-actions.pod:862
20254 msgid "du"
20255 msgstr ""
20256
20257 # type: verbatim
20258 #: ../fish/guestfish-actions.pod:864
20259 #, no-wrap
20260 msgid ""
20261 " du path\n"
20262 "\n"
20263 msgstr ""
20264
20265 # type: =head2
20266 #: ../fish/guestfish-actions.pod:876
20267 msgid "e2fsck-f"
20268 msgstr ""
20269
20270 # type: verbatim
20271 #: ../fish/guestfish-actions.pod:878
20272 #, no-wrap
20273 msgid ""
20274 " e2fsck-f device\n"
20275 "\n"
20276 msgstr ""
20277
20278 # type: textblock
20279 #: ../fish/guestfish-actions.pod:884
20280 msgid ""
20281 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20282 "should use L</fsck>."
20283 msgstr ""
20284
20285 # type: =head2
20286 #: ../fish/guestfish-actions.pod:887
20287 msgid "echo-daemon"
20288 msgstr ""
20289
20290 # type: verbatim
20291 #: ../fish/guestfish-actions.pod:889
20292 #, no-wrap
20293 msgid ""
20294 " echo-daemon 'words ...'\n"
20295 "\n"
20296 msgstr ""
20297
20298 # type: textblock
20299 #: ../fish/guestfish-actions.pod:896
20300 msgid "See also L</ping-daemon>."
20301 msgstr ""
20302
20303 # type: =head2
20304 #: ../fish/guestfish-actions.pod:898
20305 msgid "egrep"
20306 msgstr ""
20307
20308 # type: verbatim
20309 #: ../fish/guestfish-actions.pod:900
20310 #, no-wrap
20311 msgid ""
20312 " egrep regex path\n"
20313 "\n"
20314 msgstr ""
20315
20316 # type: =head2
20317 #: ../fish/guestfish-actions.pod:908
20318 msgid "egrepi"
20319 msgstr ""
20320
20321 # type: verbatim
20322 #: ../fish/guestfish-actions.pod:910
20323 #, no-wrap
20324 msgid ""
20325 " egrepi regex path\n"
20326 "\n"
20327 msgstr ""
20328
20329 # type: =head2
20330 #: ../fish/guestfish-actions.pod:918
20331 msgid "equal"
20332 msgstr ""
20333
20334 # type: verbatim
20335 #: ../fish/guestfish-actions.pod:920
20336 #, no-wrap
20337 msgid ""
20338 " equal file1 file2\n"
20339 "\n"
20340 msgstr ""
20341
20342 # type: =head2
20343 #: ../fish/guestfish-actions.pod:927
20344 msgid "exists"
20345 msgstr ""
20346
20347 # type: verbatim
20348 #: ../fish/guestfish-actions.pod:929
20349 #, no-wrap
20350 msgid ""
20351 " exists path\n"
20352 "\n"
20353 msgstr ""
20354
20355 # type: textblock
20356 #: ../fish/guestfish-actions.pod:934
20357 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20358 msgstr ""
20359
20360 # type: =head2
20361 #: ../fish/guestfish-actions.pod:936
20362 msgid "fallocate"
20363 msgstr ""
20364
20365 # type: verbatim
20366 #: ../fish/guestfish-actions.pod:938
20367 #, no-wrap
20368 msgid ""
20369 " fallocate path len\n"
20370 "\n"
20371 msgstr ""
20372
20373 # type: =head2
20374 #: ../fish/guestfish-actions.pod:955
20375 msgid "fallocate64"
20376 msgstr ""
20377
20378 # type: verbatim
20379 #: ../fish/guestfish-actions.pod:957
20380 #, no-wrap
20381 msgid ""
20382 " fallocate64 path len\n"
20383 "\n"
20384 msgstr ""
20385
20386 # type: textblock
20387 #: ../fish/guestfish-actions.pod:963
20388 msgid ""
20389 "Note that this call allocates disk blocks for the file.  To create a sparse "
20390 "file use L</truncate-size> instead."
20391 msgstr ""
20392
20393 # type: textblock
20394 #: ../fish/guestfish-actions.pod:966
20395 msgid ""
20396 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20397 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20398 "maximum size of files created through that call to 1GB."
20399 msgstr ""
20400
20401 # type: =head2
20402 #: ../fish/guestfish-actions.pod:975
20403 msgid "fgrep"
20404 msgstr ""
20405
20406 # type: verbatim
20407 #: ../fish/guestfish-actions.pod:977
20408 #, no-wrap
20409 msgid ""
20410 " fgrep pattern path\n"
20411 "\n"
20412 msgstr ""
20413
20414 # type: =head2
20415 #: ../fish/guestfish-actions.pod:985
20416 msgid "fgrepi"
20417 msgstr ""
20418
20419 # type: verbatim
20420 #: ../fish/guestfish-actions.pod:987
20421 #, no-wrap
20422 msgid ""
20423 " fgrepi pattern path\n"
20424 "\n"
20425 msgstr ""
20426
20427 # type: =head2
20428 #: ../fish/guestfish-actions.pod:995
20429 msgid "file"
20430 msgstr ""
20431
20432 # type: verbatim
20433 #: ../fish/guestfish-actions.pod:997
20434 #, no-wrap
20435 msgid ""
20436 " file path\n"
20437 "\n"
20438 msgstr ""
20439
20440 # type: textblock
20441 #: ../fish/guestfish-actions.pod:1009
20442 msgid ""
20443 "This command can also be used on C</dev/> devices (and partitions, LV "
20444 "names).  You can for example use this to determine if a device contains a "
20445 "filesystem, although it's usually better to use L</vfs-type>."
20446 msgstr ""
20447
20448 # type: =head2
20449 #: ../fish/guestfish-actions.pod:1019
20450 msgid "file-architecture"
20451 msgstr ""
20452
20453 # type: verbatim
20454 #: ../fish/guestfish-actions.pod:1021
20455 #, no-wrap
20456 msgid ""
20457 " file-architecture filename\n"
20458 "\n"
20459 msgstr ""
20460
20461 # type: =head2
20462 #: ../fish/guestfish-actions.pod:1124
20463 msgid "filesize"
20464 msgstr ""
20465
20466 # type: verbatim
20467 #: ../fish/guestfish-actions.pod:1126
20468 #, no-wrap
20469 msgid ""
20470 " filesize file\n"
20471 "\n"
20472 msgstr ""
20473
20474 # type: textblock
20475 #: ../fish/guestfish-actions.pod:1130
20476 msgid ""
20477 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20478 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20479 msgstr ""
20480
20481 # type: =head2
20482 #: ../fish/guestfish-actions.pod:1134
20483 msgid "fill"
20484 msgstr ""
20485
20486 # type: verbatim
20487 #: ../fish/guestfish-actions.pod:1136
20488 #, no-wrap
20489 msgid ""
20490 " fill c len path\n"
20491 "\n"
20492 msgstr ""
20493
20494 # type: textblock
20495 #: ../fish/guestfish-actions.pod:1142
20496 msgid ""
20497 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20498 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20499 "L</fill-pattern>."
20500 msgstr ""
20501
20502 # type: =head2
20503 #: ../fish/guestfish-actions.pod:1147
20504 msgid "fill-pattern"
20505 msgstr ""
20506
20507 # type: verbatim
20508 #: ../fish/guestfish-actions.pod:1149
20509 #, no-wrap
20510 msgid ""
20511 " fill-pattern pattern len path\n"
20512 "\n"
20513 msgstr ""
20514
20515 # type: textblock
20516 #: ../fish/guestfish-actions.pod:1151
20517 msgid ""
20518 "This function is like L</fill> except that it creates a new file of length "
20519 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20520 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20521 "bytes."
20522 msgstr ""
20523
20524 # type: =head2
20525 #: ../fish/guestfish-actions.pod:1156
20526 msgid "find"
20527 msgstr ""
20528
20529 # type: verbatim
20530 #: ../fish/guestfish-actions.pod:1158
20531 #, no-wrap
20532 msgid ""
20533 " find directory\n"
20534 "\n"
20535 msgstr ""
20536
20537 # type: textblock
20538 #: ../fish/guestfish-actions.pod:1172
20539 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20540 msgstr ""
20541
20542 # type: textblock
20543 #: ../fish/guestfish-actions.pod:1185
20544 msgid "See also L</find0>."
20545 msgstr ""
20546
20547 # type: =head2
20548 #: ../fish/guestfish-actions.pod:1190
20549 msgid "find0"
20550 msgstr ""
20551
20552 # type: verbatim
20553 #: ../fish/guestfish-actions.pod:1192
20554 #, no-wrap
20555 msgid ""
20556 " find0 directory (files|-)\n"
20557 "\n"
20558 msgstr ""
20559
20560 # type: textblock
20561 #: ../fish/guestfish-actions.pod:1198
20562 msgid ""
20563 "This command works the same way as L</find> with the following exceptions:"
20564 msgstr ""
20565
20566 # type: =head2
20567 #: ../fish/guestfish-actions.pod:1225
20568 msgid "findfs-label"
20569 msgstr ""
20570
20571 # type: verbatim
20572 #: ../fish/guestfish-actions.pod:1227
20573 #, no-wrap
20574 msgid ""
20575 " findfs-label label\n"
20576 "\n"
20577 msgstr ""
20578
20579 # type: textblock
20580 #: ../fish/guestfish-actions.pod:1233
20581 msgid "To find the label of a filesystem, use L</vfs-label>."
20582 msgstr ""
20583
20584 # type: =head2
20585 #: ../fish/guestfish-actions.pod:1235
20586 msgid "findfs-uuid"
20587 msgstr ""
20588
20589 # type: verbatim
20590 #: ../fish/guestfish-actions.pod:1237
20591 #, no-wrap
20592 msgid ""
20593 " findfs-uuid uuid\n"
20594 "\n"
20595 msgstr ""
20596
20597 # type: textblock
20598 #: ../fish/guestfish-actions.pod:1243
20599 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20600 msgstr ""
20601
20602 # type: =head2
20603 #: ../fish/guestfish-actions.pod:1245
20604 msgid "fsck"
20605 msgstr ""
20606
20607 # type: verbatim
20608 #: ../fish/guestfish-actions.pod:1247
20609 #, no-wrap
20610 msgid ""
20611 " fsck fstype device\n"
20612 "\n"
20613 msgstr ""
20614
20615 # type: =head2
20616 #: ../fish/guestfish-actions.pod:1277
20617 msgid "get-append"
20618 msgstr ""
20619
20620 # type: verbatim
20621 #: ../fish/guestfish-actions.pod:1279
20622 #, no-wrap
20623 msgid ""
20624 " get-append\n"
20625 "\n"
20626 msgstr ""
20627
20628 # type: =head2
20629 #: ../fish/guestfish-actions.pod:1286
20630 msgid "get-autosync"
20631 msgstr ""
20632
20633 # type: verbatim
20634 #: ../fish/guestfish-actions.pod:1288
20635 #, no-wrap
20636 msgid ""
20637 " get-autosync\n"
20638 "\n"
20639 msgstr ""
20640
20641 # type: =head2
20642 #: ../fish/guestfish-actions.pod:1292
20643 msgid "get-direct"
20644 msgstr ""
20645
20646 # type: verbatim
20647 #: ../fish/guestfish-actions.pod:1294
20648 #, no-wrap
20649 msgid ""
20650 " get-direct\n"
20651 "\n"
20652 msgstr ""
20653
20654 # type: =head2
20655 #: ../fish/guestfish-actions.pod:1298
20656 msgid "get-e2label"
20657 msgstr ""
20658
20659 # type: verbatim
20660 #: ../fish/guestfish-actions.pod:1300
20661 #, no-wrap
20662 msgid ""
20663 " get-e2label device\n"
20664 "\n"
20665 msgstr ""
20666
20667 # type: =head2
20668 #: ../fish/guestfish-actions.pod:1312
20669 msgid "get-e2uuid"
20670 msgstr ""
20671
20672 # type: verbatim
20673 #: ../fish/guestfish-actions.pod:1314
20674 #, no-wrap
20675 msgid ""
20676 " get-e2uuid device\n"
20677 "\n"
20678 msgstr ""
20679
20680 # type: =head2
20681 #: ../fish/guestfish-actions.pod:1326
20682 msgid "get-memsize"
20683 msgstr ""
20684
20685 # type: verbatim
20686 #: ../fish/guestfish-actions.pod:1328
20687 #, no-wrap
20688 msgid ""
20689 " get-memsize\n"
20690 "\n"
20691 msgstr ""
20692
20693 # type: textblock
20694 #: ../fish/guestfish-actions.pod:1333
20695 msgid ""
20696 "If L</set-memsize> was not called on this handle, and if "
20697 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20698 "value for memsize."
20699 msgstr ""
20700
20701 # type: =head2
20702 #: ../fish/guestfish-actions.pod:1340
20703 msgid "get-network"
20704 msgstr ""
20705
20706 # type: verbatim
20707 #: ../fish/guestfish-actions.pod:1342
20708 #, no-wrap
20709 msgid ""
20710 " get-network\n"
20711 "\n"
20712 msgstr ""
20713
20714 # type: =head2
20715 #: ../fish/guestfish-actions.pod:1346
20716 msgid "get-path"
20717 msgstr ""
20718
20719 # type: verbatim
20720 #: ../fish/guestfish-actions.pod:1348
20721 #, no-wrap
20722 msgid ""
20723 " get-path\n"
20724 "\n"
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:1355
20729 msgid "get-pid"
20730 msgstr ""
20731
20732 # type: =head2
20733 #: ../fish/guestfish-actions.pod:1357
20734 msgid "pid"
20735 msgstr ""
20736
20737 # type: verbatim
20738 #: ../fish/guestfish-actions.pod:1359
20739 #, no-wrap
20740 msgid ""
20741 " get-pid\n"
20742 "\n"
20743 msgstr ""
20744
20745 # type: =head2
20746 #: ../fish/guestfish-actions.pod:1366
20747 msgid "get-qemu"
20748 msgstr ""
20749
20750 # type: verbatim
20751 #: ../fish/guestfish-actions.pod:1368
20752 #, no-wrap
20753 msgid ""
20754 " get-qemu\n"
20755 "\n"
20756 msgstr ""
20757
20758 # type: =head2
20759 #: ../fish/guestfish-actions.pod:1375
20760 msgid "get-recovery-proc"
20761 msgstr ""
20762
20763 # type: verbatim
20764 #: ../fish/guestfish-actions.pod:1377
20765 #, no-wrap
20766 msgid ""
20767 " get-recovery-proc\n"
20768 "\n"
20769 msgstr ""
20770
20771 # type: =head2
20772 #: ../fish/guestfish-actions.pod:1381
20773 msgid "get-selinux"
20774 msgstr ""
20775
20776 # type: verbatim
20777 #: ../fish/guestfish-actions.pod:1383
20778 #, no-wrap
20779 msgid ""
20780 " get-selinux\n"
20781 "\n"
20782 msgstr ""
20783
20784 # type: textblock
20785 #: ../fish/guestfish-actions.pod:1385
20786 msgid ""
20787 "This returns the current setting of the selinux flag which is passed to the "
20788 "appliance at boot time.  See L</set-selinux>."
20789 msgstr ""
20790
20791 # type: =head2
20792 #: ../fish/guestfish-actions.pod:1391
20793 msgid "get-state"
20794 msgstr ""
20795
20796 # type: verbatim
20797 #: ../fish/guestfish-actions.pod:1393
20798 #, no-wrap
20799 msgid ""
20800 " get-state\n"
20801 "\n"
20802 msgstr ""
20803
20804 # type: =head2
20805 #: ../fish/guestfish-actions.pod:1400
20806 msgid "get-trace"
20807 msgstr ""
20808
20809 # type: verbatim
20810 #: ../fish/guestfish-actions.pod:1402
20811 #, no-wrap
20812 msgid ""
20813 " get-trace\n"
20814 "\n"
20815 msgstr ""
20816
20817 # type: =head2
20818 #: ../fish/guestfish-actions.pod:1406
20819 msgid "get-umask"
20820 msgstr ""
20821
20822 # type: verbatim
20823 #: ../fish/guestfish-actions.pod:1408
20824 #, no-wrap
20825 msgid ""
20826 " get-umask\n"
20827 "\n"
20828 msgstr ""
20829
20830 # type: textblock
20831 #: ../fish/guestfish-actions.pod:1410
20832 msgid ""
20833 "Return the current umask.  By default the umask is C<022> unless it has been "
20834 "set by calling L</umask>."
20835 msgstr ""
20836
20837 # type: =head2
20838 #: ../fish/guestfish-actions.pod:1413
20839 msgid "get-verbose"
20840 msgstr ""
20841
20842 # type: verbatim
20843 #: ../fish/guestfish-actions.pod:1415
20844 #, no-wrap
20845 msgid ""
20846 " get-verbose\n"
20847 "\n"
20848 msgstr ""
20849
20850 # type: =head2
20851 #: ../fish/guestfish-actions.pod:1419
20852 msgid "getcon"
20853 msgstr ""
20854
20855 # type: verbatim
20856 #: ../fish/guestfish-actions.pod:1421
20857 #, no-wrap
20858 msgid ""
20859 " getcon\n"
20860 "\n"
20861 msgstr ""
20862
20863 # type: textblock
20864 #: ../fish/guestfish-actions.pod:1425
20865 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20866 msgstr ""
20867
20868 # type: =head2
20869 #: ../fish/guestfish-actions.pod:1428
20870 msgid "getxattrs"
20871 msgstr ""
20872
20873 # type: verbatim
20874 #: ../fish/guestfish-actions.pod:1430
20875 #, no-wrap
20876 msgid ""
20877 " getxattrs path\n"
20878 "\n"
20879 msgstr ""
20880
20881 # type: textblock
20882 #: ../fish/guestfish-actions.pod:1438
20883 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20884 msgstr ""
20885
20886 # type: =head2
20887 #: ../fish/guestfish-actions.pod:1440
20888 msgid "glob-expand"
20889 msgstr ""
20890
20891 # type: verbatim
20892 #: ../fish/guestfish-actions.pod:1442
20893 #, no-wrap
20894 msgid ""
20895 " glob-expand pattern\n"
20896 "\n"
20897 msgstr ""
20898
20899 # type: =head2
20900 #: ../fish/guestfish-actions.pod:1455
20901 msgid "grep"
20902 msgstr ""
20903
20904 # type: verbatim
20905 #: ../fish/guestfish-actions.pod:1457
20906 #, no-wrap
20907 msgid ""
20908 " grep regex path\n"
20909 "\n"
20910 msgstr ""
20911
20912 # type: =head2
20913 #: ../fish/guestfish-actions.pod:1465
20914 msgid "grepi"
20915 msgstr ""
20916
20917 # type: verbatim
20918 #: ../fish/guestfish-actions.pod:1467
20919 #, no-wrap
20920 msgid ""
20921 " grepi regex path\n"
20922 "\n"
20923 msgstr ""
20924
20925 # type: =head2
20926 #: ../fish/guestfish-actions.pod:1475
20927 msgid "grub-install"
20928 msgstr ""
20929
20930 # type: verbatim
20931 #: ../fish/guestfish-actions.pod:1477
20932 #, no-wrap
20933 msgid ""
20934 " grub-install root device\n"
20935 "\n"
20936 msgstr ""
20937
20938 # type: =head2
20939 #: ../fish/guestfish-actions.pod:1493
20940 msgid "head"
20941 msgstr ""
20942
20943 # type: verbatim
20944 #: ../fish/guestfish-actions.pod:1495
20945 #, no-wrap
20946 msgid ""
20947 " head path\n"
20948 "\n"
20949 msgstr ""
20950
20951 # type: =head2
20952 #: ../fish/guestfish-actions.pod:1503
20953 msgid "head-n"
20954 msgstr ""
20955
20956 # type: verbatim
20957 #: ../fish/guestfish-actions.pod:1505
20958 #, no-wrap
20959 msgid ""
20960 " head-n nrlines path\n"
20961 "\n"
20962 msgstr ""
20963
20964 # type: =head2
20965 #: ../fish/guestfish-actions.pod:1518
20966 msgid "hexdump"
20967 msgstr ""
20968
20969 # type: verbatim
20970 #: ../fish/guestfish-actions.pod:1520
20971 #, no-wrap
20972 msgid ""
20973 " hexdump path\n"
20974 "\n"
20975 msgstr ""
20976
20977 # type: =head2
20978 #: ../fish/guestfish-actions.pod:1528
20979 msgid "initrd-cat"
20980 msgstr ""
20981
20982 # type: verbatim
20983 #: ../fish/guestfish-actions.pod:1530
20984 #, no-wrap
20985 msgid ""
20986 " initrd-cat initrdpath filename\n"
20987 "\n"
20988 msgstr ""
20989
20990 # type: textblock
20991 #: ../fish/guestfish-actions.pod:1542
20992 msgid "See also L</initrd-list>."
20993 msgstr ""
20994
20995 # type: =head2
20996 #: ../fish/guestfish-actions.pod:1547
20997 msgid "initrd-list"
20998 msgstr ""
20999
21000 # type: verbatim
21001 #: ../fish/guestfish-actions.pod:1549
21002 #, no-wrap
21003 msgid ""
21004 " initrd-list path\n"
21005 "\n"
21006 msgstr ""
21007
21008 # type: =head2
21009 #: ../fish/guestfish-actions.pod:1561
21010 msgid "inotify-add-watch"
21011 msgstr ""
21012
21013 # type: verbatim
21014 #: ../fish/guestfish-actions.pod:1563
21015 #, no-wrap
21016 msgid ""
21017 " inotify-add-watch path mask\n"
21018 "\n"
21019 msgstr ""
21020
21021 # type: =head2
21022 #: ../fish/guestfish-actions.pod:1575
21023 msgid "inotify-close"
21024 msgstr ""
21025
21026 # type: verbatim
21027 #: ../fish/guestfish-actions.pod:1577
21028 #, no-wrap
21029 msgid ""
21030 " inotify-close\n"
21031 "\n"
21032 msgstr ""
21033
21034 # type: =head2
21035 #: ../fish/guestfish-actions.pod:1583
21036 msgid "inotify-files"
21037 msgstr ""
21038
21039 # type: verbatim
21040 #: ../fish/guestfish-actions.pod:1585
21041 #, no-wrap
21042 msgid ""
21043 " inotify-files\n"
21044 "\n"
21045 msgstr ""
21046
21047 # type: textblock
21048 #: ../fish/guestfish-actions.pod:1587
21049 msgid ""
21050 "This function is a helpful wrapper around L</inotify-read> which just "
21051 "returns a list of pathnames of objects that were touched.  The returned "
21052 "pathnames are sorted and deduplicated."
21053 msgstr ""
21054
21055 # type: =head2
21056 #: ../fish/guestfish-actions.pod:1591
21057 msgid "inotify-init"
21058 msgstr ""
21059
21060 # type: verbatim
21061 #: ../fish/guestfish-actions.pod:1593
21062 #, no-wrap
21063 msgid ""
21064 " inotify-init maxevents\n"
21065 "\n"
21066 msgstr ""
21067
21068 # type: textblock
21069 #: ../fish/guestfish-actions.pod:1599
21070 msgid ""
21071 "C<maxevents> is the maximum number of events which will be queued up between "
21072 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21073 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21074 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21075 "but records the fact that it threw them away by setting a flag "
21076 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21077 msgstr ""
21078
21079 # type: textblock
21080 #: ../fish/guestfish-actions.pod:1609
21081 msgid ""
21082 "Before any events are generated, you have to add some watches to the "
21083 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21084 "L</inotify-watch-all>."
21085 msgstr ""
21086
21087 # type: textblock
21088 #: ../fish/guestfish-actions.pod:1615
21089 msgid ""
21090 "Queued up events should be read periodically by calling L</inotify-read> (or "
21091 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21092 "If you don't read the events out often enough then you risk the internal "
21093 "queue overflowing."
21094 msgstr ""
21095
21096 # type: textblock
21097 #: ../fish/guestfish-actions.pod:1622
21098 msgid ""
21099 "The handle should be closed after use by calling L</inotify-close>.  This "
21100 "also removes any watches automatically."
21101 msgstr ""
21102
21103 # type: =head2
21104 #: ../fish/guestfish-actions.pod:1631
21105 msgid "inotify-read"
21106 msgstr ""
21107
21108 # type: verbatim
21109 #: ../fish/guestfish-actions.pod:1633
21110 #, no-wrap
21111 msgid ""
21112 " inotify-read\n"
21113 "\n"
21114 msgstr ""
21115
21116 # type: =head2
21117 #: ../fish/guestfish-actions.pod:1646
21118 msgid "inotify-rm-watch"
21119 msgstr ""
21120
21121 # type: verbatim
21122 #: ../fish/guestfish-actions.pod:1648
21123 #, no-wrap
21124 msgid ""
21125 " inotify-rm-watch wd\n"
21126 "\n"
21127 msgstr ""
21128
21129 # type: textblock
21130 #: ../fish/guestfish-actions.pod:1650
21131 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21132 msgstr ""
21133
21134 # type: =head2
21135 #: ../fish/guestfish-actions.pod:1653
21136 msgid "inspect-get-arch"
21137 msgstr ""
21138
21139 # type: verbatim
21140 #: ../fish/guestfish-actions.pod:1655
21141 #, no-wrap
21142 msgid ""
21143 " inspect-get-arch root\n"
21144 "\n"
21145 msgstr ""
21146
21147 # type: textblock
21148 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21149 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21150 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21151 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21152 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21153 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21154 #: ../fish/guestfish-actions.pod:1966
21155 msgid ""
21156 "This function should only be called with a root device string as returned by "
21157 "L</inspect-os>."
21158 msgstr ""
21159
21160 # type: textblock
21161 #: ../fish/guestfish-actions.pod:1660
21162 msgid ""
21163 "This returns the architecture of the inspected operating system.  The "
21164 "possible return values are listed under L</file-architecture>."
21165 msgstr ""
21166
21167 # type: =head2
21168 #: ../fish/guestfish-actions.pod:1669
21169 msgid "inspect-get-distro"
21170 msgstr ""
21171
21172 # type: verbatim
21173 #: ../fish/guestfish-actions.pod:1671
21174 #, no-wrap
21175 msgid ""
21176 " inspect-get-distro root\n"
21177 "\n"
21178 msgstr ""
21179
21180 # type: =head2
21181 #: ../fish/guestfish-actions.pod:1743
21182 msgid "inspect-get-filesystems"
21183 msgstr ""
21184
21185 # type: verbatim
21186 #: ../fish/guestfish-actions.pod:1745
21187 #, no-wrap
21188 msgid ""
21189 " inspect-get-filesystems root\n"
21190 "\n"
21191 msgstr ""
21192
21193 # type: textblock
21194 #: ../fish/guestfish-actions.pod:1758
21195 msgid ""
21196 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21197 "get-mountpoints>."
21198 msgstr ""
21199
21200 # type: =head2
21201 #: ../fish/guestfish-actions.pod:1761
21202 msgid "inspect-get-hostname"
21203 msgstr ""
21204
21205 # type: verbatim
21206 #: ../fish/guestfish-actions.pod:1763
21207 #, no-wrap
21208 msgid ""
21209 " inspect-get-hostname root\n"
21210 "\n"
21211 msgstr ""
21212
21213 # type: =head2
21214 #: ../fish/guestfish-actions.pod:1776
21215 msgid "inspect-get-major-version"
21216 msgstr ""
21217
21218 # type: verbatim
21219 #: ../fish/guestfish-actions.pod:1778
21220 #, no-wrap
21221 msgid ""
21222 " inspect-get-major-version root\n"
21223 "\n"
21224 msgstr ""
21225
21226 # type: =head2
21227 #: ../fish/guestfish-actions.pod:1797
21228 msgid "inspect-get-minor-version"
21229 msgstr ""
21230
21231 # type: verbatim
21232 #: ../fish/guestfish-actions.pod:1799
21233 #, no-wrap
21234 msgid ""
21235 " inspect-get-minor-version root\n"
21236 "\n"
21237 msgstr ""
21238
21239 # type: textblock
21240 #: ../fish/guestfish-actions.pod:1809
21241 msgid ""
21242 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21243 "get-major-version>."
21244 msgstr ""
21245
21246 # type: =head2
21247 #: ../fish/guestfish-actions.pod:1812
21248 msgid "inspect-get-mountpoints"
21249 msgstr ""
21250
21251 # type: verbatim
21252 #: ../fish/guestfish-actions.pod:1814
21253 #, no-wrap
21254 msgid ""
21255 " inspect-get-mountpoints root\n"
21256 "\n"
21257 msgstr ""
21258
21259 # type: textblock
21260 #: ../fish/guestfish-actions.pod:1832
21261 msgid ""
21262 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21263 "get-filesystems>."
21264 msgstr ""
21265
21266 # type: =head2
21267 #: ../fish/guestfish-actions.pod:1835
21268 msgid "inspect-get-package-format"
21269 msgstr ""
21270
21271 # type: verbatim
21272 #: ../fish/guestfish-actions.pod:1837
21273 #, no-wrap
21274 msgid ""
21275 " inspect-get-package-format root\n"
21276 "\n"
21277 msgstr ""
21278
21279 # type: textblock
21280 #: ../fish/guestfish-actions.pod:1842
21281 msgid ""
21282 "This function and L</inspect-get-package-management> return the package "
21283 "format and package management tool used by the inspected operating system.  "
21284 "For example for Fedora these functions would return C<rpm> (package format) "
21285 "and C<yum> (package management)."
21286 msgstr ""
21287
21288 # type: =head2
21289 #: ../fish/guestfish-actions.pod:1857
21290 msgid "inspect-get-package-management"
21291 msgstr ""
21292
21293 # type: verbatim
21294 #: ../fish/guestfish-actions.pod:1859
21295 #, no-wrap
21296 msgid ""
21297 " inspect-get-package-management root\n"
21298 "\n"
21299 msgstr ""
21300
21301 # type: textblock
21302 #: ../fish/guestfish-actions.pod:1864
21303 msgid ""
21304 "L</inspect-get-package-format> and this function return the package format "
21305 "and package management tool used by the inspected operating system.  For "
21306 "example for Fedora these functions would return C<rpm> (package format) and "
21307 "C<yum> (package management)."
21308 msgstr ""
21309
21310 # type: =head2
21311 #: ../fish/guestfish-actions.pod:1881
21312 msgid "inspect-get-product-name"
21313 msgstr ""
21314
21315 # type: verbatim
21316 #: ../fish/guestfish-actions.pod:1883
21317 #, no-wrap
21318 msgid ""
21319 " inspect-get-product-name root\n"
21320 "\n"
21321 msgstr ""
21322
21323 # type: =head2
21324 #: ../fish/guestfish-actions.pod:1898
21325 msgid "inspect-get-roots"
21326 msgstr ""
21327
21328 # type: verbatim
21329 #: ../fish/guestfish-actions.pod:1900
21330 #, no-wrap
21331 msgid ""
21332 " inspect-get-roots\n"
21333 "\n"
21334 msgstr ""
21335
21336 # type: textblock
21337 #: ../fish/guestfish-actions.pod:1902
21338 msgid ""
21339 "This function is a convenient way to get the list of root devices, as "
21340 "returned from a previous call to L</inspect-os>, but without redoing the "
21341 "whole inspection process."
21342 msgstr ""
21343
21344 # type: textblock
21345 #: ../fish/guestfish-actions.pod:1906
21346 msgid ""
21347 "This returns an empty list if either no root devices were found or the "
21348 "caller has not called L</inspect-os>."
21349 msgstr ""
21350
21351 # type: =head2
21352 #: ../fish/guestfish-actions.pod:1911
21353 msgid "inspect-get-type"
21354 msgstr ""
21355
21356 # type: verbatim
21357 #: ../fish/guestfish-actions.pod:1913
21358 #, no-wrap
21359 msgid ""
21360 " inspect-get-type root\n"
21361 "\n"
21362 msgstr ""
21363
21364 # type: =head2
21365 #: ../fish/guestfish-actions.pod:1946
21366 msgid "inspect-get-windows-systemroot"
21367 msgstr ""
21368
21369 # type: verbatim
21370 #: ../fish/guestfish-actions.pod:1948
21371 #, no-wrap
21372 msgid ""
21373 " inspect-get-windows-systemroot root\n"
21374 "\n"
21375 msgstr ""
21376
21377 # type: =head2
21378 #: ../fish/guestfish-actions.pod:1962
21379 msgid "inspect-list-applications"
21380 msgstr ""
21381
21382 # type: verbatim
21383 #: ../fish/guestfish-actions.pod:1964
21384 #, no-wrap
21385 msgid ""
21386 " inspect-list-applications root\n"
21387 "\n"
21388 msgstr ""
21389
21390 # type: textblock
21391 #: ../fish/guestfish-actions.pod:1971
21392 msgid ""
21393 "I<Note:> This call works differently from other parts of the inspection "
21394 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21395 "then mount up the disks, before calling this.  Listing applications is a "
21396 "significantly more difficult operation which requires access to the full "
21397 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21398 "are just returning data cached in the libguestfs handle, this call actually "
21399 "reads parts of the mounted filesystems during the call."
21400 msgstr ""
21401
21402 # type: =head2
21403 #: ../fish/guestfish-actions.pod:2061
21404 msgid "inspect-os"
21405 msgstr ""
21406
21407 # type: verbatim
21408 #: ../fish/guestfish-actions.pod:2063
21409 #, no-wrap
21410 msgid ""
21411 " inspect-os\n"
21412 "\n"
21413 msgstr ""
21414
21415 # type: textblock
21416 #: ../fish/guestfish-actions.pod:2078
21417 msgid ""
21418 "You can pass the root string(s) returned to other L</inspect-get-*> "
21419 "functions in order to query further information about each operating system, "
21420 "such as the name and version."
21421 msgstr ""
21422
21423 # type: textblock
21424 #: ../fish/guestfish-actions.pod:2083
21425 msgid ""
21426 "This function uses other libguestfs features such as L</mount-ro> and L</"
21427 "umount-all> in order to mount and unmount filesystems and look at the "
21428 "contents.  This should be called with no disks currently mounted.  The "
21429 "function may also use Augeas, so any existing Augeas handle will be closed."
21430 msgstr ""
21431
21432 # type: textblock
21433 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21434 #: ../fish/guestfish-actions.pod:2297
21435 msgid "See also L</list-filesystems>."
21436 msgstr ""
21437
21438 # type: =head2
21439 #: ../fish/guestfish-actions.pod:2097
21440 msgid "is-blockdev"
21441 msgstr ""
21442
21443 # type: verbatim
21444 #: ../fish/guestfish-actions.pod:2099
21445 #, no-wrap
21446 msgid ""
21447 " is-blockdev path\n"
21448 "\n"
21449 msgstr ""
21450
21451 # type: textblock
21452 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21453 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21454 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21455 #: ../fish/guestfish-actions.pod:2203
21456 msgid "See also L</stat>."
21457 msgstr ""
21458
21459 # type: =head2
21460 #: ../fish/guestfish-actions.pod:2106
21461 msgid "is-busy"
21462 msgstr ""
21463
21464 # type: verbatim
21465 #: ../fish/guestfish-actions.pod:2108
21466 #, no-wrap
21467 msgid ""
21468 " is-busy\n"
21469 "\n"
21470 msgstr ""
21471
21472 # type: =head2
21473 #: ../fish/guestfish-actions.pod:2115
21474 msgid "is-chardev"
21475 msgstr ""
21476
21477 # type: verbatim
21478 #: ../fish/guestfish-actions.pod:2117
21479 #, no-wrap
21480 msgid ""
21481 " is-chardev path\n"
21482 "\n"
21483 msgstr ""
21484
21485 # type: =head2
21486 #: ../fish/guestfish-actions.pod:2124
21487 msgid "is-config"
21488 msgstr ""
21489
21490 # type: verbatim
21491 #: ../fish/guestfish-actions.pod:2126
21492 #, no-wrap
21493 msgid ""
21494 " is-config\n"
21495 "\n"
21496 msgstr ""
21497
21498 # type: =head2
21499 #: ../fish/guestfish-actions.pod:2133
21500 msgid "is-dir"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #: ../fish/guestfish-actions.pod:2135
21505 #, no-wrap
21506 msgid ""
21507 " is-dir path\n"
21508 "\n"
21509 msgstr ""
21510
21511 # type: =head2
21512 #: ../fish/guestfish-actions.pod:2143
21513 msgid "is-fifo"
21514 msgstr ""
21515
21516 # type: verbatim
21517 #: ../fish/guestfish-actions.pod:2145
21518 #, no-wrap
21519 msgid ""
21520 " is-fifo path\n"
21521 "\n"
21522 msgstr ""
21523
21524 # type: =head2
21525 #: ../fish/guestfish-actions.pod:2152
21526 msgid "is-file"
21527 msgstr ""
21528
21529 # type: verbatim
21530 #: ../fish/guestfish-actions.pod:2154
21531 #, no-wrap
21532 msgid ""
21533 " is-file path\n"
21534 "\n"
21535 msgstr ""
21536
21537 # type: =head2
21538 #: ../fish/guestfish-actions.pod:2162
21539 msgid "is-launching"
21540 msgstr ""
21541
21542 # type: verbatim
21543 #: ../fish/guestfish-actions.pod:2164
21544 #, no-wrap
21545 msgid ""
21546 " is-launching\n"
21547 "\n"
21548 msgstr ""
21549
21550 # type: =head2
21551 #: ../fish/guestfish-actions.pod:2171
21552 msgid "is-lv"
21553 msgstr ""
21554
21555 # type: verbatim
21556 #: ../fish/guestfish-actions.pod:2173
21557 #, no-wrap
21558 msgid ""
21559 " is-lv device\n"
21560 "\n"
21561 msgstr ""
21562
21563 # type: =head2
21564 #: ../fish/guestfish-actions.pod:2178
21565 msgid "is-ready"
21566 msgstr ""
21567
21568 # type: verbatim
21569 #: ../fish/guestfish-actions.pod:2180
21570 #, no-wrap
21571 msgid ""
21572 " is-ready\n"
21573 "\n"
21574 msgstr ""
21575
21576 # type: =head2
21577 #: ../fish/guestfish-actions.pod:2187
21578 msgid "is-socket"
21579 msgstr ""
21580
21581 # type: verbatim
21582 #: ../fish/guestfish-actions.pod:2189
21583 #, no-wrap
21584 msgid ""
21585 " is-socket path\n"
21586 "\n"
21587 msgstr ""
21588
21589 # type: =head2
21590 #: ../fish/guestfish-actions.pod:2196
21591 msgid "is-symlink"
21592 msgstr ""
21593
21594 # type: verbatim
21595 #: ../fish/guestfish-actions.pod:2198
21596 #, no-wrap
21597 msgid ""
21598 " is-symlink path\n"
21599 "\n"
21600 msgstr ""
21601
21602 # type: =head2
21603 #: ../fish/guestfish-actions.pod:2205
21604 msgid "kill-subprocess"
21605 msgstr ""
21606
21607 # type: verbatim
21608 #: ../fish/guestfish-actions.pod:2207
21609 #, no-wrap
21610 msgid ""
21611 " kill-subprocess\n"
21612 "\n"
21613 msgstr ""
21614
21615 # type: =head2
21616 #: ../fish/guestfish-actions.pod:2211
21617 msgid "launch"
21618 msgstr ""
21619
21620 # type: =head2
21621 #: ../fish/guestfish-actions.pod:2213
21622 msgid "run"
21623 msgstr ""
21624
21625 # type: verbatim
21626 #: ../fish/guestfish-actions.pod:2215
21627 #, no-wrap
21628 msgid ""
21629 " launch\n"
21630 "\n"
21631 msgstr ""
21632
21633 # type: =head2
21634 #: ../fish/guestfish-actions.pod:2223
21635 msgid "lchown"
21636 msgstr ""
21637
21638 # type: verbatim
21639 #: ../fish/guestfish-actions.pod:2225
21640 #, no-wrap
21641 msgid ""
21642 " lchown owner group path\n"
21643 "\n"
21644 msgstr ""
21645
21646 # type: textblock
21647 #: ../fish/guestfish-actions.pod:2227
21648 msgid ""
21649 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21650 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21651 "target."
21652 msgstr ""
21653
21654 # type: =head2
21655 #: ../fish/guestfish-actions.pod:2235
21656 msgid "lgetxattrs"
21657 msgstr ""
21658
21659 # type: verbatim
21660 #: ../fish/guestfish-actions.pod:2237
21661 #, no-wrap
21662 msgid ""
21663 " lgetxattrs path\n"
21664 "\n"
21665 msgstr ""
21666
21667 # type: textblock
21668 #: ../fish/guestfish-actions.pod:2239
21669 msgid ""
21670 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21671 "it returns the extended attributes of the link itself."
21672 msgstr ""
21673
21674 # type: =head2
21675 #: ../fish/guestfish-actions.pod:2243
21676 msgid "list-devices"
21677 msgstr ""
21678
21679 # type: verbatim
21680 #: ../fish/guestfish-actions.pod:2245
21681 #, no-wrap
21682 msgid ""
21683 " list-devices\n"
21684 "\n"
21685 msgstr ""
21686
21687 # type: =head2
21688 #: ../fish/guestfish-actions.pod:2253
21689 msgid "list-filesystems"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #: ../fish/guestfish-actions.pod:2255
21694 #, no-wrap
21695 msgid ""
21696 " list-filesystems\n"
21697 "\n"
21698 msgstr ""
21699
21700 # type: textblock
21701 #: ../fish/guestfish-actions.pod:2274
21702 msgid ""
21703 "This command runs other libguestfs commands, which might include L</mount> "
21704 "and L</umount>, and therefore you should use this soon after launch and only "
21705 "when nothing is mounted."
21706 msgstr ""
21707
21708 # type: textblock
21709 #: ../fish/guestfish-actions.pod:2278
21710 msgid ""
21711 "Not all of the filesystems returned will be mountable.  In particular, swap "
21712 "partitions are returned in the list.  Also this command does not check that "
21713 "each filesystem found is valid and mountable, and some filesystems might be "
21714 "mountable but require special options.  Filesystems may not all belong to a "
21715 "single logical operating system (use L</inspect-os> to look for OSes)."
21716 msgstr ""
21717
21718 # type: =head2
21719 #: ../fish/guestfish-actions.pod:2286
21720 msgid "list-partitions"
21721 msgstr ""
21722
21723 # type: verbatim
21724 #: ../fish/guestfish-actions.pod:2288
21725 #, no-wrap
21726 msgid ""
21727 " list-partitions\n"
21728 "\n"
21729 msgstr ""
21730
21731 # type: textblock
21732 #: ../fish/guestfish-actions.pod:2294
21733 msgid ""
21734 "This does not return logical volumes.  For that you will need to call L</"
21735 "lvs>."
21736 msgstr ""
21737
21738 # type: =head2
21739 #: ../fish/guestfish-actions.pod:2299
21740 msgid "ll"
21741 msgstr ""
21742
21743 # type: verbatim
21744 #: ../fish/guestfish-actions.pod:2301
21745 #, no-wrap
21746 msgid ""
21747 " ll directory\n"
21748 "\n"
21749 msgstr ""
21750
21751 # type: =head2
21752 #: ../fish/guestfish-actions.pod:2309
21753 msgid "ln"
21754 msgstr ""
21755
21756 # type: verbatim
21757 #: ../fish/guestfish-actions.pod:2311
21758 #, no-wrap
21759 msgid ""
21760 " ln target linkname\n"
21761 "\n"
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:2315
21766 msgid "ln-f"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:2317
21771 #, no-wrap
21772 msgid ""
21773 " ln-f target linkname\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: =head2
21778 #: ../fish/guestfish-actions.pod:2322
21779 msgid "ln-s"
21780 msgstr ""
21781
21782 # type: verbatim
21783 #: ../fish/guestfish-actions.pod:2324
21784 #, no-wrap
21785 msgid ""
21786 " ln-s target linkname\n"
21787 "\n"
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-actions.pod:2328
21792 msgid "ln-sf"
21793 msgstr ""
21794
21795 # type: verbatim
21796 #: ../fish/guestfish-actions.pod:2330
21797 #, no-wrap
21798 msgid ""
21799 " ln-sf target linkname\n"
21800 "\n"
21801 msgstr ""
21802
21803 # type: =head2
21804 #: ../fish/guestfish-actions.pod:2335
21805 msgid "lremovexattr"
21806 msgstr ""
21807
21808 # type: verbatim
21809 #: ../fish/guestfish-actions.pod:2337
21810 #, no-wrap
21811 msgid ""
21812 " lremovexattr xattr path\n"
21813 "\n"
21814 msgstr ""
21815
21816 # type: textblock
21817 #: ../fish/guestfish-actions.pod:2339
21818 msgid ""
21819 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21820 "it removes an extended attribute of the link itself."
21821 msgstr ""
21822
21823 # type: =head2
21824 #: ../fish/guestfish-actions.pod:2343
21825 msgid "ls"
21826 msgstr ""
21827
21828 # type: verbatim
21829 #: ../fish/guestfish-actions.pod:2345
21830 #, no-wrap
21831 msgid ""
21832 " ls directory\n"
21833 "\n"
21834 msgstr ""
21835
21836 # type: textblock
21837 #: ../fish/guestfish-actions.pod:2351
21838 msgid ""
21839 "This command is mostly useful for interactive sessions.  Programs should "
21840 "probably use L</readdir> instead."
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:2354
21845 msgid "lsetxattr"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:2356
21850 #, no-wrap
21851 msgid ""
21852 " lsetxattr xattr val vallen path\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: textblock
21857 #: ../fish/guestfish-actions.pod:2358
21858 msgid ""
21859 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21860 "sets an extended attribute of the link itself."
21861 msgstr ""
21862
21863 # type: =head2
21864 #: ../fish/guestfish-actions.pod:2362
21865 msgid "lstat"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #: ../fish/guestfish-actions.pod:2364
21870 #, no-wrap
21871 msgid ""
21872 " lstat path\n"
21873 "\n"
21874 msgstr ""
21875
21876 # type: textblock
21877 #: ../fish/guestfish-actions.pod:2368
21878 msgid ""
21879 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21880 "the link is stat-ed, not the file it refers to."
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:2374
21885 msgid "lstatlist"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #: ../fish/guestfish-actions.pod:2376
21890 #, no-wrap
21891 msgid ""
21892 " lstatlist path 'names ...'\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: textblock
21897 #: ../fish/guestfish-actions.pod:2378
21898 msgid ""
21899 "This call allows you to perform the L</lstat> operation on multiple files, "
21900 "where all files are in the directory C<path>.  C<names> is the list of files "
21901 "from this directory."
21902 msgstr ""
21903
21904 # type: textblock
21905 #: ../fish/guestfish-actions.pod:2387
21906 msgid ""
21907 "This call is intended for programs that want to efficiently list a directory "
21908 "contents without making many round-trips.  See also L</lxattrlist> for a "
21909 "similarly efficient call for getting extended attributes.  Very long "
21910 "directory listings might cause the protocol message size to be exceeded, "
21911 "causing this call to fail.  The caller must split up such requests into "
21912 "smaller groups of names."
21913 msgstr ""
21914
21915 # type: =head2
21916 #: ../fish/guestfish-actions.pod:2395
21917 msgid "luks-add-key"
21918 msgstr ""
21919
21920 # type: verbatim
21921 #: ../fish/guestfish-actions.pod:2397
21922 #, no-wrap
21923 msgid ""
21924 " luks-add-key device keyslot\n"
21925 "\n"
21926 msgstr ""
21927
21928 # type: textblock
21929 #: ../fish/guestfish-actions.pod:2404
21930 msgid ""
21931 "Note that if C<keyslot> already contains a key, then this command will "
21932 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21933 msgstr ""
21934
21935 # type: textblock
21936 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21937 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21938 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21939 msgid ""
21940 "This command has one or more key or passphrase parameters.  Guestfish will "
21941 "prompt for these separately."
21942 msgstr ""
21943
21944 # type: =head2
21945 #: ../fish/guestfish-actions.pod:2411
21946 msgid "luks-close"
21947 msgstr ""
21948
21949 # type: verbatim
21950 #: ../fish/guestfish-actions.pod:2413
21951 #, no-wrap
21952 msgid ""
21953 " luks-close device\n"
21954 "\n"
21955 msgstr ""
21956
21957 # type: textblock
21958 #: ../fish/guestfish-actions.pod:2415
21959 msgid ""
21960 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21961 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21962 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21963 "block device."
21964 msgstr ""
21965
21966 # type: =head2
21967 #: ../fish/guestfish-actions.pod:2421
21968 msgid "luks-format"
21969 msgstr ""
21970
21971 # type: verbatim
21972 #: ../fish/guestfish-actions.pod:2423
21973 #, no-wrap
21974 msgid ""
21975 " luks-format device keyslot\n"
21976 "\n"
21977 msgstr ""
21978
21979 # type: =head2
21980 #: ../fish/guestfish-actions.pod:2436
21981 msgid "luks-format-cipher"
21982 msgstr ""
21983
21984 # type: verbatim
21985 #: ../fish/guestfish-actions.pod:2438
21986 #, no-wrap
21987 msgid ""
21988 " luks-format-cipher device keyslot cipher\n"
21989 "\n"
21990 msgstr ""
21991
21992 # type: textblock
21993 #: ../fish/guestfish-actions.pod:2440
21994 msgid ""
21995 "This command is the same as L</luks-format> but it also allows you to set "
21996 "the C<cipher> used."
21997 msgstr ""
21998
21999 # type: =head2
22000 #: ../fish/guestfish-actions.pod:2449
22001 msgid "luks-kill-slot"
22002 msgstr ""
22003
22004 # type: verbatim
22005 #: ../fish/guestfish-actions.pod:2451
22006 #, no-wrap
22007 msgid ""
22008 " luks-kill-slot device keyslot\n"
22009 "\n"
22010 msgstr ""
22011
22012 # type: =head2
22013 #: ../fish/guestfish-actions.pod:2460
22014 msgid "luks-open"
22015 msgstr ""
22016
22017 # type: verbatim
22018 #: ../fish/guestfish-actions.pod:2462
22019 #, no-wrap
22020 msgid ""
22021 " luks-open device mapname\n"
22022 "\n"
22023 msgstr ""
22024
22025 # type: textblock
22026 #: ../fish/guestfish-actions.pod:2476
22027 msgid ""
22028 "If this block device contains LVM volume groups, then calling L</vgscan> "
22029 "followed by L</vg-activate-all> will make them visible."
22030 msgstr ""
22031
22032 # type: =head2
22033 #: ../fish/guestfish-actions.pod:2483
22034 msgid "luks-open-ro"
22035 msgstr ""
22036
22037 # type: verbatim
22038 #: ../fish/guestfish-actions.pod:2485
22039 #, no-wrap
22040 msgid ""
22041 " luks-open-ro device mapname\n"
22042 "\n"
22043 msgstr ""
22044
22045 # type: textblock
22046 #: ../fish/guestfish-actions.pod:2487
22047 msgid ""
22048 "This is the same as L</luks-open> except that a read-only mapping is created."
22049 msgstr ""
22050
22051 # type: =head2
22052 #: ../fish/guestfish-actions.pod:2493
22053 msgid "lvcreate"
22054 msgstr ""
22055
22056 # type: verbatim
22057 #: ../fish/guestfish-actions.pod:2495
22058 #, no-wrap
22059 msgid ""
22060 " lvcreate logvol volgroup mbytes\n"
22061 "\n"
22062 msgstr ""
22063
22064 # type: =head2
22065 #: ../fish/guestfish-actions.pod:2500
22066 msgid "lvm-canonical-lv-name"
22067 msgstr ""
22068
22069 # type: verbatim
22070 #: ../fish/guestfish-actions.pod:2502
22071 #, no-wrap
22072 msgid ""
22073 " lvm-canonical-lv-name lvname\n"
22074 "\n"
22075 msgstr ""
22076
22077 # type: textblock
22078 #: ../fish/guestfish-actions.pod:2511
22079 msgid "See also L</is-lv>."
22080 msgstr ""
22081
22082 # type: =head2
22083 #: ../fish/guestfish-actions.pod:2513
22084 msgid "lvm-clear-filter"
22085 msgstr ""
22086
22087 # type: verbatim
22088 #: ../fish/guestfish-actions.pod:2515
22089 #, no-wrap
22090 msgid ""
22091 " lvm-clear-filter\n"
22092 "\n"
22093 msgstr ""
22094
22095 # type: textblock
22096 #: ../fish/guestfish-actions.pod:2517
22097 msgid ""
22098 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22099 "block device."
22100 msgstr ""
22101
22102 # type: =head2
22103 #: ../fish/guestfish-actions.pod:2523
22104 msgid "lvm-remove-all"
22105 msgstr ""
22106
22107 # type: verbatim
22108 #: ../fish/guestfish-actions.pod:2525
22109 #, no-wrap
22110 msgid ""
22111 " lvm-remove-all\n"
22112 "\n"
22113 msgstr ""
22114
22115 # type: =head2
22116 #: ../fish/guestfish-actions.pod:2533
22117 msgid "lvm-set-filter"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #: ../fish/guestfish-actions.pod:2535
22122 #, no-wrap
22123 msgid ""
22124 " lvm-set-filter 'devices ...'\n"
22125 "\n"
22126 msgstr ""
22127
22128 # type: =head2
22129 #: ../fish/guestfish-actions.pod:2560
22130 msgid "lvremove"
22131 msgstr ""
22132
22133 # type: verbatim
22134 #: ../fish/guestfish-actions.pod:2562
22135 #, no-wrap
22136 msgid ""
22137 " lvremove device\n"
22138 "\n"
22139 msgstr ""
22140
22141 # type: =head2
22142 #: ../fish/guestfish-actions.pod:2570
22143 msgid "lvrename"
22144 msgstr ""
22145
22146 # type: verbatim
22147 #: ../fish/guestfish-actions.pod:2572
22148 #, no-wrap
22149 msgid ""
22150 " lvrename logvol newlogvol\n"
22151 "\n"
22152 msgstr ""
22153
22154 # type: =head2
22155 #: ../fish/guestfish-actions.pod:2576
22156 msgid "lvresize"
22157 msgstr ""
22158
22159 # type: verbatim
22160 #: ../fish/guestfish-actions.pod:2578
22161 #, no-wrap
22162 msgid ""
22163 " lvresize device mbytes\n"
22164 "\n"
22165 msgstr ""
22166
22167 # type: =head2
22168 #: ../fish/guestfish-actions.pod:2584
22169 msgid "lvresize-free"
22170 msgstr ""
22171
22172 # type: verbatim
22173 #: ../fish/guestfish-actions.pod:2586
22174 #, no-wrap
22175 msgid ""
22176 " lvresize-free lv percent\n"
22177 "\n"
22178 msgstr ""
22179
22180 # type: =head2
22181 #: ../fish/guestfish-actions.pod:2594
22182 msgid "lvs"
22183 msgstr ""
22184
22185 # type: verbatim
22186 #: ../fish/guestfish-actions.pod:2596
22187 #, no-wrap
22188 msgid ""
22189 " lvs\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: textblock
22194 #: ../fish/guestfish-actions.pod:2604
22195 msgid "See also L</lvs-full>, L</list-filesystems>."
22196 msgstr ""
22197
22198 # type: =head2
22199 #: ../fish/guestfish-actions.pod:2606
22200 msgid "lvs-full"
22201 msgstr ""
22202
22203 # type: verbatim
22204 #: ../fish/guestfish-actions.pod:2608
22205 #, no-wrap
22206 msgid ""
22207 " lvs-full\n"
22208 "\n"
22209 msgstr ""
22210
22211 # type: =head2
22212 #: ../fish/guestfish-actions.pod:2613
22213 msgid "lvuuid"
22214 msgstr ""
22215
22216 # type: verbatim
22217 #: ../fish/guestfish-actions.pod:2615
22218 #, no-wrap
22219 msgid ""
22220 " lvuuid device\n"
22221 "\n"
22222 msgstr ""
22223
22224 # type: =head2
22225 #: ../fish/guestfish-actions.pod:2619
22226 msgid "lxattrlist"
22227 msgstr ""
22228
22229 # type: verbatim
22230 #: ../fish/guestfish-actions.pod:2621
22231 #, no-wrap
22232 msgid ""
22233 " lxattrlist path 'names ...'\n"
22234 "\n"
22235 msgstr ""
22236
22237 # type: textblock
22238 #: ../fish/guestfish-actions.pod:2637
22239 msgid ""
22240 "This call is intended for programs that want to efficiently list a directory "
22241 "contents without making many round-trips.  See also L</lstatlist> for a "
22242 "similarly efficient call for getting standard stats.  Very long directory "
22243 "listings might cause the protocol message size to be exceeded, causing this "
22244 "call to fail.  The caller must split up such requests into smaller groups of "
22245 "names."
22246 msgstr ""
22247
22248 # type: =head2
22249 #: ../fish/guestfish-actions.pod:2645
22250 msgid "mkdir"
22251 msgstr ""
22252
22253 # type: verbatim
22254 #: ../fish/guestfish-actions.pod:2647
22255 #, no-wrap
22256 msgid ""
22257 " mkdir path\n"
22258 "\n"
22259 msgstr ""
22260
22261 # type: =head2
22262 #: ../fish/guestfish-actions.pod:2651
22263 msgid "mkdir-mode"
22264 msgstr ""
22265
22266 # type: verbatim
22267 #: ../fish/guestfish-actions.pod:2653
22268 #, no-wrap
22269 msgid ""
22270 " mkdir-mode path mode\n"
22271 "\n"
22272 msgstr ""
22273
22274 # type: textblock
22275 #: ../fish/guestfish-actions.pod:2662
22276 msgid "See also L</mkdir>, L</umask>"
22277 msgstr ""
22278
22279 # type: =head2
22280 #: ../fish/guestfish-actions.pod:2664
22281 msgid "mkdir-p"
22282 msgstr ""
22283
22284 # type: verbatim
22285 #: ../fish/guestfish-actions.pod:2666
22286 #, no-wrap
22287 msgid ""
22288 " mkdir-p path\n"
22289 "\n"
22290 msgstr ""
22291
22292 # type: =head2
22293 #: ../fish/guestfish-actions.pod:2671
22294 msgid "mkdtemp"
22295 msgstr ""
22296
22297 # type: verbatim
22298 #: ../fish/guestfish-actions.pod:2673
22299 #, no-wrap
22300 msgid ""
22301 " mkdtemp template\n"
22302 "\n"
22303 msgstr ""
22304
22305 # type: =head2
22306 #: ../fish/guestfish-actions.pod:2694
22307 msgid "mke2fs-J"
22308 msgstr ""
22309
22310 # type: verbatim
22311 #: ../fish/guestfish-actions.pod:2696
22312 #, no-wrap
22313 msgid ""
22314 " mke2fs-J fstype blocksize device journal\n"
22315 "\n"
22316 msgstr ""
22317
22318 # type: textblock
22319 #: ../fish/guestfish-actions.pod:2704
22320 msgid "See also L</mke2journal>."
22321 msgstr ""
22322
22323 # type: =head2
22324 #: ../fish/guestfish-actions.pod:2706
22325 msgid "mke2fs-JL"
22326 msgstr ""
22327
22328 # type: verbatim
22329 #: ../fish/guestfish-actions.pod:2708
22330 #, no-wrap
22331 msgid ""
22332 " mke2fs-JL fstype blocksize device label\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: textblock
22337 #: ../fish/guestfish-actions.pod:2713
22338 msgid "See also L</mke2journal-L>."
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:2715
22343 msgid "mke2fs-JU"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:2717
22348 #, no-wrap
22349 msgid ""
22350 " mke2fs-JU fstype blocksize device uuid\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fish/guestfish-actions.pod:2722
22356 msgid "See also L</mke2journal-U>."
22357 msgstr ""
22358
22359 # type: =head2
22360 #: ../fish/guestfish-actions.pod:2724
22361 msgid "mke2journal"
22362 msgstr ""
22363
22364 # type: verbatim
22365 #: ../fish/guestfish-actions.pod:2726
22366 #, no-wrap
22367 msgid ""
22368 " mke2journal blocksize device\n"
22369 "\n"
22370 msgstr ""
22371
22372 # type: =head2
22373 #: ../fish/guestfish-actions.pod:2733
22374 msgid "mke2journal-L"
22375 msgstr ""
22376
22377 # type: verbatim
22378 #: ../fish/guestfish-actions.pod:2735
22379 #, no-wrap
22380 msgid ""
22381 " mke2journal-L blocksize label device\n"
22382 "\n"
22383 msgstr ""
22384
22385 # type: =head2
22386 #: ../fish/guestfish-actions.pod:2739
22387 msgid "mke2journal-U"
22388 msgstr ""
22389
22390 # type: verbatim
22391 #: ../fish/guestfish-actions.pod:2741
22392 #, no-wrap
22393 msgid ""
22394 " mke2journal-U blocksize uuid device\n"
22395 "\n"
22396 msgstr ""
22397
22398 # type: =head2
22399 #: ../fish/guestfish-actions.pod:2745
22400 msgid "mkfifo"
22401 msgstr ""
22402
22403 # type: verbatim
22404 #: ../fish/guestfish-actions.pod:2747
22405 #, no-wrap
22406 msgid ""
22407 " mkfifo mode path\n"
22408 "\n"
22409 msgstr ""
22410
22411 # type: textblock
22412 #: ../fish/guestfish-actions.pod:2749
22413 msgid ""
22414 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22415 "is just a convenient wrapper around L</mknod>."
22416 msgstr ""
22417
22418 # type: =head2
22419 #: ../fish/guestfish-actions.pod:2755
22420 msgid "mkfs"
22421 msgstr ""
22422
22423 # type: verbatim
22424 #: ../fish/guestfish-actions.pod:2757
22425 #, no-wrap
22426 msgid ""
22427 " mkfs fstype device\n"
22428 "\n"
22429 msgstr ""
22430
22431 # type: =head2
22432 #: ../fish/guestfish-actions.pod:2763
22433 msgid "mkfs-b"
22434 msgstr ""
22435
22436 # type: verbatim
22437 #: ../fish/guestfish-actions.pod:2765
22438 #, no-wrap
22439 msgid ""
22440 " mkfs-b fstype blocksize device\n"
22441 "\n"
22442 msgstr ""
22443
22444 # type: textblock
22445 #: ../fish/guestfish-actions.pod:2767
22446 msgid ""
22447 "This call is similar to L</mkfs>, but it allows you to control the block "
22448 "size of the resulting filesystem.  Supported block sizes depend on the "
22449 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22450 msgstr ""
22451
22452 # type: =head2
22453 #: ../fish/guestfish-actions.pod:2775
22454 msgid "mkmountpoint"
22455 msgstr ""
22456
22457 # type: verbatim
22458 #: ../fish/guestfish-actions.pod:2777
22459 #, no-wrap
22460 msgid ""
22461 " mkmountpoint exemptpath\n"
22462 "\n"
22463 msgstr ""
22464
22465 # type: textblock
22466 #: ../fish/guestfish-actions.pod:2779
22467 msgid ""
22468 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22469 "to create extra mountpoints before mounting the first filesystem."
22470 msgstr ""
22471
22472 # type: textblock
22473 #: ../fish/guestfish-actions.pod:2803
22474 msgid ""
22475 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22476 "unexpected errors if you try to mix these calls.  It is safest to manually "
22477 "unmount filesystems and remove mountpoints after use."
22478 msgstr ""
22479
22480 # type: textblock
22481 #: ../fish/guestfish-actions.pod:2807
22482 msgid ""
22483 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22484 "for this to work for manual mountpoints, you must ensure that the innermost "
22485 "mountpoints have the longest pathnames, as in the example code above."
22486 msgstr ""
22487
22488 # type: textblock
22489 #: ../fish/guestfish-actions.pod:2814
22490 msgid ""
22491 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22492 "that L</umount-all> is called when the handle is closed which can also "
22493 "trigger these issues."
22494 msgstr ""
22495
22496 # type: =head2
22497 #: ../fish/guestfish-actions.pod:2818
22498 msgid "mknod"
22499 msgstr ""
22500
22501 # type: verbatim
22502 #: ../fish/guestfish-actions.pod:2820
22503 #, no-wrap
22504 msgid ""
22505 " mknod mode devmajor devminor path\n"
22506 "\n"
22507 msgstr ""
22508
22509 # type: textblock
22510 #: ../fish/guestfish-actions.pod:2830
22511 msgid ""
22512 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22513 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22514 "regular file).  These constants are available in the standard Linux header "
22515 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22516 "wrappers around this command which bitwise OR in the appropriate constant "
22517 "for you."
22518 msgstr ""
22519
22520 # type: =head2
22521 #: ../fish/guestfish-actions.pod:2840
22522 msgid "mknod-b"
22523 msgstr ""
22524
22525 # type: verbatim
22526 #: ../fish/guestfish-actions.pod:2842
22527 #, no-wrap
22528 msgid ""
22529 " mknod-b mode devmajor devminor path\n"
22530 "\n"
22531 msgstr ""
22532
22533 # type: textblock
22534 #: ../fish/guestfish-actions.pod:2844
22535 msgid ""
22536 "This call creates a block device node called C<path> with mode C<mode> and "
22537 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22538 "wrapper around L</mknod>."
22539 msgstr ""
22540
22541 # type: =head2
22542 #: ../fish/guestfish-actions.pod:2850
22543 msgid "mknod-c"
22544 msgstr ""
22545
22546 # type: verbatim
22547 #: ../fish/guestfish-actions.pod:2852
22548 #, no-wrap
22549 msgid ""
22550 " mknod-c mode devmajor devminor path\n"
22551 "\n"
22552 msgstr ""
22553
22554 # type: textblock
22555 #: ../fish/guestfish-actions.pod:2854
22556 msgid ""
22557 "This call creates a char device node called C<path> with mode C<mode> and "
22558 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22559 "wrapper around L</mknod>."
22560 msgstr ""
22561
22562 # type: =head2
22563 #: ../fish/guestfish-actions.pod:2860
22564 msgid "mkswap"
22565 msgstr ""
22566
22567 # type: verbatim
22568 #: ../fish/guestfish-actions.pod:2862
22569 #, no-wrap
22570 msgid ""
22571 " mkswap device\n"
22572 "\n"
22573 msgstr ""
22574
22575 # type: =head2
22576 #: ../fish/guestfish-actions.pod:2866
22577 msgid "mkswap-L"
22578 msgstr ""
22579
22580 # type: verbatim
22581 #: ../fish/guestfish-actions.pod:2868
22582 #, no-wrap
22583 msgid ""
22584 " mkswap-L label device\n"
22585 "\n"
22586 msgstr ""
22587
22588 # type: =head2
22589 #: ../fish/guestfish-actions.pod:2876
22590 msgid "mkswap-U"
22591 msgstr ""
22592
22593 # type: verbatim
22594 #: ../fish/guestfish-actions.pod:2878
22595 #, no-wrap
22596 msgid ""
22597 " mkswap-U uuid device\n"
22598 "\n"
22599 msgstr ""
22600
22601 # type: =head2
22602 #: ../fish/guestfish-actions.pod:2882
22603 msgid "mkswap-file"
22604 msgstr ""
22605
22606 # type: verbatim
22607 #: ../fish/guestfish-actions.pod:2884
22608 #, no-wrap
22609 msgid ""
22610 " mkswap-file path\n"
22611 "\n"
22612 msgstr ""
22613
22614 # type: textblock
22615 #: ../fish/guestfish-actions.pod:2888
22616 msgid ""
22617 "This command just writes a swap file signature to an existing file.  To "
22618 "create the file itself, use something like L</fallocate>."
22619 msgstr ""
22620
22621 # type: =head2
22622 #: ../fish/guestfish-actions.pod:2891
22623 msgid "modprobe"
22624 msgstr ""
22625
22626 # type: verbatim
22627 #: ../fish/guestfish-actions.pod:2893
22628 #, no-wrap
22629 msgid ""
22630 " modprobe modulename\n"
22631 "\n"
22632 msgstr ""
22633
22634 # type: =head2
22635 #: ../fish/guestfish-actions.pod:2900
22636 msgid "mount"
22637 msgstr ""
22638
22639 # type: verbatim
22640 #: ../fish/guestfish-actions.pod:2902
22641 #, no-wrap
22642 msgid ""
22643 " mount device mountpoint\n"
22644 "\n"
22645 msgstr ""
22646
22647 # type: textblock
22648 #: ../fish/guestfish-actions.pod:2918
22649 msgid ""
22650 "B<Important note:> When you use this call, the filesystem options C<sync> "
22651 "and C<noatime> are set implicitly.  This was originally done because we "
22652 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22653 "very large negative performance impact and negligible effect on "
22654 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22655 "code that needs performance, and instead use L</mount-options> (use an empty "
22656 "string for the first parameter if you don't want any options)."
22657 msgstr ""
22658
22659 # type: =head2
22660 #: ../fish/guestfish-actions.pod:2928
22661 msgid "mount-loop"
22662 msgstr ""
22663
22664 # type: verbatim
22665 #: ../fish/guestfish-actions.pod:2930
22666 #, no-wrap
22667 msgid ""
22668 " mount-loop file mountpoint\n"
22669 "\n"
22670 msgstr ""
22671
22672 # type: =head2
22673 #: ../fish/guestfish-actions.pod:2936
22674 msgid "mount-options"
22675 msgstr ""
22676
22677 # type: verbatim
22678 #: ../fish/guestfish-actions.pod:2938
22679 #, no-wrap
22680 msgid ""
22681 " mount-options options device mountpoint\n"
22682 "\n"
22683 msgstr ""
22684
22685 # type: textblock
22686 #: ../fish/guestfish-actions.pod:2940
22687 msgid ""
22688 "This is the same as the L</mount> command, but it allows you to set the "
22689 "mount options as for the L<mount(8)> I<-o> flag."
22690 msgstr ""
22691
22692 # type: =head2
22693 #: ../fish/guestfish-actions.pod:2948
22694 msgid "mount-ro"
22695 msgstr ""
22696
22697 # type: verbatim
22698 #: ../fish/guestfish-actions.pod:2950
22699 #, no-wrap
22700 msgid ""
22701 " mount-ro device mountpoint\n"
22702 "\n"
22703 msgstr ""
22704
22705 # type: textblock
22706 #: ../fish/guestfish-actions.pod:2952
22707 msgid ""
22708 "This is the same as the L</mount> command, but it mounts the filesystem with "
22709 "the read-only (I<-o ro>) flag."
22710 msgstr ""
22711
22712 # type: =head2
22713 #: ../fish/guestfish-actions.pod:2955
22714 msgid "mount-vfs"
22715 msgstr ""
22716
22717 # type: verbatim
22718 #: ../fish/guestfish-actions.pod:2957
22719 #, no-wrap
22720 msgid ""
22721 " mount-vfs options vfstype device mountpoint\n"
22722 "\n"
22723 msgstr ""
22724
22725 # type: textblock
22726 #: ../fish/guestfish-actions.pod:2959
22727 msgid ""
22728 "This is the same as the L</mount> command, but it allows you to set both the "
22729 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22730 msgstr ""
22731
22732 # type: =head2
22733 #: ../fish/guestfish-actions.pod:2963
22734 msgid "mountpoints"
22735 msgstr ""
22736
22737 # type: verbatim
22738 #: ../fish/guestfish-actions.pod:2965
22739 #, no-wrap
22740 msgid ""
22741 " mountpoints\n"
22742 "\n"
22743 msgstr ""
22744
22745 # type: textblock
22746 #: ../fish/guestfish-actions.pod:2967
22747 msgid ""
22748 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22749 "This one returns a hash table (map) of device name to directory where the "
22750 "device is mounted."
22751 msgstr ""
22752
22753 # type: =head2
22754 #: ../fish/guestfish-actions.pod:2971
22755 msgid "mounts"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #: ../fish/guestfish-actions.pod:2973
22760 #, no-wrap
22761 msgid ""
22762 " mounts\n"
22763 "\n"
22764 msgstr ""
22765
22766 # type: textblock
22767 #: ../fish/guestfish-actions.pod:2980
22768 msgid "See also: L</mountpoints>"
22769 msgstr ""
22770
22771 # type: =head2
22772 #: ../fish/guestfish-actions.pod:2982
22773 msgid "mv"
22774 msgstr ""
22775
22776 # type: verbatim
22777 #: ../fish/guestfish-actions.pod:2984
22778 #, no-wrap
22779 msgid ""
22780 " mv src dest\n"
22781 "\n"
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-actions.pod:2989
22786 msgid "ntfs-3g-probe"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fish/guestfish-actions.pod:2991
22791 #, no-wrap
22792 msgid ""
22793 " ntfs-3g-probe true|false device\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: =head2
22798 #: ../fish/guestfish-actions.pod:3005
22799 msgid "ntfsresize"
22800 msgstr ""
22801
22802 # type: verbatim
22803 #: ../fish/guestfish-actions.pod:3007
22804 #, no-wrap
22805 msgid ""
22806 " ntfsresize device\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: =head2
22811 #: ../fish/guestfish-actions.pod:3013
22812 msgid "ntfsresize-size"
22813 msgstr ""
22814
22815 # type: verbatim
22816 #: ../fish/guestfish-actions.pod:3015
22817 #, no-wrap
22818 msgid ""
22819 " ntfsresize-size device size\n"
22820 "\n"
22821 msgstr ""
22822
22823 # type: textblock
22824 #: ../fish/guestfish-actions.pod:3017
22825 msgid ""
22826 "This command is the same as L</ntfsresize> except that it allows you to "
22827 "specify the new size (in bytes) explicitly."
22828 msgstr ""
22829
22830 # type: =head2
22831 #: ../fish/guestfish-actions.pod:3020
22832 msgid "part-add"
22833 msgstr ""
22834
22835 # type: verbatim
22836 #: ../fish/guestfish-actions.pod:3022
22837 #, no-wrap
22838 msgid ""
22839 " part-add device prlogex startsect endsect\n"
22840 "\n"
22841 msgstr ""
22842
22843 # type: textblock
22844 #: ../fish/guestfish-actions.pod:3024
22845 msgid ""
22846 "This command adds a partition to C<device>.  If there is no partition table "
22847 "on the device, call L</part-init> first."
22848 msgstr ""
22849
22850 # type: textblock
22851 #: ../fish/guestfish-actions.pod:3036
22852 msgid ""
22853 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22854 "part-disk> to do that."
22855 msgstr ""
22856
22857 # type: =head2
22858 #: ../fish/guestfish-actions.pod:3039
22859 msgid "part-del"
22860 msgstr ""
22861
22862 # type: verbatim
22863 #: ../fish/guestfish-actions.pod:3041
22864 #, no-wrap
22865 msgid ""
22866 " part-del device partnum\n"
22867 "\n"
22868 msgstr ""
22869
22870 # type: =head2
22871 #: ../fish/guestfish-actions.pod:3049
22872 msgid "part-disk"
22873 msgstr ""
22874
22875 # type: verbatim
22876 #: ../fish/guestfish-actions.pod:3051
22877 #, no-wrap
22878 msgid ""
22879 " part-disk device parttype\n"
22880 "\n"
22881 msgstr ""
22882
22883 # type: textblock
22884 #: ../fish/guestfish-actions.pod:3053
22885 msgid ""
22886 "This command is simply a combination of L</part-init> followed by L</part-"
22887 "add> to create a single primary partition covering the whole disk."
22888 msgstr ""
22889
22890 # type: textblock
22891 #: ../fish/guestfish-actions.pod:3057
22892 msgid ""
22893 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22894 "possible values are described in L</part-init>."
22895 msgstr ""
22896
22897 # type: =head2
22898 #: ../fish/guestfish-actions.pod:3063
22899 msgid "part-get-bootable"
22900 msgstr ""
22901
22902 # type: verbatim
22903 #: ../fish/guestfish-actions.pod:3065
22904 #, no-wrap
22905 msgid ""
22906 " part-get-bootable device partnum\n"
22907 "\n"
22908 msgstr ""
22909
22910 # type: textblock
22911 #: ../fish/guestfish-actions.pod:3070
22912 msgid "See also L</part-set-bootable>."
22913 msgstr ""
22914
22915 # type: =head2
22916 #: ../fish/guestfish-actions.pod:3072
22917 msgid "part-get-mbr-id"
22918 msgstr ""
22919
22920 # type: verbatim
22921 #: ../fish/guestfish-actions.pod:3074
22922 #, no-wrap
22923 msgid ""
22924 " part-get-mbr-id device partnum\n"
22925 "\n"
22926 msgstr ""
22927
22928 # type: textblock
22929 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22930 msgid ""
22931 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22932 "undefined results for other partition table types (see L</part-get-"
22933 "parttype>)."
22934 msgstr ""
22935
22936 # type: =head2
22937 #: ../fish/guestfish-actions.pod:3083
22938 msgid "part-get-parttype"
22939 msgstr ""
22940
22941 # type: verbatim
22942 #: ../fish/guestfish-actions.pod:3085
22943 #, no-wrap
22944 msgid ""
22945 " part-get-parttype device\n"
22946 "\n"
22947 msgstr ""
22948
22949 # type: textblock
22950 #: ../fish/guestfish-actions.pod:3090
22951 msgid ""
22952 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22953 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22954 "possible, although unusual.  See L</part-init> for a full list."
22955 msgstr ""
22956
22957 # type: =head2
22958 #: ../fish/guestfish-actions.pod:3095
22959 msgid "part-init"
22960 msgstr ""
22961
22962 # type: verbatim
22963 #: ../fish/guestfish-actions.pod:3097
22964 #, no-wrap
22965 msgid ""
22966 " part-init device parttype\n"
22967 "\n"
22968 msgstr ""
22969
22970 # type: textblock
22971 #: ../fish/guestfish-actions.pod:3103
22972 msgid ""
22973 "Initially there are no partitions.  Following this, you should call L</part-"
22974 "add> for each partition required."
22975 msgstr ""
22976
22977 # type: =head2
22978 #: ../fish/guestfish-actions.pod:3166
22979 msgid "part-list"
22980 msgstr ""
22981
22982 # type: verbatim
22983 #: ../fish/guestfish-actions.pod:3168
22984 #, no-wrap
22985 msgid ""
22986 " part-list device\n"
22987 "\n"
22988 msgstr ""
22989
22990 # type: textblock
22991 #: ../fish/guestfish-actions.pod:3183
22992 msgid ""
22993 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22994 "the device's sector size, see L</blockdev-getss>."
22995 msgstr ""
22996
22997 # type: =head2
22998 #: ../fish/guestfish-actions.pod:3196
22999 msgid "part-set-bootable"
23000 msgstr ""
23001
23002 # type: verbatim
23003 #: ../fish/guestfish-actions.pod:3198
23004 #, no-wrap
23005 msgid ""
23006 " part-set-bootable device partnum true|false\n"
23007 "\n"
23008 msgstr ""
23009
23010 # type: =head2
23011 #: ../fish/guestfish-actions.pod:3207
23012 msgid "part-set-mbr-id"
23013 msgstr ""
23014
23015 # type: verbatim
23016 #: ../fish/guestfish-actions.pod:3209
23017 #, no-wrap
23018 msgid ""
23019 " part-set-mbr-id device partnum idbyte\n"
23020 "\n"
23021 msgstr ""
23022
23023 # type: =head2
23024 #: ../fish/guestfish-actions.pod:3221
23025 msgid "part-set-name"
23026 msgstr ""
23027
23028 # type: verbatim
23029 #: ../fish/guestfish-actions.pod:3223
23030 #, no-wrap
23031 msgid ""
23032 " part-set-name device partnum name\n"
23033 "\n"
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:3231
23038 msgid "part-to-dev"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:3233
23043 #, no-wrap
23044 msgid ""
23045 " part-to-dev partition\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: textblock
23050 #: ../fish/guestfish-actions.pod:3239
23051 msgid ""
23052 "The named partition must exist, for example as a string returned from L</"
23053 "list-partitions>."
23054 msgstr ""
23055
23056 # type: =head2
23057 #: ../fish/guestfish-actions.pod:3242
23058 msgid "ping-daemon"
23059 msgstr ""
23060
23061 # type: verbatim
23062 #: ../fish/guestfish-actions.pod:3244
23063 #, no-wrap
23064 msgid ""
23065 " ping-daemon\n"
23066 "\n"
23067 msgstr ""
23068
23069 # type: =head2
23070 #: ../fish/guestfish-actions.pod:3251
23071 msgid "pread"
23072 msgstr ""
23073
23074 # type: verbatim
23075 #: ../fish/guestfish-actions.pod:3253
23076 #, no-wrap
23077 msgid ""
23078 " pread path count offset\n"
23079 "\n"
23080 msgstr ""
23081
23082 # type: textblock
23083 #: ../fish/guestfish-actions.pod:3261
23084 msgid "See also L</pwrite>, L</pread-device>."
23085 msgstr ""
23086
23087 # type: =head2
23088 #: ../fish/guestfish-actions.pod:3266
23089 msgid "pread-device"
23090 msgstr ""
23091
23092 # type: verbatim
23093 #: ../fish/guestfish-actions.pod:3268
23094 #, no-wrap
23095 msgid ""
23096 " pread-device device count offset\n"
23097 "\n"
23098 msgstr ""
23099
23100 # type: textblock
23101 #: ../fish/guestfish-actions.pod:3276
23102 msgid "See also L</pread>."
23103 msgstr ""
23104
23105 # type: =head2
23106 #: ../fish/guestfish-actions.pod:3281
23107 msgid "pvcreate"
23108 msgstr ""
23109
23110 # type: verbatim
23111 #: ../fish/guestfish-actions.pod:3283
23112 #, no-wrap
23113 msgid ""
23114 " pvcreate device\n"
23115 "\n"
23116 msgstr ""
23117
23118 # type: =head2
23119 #: ../fish/guestfish-actions.pod:3289
23120 msgid "pvremove"
23121 msgstr ""
23122
23123 # type: verbatim
23124 #: ../fish/guestfish-actions.pod:3291
23125 #, no-wrap
23126 msgid ""
23127 " pvremove device\n"
23128 "\n"
23129 msgstr ""
23130
23131 # type: =head2
23132 #: ../fish/guestfish-actions.pod:3300
23133 msgid "pvresize"
23134 msgstr ""
23135
23136 # type: verbatim
23137 #: ../fish/guestfish-actions.pod:3302
23138 #, no-wrap
23139 msgid ""
23140 " pvresize device\n"
23141 "\n"
23142 msgstr ""
23143
23144 # type: =head2
23145 #: ../fish/guestfish-actions.pod:3307
23146 msgid "pvresize-size"
23147 msgstr ""
23148
23149 # type: verbatim
23150 #: ../fish/guestfish-actions.pod:3309
23151 #, no-wrap
23152 msgid ""
23153 " pvresize-size device size\n"
23154 "\n"
23155 msgstr ""
23156
23157 # type: textblock
23158 #: ../fish/guestfish-actions.pod:3311
23159 msgid ""
23160 "This command is the same as L</pvresize> except that it allows you to "
23161 "specify the new size (in bytes) explicitly."
23162 msgstr ""
23163
23164 # type: =head2
23165 #: ../fish/guestfish-actions.pod:3314
23166 msgid "pvs"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #: ../fish/guestfish-actions.pod:3316
23171 #, no-wrap
23172 msgid ""
23173 " pvs\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../fish/guestfish-actions.pod:3324
23179 msgid "See also L</pvs-full>."
23180 msgstr ""
23181
23182 # type: =head2
23183 #: ../fish/guestfish-actions.pod:3326
23184 msgid "pvs-full"
23185 msgstr ""
23186
23187 # type: verbatim
23188 #: ../fish/guestfish-actions.pod:3328
23189 #, no-wrap
23190 msgid ""
23191 " pvs-full\n"
23192 "\n"
23193 msgstr ""
23194
23195 # type: =head2
23196 #: ../fish/guestfish-actions.pod:3333
23197 msgid "pvuuid"
23198 msgstr ""
23199
23200 # type: verbatim
23201 #: ../fish/guestfish-actions.pod:3335
23202 #, no-wrap
23203 msgid ""
23204 " pvuuid device\n"
23205 "\n"
23206 msgstr ""
23207
23208 # type: =head2
23209 #: ../fish/guestfish-actions.pod:3339
23210 msgid "pwrite"
23211 msgstr ""
23212
23213 # type: verbatim
23214 #: ../fish/guestfish-actions.pod:3341
23215 #, no-wrap
23216 msgid ""
23217 " pwrite path content offset\n"
23218 "\n"
23219 msgstr ""
23220
23221 # type: textblock
23222 #: ../fish/guestfish-actions.pod:3352
23223 msgid "See also L</pread>, L</pwrite-device>."
23224 msgstr ""
23225
23226 # type: =head2
23227 #: ../fish/guestfish-actions.pod:3357
23228 msgid "pwrite-device"
23229 msgstr ""
23230
23231 # type: verbatim
23232 #: ../fish/guestfish-actions.pod:3359
23233 #, no-wrap
23234 msgid ""
23235 " pwrite-device device content offset\n"
23236 "\n"
23237 msgstr ""
23238
23239 # type: textblock
23240 #: ../fish/guestfish-actions.pod:3369
23241 msgid "See also L</pwrite>."
23242 msgstr ""
23243
23244 # type: =head2
23245 #: ../fish/guestfish-actions.pod:3374
23246 msgid "read-file"
23247 msgstr ""
23248
23249 # type: verbatim
23250 #: ../fish/guestfish-actions.pod:3376
23251 #, no-wrap
23252 msgid ""
23253 " read-file path\n"
23254 "\n"
23255 msgstr ""
23256
23257 # type: textblock
23258 #: ../fish/guestfish-actions.pod:3381
23259 msgid ""
23260 "Unlike L</cat>, this function can correctly handle files that contain "
23261 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23262 "is limited in the total size of file that can be handled."
23263 msgstr ""
23264
23265 # type: =head2
23266 #: ../fish/guestfish-actions.pod:3389
23267 msgid "read-lines"
23268 msgstr ""
23269
23270 # type: verbatim
23271 #: ../fish/guestfish-actions.pod:3391
23272 #, no-wrap
23273 msgid ""
23274 " read-lines path\n"
23275 "\n"
23276 msgstr ""
23277
23278 # type: textblock
23279 #: ../fish/guestfish-actions.pod:3398
23280 msgid ""
23281 "Note that this function cannot correctly handle binary files (specifically, "
23282 "files containing C<\\0> character which is treated as end of line).  For "
23283 "those you need to use the L</read-file> function which has a more complex "
23284 "interface."
23285 msgstr ""
23286
23287 # type: =head2
23288 #: ../fish/guestfish-actions.pod:3403
23289 msgid "readdir"
23290 msgstr ""
23291
23292 # type: verbatim
23293 #: ../fish/guestfish-actions.pod:3405
23294 #, no-wrap
23295 msgid ""
23296 " readdir dir\n"
23297 "\n"
23298 msgstr ""
23299
23300 # type: textblock
23301 #: ../fish/guestfish-actions.pod:3457
23302 msgid ""
23303 "This function is primarily intended for use by programs.  To get a simple "
23304 "list of names, use L</ls>.  To get a printable directory for human "
23305 "consumption, use L</ll>."
23306 msgstr ""
23307
23308 # type: =head2
23309 #: ../fish/guestfish-actions.pod:3461
23310 msgid "readlink"
23311 msgstr ""
23312
23313 # type: verbatim
23314 #: ../fish/guestfish-actions.pod:3463
23315 #, no-wrap
23316 msgid ""
23317 " readlink path\n"
23318 "\n"
23319 msgstr ""
23320
23321 # type: =head2
23322 #: ../fish/guestfish-actions.pod:3467
23323 msgid "readlinklist"
23324 msgstr ""
23325
23326 # type: verbatim
23327 #: ../fish/guestfish-actions.pod:3469
23328 #, no-wrap
23329 msgid ""
23330 " readlinklist path 'names ...'\n"
23331 "\n"
23332 msgstr ""
23333
23334 # type: =head2
23335 #: ../fish/guestfish-actions.pod:3493
23336 msgid "realpath"
23337 msgstr ""
23338
23339 # type: verbatim
23340 #: ../fish/guestfish-actions.pod:3495
23341 #, no-wrap
23342 msgid ""
23343 " realpath path\n"
23344 "\n"
23345 msgstr ""
23346
23347 # type: =head2
23348 #: ../fish/guestfish-actions.pod:3500
23349 msgid "removexattr"
23350 msgstr ""
23351
23352 # type: verbatim
23353 #: ../fish/guestfish-actions.pod:3502
23354 #, no-wrap
23355 msgid ""
23356 " removexattr xattr path\n"
23357 "\n"
23358 msgstr ""
23359
23360 # type: textblock
23361 #: ../fish/guestfish-actions.pod:3507
23362 msgid "See also: L</lremovexattr>, L<attr(5)>."
23363 msgstr ""
23364
23365 # type: =head2
23366 #: ../fish/guestfish-actions.pod:3509
23367 msgid "resize2fs"
23368 msgstr ""
23369
23370 # type: verbatim
23371 #: ../fish/guestfish-actions.pod:3511
23372 #, no-wrap
23373 msgid ""
23374 " resize2fs device\n"
23375 "\n"
23376 msgstr ""
23377
23378 # type: textblock
23379 #: ../fish/guestfish-actions.pod:3516
23380 msgid ""
23381 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23382 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23383 "gives an error about this and sometimes not.  In any case, it is always safe "
23384 "to call L</e2fsck-f> before calling this function."
23385 msgstr ""
23386
23387 # type: =head2
23388 #: ../fish/guestfish-actions.pod:3522
23389 msgid "resize2fs-size"
23390 msgstr ""
23391
23392 # type: verbatim
23393 #: ../fish/guestfish-actions.pod:3524
23394 #, no-wrap
23395 msgid ""
23396 " resize2fs-size device size\n"
23397 "\n"
23398 msgstr ""
23399
23400 # type: textblock
23401 #: ../fish/guestfish-actions.pod:3526
23402 msgid ""
23403 "This command is the same as L</resize2fs> except that it allows you to "
23404 "specify the new size (in bytes) explicitly."
23405 msgstr ""
23406
23407 # type: =head2
23408 #: ../fish/guestfish-actions.pod:3529
23409 msgid "rm"
23410 msgstr ""
23411
23412 # type: verbatim
23413 #: ../fish/guestfish-actions.pod:3531
23414 #, no-wrap
23415 msgid ""
23416 " rm path\n"
23417 "\n"
23418 msgstr ""
23419
23420 # type: =head2
23421 #: ../fish/guestfish-actions.pod:3535
23422 msgid "rm-rf"
23423 msgstr ""
23424
23425 # type: verbatim
23426 #: ../fish/guestfish-actions.pod:3537
23427 #, no-wrap
23428 msgid ""
23429 " rm-rf path\n"
23430 "\n"
23431 msgstr ""
23432
23433 # type: =head2
23434 #: ../fish/guestfish-actions.pod:3543
23435 msgid "rmdir"
23436 msgstr ""
23437
23438 # type: verbatim
23439 #: ../fish/guestfish-actions.pod:3545
23440 #, no-wrap
23441 msgid ""
23442 " rmdir path\n"
23443 "\n"
23444 msgstr ""
23445
23446 # type: =head2
23447 #: ../fish/guestfish-actions.pod:3549
23448 msgid "rmmountpoint"
23449 msgstr ""
23450
23451 # type: verbatim
23452 #: ../fish/guestfish-actions.pod:3551
23453 #, no-wrap
23454 msgid ""
23455 " rmmountpoint exemptpath\n"
23456 "\n"
23457 msgstr ""
23458
23459 # type: textblock
23460 #: ../fish/guestfish-actions.pod:3553
23461 msgid ""
23462 "This calls removes a mountpoint that was previously created with L</"
23463 "mkmountpoint>.  See L</mkmountpoint> for full details."
23464 msgstr ""
23465
23466 # type: =head2
23467 #: ../fish/guestfish-actions.pod:3557
23468 msgid "scrub-device"
23469 msgstr ""
23470
23471 # type: verbatim
23472 #: ../fish/guestfish-actions.pod:3559
23473 #, no-wrap
23474 msgid ""
23475 " scrub-device device\n"
23476 "\n"
23477 msgstr ""
23478
23479 # type: =head2
23480 #: ../fish/guestfish-actions.pod:3570
23481 msgid "scrub-file"
23482 msgstr ""
23483
23484 # type: verbatim
23485 #: ../fish/guestfish-actions.pod:3572
23486 #, no-wrap
23487 msgid ""
23488 " scrub-file file\n"
23489 "\n"
23490 msgstr ""
23491
23492 # type: =head2
23493 #: ../fish/guestfish-actions.pod:3582
23494 msgid "scrub-freespace"
23495 msgstr ""
23496
23497 # type: verbatim
23498 #: ../fish/guestfish-actions.pod:3584
23499 #, no-wrap
23500 msgid ""
23501 " scrub-freespace dir\n"
23502 "\n"
23503 msgstr ""
23504
23505 # type: textblock
23506 #: ../fish/guestfish-actions.pod:3586
23507 msgid ""
23508 "This command creates the directory C<dir> and then fills it with files until "
23509 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23510 "deletes them.  The intention is to scrub any free space on the partition "
23511 "containing C<dir>."
23512 msgstr ""
23513
23514 # type: =head2
23515 #: ../fish/guestfish-actions.pod:3595
23516 msgid "set-append"
23517 msgstr ""
23518
23519 # type: =head2
23520 #: ../fish/guestfish-actions.pod:3597
23521 msgid "append"
23522 msgstr ""
23523
23524 # type: verbatim
23525 #: ../fish/guestfish-actions.pod:3599
23526 #, no-wrap
23527 msgid ""
23528 " set-append append\n"
23529 "\n"
23530 msgstr ""
23531
23532 # type: =head2
23533 #: ../fish/guestfish-actions.pod:3610
23534 msgid "set-autosync"
23535 msgstr ""
23536
23537 # type: =head2
23538 #: ../fish/guestfish-actions.pod:3612
23539 msgid "autosync"
23540 msgstr ""
23541
23542 # type: verbatim
23543 #: ../fish/guestfish-actions.pod:3614
23544 #, no-wrap
23545 msgid ""
23546 " set-autosync true|false\n"
23547 "\n"
23548 msgstr ""
23549
23550 # type: textblock
23551 #: ../fish/guestfish-actions.pod:3616
23552 msgid ""
23553 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23554 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23555 "closed (also if the program exits without closing handles)."
23556 msgstr ""
23557
23558 # type: =head2
23559 #: ../fish/guestfish-actions.pod:3624
23560 msgid "set-direct"
23561 msgstr ""
23562
23563 # type: =head2
23564 #: ../fish/guestfish-actions.pod:3626
23565 msgid "direct"
23566 msgstr ""
23567
23568 # type: verbatim
23569 #: ../fish/guestfish-actions.pod:3628
23570 #, no-wrap
23571 msgid ""
23572 " set-direct true|false\n"
23573 "\n"
23574 msgstr ""
23575
23576 # type: textblock
23577 #: ../fish/guestfish-actions.pod:3634
23578 msgid ""
23579 "One consequence of this is that log messages aren't caught by the library "
23580 "and handled by L</set-log-message-callback>, but go straight to stdout."
23581 msgstr ""
23582
23583 # type: =head2
23584 #: ../fish/guestfish-actions.pod:3643
23585 msgid "set-e2label"
23586 msgstr ""
23587
23588 # type: verbatim
23589 #: ../fish/guestfish-actions.pod:3645
23590 #, no-wrap
23591 msgid ""
23592 " set-e2label device label\n"
23593 "\n"
23594 msgstr ""
23595
23596 # type: textblock
23597 #: ../fish/guestfish-actions.pod:3651
23598 msgid ""
23599 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23600 "label on a filesystem."
23601 msgstr ""
23602
23603 # type: =head2
23604 #: ../fish/guestfish-actions.pod:3654
23605 msgid "set-e2uuid"
23606 msgstr ""
23607
23608 # type: verbatim
23609 #: ../fish/guestfish-actions.pod:3656
23610 #, no-wrap
23611 msgid ""
23612 " set-e2uuid device uuid\n"
23613 "\n"
23614 msgstr ""
23615
23616 # type: textblock
23617 #: ../fish/guestfish-actions.pod:3663
23618 msgid ""
23619 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23620 "UUID of a filesystem."
23621 msgstr ""
23622
23623 # type: =head2
23624 #: ../fish/guestfish-actions.pod:3666
23625 msgid "set-memsize"
23626 msgstr ""
23627
23628 # type: =head2
23629 #: ../fish/guestfish-actions.pod:3668
23630 msgid "memsize"
23631 msgstr ""
23632
23633 # type: verbatim
23634 #: ../fish/guestfish-actions.pod:3670
23635 #, no-wrap
23636 msgid ""
23637 " set-memsize memsize\n"
23638 "\n"
23639 msgstr ""
23640
23641 # type: textblock
23642 #: ../fish/guestfish-actions.pod:3672
23643 msgid ""
23644 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23645 "This only has any effect if called before L</launch>."
23646 msgstr ""
23647
23648 # type: =head2
23649 #: ../fish/guestfish-actions.pod:3683
23650 msgid "set-network"
23651 msgstr ""
23652
23653 # type: =head2
23654 #: ../fish/guestfish-actions.pod:3685
23655 msgid "network"
23656 msgstr ""
23657
23658 # type: verbatim
23659 #: ../fish/guestfish-actions.pod:3687
23660 #, no-wrap
23661 msgid ""
23662 " set-network true|false\n"
23663 "\n"
23664 msgstr ""
23665
23666 # type: textblock
23667 #: ../fish/guestfish-actions.pod:3695
23668 msgid ""
23669 "You must call this before calling L</launch>, otherwise it has no effect."
23670 msgstr ""
23671
23672 # type: =head2
23673 #: ../fish/guestfish-actions.pod:3698
23674 msgid "set-path"
23675 msgstr ""
23676
23677 # type: =head2
23678 #: ../fish/guestfish-actions.pod:3700
23679 msgid "path"
23680 msgstr ""
23681
23682 # type: verbatim
23683 #: ../fish/guestfish-actions.pod:3702
23684 #, no-wrap
23685 msgid ""
23686 " set-path searchpath\n"
23687 "\n"
23688 msgstr ""
23689
23690 # type: =head2
23691 #: ../fish/guestfish-actions.pod:3711
23692 msgid "set-qemu"
23693 msgstr ""
23694
23695 # type: =head2
23696 #: ../fish/guestfish-actions.pod:3713
23697 msgid "qemu"
23698 msgstr ""
23699
23700 # type: verbatim
23701 #: ../fish/guestfish-actions.pod:3715
23702 #, no-wrap
23703 msgid ""
23704 " set-qemu qemu\n"
23705 "\n"
23706 msgstr ""
23707
23708 # type: =head2
23709 #: ../fish/guestfish-actions.pod:3735
23710 msgid "set-recovery-proc"
23711 msgstr ""
23712
23713 # type: =head2
23714 #: ../fish/guestfish-actions.pod:3737
23715 msgid "recovery-proc"
23716 msgstr ""
23717
23718 # type: verbatim
23719 #: ../fish/guestfish-actions.pod:3739
23720 #, no-wrap
23721 msgid ""
23722 " set-recovery-proc true|false\n"
23723 "\n"
23724 msgstr ""
23725
23726 # type: textblock
23727 #: ../fish/guestfish-actions.pod:3741
23728 msgid ""
23729 "If this is called with the parameter C<false> then L</launch> does not "
23730 "create a recovery process.  The purpose of the recovery process is to stop "
23731 "runaway qemu processes in the case where the main program aborts abruptly."
23732 msgstr ""
23733
23734 # type: textblock
23735 #: ../fish/guestfish-actions.pod:3746
23736 msgid ""
23737 "This only has any effect if called before L</launch>, and the default is "
23738 "true."
23739 msgstr ""
23740
23741 # type: =head2
23742 #: ../fish/guestfish-actions.pod:3755
23743 msgid "set-selinux"
23744 msgstr ""
23745
23746 # type: =head2
23747 #: ../fish/guestfish-actions.pod:3757
23748 msgid "selinux"
23749 msgstr ""
23750
23751 # type: verbatim
23752 #: ../fish/guestfish-actions.pod:3759
23753 #, no-wrap
23754 msgid ""
23755 " set-selinux true|false\n"
23756 "\n"
23757 msgstr ""
23758
23759 # type: =head2
23760 #: ../fish/guestfish-actions.pod:3770
23761 msgid "set-trace"
23762 msgstr ""
23763
23764 # type: =head2
23765 #: ../fish/guestfish-actions.pod:3772
23766 msgid "trace"
23767 msgstr ""
23768
23769 # type: verbatim
23770 #: ../fish/guestfish-actions.pod:3774
23771 #, no-wrap
23772 msgid ""
23773 " set-trace true|false\n"
23774 "\n"
23775 msgstr ""
23776
23777 # type: =head2
23778 #: ../fish/guestfish-actions.pod:3790
23779 msgid "set-verbose"
23780 msgstr ""
23781
23782 # type: =head2
23783 #: ../fish/guestfish-actions.pod:3792
23784 msgid "verbose"
23785 msgstr ""
23786
23787 # type: verbatim
23788 #: ../fish/guestfish-actions.pod:3794
23789 #, no-wrap
23790 msgid ""
23791 " set-verbose true|false\n"
23792 "\n"
23793 msgstr ""
23794
23795 # type: =head2
23796 #: ../fish/guestfish-actions.pod:3801
23797 msgid "setcon"
23798 msgstr ""
23799
23800 # type: verbatim
23801 #: ../fish/guestfish-actions.pod:3803
23802 #, no-wrap
23803 msgid ""
23804 " setcon context\n"
23805 "\n"
23806 msgstr ""
23807
23808 # type: =head2
23809 #: ../fish/guestfish-actions.pod:3810
23810 msgid "setxattr"
23811 msgstr ""
23812
23813 # type: verbatim
23814 #: ../fish/guestfish-actions.pod:3812
23815 #, no-wrap
23816 msgid ""
23817 " setxattr xattr val vallen path\n"
23818 "\n"
23819 msgstr ""
23820
23821 # type: textblock
23822 #: ../fish/guestfish-actions.pod:3818
23823 msgid "See also: L</lsetxattr>, L<attr(5)>."
23824 msgstr ""
23825
23826 # type: =head2
23827 #: ../fish/guestfish-actions.pod:3820
23828 msgid "sfdisk"
23829 msgstr ""
23830
23831 # type: verbatim
23832 #: ../fish/guestfish-actions.pod:3822
23833 #, no-wrap
23834 msgid ""
23835 " sfdisk device cyls heads sectors 'lines ...'\n"
23836 "\n"
23837 msgstr ""
23838
23839 # type: textblock
23840 #: ../fish/guestfish-actions.pod:3844
23841 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23842 msgstr ""
23843
23844 # type: =head2
23845 #: ../fish/guestfish-actions.pod:3850
23846 msgid "sfdiskM"
23847 msgstr ""
23848
23849 # type: verbatim
23850 #: ../fish/guestfish-actions.pod:3852
23851 #, no-wrap
23852 msgid ""
23853 " sfdiskM device 'lines ...'\n"
23854 "\n"
23855 msgstr ""
23856
23857 # type: textblock
23858 #: ../fish/guestfish-actions.pod:3854
23859 msgid ""
23860 "This is a simplified interface to the L</sfdisk> command, where partition "
23861 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23862 "you don't need to specify the cyls, heads and sectors parameters which were "
23863 "rarely if ever used anyway."
23864 msgstr ""
23865
23866 # type: textblock
23867 #: ../fish/guestfish-actions.pod:3860
23868 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23869 msgstr ""
23870
23871 # type: =head2
23872 #: ../fish/guestfish-actions.pod:3866
23873 msgid "sfdisk-N"
23874 msgstr ""
23875
23876 # type: verbatim
23877 #: ../fish/guestfish-actions.pod:3868
23878 #, no-wrap
23879 msgid ""
23880 " sfdisk-N device partnum cyls heads sectors line\n"
23881 "\n"
23882 msgstr ""
23883
23884 # type: textblock
23885 #: ../fish/guestfish-actions.pod:3873
23886 msgid ""
23887 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23888 "cyls/heads/sectors parameters."
23889 msgstr ""
23890
23891 # type: textblock
23892 #: ../fish/guestfish-actions.pod:3876
23893 msgid "See also: L</part-add>"
23894 msgstr ""
23895
23896 # type: =head2
23897 #: ../fish/guestfish-actions.pod:3881
23898 msgid "sfdisk-disk-geometry"
23899 msgstr ""
23900
23901 # type: verbatim
23902 #: ../fish/guestfish-actions.pod:3883
23903 #, no-wrap
23904 msgid ""
23905 " sfdisk-disk-geometry device\n"
23906 "\n"
23907 msgstr ""
23908
23909 # type: textblock
23910 #: ../fish/guestfish-actions.pod:3885
23911 msgid ""
23912 "This displays the disk geometry of C<device> read from the partition table.  "
23913 "Especially in the case where the underlying block device has been resized, "
23914 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23915 "kernel-geometry>)."
23916 msgstr ""
23917
23918 # type: =head2
23919 #: ../fish/guestfish-actions.pod:3893
23920 msgid "sfdisk-kernel-geometry"
23921 msgstr ""
23922
23923 # type: verbatim
23924 #: ../fish/guestfish-actions.pod:3895
23925 #, no-wrap
23926 msgid ""
23927 " sfdisk-kernel-geometry device\n"
23928 "\n"
23929 msgstr ""
23930
23931 # type: =head2
23932 #: ../fish/guestfish-actions.pod:3902
23933 msgid "sfdisk-l"
23934 msgstr ""
23935
23936 # type: verbatim
23937 #: ../fish/guestfish-actions.pod:3904
23938 #, no-wrap
23939 msgid ""
23940 " sfdisk-l device\n"
23941 "\n"
23942 msgstr ""
23943
23944 # type: textblock
23945 #: ../fish/guestfish-actions.pod:3910
23946 msgid "See also: L</part-list>"
23947 msgstr ""
23948
23949 # type: =head2
23950 #: ../fish/guestfish-actions.pod:3912
23951 msgid "sh"
23952 msgstr ""
23953
23954 # type: verbatim
23955 #: ../fish/guestfish-actions.pod:3914
23956 #, no-wrap
23957 msgid ""
23958 " sh command\n"
23959 "\n"
23960 msgstr ""
23961
23962 # type: textblock
23963 #: ../fish/guestfish-actions.pod:3919
23964 msgid "This is like L</command>, but passes the command to:"
23965 msgstr ""
23966
23967 # type: textblock
23968 #: ../fish/guestfish-actions.pod:3927
23969 msgid "All the provisos about L</command> apply to this call."
23970 msgstr ""
23971
23972 # type: =head2
23973 #: ../fish/guestfish-actions.pod:3929
23974 msgid "sh-lines"
23975 msgstr ""
23976
23977 # type: verbatim
23978 #: ../fish/guestfish-actions.pod:3931
23979 #, no-wrap
23980 msgid ""
23981 " sh-lines command\n"
23982 "\n"
23983 msgstr ""
23984
23985 # type: textblock
23986 #: ../fish/guestfish-actions.pod:3933
23987 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23988 msgstr ""
23989
23990 # type: textblock
23991 #: ../fish/guestfish-actions.pod:3936
23992 msgid "See also: L</command-lines>"
23993 msgstr ""
23994
23995 # type: =head2
23996 #: ../fish/guestfish-actions.pod:3938
23997 msgid "sleep"
23998 msgstr ""
23999
24000 # type: verbatim
24001 #: ../fish/guestfish-actions.pod:3940
24002 #, no-wrap
24003 msgid ""
24004 " sleep secs\n"
24005 "\n"
24006 msgstr ""
24007
24008 # type: =head2
24009 #: ../fish/guestfish-actions.pod:3944
24010 msgid "stat"
24011 msgstr ""
24012
24013 # type: verbatim
24014 #: ../fish/guestfish-actions.pod:3946
24015 #, no-wrap
24016 msgid ""
24017 " stat path\n"
24018 "\n"
24019 msgstr ""
24020
24021 # type: =head2
24022 #: ../fish/guestfish-actions.pod:3952
24023 msgid "statvfs"
24024 msgstr ""
24025
24026 # type: verbatim
24027 #: ../fish/guestfish-actions.pod:3954
24028 #, no-wrap
24029 msgid ""
24030 " statvfs path\n"
24031 "\n"
24032 msgstr ""
24033
24034 # type: =head2
24035 #: ../fish/guestfish-actions.pod:3962
24036 msgid "strings"
24037 msgstr ""
24038
24039 # type: verbatim
24040 #: ../fish/guestfish-actions.pod:3964
24041 #, no-wrap
24042 msgid ""
24043 " strings path\n"
24044 "\n"
24045 msgstr ""
24046
24047 # type: =head2
24048 #: ../fish/guestfish-actions.pod:3972
24049 msgid "strings-e"
24050 msgstr ""
24051
24052 # type: verbatim
24053 #: ../fish/guestfish-actions.pod:3974
24054 #, no-wrap
24055 msgid ""
24056 " strings-e encoding path\n"
24057 "\n"
24058 msgstr ""
24059
24060 # type: textblock
24061 #: ../fish/guestfish-actions.pod:3976
24062 msgid ""
24063 "This is like the L</strings> command, but allows you to specify the encoding "
24064 "of strings that are looked for in the source file C<path>."
24065 msgstr ""
24066
24067 # type: textblock
24068 #: ../fish/guestfish-actions.pod:3986
24069 msgid ""
24070 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24071 "ISO-8859-X (this is what L</strings> uses)."
24072 msgstr ""
24073
24074 # type: =head2
24075 #: ../fish/guestfish-actions.pod:4018
24076 msgid "swapoff-device"
24077 msgstr ""
24078
24079 # type: verbatim
24080 #: ../fish/guestfish-actions.pod:4020
24081 #, no-wrap
24082 msgid ""
24083 " swapoff-device device\n"
24084 "\n"
24085 msgstr ""
24086
24087 # type: textblock
24088 #: ../fish/guestfish-actions.pod:4022
24089 msgid ""
24090 "This command disables the libguestfs appliance swap device or partition "
24091 "named C<device>.  See L</swapon-device>."
24092 msgstr ""
24093
24094 # type: =head2
24095 #: ../fish/guestfish-actions.pod:4026
24096 msgid "swapoff-file"
24097 msgstr ""
24098
24099 # type: verbatim
24100 #: ../fish/guestfish-actions.pod:4028
24101 #, no-wrap
24102 msgid ""
24103 " swapoff-file file\n"
24104 "\n"
24105 msgstr ""
24106
24107 # type: =head2
24108 #: ../fish/guestfish-actions.pod:4032
24109 msgid "swapoff-label"
24110 msgstr ""
24111
24112 # type: verbatim
24113 #: ../fish/guestfish-actions.pod:4034
24114 #, no-wrap
24115 msgid ""
24116 " swapoff-label label\n"
24117 "\n"
24118 msgstr ""
24119
24120 # type: =head2
24121 #: ../fish/guestfish-actions.pod:4039
24122 msgid "swapoff-uuid"
24123 msgstr ""
24124
24125 # type: verbatim
24126 #: ../fish/guestfish-actions.pod:4041
24127 #, no-wrap
24128 msgid ""
24129 " swapoff-uuid uuid\n"
24130 "\n"
24131 msgstr ""
24132
24133 # type: =head2
24134 #: ../fish/guestfish-actions.pod:4046
24135 msgid "swapon-device"
24136 msgstr ""
24137
24138 # type: verbatim
24139 #: ../fish/guestfish-actions.pod:4048
24140 #, no-wrap
24141 msgid ""
24142 " swapon-device device\n"
24143 "\n"
24144 msgstr ""
24145
24146 # type: textblock
24147 #: ../fish/guestfish-actions.pod:4050
24148 msgid ""
24149 "This command enables the libguestfs appliance to use the swap device or "
24150 "partition named C<device>.  The increased memory is made available for all "
24151 "commands, for example those run using L</command> or L</sh>."
24152 msgstr ""
24153
24154 # type: =head2
24155 #: ../fish/guestfish-actions.pod:4062
24156 msgid "swapon-file"
24157 msgstr ""
24158
24159 # type: verbatim
24160 #: ../fish/guestfish-actions.pod:4064
24161 #, no-wrap
24162 msgid ""
24163 " swapon-file file\n"
24164 "\n"
24165 msgstr ""
24166
24167 # type: textblock
24168 #: ../fish/guestfish-actions.pod:4066
24169 msgid ""
24170 "This command enables swap to a file.  See L</swapon-device> for other notes."
24171 msgstr ""
24172
24173 # type: =head2
24174 #: ../fish/guestfish-actions.pod:4069
24175 msgid "swapon-label"
24176 msgstr ""
24177
24178 # type: verbatim
24179 #: ../fish/guestfish-actions.pod:4071
24180 #, no-wrap
24181 msgid ""
24182 " swapon-label label\n"
24183 "\n"
24184 msgstr ""
24185
24186 # type: textblock
24187 #: ../fish/guestfish-actions.pod:4073
24188 msgid ""
24189 "This command enables swap to a labeled swap partition.  See L</swapon-"
24190 "device> for other notes."
24191 msgstr ""
24192
24193 # type: =head2
24194 #: ../fish/guestfish-actions.pod:4076
24195 msgid "swapon-uuid"
24196 msgstr ""
24197
24198 # type: verbatim
24199 #: ../fish/guestfish-actions.pod:4078
24200 #, no-wrap
24201 msgid ""
24202 " swapon-uuid uuid\n"
24203 "\n"
24204 msgstr ""
24205
24206 # type: textblock
24207 #: ../fish/guestfish-actions.pod:4080
24208 msgid ""
24209 "This command enables swap to a swap partition with the given UUID.  See L</"
24210 "swapon-device> for other notes."
24211 msgstr ""
24212
24213 # type: =head2
24214 #: ../fish/guestfish-actions.pod:4083
24215 msgid "sync"
24216 msgstr ""
24217
24218 # type: verbatim
24219 #: ../fish/guestfish-actions.pod:4085
24220 #, no-wrap
24221 msgid ""
24222 " sync\n"
24223 "\n"
24224 msgstr ""
24225
24226 # type: =head2
24227 #: ../fish/guestfish-actions.pod:4093
24228 msgid "tail"
24229 msgstr ""
24230
24231 # type: verbatim
24232 #: ../fish/guestfish-actions.pod:4095
24233 #, no-wrap
24234 msgid ""
24235 " tail path\n"
24236 "\n"
24237 msgstr ""
24238
24239 # type: =head2
24240 #: ../fish/guestfish-actions.pod:4103
24241 msgid "tail-n"
24242 msgstr ""
24243
24244 # type: verbatim
24245 #: ../fish/guestfish-actions.pod:4105
24246 #, no-wrap
24247 msgid ""
24248 " tail-n nrlines path\n"
24249 "\n"
24250 msgstr ""
24251
24252 # type: =head2
24253 #: ../fish/guestfish-actions.pod:4118
24254 msgid "tar-in"
24255 msgstr ""
24256
24257 # type: verbatim
24258 #: ../fish/guestfish-actions.pod:4120
24259 #, no-wrap
24260 msgid ""
24261 " tar-in (tarfile|-) directory\n"
24262 "\n"
24263 msgstr ""
24264
24265 # type: textblock
24266 #: ../fish/guestfish-actions.pod:4125
24267 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24268 msgstr ""
24269
24270 # type: =head2
24271 #: ../fish/guestfish-actions.pod:4130
24272 msgid "tar-out"
24273 msgstr ""
24274
24275 # type: verbatim
24276 #: ../fish/guestfish-actions.pod:4132
24277 #, no-wrap
24278 msgid ""
24279 " tar-out directory (tarfile|-)\n"
24280 "\n"
24281 msgstr ""
24282
24283 # type: textblock
24284 #: ../fish/guestfish-actions.pod:4137
24285 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24286 msgstr ""
24287
24288 # type: =head2
24289 #: ../fish/guestfish-actions.pod:4142
24290 msgid "tgz-in"
24291 msgstr ""
24292
24293 # type: verbatim
24294 #: ../fish/guestfish-actions.pod:4144
24295 #, no-wrap
24296 msgid ""
24297 " tgz-in (tarball|-) directory\n"
24298 "\n"
24299 msgstr ""
24300
24301 # type: textblock
24302 #: ../fish/guestfish-actions.pod:4149
24303 msgid "To upload an uncompressed tarball, use L</tar-in>."
24304 msgstr ""
24305
24306 # type: =head2
24307 #: ../fish/guestfish-actions.pod:4153
24308 msgid "tgz-out"
24309 msgstr ""
24310
24311 # type: verbatim
24312 #: ../fish/guestfish-actions.pod:4155
24313 #, no-wrap
24314 msgid ""
24315 " tgz-out directory (tarball|-)\n"
24316 "\n"
24317 msgstr ""
24318
24319 # type: textblock
24320 #: ../fish/guestfish-actions.pod:4160
24321 msgid "To download an uncompressed tarball, use L</tar-out>."
24322 msgstr ""
24323
24324 # type: =head2
24325 #: ../fish/guestfish-actions.pod:4164
24326 msgid "touch"
24327 msgstr ""
24328
24329 # type: verbatim
24330 #: ../fish/guestfish-actions.pod:4166
24331 #, no-wrap
24332 msgid ""
24333 " touch path\n"
24334 "\n"
24335 msgstr ""
24336
24337 # type: =head2
24338 #: ../fish/guestfish-actions.pod:4175
24339 msgid "truncate"
24340 msgstr ""
24341
24342 # type: verbatim
24343 #: ../fish/guestfish-actions.pod:4177
24344 #, no-wrap
24345 msgid ""
24346 " truncate path\n"
24347 "\n"
24348 msgstr ""
24349
24350 # type: =head2
24351 #: ../fish/guestfish-actions.pod:4182
24352 msgid "truncate-size"
24353 msgstr ""
24354
24355 # type: verbatim
24356 #: ../fish/guestfish-actions.pod:4184
24357 #, no-wrap
24358 msgid ""
24359 " truncate-size path size\n"
24360 "\n"
24361 msgstr ""
24362
24363 # type: textblock
24364 #: ../fish/guestfish-actions.pod:4189
24365 msgid ""
24366 "If the current file size is less than C<size> then the file is extended to "
24367 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24368 "blocks are not allocated for the file until you write to it).  To create a "
24369 "non-sparse file of zeroes, use L</fallocate64> instead."
24370 msgstr ""
24371
24372 # type: =head2
24373 #: ../fish/guestfish-actions.pod:4195
24374 msgid "tune2fs-l"
24375 msgstr ""
24376
24377 # type: verbatim
24378 #: ../fish/guestfish-actions.pod:4197
24379 #, no-wrap
24380 msgid ""
24381 " tune2fs-l device\n"
24382 "\n"
24383 msgstr ""
24384
24385 # type: =head2
24386 #: ../fish/guestfish-actions.pod:4207
24387 msgid "txz-in"
24388 msgstr ""
24389
24390 # type: verbatim
24391 #: ../fish/guestfish-actions.pod:4209
24392 #, no-wrap
24393 msgid ""
24394 " txz-in (tarball|-) directory\n"
24395 "\n"
24396 msgstr ""
24397
24398 # type: =head2
24399 #: ../fish/guestfish-actions.pod:4216
24400 msgid "txz-out"
24401 msgstr ""
24402
24403 # type: verbatim
24404 #: ../fish/guestfish-actions.pod:4218
24405 #, no-wrap
24406 msgid ""
24407 " txz-out directory (tarball|-)\n"
24408 "\n"
24409 msgstr ""
24410
24411 # type: =head2
24412 #: ../fish/guestfish-actions.pod:4225
24413 msgid "umask"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #: ../fish/guestfish-actions.pod:4227
24418 #, no-wrap
24419 msgid ""
24420 " umask mask\n"
24421 "\n"
24422 msgstr ""
24423
24424 # type: textblock
24425 #: ../fish/guestfish-actions.pod:4241
24426 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24427 msgstr ""
24428
24429 # type: =head2
24430 #: ../fish/guestfish-actions.pod:4246
24431 msgid "umount"
24432 msgstr ""
24433
24434 # type: =head2
24435 #: ../fish/guestfish-actions.pod:4248
24436 msgid "unmount"
24437 msgstr ""
24438
24439 # type: verbatim
24440 #: ../fish/guestfish-actions.pod:4250
24441 #, no-wrap
24442 msgid ""
24443 " umount pathordevice\n"
24444 "\n"
24445 msgstr ""
24446
24447 # type: =head2
24448 #: ../fish/guestfish-actions.pod:4256
24449 msgid "umount-all"
24450 msgstr ""
24451
24452 # type: =head2
24453 #: ../fish/guestfish-actions.pod:4258
24454 msgid "unmount-all"
24455 msgstr ""
24456
24457 # type: verbatim
24458 #: ../fish/guestfish-actions.pod:4260
24459 #, no-wrap
24460 msgid ""
24461 " umount-all\n"
24462 "\n"
24463 msgstr ""
24464
24465 # type: =head2
24466 #: ../fish/guestfish-actions.pod:4266
24467 msgid "upload"
24468 msgstr ""
24469
24470 # type: verbatim
24471 #: ../fish/guestfish-actions.pod:4268
24472 #, no-wrap
24473 msgid ""
24474 " upload (filename|-) remotefilename\n"
24475 "\n"
24476 msgstr ""
24477
24478 # type: textblock
24479 #: ../fish/guestfish-actions.pod:4275
24480 msgid "See also L</download>."
24481 msgstr ""
24482
24483 # type: =head2
24484 #: ../fish/guestfish-actions.pod:4279
24485 msgid "upload-offset"
24486 msgstr ""
24487
24488 # type: verbatim
24489 #: ../fish/guestfish-actions.pod:4281
24490 #, no-wrap
24491 msgid ""
24492 " upload-offset (filename|-) remotefilename offset\n"
24493 "\n"
24494 msgstr ""
24495
24496 # type: textblock
24497 #: ../fish/guestfish-actions.pod:4293
24498 msgid ""
24499 "Note that there is no limit on the amount of data that can be uploaded with "
24500 "this call, unlike with L</pwrite>, and this call always writes the full "
24501 "amount unless an error occurs."
24502 msgstr ""
24503
24504 # type: textblock
24505 #: ../fish/guestfish-actions.pod:4298
24506 msgid "See also L</upload>, L</pwrite>."
24507 msgstr ""
24508
24509 # type: =head2
24510 #: ../fish/guestfish-actions.pod:4302
24511 msgid "utimens"
24512 msgstr ""
24513
24514 # type: verbatim
24515 #: ../fish/guestfish-actions.pod:4304
24516 #, no-wrap
24517 msgid ""
24518 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24519 "\n"
24520 msgstr ""
24521
24522 # type: =head2
24523 #: ../fish/guestfish-actions.pod:4323
24524 msgid "version"
24525 msgstr ""
24526
24527 # type: verbatim
24528 #: ../fish/guestfish-actions.pod:4325
24529 #, no-wrap
24530 msgid ""
24531 " version\n"
24532 "\n"
24533 msgstr ""
24534
24535 # type: textblock
24536 #: ../fish/guestfish-actions.pod:4352
24537 msgid ""
24538 "I<Note:> Don't use this call to test for availability of features.  In "
24539 "enterprise distributions we backport features from later versions into "
24540 "earlier versions, making this an unreliable way to test for features.  Use "
24541 "L</available> instead."
24542 msgstr ""
24543
24544 # type: =head2
24545 #: ../fish/guestfish-actions.pod:4358
24546 msgid "vfs-label"
24547 msgstr ""
24548
24549 # type: verbatim
24550 #: ../fish/guestfish-actions.pod:4360
24551 #, no-wrap
24552 msgid ""
24553 " vfs-label device\n"
24554 "\n"
24555 msgstr ""
24556
24557 # type: textblock
24558 #: ../fish/guestfish-actions.pod:4367
24559 msgid "To find a filesystem from the label, use L</findfs-label>."
24560 msgstr ""
24561
24562 # type: =head2
24563 #: ../fish/guestfish-actions.pod:4369
24564 msgid "vfs-type"
24565 msgstr ""
24566
24567 # type: verbatim
24568 #: ../fish/guestfish-actions.pod:4371
24569 #, no-wrap
24570 msgid ""
24571 " vfs-type device\n"
24572 "\n"
24573 msgstr ""
24574
24575 # type: =head2
24576 #: ../fish/guestfish-actions.pod:4381
24577 msgid "vfs-uuid"
24578 msgstr ""
24579
24580 # type: verbatim
24581 #: ../fish/guestfish-actions.pod:4383
24582 #, no-wrap
24583 msgid ""
24584 " vfs-uuid device\n"
24585 "\n"
24586 msgstr ""
24587
24588 # type: textblock
24589 #: ../fish/guestfish-actions.pod:4390
24590 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24591 msgstr ""
24592
24593 # type: =head2
24594 #: ../fish/guestfish-actions.pod:4392
24595 msgid "vg-activate"
24596 msgstr ""
24597
24598 # type: verbatim
24599 #: ../fish/guestfish-actions.pod:4394
24600 #, no-wrap
24601 msgid ""
24602 " vg-activate true|false 'volgroups ...'\n"
24603 "\n"
24604 msgstr ""
24605
24606 # type: =head2
24607 #: ../fish/guestfish-actions.pod:4407
24608 msgid "vg-activate-all"
24609 msgstr ""
24610
24611 # type: verbatim
24612 #: ../fish/guestfish-actions.pod:4409
24613 #, no-wrap
24614 msgid ""
24615 " vg-activate-all true|false\n"
24616 "\n"
24617 msgstr ""
24618
24619 # type: =head2
24620 #: ../fish/guestfish-actions.pod:4419
24621 msgid "vgcreate"
24622 msgstr ""
24623
24624 # type: verbatim
24625 #: ../fish/guestfish-actions.pod:4421
24626 #, no-wrap
24627 msgid ""
24628 " vgcreate volgroup 'physvols ...'\n"
24629 "\n"
24630 msgstr ""
24631
24632 # type: =head2
24633 #: ../fish/guestfish-actions.pod:4426
24634 msgid "vglvuuids"
24635 msgstr ""
24636
24637 # type: verbatim
24638 #: ../fish/guestfish-actions.pod:4428
24639 #, no-wrap
24640 msgid ""
24641 " vglvuuids vgname\n"
24642 "\n"
24643 msgstr ""
24644
24645 # type: textblock
24646 #: ../fish/guestfish-actions.pod:4433
24647 msgid ""
24648 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24649 "logical volumes and volume groups."
24650 msgstr ""
24651
24652 # type: textblock
24653 #: ../fish/guestfish-actions.pod:4436
24654 msgid "See also L</vgpvuuids>."
24655 msgstr ""
24656
24657 # type: =head2
24658 #: ../fish/guestfish-actions.pod:4438
24659 msgid "vgpvuuids"
24660 msgstr ""
24661
24662 # type: verbatim
24663 #: ../fish/guestfish-actions.pod:4440
24664 #, no-wrap
24665 msgid ""
24666 " vgpvuuids vgname\n"
24667 "\n"
24668 msgstr ""
24669
24670 # type: textblock
24671 #: ../fish/guestfish-actions.pod:4445
24672 msgid ""
24673 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24674 "physical volumes and volume groups."
24675 msgstr ""
24676
24677 # type: textblock
24678 #: ../fish/guestfish-actions.pod:4448
24679 msgid "See also L</vglvuuids>."
24680 msgstr ""
24681
24682 # type: =head2
24683 #: ../fish/guestfish-actions.pod:4450
24684 msgid "vgremove"
24685 msgstr ""
24686
24687 # type: verbatim
24688 #: ../fish/guestfish-actions.pod:4452
24689 #, no-wrap
24690 msgid ""
24691 " vgremove vgname\n"
24692 "\n"
24693 msgstr ""
24694
24695 # type: =head2
24696 #: ../fish/guestfish-actions.pod:4459
24697 msgid "vgrename"
24698 msgstr ""
24699
24700 # type: verbatim
24701 #: ../fish/guestfish-actions.pod:4461
24702 #, no-wrap
24703 msgid ""
24704 " vgrename volgroup newvolgroup\n"
24705 "\n"
24706 msgstr ""
24707
24708 # type: =head2
24709 #: ../fish/guestfish-actions.pod:4465
24710 msgid "vgs"
24711 msgstr ""
24712
24713 # type: verbatim
24714 #: ../fish/guestfish-actions.pod:4467
24715 #, no-wrap
24716 msgid ""
24717 " vgs\n"
24718 "\n"
24719 msgstr ""
24720
24721 # type: textblock
24722 #: ../fish/guestfish-actions.pod:4475
24723 msgid "See also L</vgs-full>."
24724 msgstr ""
24725
24726 # type: =head2
24727 #: ../fish/guestfish-actions.pod:4477
24728 msgid "vgs-full"
24729 msgstr ""
24730
24731 # type: verbatim
24732 #: ../fish/guestfish-actions.pod:4479
24733 #, no-wrap
24734 msgid ""
24735 " vgs-full\n"
24736 "\n"
24737 msgstr ""
24738
24739 # type: =head2
24740 #: ../fish/guestfish-actions.pod:4484
24741 msgid "vgscan"
24742 msgstr ""
24743
24744 # type: verbatim
24745 #: ../fish/guestfish-actions.pod:4486
24746 #, no-wrap
24747 msgid ""
24748 " vgscan\n"
24749 "\n"
24750 msgstr ""
24751
24752 # type: =head2
24753 #: ../fish/guestfish-actions.pod:4491
24754 msgid "vguuid"
24755 msgstr ""
24756
24757 # type: verbatim
24758 #: ../fish/guestfish-actions.pod:4493
24759 #, no-wrap
24760 msgid ""
24761 " vguuid vgname\n"
24762 "\n"
24763 msgstr ""
24764
24765 # type: =head2
24766 #: ../fish/guestfish-actions.pod:4497
24767 msgid "wc-c"
24768 msgstr ""
24769
24770 # type: verbatim
24771 #: ../fish/guestfish-actions.pod:4499
24772 #, no-wrap
24773 msgid ""
24774 " wc-c path\n"
24775 "\n"
24776 msgstr ""
24777
24778 # type: =head2
24779 #: ../fish/guestfish-actions.pod:4504
24780 msgid "wc-l"
24781 msgstr ""
24782
24783 # type: verbatim
24784 #: ../fish/guestfish-actions.pod:4506
24785 #, no-wrap
24786 msgid ""
24787 " wc-l path\n"
24788 "\n"
24789 msgstr ""
24790
24791 # type: =head2
24792 #: ../fish/guestfish-actions.pod:4511
24793 msgid "wc-w"
24794 msgstr ""
24795
24796 # type: verbatim
24797 #: ../fish/guestfish-actions.pod:4513
24798 #, no-wrap
24799 msgid ""
24800 " wc-w path\n"
24801 "\n"
24802 msgstr ""
24803
24804 # type: =head2
24805 #: ../fish/guestfish-actions.pod:4518
24806 msgid "write"
24807 msgstr ""
24808
24809 # type: verbatim
24810 #: ../fish/guestfish-actions.pod:4520
24811 #, no-wrap
24812 msgid ""
24813 " write path content\n"
24814 "\n"
24815 msgstr ""
24816
24817 # type: =head2
24818 #: ../fish/guestfish-actions.pod:4528
24819 msgid "write-file"
24820 msgstr ""
24821
24822 # type: verbatim
24823 #: ../fish/guestfish-actions.pod:4530
24824 #, no-wrap
24825 msgid ""
24826 " write-file path content size\n"
24827 "\n"
24828 msgstr ""
24829
24830 # type: =head2
24831 #: ../fish/guestfish-actions.pod:4553
24832 msgid "zegrep"
24833 msgstr ""
24834
24835 # type: verbatim
24836 #: ../fish/guestfish-actions.pod:4555
24837 #, no-wrap
24838 msgid ""
24839 " zegrep regex path\n"
24840 "\n"
24841 msgstr ""
24842
24843 # type: =head2
24844 #: ../fish/guestfish-actions.pod:4563
24845 msgid "zegrepi"
24846 msgstr ""
24847
24848 # type: verbatim
24849 #: ../fish/guestfish-actions.pod:4565
24850 #, no-wrap
24851 msgid ""
24852 " zegrepi regex path\n"
24853 "\n"
24854 msgstr ""
24855
24856 # type: =head2
24857 #: ../fish/guestfish-actions.pod:4573
24858 msgid "zero"
24859 msgstr ""
24860
24861 # type: verbatim
24862 #: ../fish/guestfish-actions.pod:4575
24863 #, no-wrap
24864 msgid ""
24865 " zero device\n"
24866 "\n"
24867 msgstr ""
24868
24869 # type: textblock
24870 #: ../fish/guestfish-actions.pod:4583
24871 msgid "See also: L</zero-device>, L</scrub-device>."
24872 msgstr ""
24873
24874 # type: =head2
24875 #: ../fish/guestfish-actions.pod:4585
24876 msgid "zero-device"
24877 msgstr ""
24878
24879 # type: verbatim
24880 #: ../fish/guestfish-actions.pod:4587
24881 #, no-wrap
24882 msgid ""
24883 " zero-device device\n"
24884 "\n"
24885 msgstr ""
24886
24887 # type: textblock
24888 #: ../fish/guestfish-actions.pod:4589
24889 msgid ""
24890 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24891 "which just zeroes the first few blocks of a device."
24892 msgstr ""
24893
24894 # type: =head2
24895 #: ../fish/guestfish-actions.pod:4596
24896 msgid "zerofree"
24897 msgstr ""
24898
24899 # type: verbatim
24900 #: ../fish/guestfish-actions.pod:4598
24901 #, no-wrap
24902 msgid ""
24903 " zerofree device\n"
24904 "\n"
24905 msgstr ""
24906
24907 # type: =head2
24908 #: ../fish/guestfish-actions.pod:4611
24909 msgid "zfgrep"
24910 msgstr ""
24911
24912 # type: verbatim
24913 #: ../fish/guestfish-actions.pod:4613
24914 #, no-wrap
24915 msgid ""
24916 " zfgrep pattern path\n"
24917 "\n"
24918 msgstr ""
24919
24920 # type: =head2
24921 #: ../fish/guestfish-actions.pod:4621
24922 msgid "zfgrepi"
24923 msgstr ""
24924
24925 # type: verbatim
24926 #: ../fish/guestfish-actions.pod:4623
24927 #, no-wrap
24928 msgid ""
24929 " zfgrepi pattern path\n"
24930 "\n"
24931 msgstr ""
24932
24933 # type: =head2
24934 #: ../fish/guestfish-actions.pod:4631
24935 msgid "zfile"
24936 msgstr ""
24937
24938 # type: verbatim
24939 #: ../fish/guestfish-actions.pod:4633
24940 #, no-wrap
24941 msgid ""
24942 " zfile meth path\n"
24943 "\n"
24944 msgstr ""
24945
24946 # type: textblock
24947 #: ../fish/guestfish-actions.pod:4640
24948 msgid ""
24949 "Since 1.0.63, use L</file> instead which can now process compressed files."
24950 msgstr ""
24951
24952 # type: =head2
24953 #: ../fish/guestfish-actions.pod:4650
24954 msgid "zgrep"
24955 msgstr ""
24956
24957 # type: verbatim
24958 #: ../fish/guestfish-actions.pod:4652
24959 #, no-wrap
24960 msgid ""
24961 " zgrep regex path\n"
24962 "\n"
24963 msgstr ""
24964
24965 # type: =head2
24966 #: ../fish/guestfish-actions.pod:4660
24967 msgid "zgrepi"
24968 msgstr ""
24969
24970 # type: verbatim
24971 #: ../fish/guestfish-actions.pod:4662
24972 #, no-wrap
24973 msgid ""
24974 " zgrepi regex path\n"
24975 "\n"
24976 msgstr ""
24977
24978 # type: =head2
24979 #: ../fish/guestfish-commands.pod:1
24980 msgid "alloc"
24981 msgstr ""
24982
24983 # type: =head2
24984 #: ../fish/guestfish-commands.pod:3
24985 msgid "allocate"
24986 msgstr ""
24987
24988 # type: verbatim
24989 #: ../fish/guestfish-commands.pod:5
24990 #, no-wrap
24991 msgid ""
24992 " alloc filename size\n"
24993 "\n"
24994 msgstr ""
24995
24996 # type: textblock
24997 #: ../fish/guestfish-commands.pod:7
24998 msgid ""
24999 "This creates an empty (zeroed) file of the given size, and then adds so it "
25000 "can be further examined."
25001 msgstr ""
25002
25003 # type: textblock
25004 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25005 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25006 msgstr ""
25007
25008 # type: textblock
25009 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25010 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25011 msgstr ""
25012
25013 # type: textblock
25014 #: ../fish/guestfish-commands.pod:14
25015 msgid ""
25016 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25017 "image, see L</PREPARED DISK IMAGES>."
25018 msgstr ""
25019
25020 # type: =head2
25021 #: ../fish/guestfish-commands.pod:17
25022 msgid "copy-in"
25023 msgstr ""
25024
25025 # type: verbatim
25026 #: ../fish/guestfish-commands.pod:19
25027 #, no-wrap
25028 msgid ""
25029 " copy-in local [local ...] /remotedir\n"
25030 "\n"
25031 msgstr ""
25032
25033 # type: textblock
25034 #: ../fish/guestfish-commands.pod:21
25035 msgid ""
25036 "C<copy-in> copies local files or directories recursively into the disk "
25037 "image, placing them in the directory called C</remotedir> (which must "
25038 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25039 "other commands as necessary."
25040 msgstr ""
25041
25042 # type: textblock
25043 #: ../fish/guestfish-commands.pod:26
25044 msgid ""
25045 "Multiple local files and directories can be specified, but the last "
25046 "parameter must always be a remote directory.  Wildcards cannot be used."
25047 msgstr ""
25048
25049 # type: =head2
25050 #: ../fish/guestfish-commands.pod:30
25051 msgid "copy-out"
25052 msgstr ""
25053
25054 # type: verbatim
25055 #: ../fish/guestfish-commands.pod:32
25056 #, no-wrap
25057 msgid ""
25058 " copy-out remote [remote ...] localdir\n"
25059 "\n"
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../fish/guestfish-commands.pod:34
25064 msgid ""
25065 "C<copy-out> copies remote files or directories recursively out of the disk "
25066 "image, placing them on the host disk in a local directory called C<localdir> "
25067 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25068 "download>, L</tar-out> and other commands as necessary."
25069 msgstr ""
25070
25071 # type: textblock
25072 #: ../fish/guestfish-commands.pod:40
25073 msgid ""
25074 "Multiple remote files and directories can be specified, but the last "
25075 "parameter must always be a local directory.  To download to the current "
25076 "directory, use C<.> as in:"
25077 msgstr ""
25078
25079 # type: verbatim
25080 #: ../fish/guestfish-commands.pod:44
25081 #, no-wrap
25082 msgid ""
25083 " copy-out /home .\n"
25084 "\n"
25085 msgstr ""
25086
25087 # type: textblock
25088 #: ../fish/guestfish-commands.pod:46
25089 msgid ""
25090 "Wildcards cannot be used in the ordinary command, but you can use them with "
25091 "the help of L</glob> like this:"
25092 msgstr ""
25093
25094 # type: verbatim
25095 #: ../fish/guestfish-commands.pod:49
25096 #, no-wrap
25097 msgid ""
25098 " glob copy-out /home/* .\n"
25099 "\n"
25100 msgstr ""
25101
25102 # type: =head2
25103 #: ../fish/guestfish-commands.pod:51
25104 msgid "echo"
25105 msgstr ""
25106
25107 # type: verbatim
25108 #: ../fish/guestfish-commands.pod:53
25109 #, no-wrap
25110 msgid ""
25111 " echo [params ...]\n"
25112 "\n"
25113 msgstr ""
25114
25115 # type: textblock
25116 #: ../fish/guestfish-commands.pod:55
25117 msgid "This echos the parameters to the terminal."
25118 msgstr ""
25119
25120 # type: =head2
25121 #: ../fish/guestfish-commands.pod:57
25122 msgid "edit"
25123 msgstr ""
25124
25125 # type: =head2
25126 #: ../fish/guestfish-commands.pod:59
25127 msgid "vi"
25128 msgstr ""
25129
25130 # type: =head2
25131 #: ../fish/guestfish-commands.pod:61
25132 msgid "emacs"
25133 msgstr ""
25134
25135 # type: verbatim
25136 #: ../fish/guestfish-commands.pod:63
25137 #, no-wrap
25138 msgid ""
25139 " edit filename\n"
25140 "\n"
25141 msgstr ""
25142
25143 # type: textblock
25144 #: ../fish/guestfish-commands.pod:65
25145 msgid ""
25146 "This is used to edit a file.  It downloads the file, edits it locally using "
25147 "your editor, then uploads the result."
25148 msgstr ""
25149
25150 # type: textblock
25151 #: ../fish/guestfish-commands.pod:68
25152 msgid ""
25153 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25154 "or C<emacs> you will get those corresponding editors."
25155 msgstr ""
25156
25157 # type: =head2
25158 #: ../fish/guestfish-commands.pod:72
25159 msgid "glob"
25160 msgstr ""
25161
25162 # type: verbatim
25163 #: ../fish/guestfish-commands.pod:74
25164 #, no-wrap
25165 msgid ""
25166 " glob command args...\n"
25167 "\n"
25168 msgstr ""
25169
25170 # type: textblock
25171 #: ../fish/guestfish-commands.pod:76
25172 msgid ""
25173 "Expand wildcards in any paths in the args list, and run C<command> "
25174 "repeatedly on each matching path."
25175 msgstr ""
25176
25177 # type: textblock
25178 #: ../fish/guestfish-commands.pod:79
25179 msgid "See L</WILDCARDS AND GLOBBING>."
25180 msgstr ""
25181
25182 # type: =head2
25183 #: ../fish/guestfish-commands.pod:81
25184 msgid "hexedit"
25185 msgstr ""
25186
25187 # type: verbatim
25188 #: ../fish/guestfish-commands.pod:83
25189 #, no-wrap
25190 msgid ""
25191 " hexedit <filename|device>\n"
25192 " hexedit <filename|device> <max>\n"
25193 " hexedit <filename|device> <start> <max>\n"
25194 "\n"
25195 msgstr ""
25196
25197 # type: textblock
25198 #: ../fish/guestfish-commands.pod:87
25199 msgid ""
25200 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25201 "device."
25202 msgstr ""
25203
25204 # type: textblock
25205 #: ../fish/guestfish-commands.pod:90
25206 msgid ""
25207 "This command works by downloading potentially the whole file or device, "
25208 "editing it locally, then uploading it.  If the file or device is large, you "
25209 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25210 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25211 "usual modifiers allowed such as C<1M> (1 megabyte)."
25212 msgstr ""
25213
25214 # type: textblock
25215 #: ../fish/guestfish-commands.pod:97
25216 msgid "For example to edit the first few sectors of a disk you might do:"
25217 msgstr ""
25218
25219 # type: verbatim
25220 #: ../fish/guestfish-commands.pod:100
25221 #, no-wrap
25222 msgid ""
25223 " hexedit /dev/sda 1M\n"
25224 "\n"
25225 msgstr ""
25226
25227 # type: textblock
25228 #: ../fish/guestfish-commands.pod:102
25229 msgid ""
25230 "which would allow you to edit anywhere within the first megabyte of the disk."
25231 msgstr ""
25232
25233 # type: textblock
25234 #: ../fish/guestfish-commands.pod:105
25235 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25236 msgstr ""
25237
25238 # type: verbatim
25239 #: ../fish/guestfish-commands.pod:107
25240 #, no-wrap
25241 msgid ""
25242 " hexedit /dev/sda1 0x400 0x400\n"
25243 "\n"
25244 msgstr ""
25245
25246 # type: textblock
25247 #: ../fish/guestfish-commands.pod:109
25248 msgid "(assuming the superblock is in the standard location)."
25249 msgstr ""
25250
25251 # type: textblock
25252 #: ../fish/guestfish-commands.pod:111
25253 msgid ""
25254 "This command requires the external L<hexedit(1)> program.  You can specify "
25255 "another program to use by setting the C<HEXEDITOR> environment variable."
25256 msgstr ""
25257
25258 # type: textblock
25259 #: ../fish/guestfish-commands.pod:115
25260 msgid "See also L</hexdump>."
25261 msgstr ""
25262
25263 # type: =head2
25264 #: ../fish/guestfish-commands.pod:117
25265 msgid "lcd"
25266 msgstr ""
25267
25268 # type: verbatim
25269 #: ../fish/guestfish-commands.pod:119
25270 #, no-wrap
25271 msgid ""
25272 " lcd directory\n"
25273 "\n"
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../fish/guestfish-commands.pod:121
25278 msgid ""
25279 "Change the local directory, ie. the current directory of guestfish itself."
25280 msgstr ""
25281
25282 # type: textblock
25283 #: ../fish/guestfish-commands.pod:124
25284 msgid "Note that C<!cd> won't do what you might expect."
25285 msgstr ""
25286
25287 # type: =head2
25288 #: ../fish/guestfish-commands.pod:126
25289 msgid "man"
25290 msgstr ""
25291
25292 # type: =head2
25293 #: ../fish/guestfish-commands.pod:128
25294 msgid "manual"
25295 msgstr ""
25296
25297 # type: verbatim
25298 #: ../fish/guestfish-commands.pod:130
25299 #, no-wrap
25300 msgid ""
25301 "  man\n"
25302 "\n"
25303 msgstr ""
25304
25305 # type: textblock
25306 #: ../fish/guestfish-commands.pod:132
25307 msgid "Opens the manual page for guestfish."
25308 msgstr ""
25309
25310 # type: =head2
25311 #: ../fish/guestfish-commands.pod:134
25312 msgid "more"
25313 msgstr ""
25314
25315 # type: =head2
25316 #: ../fish/guestfish-commands.pod:136
25317 msgid "less"
25318 msgstr ""
25319
25320 # type: verbatim
25321 #: ../fish/guestfish-commands.pod:138
25322 #, no-wrap
25323 msgid ""
25324 " more filename\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: verbatim
25329 #: ../fish/guestfish-commands.pod:140
25330 #, no-wrap
25331 msgid ""
25332 " less filename\n"
25333 "\n"
25334 msgstr ""
25335
25336 # type: textblock
25337 #: ../fish/guestfish-commands.pod:142
25338 msgid "This is used to view a file."
25339 msgstr ""
25340
25341 # type: textblock
25342 #: ../fish/guestfish-commands.pod:144
25343 msgid ""
25344 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25345 "C<less> you will get the C<less> command specifically."
25346 msgstr ""
25347
25348 # type: =head2
25349 #: ../fish/guestfish-commands.pod:147
25350 msgid "reopen"
25351 msgstr ""
25352
25353 # type: verbatim
25354 #: ../fish/guestfish-commands.pod:149
25355 #, no-wrap
25356 msgid ""
25357 "  reopen\n"
25358 "\n"
25359 msgstr ""
25360
25361 # type: textblock
25362 #: ../fish/guestfish-commands.pod:151
25363 msgid ""
25364 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25365 "normally, because the handle is closed properly when guestfish exits.  "
25366 "However this is occasionally useful for testing."
25367 msgstr ""
25368
25369 # type: =head2
25370 #: ../fish/guestfish-commands.pod:155
25371 msgid "sparse"
25372 msgstr ""
25373
25374 # type: verbatim
25375 #: ../fish/guestfish-commands.pod:157
25376 #, no-wrap
25377 msgid ""
25378 " sparse filename size\n"
25379 "\n"
25380 msgstr ""
25381
25382 # type: textblock
25383 #: ../fish/guestfish-commands.pod:159
25384 msgid ""
25385 "This creates an empty sparse file of the given size, and then adds so it can "
25386 "be further examined."
25387 msgstr ""
25388
25389 # type: textblock
25390 #: ../fish/guestfish-commands.pod:162
25391 msgid ""
25392 "In all respects it works the same as the L</alloc> command, except that the "
25393 "image file is allocated sparsely, which means that disk blocks are not "
25394 "assigned to the file until they are needed.  Sparse disk files only use "
25395 "space when written to, but they are slower and there is a danger you could "
25396 "run out of real disk space during a write operation."
25397 msgstr ""
25398
25399 # type: =head2
25400 #: ../fish/guestfish-commands.pod:172
25401 msgid "supported"
25402 msgstr ""
25403
25404 # type: verbatim
25405 #: ../fish/guestfish-commands.pod:174
25406 #, no-wrap
25407 msgid ""
25408 " supported\n"
25409 "\n"
25410 msgstr ""
25411
25412 # type: textblock
25413 #: ../fish/guestfish-commands.pod:176
25414 msgid ""
25415 "This command returns a list of the optional groups known to the daemon, and "
25416 "indicates which ones are supported by this build of the libguestfs appliance."
25417 msgstr ""
25418
25419 # type: textblock
25420 #: ../fish/guestfish-commands.pod:180
25421 msgid "See also L<guestfs(3)/AVAILABILITY>."
25422 msgstr ""
25423
25424 # type: =head2
25425 #: ../fish/guestfish-commands.pod:182
25426 msgid "time"
25427 msgstr ""
25428
25429 # type: verbatim
25430 #: ../fish/guestfish-commands.pod:184
25431 #, no-wrap
25432 msgid ""
25433 " time command args...\n"
25434 "\n"
25435 msgstr ""
25436
25437 # type: textblock
25438 #: ../fish/guestfish-commands.pod:186
25439 msgid ""
25440 "Run the command as usual, but print the elapsed time afterwards.  This can "
25441 "be useful for benchmarking operations."
25442 msgstr ""
25443
25444 # type: textblock
25445 #: ../test-tool/libguestfs-test-tool.pod:5
25446 msgid "libguestfs-test-tool - End user tests for libguestfs"
25447 msgstr ""
25448
25449 # type: verbatim
25450 #: ../test-tool/libguestfs-test-tool.pod:9
25451 #, no-wrap
25452 msgid ""
25453 " libguestfs-test-tool [--options]\n"
25454 "\n"
25455 msgstr ""
25456
25457 # type: textblock
25458 #: ../test-tool/libguestfs-test-tool.pod:13
25459 msgid ""
25460 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25461 "and developers, to allow them to check basic libguestfs functionality is "
25462 "working.  This is needed because libguestfs occasionally breaks for reasons "
25463 "beyond our control: usually because of changes in the underlying qemu or "
25464 "kernel packages, or the host environment."
25465 msgstr ""
25466
25467 # type: textblock
25468 #: ../test-tool/libguestfs-test-tool.pod:20
25469 msgid "If you suspect a problem in libguestfs, then just run:"
25470 msgstr ""
25471
25472 # type: verbatim
25473 #: ../test-tool/libguestfs-test-tool.pod:22
25474 #, no-wrap
25475 msgid ""
25476 " libguestfs-test-tool\n"
25477 "\n"
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../test-tool/libguestfs-test-tool.pod:24
25482 msgid "It will print lots of diagnostic messages."
25483 msgstr ""
25484
25485 # type: textblock
25486 #: ../test-tool/libguestfs-test-tool.pod:26
25487 msgid "If it runs to completion successfully, you will see this near the end:"
25488 msgstr ""
25489
25490 # type: verbatim
25491 #: ../test-tool/libguestfs-test-tool.pod:28
25492 #, no-wrap
25493 msgid ""
25494 " ===== TEST FINISHED OK =====\n"
25495 "\n"
25496 msgstr ""
25497
25498 # type: textblock
25499 #: ../test-tool/libguestfs-test-tool.pod:30
25500 msgid "and the test tool will exit with code 0."
25501 msgstr ""
25502
25503 # type: textblock
25504 #: ../test-tool/libguestfs-test-tool.pod:32
25505 msgid ""
25506 "If it fails (and/or exits with non-zero error code), please paste the "
25507 "B<complete, unedited> output of the test tool into a bug report.  More "
25508 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25509 "> website."
25510 msgstr ""
25511
25512 # type: =item
25513 #: ../test-tool/libguestfs-test-tool.pod:41
25514 msgid "I<--help>"
25515 msgstr ""
25516
25517 # type: textblock
25518 #: ../test-tool/libguestfs-test-tool.pod:43
25519 msgid "Display short usage information and exit."
25520 msgstr ""
25521
25522 # type: =item
25523 #: ../test-tool/libguestfs-test-tool.pod:45
25524 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25525 msgstr ""
25526
25527 # type: textblock
25528 #: ../test-tool/libguestfs-test-tool.pod:47
25529 msgid ""
25530 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25531 "normally look in the C<$libexec> directory that was configured when the tool "
25532 "was built."
25533 msgstr ""
25534
25535 # type: =item
25536 #: ../test-tool/libguestfs-test-tool.pod:51
25537 msgid "I<--qemu qemu_binary>"
25538 msgstr ""
25539
25540 # type: textblock
25541 #: ../test-tool/libguestfs-test-tool.pod:53
25542 msgid ""
25543 "If you have downloaded another qemu binary, point this option at the full "
25544 "path of the binary to try it."
25545 msgstr ""
25546
25547 # type: =item
25548 #: ../test-tool/libguestfs-test-tool.pod:56
25549 msgid "I<--qemudir qemu_source_dir>"
25550 msgstr ""
25551
25552 # type: textblock
25553 #: ../test-tool/libguestfs-test-tool.pod:58
25554 msgid ""
25555 "If you have compiled qemu from source, point this option at the source "
25556 "directory to try it."
25557 msgstr ""
25558
25559 # type: =item
25560 #: ../test-tool/libguestfs-test-tool.pod:61
25561 msgid "I<--timeout N>"
25562 msgstr ""
25563
25564 # type: textblock
25565 #: ../test-tool/libguestfs-test-tool.pod:63
25566 msgid ""
25567 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25568 "does not usually need to be adjusted unless your machine is very slow."
25569 msgstr ""
25570
25571 # type: =head1
25572 #: ../test-tool/libguestfs-test-tool.pod:69
25573 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25574 msgstr ""
25575
25576 # type: textblock
25577 #: ../test-tool/libguestfs-test-tool.pod:71
25578 msgid ""
25579 "If you have compiled another version of qemu from source and would like to "
25580 "try that, then you can use the I<--qemudir> option to point to the qemu "
25581 "source directory."
25582 msgstr ""
25583
25584 # type: textblock
25585 #: ../test-tool/libguestfs-test-tool.pod:75
25586 msgid ""
25587 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25588 "option to point to the binary."
25589 msgstr ""
25590
25591 # type: textblock
25592 #: ../test-tool/libguestfs-test-tool.pod:78
25593 msgid ""
25594 "When using an alternate qemu with libguestfs, usually you would need to "
25595 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25596 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25597 "use either of the I<--qemudir> or I<--qemu> options."
25598 msgstr ""
25599
25600 # type: textblock
25601 #: ../test-tool/libguestfs-test-tool.pod:85
25602 msgid ""
25603 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25604 "I<1> if there was an error."
25605 msgstr ""
25606
25607 # type: =item
25608 #: ../test-tool/libguestfs-test-tool.pod:92
25609 msgid "/usr/libexec/libguestfs-test-tool-helper"
25610 msgstr ""
25611
25612 # type: textblock
25613 #: ../test-tool/libguestfs-test-tool.pod:94
25614 msgid ""
25615 "This helper program is run inside the appliance and provides additional "
25616 "tests."
25617 msgstr ""
25618
25619 # type: =item
25620 #: ../test-tool/libguestfs-test-tool.pod:97
25621 msgid "/usr/bin/mkisofs"
25622 msgstr ""
25623
25624 # type: textblock
25625 #: ../test-tool/libguestfs-test-tool.pod:99
25626 msgid ""
25627 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25628 "which is used as part of the tests."
25629 msgstr ""
25630
25631 # type: textblock
25632 #: ../test-tool/libguestfs-test-tool.pod:106
25633 msgid ""
25634 "For the full list of environment variables which may affect libguestfs, "
25635 "please see the L<guestfs(3)> manual page."
25636 msgstr ""
25637
25638 # type: textblock
25639 #: ../test-tool/libguestfs-test-tool.pod:111
25640 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25641 msgstr ""
25642
25643 # type: textblock
25644 #: ../test-tool/libguestfs-test-tool.pod:121
25645 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../fuse/guestmount.pod:5
25650 msgid ""
25651 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25652 msgstr ""
25653
25654 # type: verbatim
25655 #: ../fuse/guestmount.pod:9
25656 #, no-wrap
25657 msgid ""
25658 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25659 "\n"
25660 msgstr ""
25661
25662 # type: verbatim
25663 #: ../fuse/guestmount.pod:11
25664 #, no-wrap
25665 msgid ""
25666 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25667 "\n"
25668 msgstr ""
25669
25670 # type: verbatim
25671 #: ../fuse/guestmount.pod:13
25672 #, no-wrap
25673 msgid ""
25674 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25675 "\n"
25676 msgstr ""
25677
25678 # type: textblock
25679 #: ../fuse/guestmount.pod:17
25680 msgid ""
25681 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25682 "machines.  If you do this, you risk disk corruption in the VM."
25683 msgstr ""
25684
25685 # type: textblock
25686 #: ../fuse/guestmount.pod:22
25687 msgid ""
25688 "The guestmount program can be used to mount virtual machine filesystems and "
25689 "other disk images on the host.  It uses libguestfs for access to the guest "
25690 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25691 "a mountable device."
25692 msgstr ""
25693
25694 # type: textblock
25695 #: ../fuse/guestmount.pod:27
25696 msgid ""
25697 "Along with other options, you have to give at least one device (I<-a> "
25698 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25699 "option) or use the I<-i> inspection option.  How this works is better "
25700 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25701 "below."
25702 msgstr ""
25703
25704 # type: textblock
25705 #: ../fuse/guestmount.pod:33
25706 msgid ""
25707 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25708 "by you, and the filesystem will not be visible to any other users unless you "
25709 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25710 "the filesystem, use the C<fusermount -u> command."
25711 msgstr ""
25712
25713 # type: textblock
25714 #: ../fuse/guestmount.pod:41
25715 msgid ""
25716 "For a typical Windows guest which has its main filesystem on the first "
25717 "partition:"
25718 msgstr ""
25719
25720 # type: verbatim
25721 #: ../fuse/guestmount.pod:44
25722 #, no-wrap
25723 msgid ""
25724 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25725 "\n"
25726 msgstr ""
25727
25728 # type: textblock
25729 #: ../fuse/guestmount.pod:46
25730 msgid ""
25731 "For a typical Linux guest which has a /boot filesystem on the first "
25732 "partition, and the root filesystem on a logical volume:"
25733 msgstr ""
25734
25735 # type: verbatim
25736 #: ../fuse/guestmount.pod:49
25737 #, no-wrap
25738 msgid ""
25739 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25740 "\n"
25741 msgstr ""
25742
25743 # type: textblock
25744 #: ../fuse/guestmount.pod:51
25745 msgid "To get libguestfs to detect guest mountpoints for you:"
25746 msgstr ""
25747
25748 # type: verbatim
25749 #: ../fuse/guestmount.pod:53
25750 #, no-wrap
25751 msgid ""
25752 " guestmount -a guest.img -i --ro /mnt\n"
25753 "\n"
25754 msgstr ""
25755
25756 # type: textblock
25757 #: ../fuse/guestmount.pod:55
25758 msgid "For a libvirt guest called \"Guest\" you could do:"
25759 msgstr ""
25760
25761 # type: verbatim
25762 #: ../fuse/guestmount.pod:57
25763 #, no-wrap
25764 msgid ""
25765 " guestmount -d Guest -i --ro /mnt\n"
25766 "\n"
25767 msgstr ""
25768
25769 # type: textblock
25770 #: ../fuse/guestmount.pod:59
25771 msgid ""
25772 "If you don't know what filesystems are contained in a guest or disk image, "
25773 "use L<virt-filesystems(1)> first:"
25774 msgstr ""
25775
25776 # type: verbatim
25777 #: ../fuse/guestmount.pod:62
25778 #, no-wrap
25779 msgid ""
25780 " virt-filesystems MyGuest\n"
25781 "\n"
25782 msgstr ""
25783
25784 # type: textblock
25785 #: ../fuse/guestmount.pod:64
25786 msgid ""
25787 "If you want to trace the libguestfs calls but without excessive debugging "
25788 "information, we recommend:"
25789 msgstr ""
25790
25791 # type: verbatim
25792 #: ../fuse/guestmount.pod:67
25793 #, no-wrap
25794 msgid ""
25795 " guestmount [...] --trace /mnt\n"
25796 "\n"
25797 msgstr ""
25798
25799 # type: textblock
25800 #: ../fuse/guestmount.pod:69
25801 msgid "If you want to debug the program, we recommend:"
25802 msgstr ""
25803
25804 # type: verbatim
25805 #: ../fuse/guestmount.pod:71
25806 #, no-wrap
25807 msgid ""
25808 " guestmount [...] --trace --verbose /mnt\n"
25809 "\n"
25810 msgstr ""
25811
25812 # type: textblock
25813 #: ../fuse/guestmount.pod:79
25814 msgid "Add a block device or virtual machine image."
25815 msgstr ""
25816
25817 # type: =item
25818 #: ../fuse/guestmount.pod:96
25819 msgid "B<--dir-cache-timeout N>"
25820 msgstr ""
25821
25822 # type: textblock
25823 #: ../fuse/guestmount.pod:98
25824 msgid ""
25825 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25826 "seconds.  The readdir cache [actually, there are several semi-independent "
25827 "caches] is populated after a readdir(2) call with the stat and extended "
25828 "attributes of the files in the directory, in anticipation that they will be "
25829 "requested soon after."
25830 msgstr ""
25831
25832 # type: textblock
25833 #: ../fuse/guestmount.pod:104
25834 msgid ""
25835 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25836 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25837 "requests, only cache existing ones."
25838 msgstr ""
25839
25840 # type: textblock
25841 #: ../fuse/guestmount.pod:122
25842 msgid ""
25843 "If you have untrusted raw-format guest disk images, you should use this "
25844 "option to specify the disk format.  This avoids a possible security problem "
25845 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25846 "guestfs_add_drive_opts>."
25847 msgstr ""
25848
25849 # type: =item
25850 #: ../fuse/guestmount.pod:127
25851 msgid "B<--fuse-help>"
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../fuse/guestmount.pod:129
25856 msgid "Display help on special FUSE options (see I<-o> below)."
25857 msgstr ""
25858
25859 # type: textblock
25860 #: ../fuse/guestmount.pod:133
25861 msgid "Display brief help and exit."
25862 msgstr ""
25863
25864 # type: =item
25865 #: ../fuse/guestmount.pod:146
25866 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25867 msgstr ""
25868
25869 # type: textblock
25870 #: ../fuse/guestmount.pod:148
25871 msgid ""
25872 "Mount the named partition or logical volume on the given mountpoint B<in the "
25873 "guest> (this has nothing to do with mountpoints in the host)."
25874 msgstr ""
25875
25876 # type: textblock
25877 #: ../fuse/guestmount.pod:151
25878 msgid ""
25879 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25880 "something on C</>."
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../fuse/guestmount.pod:156
25885 msgid ""
25886 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25887 "unmounted.  If you specify this option, then we don't attempt to sync the "
25888 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25889 msgstr ""
25890
25891 # type: =item
25892 #: ../fuse/guestmount.pod:161
25893 msgid "B<-o option> | B<--option option>"
25894 msgstr ""
25895
25896 # type: textblock
25897 #: ../fuse/guestmount.pod:163
25898 msgid "Pass extra options to FUSE."
25899 msgstr ""
25900
25901 # type: textblock
25902 #: ../fuse/guestmount.pod:165
25903 msgid ""
25904 "To get a list of all the extra options supported by FUSE, use the command "
25905 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25906 "of them are a good idea."
25907 msgstr ""
25908
25909 # type: verbatim
25910 #: ../fuse/guestmount.pod:169
25911 #, no-wrap
25912 msgid ""
25913 " guestmount --fuse-help\n"
25914 "\n"
25915 msgstr ""
25916
25917 # type: textblock
25918 #: ../fuse/guestmount.pod:171
25919 msgid "Some potentially useful FUSE options:"
25920 msgstr ""
25921
25922 # type: =item
25923 #: ../fuse/guestmount.pod:175
25924 msgid "B<-o allow_other>"
25925 msgstr ""
25926
25927 # type: textblock
25928 #: ../fuse/guestmount.pod:177
25929 msgid "Allow other users to see the filesystem."
25930 msgstr ""
25931
25932 # type: =item
25933 #: ../fuse/guestmount.pod:179
25934 msgid "B<-o attr_timeout=N>"
25935 msgstr ""
25936
25937 # type: textblock
25938 #: ../fuse/guestmount.pod:181
25939 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25940 msgstr ""
25941
25942 # type: =item
25943 #: ../fuse/guestmount.pod:183
25944 msgid "B<-o kernel_cache>"
25945 msgstr ""
25946
25947 # type: textblock
25948 #: ../fuse/guestmount.pod:185
25949 msgid ""
25950 "Allow the kernel to cache files (reduces the number of reads that have to go "
25951 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25952 "afford the extra memory usage."
25953 msgstr ""
25954
25955 # type: =item
25956 #: ../fuse/guestmount.pod:189
25957 msgid "B<-o uid=N> B<-o gid=N>"
25958 msgstr ""
25959
25960 # type: textblock
25961 #: ../fuse/guestmount.pod:191
25962 msgid ""
25963 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25964 "the chosen values."
25965 msgstr ""
25966
25967 # type: textblock
25968 #: ../fuse/guestmount.pod:198
25969 msgid ""
25970 "Add devices and mount everything read-only.  Also disallow writes and make "
25971 "the disk appear read-only to FUSE."
25972 msgstr ""
25973
25974 # type: textblock
25975 #: ../fuse/guestmount.pod:201
25976 msgid ""
25977 "This is highly recommended if you are not going to edit the guest disk.  If "
25978 "the guest is running and this option is I<not> supplied, then there is a "
25979 "strong risk of disk corruption in the guest.  We try to prevent this from "
25980 "happening, but it is not always possible."
25981 msgstr ""
25982
25983 # type: textblock
25984 #: ../fuse/guestmount.pod:206
25985 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25986 msgstr ""
25987
25988 # type: textblock
25989 #: ../fuse/guestmount.pod:210
25990 msgid "Enable SELinux support for the guest."
25991 msgstr ""
25992
25993 # type: textblock
25994 #: ../fuse/guestmount.pod:214
25995 msgid "Enable verbose messages from underlying libguestfs."
25996 msgstr ""
25997
25998 # type: textblock
25999 #: ../fuse/guestmount.pod:218
26000 msgid "Display the program version and exit."
26001 msgstr ""
26002
26003 # type: textblock
26004 #: ../fuse/guestmount.pod:222
26005 msgid ""
26006 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26007 "FOR READ AND WRITE>."
26008 msgstr ""
26009
26010 # type: =item
26011 #: ../fuse/guestmount.pod:225
26012 msgid "B<-x> | B<--trace>"
26013 msgstr ""
26014
26015 # type: textblock
26016 #: ../fuse/guestmount.pod:227
26017 msgid "Trace libguestfs calls."
26018 msgstr ""
26019
26020 # type: textblock
26021 #: ../fuse/guestmount.pod:229
26022 msgid "This also stops the daemon from forking into the background."
26023 msgstr ""
26024
26025 # type: textblock
26026 #: ../fuse/guestmount.pod:235
26027 msgid ""
26028 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26029 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26030 "net/>."
26031 msgstr ""
26032
26033 # type: textblock
26034 #: ../tools/virt-edit.pl:34
26035 msgid "virt-edit - Edit a file in a virtual machine"
26036 msgstr ""
26037
26038 # type: verbatim
26039 #: ../tools/virt-edit.pl:38
26040 #, no-wrap
26041 msgid ""
26042 " virt-edit [--options] domname file\n"
26043 "\n"
26044 msgstr ""
26045
26046 # type: verbatim
26047 #: ../tools/virt-edit.pl:40
26048 #, no-wrap
26049 msgid ""
26050 " virt-edit [--options] disk.img [disk.img ...] file\n"
26051 "\n"
26052 msgstr ""
26053
26054 # type: verbatim
26055 #: ../tools/virt-edit.pl:42
26056 #, no-wrap
26057 msgid ""
26058 " virt-edit [domname|disk.img] file -e 'expr'\n"
26059 "\n"
26060 msgstr ""
26061
26062 # type: textblock
26063 #: ../tools/virt-edit.pl:46
26064 msgid ""
26065 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26066 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26067 "doing this, but doesn't catch all cases."
26068 msgstr ""
26069
26070 # type: textblock
26071 #: ../tools/virt-edit.pl:52
26072 msgid ""
26073 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26074 "the named virtual machine (or disk image)."
26075 msgstr ""
26076
26077 # type: textblock
26078 #: ../tools/virt-edit.pl:55
26079 msgid ""
26080 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26081 "you should look at the L<guestfish(1)> tool."
26082 msgstr ""
26083
26084 # type: textblock
26085 #: ../tools/virt-edit.pl:60
26086 msgid "Edit the named files interactively:"
26087 msgstr ""
26088
26089 # type: verbatim
26090 #: ../tools/virt-edit.pl:62
26091 #, no-wrap
26092 msgid ""
26093 " virt-edit mydomain /boot/grub/grub.conf\n"
26094 "\n"
26095 msgstr ""
26096
26097 # type: verbatim
26098 #: ../tools/virt-edit.pl:64
26099 #, no-wrap
26100 msgid ""
26101 " virt-edit mydomain /etc/passwd\n"
26102 "\n"
26103 msgstr ""
26104
26105 # type: textblock
26106 #: ../tools/virt-edit.pl:66
26107 msgid ""
26108 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26109 "below).  To change the init default level to 5:"
26110 msgstr ""
26111
26112 # type: verbatim
26113 #: ../tools/virt-edit.pl:70
26114 #, no-wrap
26115 msgid ""
26116 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26117 "\n"
26118 msgstr ""
26119
26120 # type: textblock
26121 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26122 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26123 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26124 msgid "Display brief help."
26125 msgstr ""
26126
26127 # type: =item
26128 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26129 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:69
26130 #: ../tools/virt-tar.pl:114 ../tools/virt-make-fs.pl:169
26131 #: ../tools/virt-list-partitions.pl:70
26132 msgid "B<--version>"
26133 msgstr ""
26134
26135 # type: textblock
26136 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26137 #: ../tools/virt-resize.pl:274 ../tools/virt-list-filesystems.pl:71
26138 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
26139 #: ../tools/virt-list-partitions.pl:72
26140 msgid "Display version number and exit."
26141 msgstr ""
26142
26143 # type: =item
26144 #: ../tools/virt-edit.pl:96
26145 msgid "B<--backup extension> | B<-b extension>"
26146 msgstr ""
26147
26148 # type: textblock
26149 #: ../tools/virt-edit.pl:98
26150 msgid ""
26151 "Create a backup of the original file I<in the guest disk image>.  The backup "
26152 "has the original filename with C<extension> added."
26153 msgstr ""
26154
26155 # type: textblock
26156 #: ../tools/virt-edit.pl:101
26157 msgid ""
26158 "Usually the first character of C<extension> would be a dot C<.> so you would "
26159 "write:"
26160 msgstr ""
26161
26162 # type: verbatim
26163 #: ../tools/virt-edit.pl:104
26164 #, no-wrap
26165 msgid ""
26166 " virt-edit -b .orig [etc]\n"
26167 "\n"
26168 msgstr ""
26169
26170 # type: textblock
26171 #: ../tools/virt-edit.pl:106
26172 msgid "By default, no backup file is made."
26173 msgstr ""
26174
26175 # type: =item
26176 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26177 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26178 #: ../tools/virt-list-partitions.pl:78
26179 msgid "B<--connect URI> | B<-c URI>"
26180 msgstr ""
26181
26182 # type: textblock
26183 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26184 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26185 #: ../tools/virt-list-partitions.pl:80
26186 msgid ""
26187 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26188 "to the default libvirt hypervisor."
26189 msgstr ""
26190
26191 # type: textblock
26192 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26193 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26194 #: ../tools/virt-list-partitions.pl:83
26195 msgid ""
26196 "If you specify guest block devices directly, then libvirt is not used at all."
26197 msgstr ""
26198
26199 # type: =item
26200 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26201 #: ../tools/virt-resize.pl:522 ../tools/virt-list-filesystems.pl:89
26202 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
26203 msgid "B<--format> raw"
26204 msgstr ""
26205
26206 # type: textblock
26207 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26208 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26209 #: ../tools/virt-list-partitions.pl:92
26210 msgid ""
26211 "Specify the format of disk images given on the command line.  If this is "
26212 "omitted then the format is autodetected from the content of the disk image."
26213 msgstr ""
26214
26215 # type: textblock
26216 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26217 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26218 #: ../tools/virt-list-partitions.pl:96
26219 msgid ""
26220 "If disk images are requested from libvirt, then this program asks libvirt "
26221 "for this information.  In this case, the value of the format parameter is "
26222 "ignored."
26223 msgstr ""
26224
26225 # type: textblock
26226 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26227 #: ../tools/virt-resize.pl:527 ../tools/virt-resize.pl:542
26228 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26229 #: ../tools/virt-list-partitions.pl:100
26230 msgid ""
26231 "If working with untrusted raw-format guest disk images, you should ensure "
26232 "the format is always specified."
26233 msgstr ""
26234
26235 # type: =item
26236 #: ../tools/virt-edit.pl:141
26237 msgid "B<--expr EXPR> | B<-e EXPR>"
26238 msgstr ""
26239
26240 # type: textblock
26241 #: ../tools/virt-edit.pl:143
26242 msgid ""
26243 "Instead of launching the external editor, non-interactively apply the Perl "
26244 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26245 "EDITING> below."
26246 msgstr ""
26247
26248 # type: textblock
26249 #: ../tools/virt-edit.pl:147
26250 msgid ""
26251 "Be careful to properly quote the expression to prevent it from being altered "
26252 "by the shell."
26253 msgstr ""
26254
26255 # type: =head1
26256 #: ../tools/virt-edit.pl:268
26257 msgid "NON-INTERACTIVE EDITING"
26258 msgstr ""
26259
26260 # type: textblock
26261 #: ../tools/virt-edit.pl:270
26262 msgid ""
26263 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26264 "administrator can interactively edit the file."
26265 msgstr ""
26266
26267 # type: textblock
26268 #: ../tools/virt-edit.pl:273
26269 msgid ""
26270 "There are two ways also to use C<virt-edit> from scripts in order to make "
26271 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26272 "like this, it's less error-prone to write scripts directly using the "
26273 "libguestfs API and Augeas for configuration file editing.)"
26274 msgstr ""
26275
26276 # type: textblock
26277 #: ../tools/virt-edit.pl:279
26278 msgid ""
26279 "The first method is to temporarily set C<$EDITOR> to any script or program "
26280 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26281 "update C<tmpfile> in place however it likes."
26282 msgstr ""
26283
26284 # type: textblock
26285 #: ../tools/virt-edit.pl:283
26286 msgid ""
26287 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26288 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26289 "instances of C<foo> with C<bar> in a file:"
26290 msgstr ""
26291
26292 # type: verbatim
26293 #: ../tools/virt-edit.pl:287
26294 #, no-wrap
26295 msgid ""
26296 " virt-edit domname filename -e 's/foo/bar/'\n"
26297 "\n"
26298 msgstr ""
26299
26300 # type: textblock
26301 #: ../tools/virt-edit.pl:289
26302 msgid ""
26303 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26304 "For example to delete root's password you could do:"
26305 msgstr ""
26306
26307 # type: verbatim
26308 #: ../tools/virt-edit.pl:292
26309 #, no-wrap
26310 msgid ""
26311 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26312 "\n"
26313 msgstr ""
26314
26315 # type: textblock
26316 #: ../tools/virt-edit.pl:294
26317 msgid ""
26318 "What really happens is that the snippet is evaluated as a Perl expression "
26319 "for each line of the file.  The line, including the final C<\\n>, is passed "
26320 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26321 msgstr ""
26322
26323 # type: textblock
26324 #: ../tools/virt-edit.pl:299
26325 msgid ""
26326 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26327 "C<apache> user account from the password file you can do:"
26328 msgstr ""
26329
26330 # type: verbatim
26331 #: ../tools/virt-edit.pl:302
26332 #, no-wrap
26333 msgid ""
26334 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26335 "\n"
26336 msgstr ""
26337
26338 # type: textblock
26339 #: ../tools/virt-edit.pl:304
26340 msgid ""
26341 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26342 "the end of the file is rather difficult this way since there is no concept "
26343 "of \"last line of the file\" - your expression just doesn't get called "
26344 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26345 "want to do this."
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-edit.pl:310
26350 msgid ""
26351 "The variable C<$lineno> contains the current line number.  As is "
26352 "traditional, the first line in the file is number C<1>."
26353 msgstr ""
26354
26355 # type: textblock
26356 #: ../tools/virt-edit.pl:313
26357 msgid ""
26358 "The return value from the expression is ignored, but the expression may call "
26359 "C<die> in order to abort the whole program, leaving the original file "
26360 "untouched."
26361 msgstr ""
26362
26363 # type: textblock
26364 #: ../tools/virt-edit.pl:317
26365 msgid ""
26366 "Remember when matching the end of a line that C<$_> may contain the final C<"
26367 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26368 "newline then neither of these.  Thus to match or substitute some text at the "
26369 "end of a line, use this regular expression:"
26370 msgstr ""
26371
26372 # type: verbatim
26373 #: ../tools/virt-edit.pl:322
26374 #, no-wrap
26375 msgid ""
26376 " /some text(\\r?\\n)?$/\n"
26377 "\n"
26378 msgstr ""
26379
26380 # type: textblock
26381 #: ../tools/virt-edit.pl:324
26382 msgid ""
26383 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26384 "$_> itself (since that would remove all newlines from the file):"
26385 msgstr ""
26386
26387 # type: verbatim
26388 #: ../tools/virt-edit.pl:328
26389 #, no-wrap
26390 msgid ""
26391 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26392 "\n"
26393 msgstr ""
26394
26395 # type: =item
26396 #: ../tools/virt-edit.pl:334
26397 msgid "C<EDITOR>"
26398 msgstr ""
26399
26400 # type: textblock
26401 #: ../tools/virt-edit.pl:336
26402 msgid ""
26403 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26404 "\"emacs -nw\">"
26405 msgstr ""
26406
26407 # type: textblock
26408 #: ../tools/virt-edit.pl:339
26409 msgid "If not set, C<vi> is used."
26410 msgstr ""
26411
26412 # type: =head2
26413 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26414 #: ../tools/virt-win-reg.pl:477 ../tools/virt-resize.pl:1478
26415 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274
26416 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
26417 msgid "SHELL QUOTING"
26418 msgstr ""
26419
26420 # type: textblock
26421 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26422 #: ../tools/virt-resize.pl:1480 ../tools/virt-list-filesystems.pl:184
26423 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
26424 #: ../tools/virt-list-partitions.pl:252
26425 msgid ""
26426 "Libvirt guest names can contain arbitrary characters, some of which have "
26427 "meaning to the shell such as C<#> and space.  You may need to quote or "
26428 "escape these characters on the command line.  See the shell manual page L<sh"
26429 "(1)> for details."
26430 msgstr ""
26431
26432 # type: textblock
26433 #: ../tools/virt-edit.pl:352
26434 msgid ""
26435 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26436 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26437 "L<perlre(1)>."
26438 msgstr ""
26439
26440 # type: =head1
26441 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26442 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:202
26443 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
26444 #: ../tools/virt-list-partitions.pl:269
26445 msgid "AUTHOR"
26446 msgstr ""
26447
26448 # type: textblock
26449 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26450 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:204
26451 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
26452 #: ../tools/virt-list-partitions.pl:271
26453 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26454 msgstr ""
26455
26456 # type: textblock
26457 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26458 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26459 msgstr ""
26460
26461 # type: textblock
26462 #: ../tools/virt-win-reg.pl:37
26463 msgid ""
26464 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26465 msgstr ""
26466
26467 # type: verbatim
26468 #: ../tools/virt-win-reg.pl:41
26469 #, no-wrap
26470 msgid ""
26471 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26472 "\n"
26473 msgstr ""
26474
26475 # type: verbatim
26476 #: ../tools/virt-win-reg.pl:43
26477 #, no-wrap
26478 msgid ""
26479 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26480 "\n"
26481 msgstr ""
26482
26483 # type: verbatim
26484 #: ../tools/virt-win-reg.pl:45
26485 #, no-wrap
26486 msgid ""
26487 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26488 "\n"
26489 msgstr ""
26490
26491 # type: verbatim
26492 #: ../tools/virt-win-reg.pl:47
26493 #, no-wrap
26494 msgid ""
26495 " virt-win-reg --merge domname [input.reg ...]\n"
26496 "\n"
26497 msgstr ""
26498
26499 # type: verbatim
26500 #: ../tools/virt-win-reg.pl:49
26501 #, no-wrap
26502 msgid ""
26503 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26504 "\n"
26505 msgstr ""
26506
26507 # type: textblock
26508 #: ../tools/virt-win-reg.pl:53
26509 msgid ""
26510 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26511 "virtual machines.  If you do this, you I<will> get irreversible disk "
26512 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26513 "but doesn't catch all cases."
26514 msgstr ""
26515
26516 # type: textblock
26517 #: ../tools/virt-win-reg.pl:58
26518 msgid ""
26519 "Modifying the Windows Registry is an inherently risky operation.  The format "
26520 "is deliberately obscure and undocumented, and Registry changes can leave the "
26521 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26522 "you have a reliable backup first."
26523 msgstr ""
26524
26525 # type: textblock
26526 #: ../tools/virt-win-reg.pl:65
26527 msgid ""
26528 "This program can export and merge Windows Registry entries from a Windows "
26529 "guest."
26530 msgstr ""
26531
26532 # type: textblock
26533 #: ../tools/virt-win-reg.pl:68
26534 msgid ""
26535 "The first parameter is the libvirt guest name or the raw disk image of a "
26536 "Windows guest."
26537 msgstr ""
26538
26539 # type: textblock
26540 #: ../tools/virt-win-reg.pl:71
26541 msgid ""
26542 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26543 "exported (recursively).  For example:"
26544 msgstr ""
26545
26546 # type: verbatim
26547 #: ../tools/virt-win-reg.pl:74
26548 #, no-wrap
26549 msgid ""
26550 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26551 "\n"
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-win-reg.pl:76
26556 msgid ""
26557 "You can also display single values from within registry keys, for example:"
26558 msgstr ""
26559
26560 # type: verbatim
26561 #: ../tools/virt-win-reg.pl:79
26562 #, no-wrap
26563 msgid ""
26564 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26565 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26566 " Windows 7 Enterprise\n"
26567 "\n"
26568 msgstr ""
26569
26570 # type: textblock
26571 #: ../tools/virt-win-reg.pl:83
26572 msgid ""
26573 "With C<--merge>, you can merge a textual regedit file into the Windows "
26574 "Registry:"
26575 msgstr ""
26576
26577 # type: verbatim
26578 #: ../tools/virt-win-reg.pl:86
26579 #, no-wrap
26580 msgid ""
26581 " $ virt-win-reg --merge Windows7 changes.reg\n"
26582 "\n"
26583 msgstr ""
26584
26585 # type: =head2
26586 #: ../tools/virt-win-reg.pl:88
26587 msgid "SUPPORTED SYSTEMS"
26588 msgstr ""
26589
26590 # type: textblock
26591 #: ../tools/virt-win-reg.pl:90
26592 msgid ""
26593 "The program currently supports Windows NT-derived guests starting with "
26594 "Windows XP through to at least Windows 7."
26595 msgstr ""
26596
26597 # type: textblock
26598 #: ../tools/virt-win-reg.pl:93
26599 msgid ""
26600 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26601 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26602 "and C<HKEY_USERS\\.DEFAULT>."
26603 msgstr ""
26604
26605 # type: textblock
26606 #: ../tools/virt-win-reg.pl:97
26607 msgid ""
26608 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26609 "C<HKEY_USERS>."
26610 msgstr ""
26611
26612 # type: textblock
26613 #: ../tools/virt-win-reg.pl:100
26614 msgid ""
26615 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26616 "time."
26617 msgstr ""
26618
26619 # type: =head2
26620 #: ../tools/virt-win-reg.pl:103
26621 msgid "NOTE"
26622 msgstr ""
26623
26624 # type: textblock
26625 #: ../tools/virt-win-reg.pl:105
26626 msgid ""
26627 "This program is only meant for simple access to the registry.  If you want "
26628 "to do complicated things with the registry, we suggest you download the "
26629 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26630 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26631 "L<hivexregedit(1)>."
26632 msgstr ""
26633
26634 # type: =head2
26635 #: ../tools/virt-win-reg.pl:111
26636 msgid "ENCODING"
26637 msgstr ""
26638
26639 # type: textblock
26640 #: ../tools/virt-win-reg.pl:113
26641 msgid ""
26642 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26643 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26644 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26645 "Windows-style line endings, you may need to reencode the whole file before "
26646 "or after processing."
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-win-reg.pl:119
26651 msgid ""
26652 "To reencode a file from Windows format to Linux (before processing it with "
26653 "the C<--merge> option), you would do something like this:"
26654 msgstr ""
26655
26656 # type: verbatim
26657 #: ../tools/virt-win-reg.pl:122
26658 #, no-wrap
26659 msgid ""
26660 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26661 "\n"
26662 msgstr ""
26663
26664 # type: textblock
26665 #: ../tools/virt-win-reg.pl:124
26666 msgid ""
26667 "To go in the opposite direction, after exporting and before sending the file "
26668 "to a Windows user, do something like this:"
26669 msgstr ""
26670
26671 # type: verbatim
26672 #: ../tools/virt-win-reg.pl:127
26673 #, no-wrap
26674 msgid ""
26675 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26676 "\n"
26677 msgstr ""
26678
26679 # type: textblock
26680 #: ../tools/virt-win-reg.pl:129
26681 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26682 msgstr ""
26683
26684 # type: textblock
26685 #: ../tools/virt-win-reg.pl:131
26686 msgid ""
26687 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26688 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26689 "style (CRLF) line endings, like this:"
26690 msgstr ""
26691
26692 # type: verbatim
26693 #: ../tools/virt-win-reg.pl:135
26694 #, no-wrap
26695 msgid ""
26696 " $ file software.reg\n"
26697 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26698 " with CRLF line terminators\n"
26699 "\n"
26700 msgstr ""
26701
26702 # type: textblock
26703 #: ../tools/virt-win-reg.pl:139
26704 msgid "This file would need conversion before you could C<--merge> it."
26705 msgstr ""
26706
26707 # type: textblock
26708 #: ../tools/virt-win-reg.pl:143
26709 msgid ""
26710 "Be careful when passing parameters containing C<\\> (backslash) in the "
26711 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26712 "(but not both) to protect them from the shell."
26713 msgstr ""
26714
26715 # type: textblock
26716 #: ../tools/virt-win-reg.pl:147
26717 msgid "Paths and value names are case-insensitive."
26718 msgstr ""
26719
26720 # type: =head2
26721 #: ../tools/virt-win-reg.pl:149
26722 msgid "CurrentControlSet etc."
26723 msgstr ""
26724
26725 # type: textblock
26726 #: ../tools/virt-win-reg.pl:151
26727 msgid ""
26728 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26729 "Registry at the level of the hive file, and therefore you cannot modify "
26730 "these."
26731 msgstr ""
26732
26733 # type: textblock
26734 #: ../tools/virt-win-reg.pl:155
26735 msgid ""
26736 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26737 "circumstances it might refer to another control set.  The way to find out is "
26738 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26739 msgstr ""
26740
26741 # type: verbatim
26742 #: ../tools/virt-win-reg.pl:159
26743 #, no-wrap
26744 msgid ""
26745 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26746 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26747 " \"Current\"=dword:00000001\n"
26748 " \"Default\"=dword:00000001\n"
26749 " \"Failed\"=dword:00000000\n"
26750 " \"LastKnownGood\"=dword:00000002\n"
26751 "\n"
26752 msgstr ""
26753
26754 # type: textblock
26755 #: ../tools/virt-win-reg.pl:166
26756 msgid "\"Current\" is the one which Windows will choose when it boots."
26757 msgstr ""
26758
26759 # type: textblock
26760 #: ../tools/virt-win-reg.pl:168
26761 msgid ""
26762 "Similarly, other C<Current...> keys in the path may need to be replaced."
26763 msgstr ""
26764
26765 # type: =item
26766 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26767 msgid "B<--debug>"
26768 msgstr ""
26769
26770 # type: textblock
26771 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:500
26772 msgid "Enable debugging messages."
26773 msgstr ""
26774
26775 # type: =item
26776 #: ../tools/virt-win-reg.pl:232
26777 msgid "B<--merge>"
26778 msgstr ""
26779
26780 # type: textblock
26781 #: ../tools/virt-win-reg.pl:234
26782 msgid ""
26783 "In merge mode, this merges a textual regedit file into the Windows Registry "
26784 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26785 "displays or exports Registry entries instead."
26786 msgstr ""
26787
26788 # type: textblock
26789 #: ../tools/virt-win-reg.pl:238
26790 msgid ""
26791 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26792 "result in disk corruption.  However exporting (without this flag)  is always "
26793 "safe."
26794 msgstr ""
26795
26796 # type: =item
26797 #: ../tools/virt-win-reg.pl:246
26798 msgid "B<--encoding> UTF-16LE|ASCII"
26799 msgstr ""
26800
26801 # type: textblock
26802 #: ../tools/virt-win-reg.pl:248
26803 msgid ""
26804 "When merging (only), you may need to specify the encoding for strings to be "
26805 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26806 "(3)/ENCODING STRINGS>."
26807 msgstr ""
26808
26809 # type: textblock
26810 #: ../tools/virt-win-reg.pl:252
26811 msgid ""
26812 "The default is to use UTF-16LE, which should work with recent versions of "
26813 "Windows."
26814 msgstr ""
26815
26816 # type: textblock
26817 #: ../tools/virt-win-reg.pl:486
26818 msgid ""
26819 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26820 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26821 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26822 msgstr ""
26823
26824 # type: textblock
26825 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26826 msgid ""
26827 "When reporting bugs, please enable debugging and capture the I<complete> "
26828 "output:"
26829 msgstr ""
26830
26831 # type: verbatim
26832 #: ../tools/virt-win-reg.pl:504
26833 #, no-wrap
26834 msgid ""
26835 " export LIBGUESTFS_DEBUG=1\n"
26836 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26837 "\n"
26838 msgstr ""
26839
26840 # type: textblock
26841 #: ../tools/virt-win-reg.pl:507
26842 msgid ""
26843 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26844 "redhat.com/>"
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1512
26849 #: ../tools/virt-make-fs.pl:565
26850 msgid "Copyright (C) 2010 Red Hat Inc."
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-resize.pl:42
26855 msgid "virt-resize - Resize a virtual machine disk"
26856 msgstr ""
26857
26858 # type: verbatim
26859 #: ../tools/virt-resize.pl:46
26860 #, no-wrap
26861 msgid ""
26862 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26863 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26864 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26865 "\n"
26866 msgstr ""
26867
26868 # type: textblock
26869 #: ../tools/virt-resize.pl:52
26870 msgid ""
26871 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26872 "larger or smaller overall, and resizing or deleting any partitions contained "
26873 "within."
26874 msgstr ""
26875
26876 # type: textblock
26877 #: ../tools/virt-resize.pl:56
26878 msgid ""
26879 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26880 "not> be used on live virtual machines - for consistent results, shut the "
26881 "virtual machine down before resizing it."
26882 msgstr ""
26883
26884 # type: textblock
26885 #: ../tools/virt-resize.pl:60
26886 msgid ""
26887 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26888 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26889 msgstr ""
26890
26891 # type: textblock
26892 #: ../tools/virt-resize.pl:66
26893 msgid ""
26894 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26895 "fill the extra 5GB of space."
26896 msgstr ""
26897
26898 # type: verbatim
26899 #: ../tools/virt-resize.pl:69
26900 #, no-wrap
26901 msgid ""
26902 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26903 " virt-filesystems --long --h --all -a olddisk\n"
26904 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26905 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26906 "\n"
26907 msgstr ""
26908
26909 # type: textblock
26910 #: ../tools/virt-resize.pl:74
26911 msgid ""
26912 "As above, but make the /boot partition 200MB bigger, while giving the "
26913 "remaining space to /dev/sda2:"
26914 msgstr ""
26915
26916 # type: verbatim
26917 #: ../tools/virt-resize.pl:77
26918 #, no-wrap
26919 msgid ""
26920 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26921 "\n"
26922 msgstr ""
26923
26924 # type: textblock
26925 #: ../tools/virt-resize.pl:79
26926 msgid "As above, but the output format will be uncompressed qcow2:"
26927 msgstr ""
26928
26929 # type: verbatim
26930 #: ../tools/virt-resize.pl:81
26931 #, no-wrap
26932 msgid ""
26933 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26934 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26935 "\n"
26936 msgstr ""
26937
26938 # type: =head1
26939 #: ../tools/virt-resize.pl:84
26940 msgid "DETAILED USAGE"
26941 msgstr ""
26942
26943 # type: =head2
26944 #: ../tools/virt-resize.pl:86
26945 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26946 msgstr ""
26947
26948 # type: =item
26949 #: ../tools/virt-resize.pl:90
26950 msgid "1. Shut down the virtual machine"
26951 msgstr ""
26952
26953 # type: =item
26954 #: ../tools/virt-resize.pl:92
26955 msgid "2. Locate input disk image"
26956 msgstr ""
26957
26958 # type: textblock
26959 #: ../tools/virt-resize.pl:94
26960 msgid ""
26961 "Locate the input disk image (ie. the file or device on the host containing "
26962 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26963 "dumpxml> like this to find the disk image name:"
26964 msgstr ""
26965
26966 # type: verbatim
26967 #: ../tools/virt-resize.pl:98
26968 #, no-wrap
26969 msgid ""
26970 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26971 " Found 1 nodes:\n"
26972 " -- NODE --\n"
26973 " <source dev=\"/dev/vg/lv_guest\" />\n"
26974 "\n"
26975 msgstr ""
26976
26977 # type: =item
26978 #: ../tools/virt-resize.pl:103
26979 msgid "3. Look at current sizing"
26980 msgstr ""
26981
26982 # type: textblock
26983 #: ../tools/virt-resize.pl:105
26984 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
26985 msgstr ""
26986
26987 # type: verbatim
26988 #: ../tools/virt-resize.pl:108
26989 #, no-wrap
26990 msgid ""
26991 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
26992 " Name       Type       Size  Parent\n"
26993 " /dev/sda1  partition  101M  /dev/sda\n"
26994 " /dev/sda2  partition  7.9G  /dev/sda\n"
26995 " /dev/sda   device     8.0G  -\n"
26996 "\n"
26997 msgstr ""
26998
26999 # type: textblock
27000 #: ../tools/virt-resize.pl:114
27001 msgid ""
27002 "(This example is a virtual machine with an 8 GB disk which we would like to "
27003 "expand up to 10 GB)."
27004 msgstr ""
27005
27006 # type: =item
27007 #: ../tools/virt-resize.pl:117
27008 msgid "4. Create output disk"
27009 msgstr ""
27010
27011 # type: textblock
27012 #: ../tools/virt-resize.pl:119
27013 msgid ""
27014 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27015 "to store the resized output disk."
27016 msgstr ""
27017
27018 # type: textblock
27019 #: ../tools/virt-resize.pl:122
27020 msgid ""
27021 "To store the resized disk image in a file, create a file of a suitable size:"
27022 msgstr ""
27023
27024 # type: verbatim
27025 #: ../tools/virt-resize.pl:125
27026 #, no-wrap
27027 msgid ""
27028 " # rm -f outdisk\n"
27029 " # truncate -s 10G outdisk\n"
27030 "\n"
27031 msgstr ""
27032
27033 # type: textblock
27034 #: ../tools/virt-resize.pl:128
27035 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27036 msgstr ""
27037
27038 # type: verbatim
27039 #: ../tools/virt-resize.pl:130
27040 #, no-wrap
27041 msgid ""
27042 " # lvcreate -L 10G -n lv_name vg_name\n"
27043 "\n"
27044 msgstr ""
27045
27046 # type: textblock
27047 #: ../tools/virt-resize.pl:132
27048 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27049 msgstr ""
27050
27051 # type: verbatim
27052 #: ../tools/virt-resize.pl:134
27053 #, no-wrap
27054 msgid ""
27055 " # virsh pool-list\n"
27056 " # virsh vol-create-as poolname newvol 10G\n"
27057 "\n"
27058 msgstr ""
27059
27060 # type: =item
27061 #: ../tools/virt-resize.pl:137
27062 msgid "5. Resize"
27063 msgstr ""
27064
27065 # type: textblock
27066 #: ../tools/virt-resize.pl:139
27067 msgid ""
27068 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27069 "file) and the output disk.  The output disk is the one created in the "
27070 "previous step."
27071 msgstr ""
27072
27073 # type: verbatim
27074 #: ../tools/virt-resize.pl:143
27075 #, no-wrap
27076 msgid ""
27077 " # virt-resize indisk outdisk\n"
27078 "\n"
27079 msgstr ""
27080
27081 # type: textblock
27082 #: ../tools/virt-resize.pl:145
27083 msgid ""
27084 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27085 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27086 "larger, then an extra, empty partition is created at the end of the disk "
27087 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27088 "error."
27089 msgstr ""
27090
27091 # type: textblock
27092 #: ../tools/virt-resize.pl:151
27093 msgid ""
27094 "More realistically you'd want to expand existing partitions in the disk "
27095 "image by passing extra options (for the full list see the L</OPTIONS> "
27096 "section below)."
27097 msgstr ""
27098
27099 # type: textblock
27100 #: ../tools/virt-resize.pl:155
27101 msgid ""
27102 "L</--expand> is the most useful option.  It expands the named partition "
27103 "within the disk to fill any extra space:"
27104 msgstr ""
27105
27106 # type: verbatim
27107 #: ../tools/virt-resize.pl:158
27108 #, no-wrap
27109 msgid ""
27110 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27111 "\n"
27112 msgstr ""
27113
27114 # type: textblock
27115 #: ../tools/virt-resize.pl:160
27116 msgid ""
27117 "(In this case, an extra partition is I<not> created at the end of the disk, "
27118 "because there will be no unused space)."
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-resize.pl:163
27123 msgid ""
27124 "L</--resize> is the other commonly used option.  The following would "
27125 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27126 "rest of the available space:"
27127 msgstr ""
27128
27129 # type: verbatim
27130 #: ../tools/virt-resize.pl:167
27131 #, no-wrap
27132 msgid ""
27133 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27134 "     indisk outdisk\n"
27135 "\n"
27136 msgstr ""
27137
27138 # type: textblock
27139 #: ../tools/virt-resize.pl:170
27140 msgid ""
27141 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27142 "if virt-resize knows how, it will resize the contents, the equivalent of "
27143 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27144 ">.  However virt-resize does not know how to resize some filesystems, so you "
27145 "would have to online resize them after booting the guest.  And virt-resize "
27146 "also does not resize anything inside an LVM PV, it just resizes the PV "
27147 "itself and leaves the user to resize any LVs inside that PV as desired."
27148 msgstr ""
27149
27150 # type: textblock
27151 #: ../tools/virt-resize.pl:179
27152 msgid "Other options are covered below."
27153 msgstr ""
27154
27155 # type: =item
27156 #: ../tools/virt-resize.pl:181
27157 msgid "6. Test"
27158 msgstr ""
27159
27160 # type: textblock
27161 #: ../tools/virt-resize.pl:183
27162 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27163 msgstr ""
27164
27165 # type: textblock
27166 #: ../tools/virt-resize.pl:185
27167 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27168 msgstr ""
27169
27170 # type: verbatim
27171 #: ../tools/virt-resize.pl:187
27172 #, no-wrap
27173 msgid ""
27174 " # virsh edit guestname\n"
27175 "\n"
27176 msgstr ""
27177
27178 # type: textblock
27179 #: ../tools/virt-resize.pl:189
27180 msgid ""
27181 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27182 "html#elementsDisks>"
27183 msgstr ""
27184
27185 # type: textblock
27186 #: ../tools/virt-resize.pl:192
27187 msgid "Then start up the domain with the new, resized disk:"
27188 msgstr ""
27189
27190 # type: verbatim
27191 #: ../tools/virt-resize.pl:194
27192 #, no-wrap
27193 msgid ""
27194 " # virsh start guestname\n"
27195 "\n"
27196 msgstr ""
27197
27198 # type: textblock
27199 #: ../tools/virt-resize.pl:196
27200 msgid ""
27201 "and check that it still works.  See also the L</NOTES> section below for "
27202 "additional information."
27203 msgstr ""
27204
27205 # type: =item
27206 #: ../tools/virt-resize.pl:199
27207 msgid "7. Resize LVs etc inside the guest"
27208 msgstr ""
27209
27210 # type: textblock
27211 #: ../tools/virt-resize.pl:201
27212 msgid "(This can also be done offline using L<guestfish(1)>)"
27213 msgstr ""
27214
27215 # type: textblock
27216 #: ../tools/virt-resize.pl:203
27217 msgid ""
27218 "Once the guest has booted you should see the new space available, at least "
27219 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27220 "may need to resize LVs inside PVs, and also resize filesystem types that "
27221 "virt-resize does not know how to expand."
27222 msgstr ""
27223
27224 # type: =head2
27225 #: ../tools/virt-resize.pl:210
27226 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27227 msgstr ""
27228
27229 # type: textblock
27230 #: ../tools/virt-resize.pl:212
27231 msgid ""
27232 "Shrinking is somewhat more complex than expanding, and only an overview is "
27233 "given here."
27234 msgstr ""
27235
27236 # type: textblock
27237 #: ../tools/virt-resize.pl:215
27238 msgid ""
27239 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27240 "filesystems).  The user has to shrink content before passing the disk image "
27241 "to virt-resize, and virt-resize will check that the content has been shrunk "
27242 "properly."
27243 msgstr ""
27244
27245 # type: textblock
27246 #: ../tools/virt-resize.pl:220
27247 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27248 msgstr ""
27249
27250 # type: textblock
27251 #: ../tools/virt-resize.pl:222
27252 msgid ""
27253 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27254 "steps 3 and 4 above to allocate a new disk image."
27255 msgstr ""
27256
27257 # type: textblock
27258 #: ../tools/virt-resize.pl:225
27259 msgid ""
27260 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27261 msgstr ""
27262
27263 # type: =head2
27264 #: ../tools/virt-resize.pl:228
27265 msgid "IGNORING OR DELETING PARTITIONS"
27266 msgstr ""
27267
27268 # type: textblock
27269 #: ../tools/virt-resize.pl:230
27270 msgid ""
27271 "virt-resize also gives a convenient way to ignore or delete partitions when "
27272 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27273 "up the copy where you don't care about the existing contents of a "
27274 "partition.  Deleting a partition removes it completely, but note that it "
27275 "also renumbers any partitions after the one which is deleted, which can "
27276 "leave some guests unbootable."
27277 msgstr ""
27278
27279 # type: =head2
27280 #: ../tools/virt-resize.pl:237
27281 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27282 msgstr ""
27283
27284 # type: textblock
27285 #: ../tools/virt-resize.pl:239
27286 msgid ""
27287 "If the input disk is in qcow2 format, then you may prefer that the output is "
27288 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27289 "the fly.  The output format is simply determined by the format of the empty "
27290 "output container that you provide.  Thus to create qcow2 output, use:"
27291 msgstr ""
27292
27293 # type: verbatim
27294 #: ../tools/virt-resize.pl:245
27295 #, no-wrap
27296 msgid ""
27297 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27298 "\n"
27299 msgstr ""
27300
27301 # type: textblock
27302 #: ../tools/virt-resize.pl:247
27303 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27304 msgstr ""
27305
27306 # type: textblock
27307 #: ../tools/virt-resize.pl:249
27308 msgid "Similarly, to get non-sparse raw output use:"
27309 msgstr ""
27310
27311 # type: verbatim
27312 #: ../tools/virt-resize.pl:251
27313 #, no-wrap
27314 msgid ""
27315 " fallocate -l size outdisk\n"
27316 "\n"
27317 msgstr ""
27318
27319 # type: textblock
27320 #: ../tools/virt-resize.pl:253
27321 msgid ""
27322 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27323 "dev/zero of=outdisk bs=1M count=..>)"
27324 msgstr ""
27325
27326 # type: textblock
27327 #: ../tools/virt-resize.pl:266
27328 msgid "Display help."
27329 msgstr ""
27330
27331 # type: =item
27332 #: ../tools/virt-resize.pl:280
27333 msgid "B<--resize part=size>"
27334 msgstr ""
27335
27336 # type: textblock
27337 #: ../tools/virt-resize.pl:282
27338 msgid ""
27339 "Resize the named partition (expanding or shrinking it) so that it has the "
27340 "given size."
27341 msgstr ""
27342
27343 # type: textblock
27344 #: ../tools/virt-resize.pl:285
27345 msgid ""
27346 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27347 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27348 "Exabytes; or as a percentage of the current size; or as a relative number or "
27349 "percentage.  For example:"
27350 msgstr ""
27351
27352 # type: verbatim
27353 #: ../tools/virt-resize.pl:290
27354 #, no-wrap
27355 msgid ""
27356 " --resize /dev/sda2=10G\n"
27357 "\n"
27358 msgstr ""
27359
27360 # type: verbatim
27361 #: ../tools/virt-resize.pl:292
27362 #, no-wrap
27363 msgid ""
27364 " --resize /dev/sda4=90%\n"
27365 "\n"
27366 msgstr ""
27367
27368 # type: verbatim
27369 #: ../tools/virt-resize.pl:294
27370 #, no-wrap
27371 msgid ""
27372 " --resize /dev/sda2=+1G\n"
27373 "\n"
27374 msgstr ""
27375
27376 # type: verbatim
27377 #: ../tools/virt-resize.pl:296
27378 #, no-wrap
27379 msgid ""
27380 " --resize /dev/sda2=-200M\n"
27381 "\n"
27382 msgstr ""
27383
27384 # type: verbatim
27385 #: ../tools/virt-resize.pl:298
27386 #, no-wrap
27387 msgid ""
27388 " --resize /dev/sda1=+128K\n"
27389 "\n"
27390 msgstr ""
27391
27392 # type: verbatim
27393 #: ../tools/virt-resize.pl:300
27394 #, no-wrap
27395 msgid ""
27396 " --resize /dev/sda1=+10%\n"
27397 "\n"
27398 msgstr ""
27399
27400 # type: verbatim
27401 #: ../tools/virt-resize.pl:302
27402 #, no-wrap
27403 msgid ""
27404 " --resize /dev/sda1=-10%\n"
27405 "\n"
27406 msgstr ""
27407
27408 # type: textblock
27409 #: ../tools/virt-resize.pl:304
27410 msgid ""
27411 "You can increase the size of any partition.  Virt-resize will expand the "
27412 "direct content of the partition if it knows how (see C<--expand> below)."
27413 msgstr ""
27414
27415 # type: textblock
27416 #: ../tools/virt-resize.pl:308
27417 msgid ""
27418 "You can only I<decrease> the size of partitions that contain filesystems or "
27419 "PVs which have already been shrunk.  Virt-resize will check this has been "
27420 "done before proceeding, or else will print an error (see also C<--resize-"
27421 "force>)."
27422 msgstr ""
27423
27424 # type: textblock
27425 #: ../tools/virt-resize.pl:313 ../tools/virt-resize.pl:405
27426 #: ../tools/virt-resize.pl:422
27427 msgid "You can give this option multiple times."
27428 msgstr ""
27429
27430 # type: =item
27431 #: ../tools/virt-resize.pl:319
27432 msgid "B<--resize-force part=size>"
27433 msgstr ""
27434
27435 # type: textblock
27436 #: ../tools/virt-resize.pl:321
27437 msgid ""
27438 "This is the same as C<--resize> except that it will let you decrease the "
27439 "size of any partition.  Generally this means you will lose any data which "
27440 "was at the end of the partition you shrink, but you may not care about that "
27441 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27442 "as a swap partition)."
27443 msgstr ""
27444
27445 # type: textblock
27446 #: ../tools/virt-resize.pl:327
27447 msgid "See also the C<--ignore> option."
27448 msgstr ""
27449
27450 # type: =item
27451 #: ../tools/virt-resize.pl:333
27452 msgid "B<--expand part>"
27453 msgstr ""
27454
27455 # type: textblock
27456 #: ../tools/virt-resize.pl:335
27457 msgid ""
27458 "Expand the named partition so it uses up all extra space (space left over "
27459 "after any other resize changes that you request have been done)."
27460 msgstr ""
27461
27462 # type: textblock
27463 #: ../tools/virt-resize.pl:338
27464 msgid ""
27465 "If virt-resize knows how, it will expand the direct content of the "
27466 "partition.  For example, if the partition is an LVM PV, it will expand the "
27467 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27468 "content it doesn't know about alone."
27469 msgstr ""
27470
27471 # type: textblock
27472 #: ../tools/virt-resize.pl:343
27473 msgid "Currently virt-resize can resize:"
27474 msgstr ""
27475
27476 # type: textblock
27477 #: ../tools/virt-resize.pl:349
27478 msgid ""
27479 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27480 "partition."
27481 msgstr ""
27482
27483 # type: textblock
27484 #: ../tools/virt-resize.pl:354
27485 msgid ""
27486 "NTFS filesystems contained directly in a partition, if libguestfs was "
27487 "compiled with support for NTFS."
27488 msgstr ""
27489
27490 # type: textblock
27491 #: ../tools/virt-resize.pl:357
27492 msgid ""
27493 "The filesystem must have been shut down consistently last time it was used.  "
27494 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27495 "consistency check, so at the first boot after resizing Windows will check "
27496 "the disk."
27497 msgstr ""
27498
27499 # type: textblock
27500 #: ../tools/virt-resize.pl:364
27501 msgid ""
27502 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27503 "inside the PV.  The user will have to resize LVs as desired."
27504 msgstr ""
27505
27506 # type: textblock
27507 #: ../tools/virt-resize.pl:370 ../tools/virt-resize.pl:392
27508 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27509 msgstr ""
27510
27511 # type: =item
27512 #: ../tools/virt-resize.pl:376
27513 msgid "B<--shrink part>"
27514 msgstr ""
27515
27516 # type: textblock
27517 #: ../tools/virt-resize.pl:378
27518 msgid ""
27519 "Shrink the named partition until the overall disk image fits in the "
27520 "destination.  The named partition B<must> contain a filesystem or PV which "
27521 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27522 "online tools).  Virt-resize will check this and give an error if it has not "
27523 "been done."
27524 msgstr ""
27525
27526 # type: textblock
27527 #: ../tools/virt-resize.pl:384
27528 msgid ""
27529 "The amount by which the overall disk must be shrunk (after carrying out all "
27530 "other operations requested by the user) is called the \"deficit\".  For "
27531 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27532 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27533 "would give an error unless the user specified a partition to shrink and that "
27534 "partition had more than a gigabyte of free space."
27535 msgstr ""
27536
27537 # type: =item
27538 #: ../tools/virt-resize.pl:398
27539 msgid "B<--ignore part>"
27540 msgstr ""
27541
27542 # type: textblock
27543 #: ../tools/virt-resize.pl:400
27544 msgid ""
27545 "Ignore the named partition.  Effectively this means the partition is "
27546 "allocated on the destination disk, but the content is not copied across from "
27547 "the source disk.  The content of the partition will be blank (all zero "
27548 "bytes)."
27549 msgstr ""
27550
27551 # type: =item
27552 #: ../tools/virt-resize.pl:411
27553 msgid "B<--delete part>"
27554 msgstr ""
27555
27556 # type: textblock
27557 #: ../tools/virt-resize.pl:413
27558 msgid ""
27559 "Delete the named partition.  It would be more accurate to describe this as "
27560 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27561 "the original disk image is left intact."
27562 msgstr ""
27563
27564 # type: textblock
27565 #: ../tools/virt-resize.pl:417
27566 msgid ""
27567 "Note that when you delete a partition, then anything contained in the "
27568 "partition is also deleted.  Furthermore, this causes any partitions that "
27569 "come after to be I<renumbered>, which can easily make your guest unbootable."
27570 msgstr ""
27571
27572 # type: =item
27573 #: ../tools/virt-resize.pl:428
27574 msgid "B<--LV-expand logvol>"
27575 msgstr ""
27576
27577 # type: textblock
27578 #: ../tools/virt-resize.pl:430
27579 msgid ""
27580 "This takes the logical volume and, as a final step, expands it to fill all "
27581 "the space available in its volume group.  A typical usage, assuming a Linux "
27582 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27583 "lv_root> would be:"
27584 msgstr ""
27585
27586 # type: verbatim
27587 #: ../tools/virt-resize.pl:435
27588 #, no-wrap
27589 msgid ""
27590 " virt-resize indisk outdisk \\\n"
27591 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27592 "\n"
27593 msgstr ""
27594
27595 # type: textblock
27596 #: ../tools/virt-resize.pl:438
27597 msgid ""
27598 "This would first expand the partition (and PV), and then expand the root "
27599 "device to fill the extra space in the PV."
27600 msgstr ""
27601
27602 # type: textblock
27603 #: ../tools/virt-resize.pl:441
27604 msgid ""
27605 "The contents of the LV are also resized if virt-resize knows how to do "
27606 "that.  You can stop virt-resize from trying to expand the content by using "
27607 "the option C<--no-expand-content>."
27608 msgstr ""
27609
27610 # type: textblock
27611 #: ../tools/virt-resize.pl:445
27612 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27613 msgstr ""
27614
27615 # type: textblock
27616 #: ../tools/virt-resize.pl:448
27617 msgid ""
27618 "You can give this option multiple times, I<but> it doesn't make sense to do "
27619 "this unless the logical volumes you specify are all in different volume "
27620 "groups."
27621 msgstr ""
27622
27623 # type: =item
27624 #: ../tools/virt-resize.pl:456
27625 msgid "B<--no-copy-boot-loader>"
27626 msgstr ""
27627
27628 # type: textblock
27629 #: ../tools/virt-resize.pl:458
27630 msgid ""
27631 "By default, virt-resize copies over some sectors at the start of the disk "
27632 "(up to the beginning of the first partition).  Commonly these sectors "
27633 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27634 "in order for the guest to boot correctly."
27635 msgstr ""
27636
27637 # type: textblock
27638 #: ../tools/virt-resize.pl:463
27639 msgid ""
27640 "If you specify this flag, then this initial copy is not done.  You may need "
27641 "to reinstall the boot loader in this case."
27642 msgstr ""
27643
27644 # type: =item
27645 #: ../tools/virt-resize.pl:471
27646 msgid "B<--no-extra-partition>"
27647 msgstr ""
27648
27649 # type: textblock
27650 #: ../tools/virt-resize.pl:473
27651 msgid ""
27652 "By default, virt-resize creates an extra partition if there is any extra, "
27653 "unused space after all resizing has happened.  Use this option to prevent "
27654 "the extra partition from being created.  If you do this then the extra space "
27655 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27656 "tool in the guest."
27657 msgstr ""
27658
27659 # type: textblock
27660 #: ../tools/virt-resize.pl:479
27661 msgid ""
27662 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27663 "will be created."
27664 msgstr ""
27665
27666 # type: =item
27667 #: ../tools/virt-resize.pl:486
27668 msgid "B<--no-expand-content>"
27669 msgstr ""
27670
27671 # type: textblock
27672 #: ../tools/virt-resize.pl:488
27673 msgid ""
27674 "By default, virt-resize will try to expand the direct contents of "
27675 "partitions, if it knows how (see C<--expand> option above)."
27676 msgstr ""
27677
27678 # type: textblock
27679 #: ../tools/virt-resize.pl:491
27680 msgid ""
27681 "If you give the C<--no-expand-content> option then virt-resize will not "
27682 "attempt this."
27683 msgstr ""
27684
27685 # type: =item
27686 #: ../tools/virt-resize.pl:498
27687 msgid "B<-d> | B<--debug>"
27688 msgstr ""
27689
27690 # type: =item
27691 #: ../tools/virt-resize.pl:506
27692 msgid "B<-n> | B<--dryrun>"
27693 msgstr ""
27694
27695 # type: textblock
27696 #: ../tools/virt-resize.pl:508
27697 msgid "Print a summary of what would be done, but don't do anything."
27698 msgstr ""
27699
27700 # type: =item
27701 #: ../tools/virt-resize.pl:514
27702 msgid "B<-q> | B<--quiet>"
27703 msgstr ""
27704
27705 # type: textblock
27706 #: ../tools/virt-resize.pl:516
27707 msgid "Don't print the summary."
27708 msgstr ""
27709
27710 # type: textblock
27711 #: ../tools/virt-resize.pl:524
27712 msgid ""
27713 "Specify the format of the input disk image.  If this flag is not given then "
27714 "it is auto-detected from the image itself."
27715 msgstr ""
27716
27717 # type: textblock
27718 #: ../tools/virt-resize.pl:530
27719 msgid ""
27720 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27721 "AND NON-SPARSE RAW FORMATS>."
27722 msgstr ""
27723
27724 # type: =item
27725 #: ../tools/virt-resize.pl:537
27726 msgid "B<--output-format> raw"
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-resize.pl:539
27731 msgid ""
27732 "Specify the format of the output disk image.  If this flag is not given then "
27733 "it is auto-detected from the image itself."
27734 msgstr ""
27735
27736 # type: textblock
27737 #: ../tools/virt-resize.pl:545
27738 msgid ""
27739 "Note that you still need to create the output disk with the right format.  "
27740 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27741 msgstr ""
27742
27743 # type: =head1
27744 #: ../tools/virt-resize.pl:1421
27745 msgid "NOTES"
27746 msgstr ""
27747
27748 # type: =head2
27749 #: ../tools/virt-resize.pl:1423
27750 msgid "\"Partition 1 does not end on cylinder boundary.\""
27751 msgstr ""
27752
27753 # type: textblock
27754 #: ../tools/virt-resize.pl:1425
27755 msgid ""
27756 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27757 "means the partitions will not be aligned to the ancient CHS geometry.  "
27758 "However CHS geometry is meaningless for disks manufactured since the early "
27759 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27760 "cylinders is not required by any modern operating system."
27761 msgstr ""
27762
27763 # type: =head2
27764 #: ../tools/virt-resize.pl:1432
27765 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27766 msgstr ""
27767
27768 # type: textblock
27769 #: ../tools/virt-resize.pl:1434
27770 msgid ""
27771 "In Windows Vista and later versions, Microsoft switched to using a separate "
27772 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27773 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27774 "the boot partition.  Doing so seems to break the guest completely.  However "
27775 "expanding the second partition (ie. C: drive) should work."
27776 msgstr ""
27777
27778 # type: textblock
27779 #: ../tools/virt-resize.pl:1441
27780 msgid ""
27781 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27782 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27783 "it find errors) is nothing to worry about."
27784 msgstr ""
27785
27786 # type: =head2
27787 #: ../tools/virt-resize.pl:1445
27788 msgid "GUEST BOOT STUCK AT \"GRUB\""
27789 msgstr ""
27790
27791 # type: textblock
27792 #: ../tools/virt-resize.pl:1447
27793 msgid ""
27794 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27795 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27796 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27797 "although we think is to do with partition alignment."
27798 msgstr ""
27799
27800 # type: verbatim
27801 #: ../tools/virt-resize.pl:1452
27802 #, no-wrap
27803 msgid ""
27804 " guestfish -i -a newdisk\n"
27805 " ><fs> cat /boot/grub/device.map\n"
27806 " # check the contents of this file are sensible or\n"
27807 " # edit the file if necessary\n"
27808 " ><fs> grub-install / /dev/vda\n"
27809 " ><fs> exit\n"
27810 "\n"
27811 msgstr ""
27812
27813 # type: textblock
27814 #: ../tools/virt-resize.pl:1459
27815 msgid ""
27816 "For more flexible guest reconfiguration, including if you need to specify "
27817 "other parameters to grub-install, use L<virt-rescue(1)>."
27818 msgstr ""
27819
27820 # type: =head1
27821 #: ../tools/virt-resize.pl:1462
27822 msgid "ALTERNATIVE TOOLS"
27823 msgstr ""
27824
27825 # type: textblock
27826 #: ../tools/virt-resize.pl:1464
27827 msgid ""
27828 "There are several proprietary tools for resizing partitions.  We won't "
27829 "mention any here."
27830 msgstr ""
27831
27832 # type: textblock
27833 #: ../tools/virt-resize.pl:1467
27834 msgid ""
27835 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27836 "operations on disk images.  They can resize and move partitions, but I don't "
27837 "think they can do anything with the contents, and they certainly don't "
27838 "understand LVM."
27839 msgstr ""
27840
27841 # type: textblock
27842 #: ../tools/virt-resize.pl:1472
27843 msgid ""
27844 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27845 "but at a much lower level.  You will probably end up hand-calculating sector "
27846 "offsets, which is something that virt-resize was designed to avoid.  If you "
27847 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27848 "C<--debug> flag."
27849 msgstr ""
27850
27851 # type: textblock
27852 #: ../tools/virt-resize.pl:1487
27853 msgid ""
27854 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
27855 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
27856 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
27857 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
27858 "libguestfs.org/>."
27859 msgstr ""
27860
27861 # type: textblock
27862 #: ../tools/virt-list-filesystems.pl:32
27863 msgid ""
27864 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27865 msgstr ""
27866
27867 # type: verbatim
27868 #: ../tools/virt-list-filesystems.pl:36
27869 #, no-wrap
27870 msgid ""
27871 " virt-list-filesystems [--options] domname\n"
27872 "\n"
27873 msgstr ""
27874
27875 # type: verbatim
27876 #: ../tools/virt-list-filesystems.pl:38
27877 #, no-wrap
27878 msgid ""
27879 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27880 "\n"
27881 msgstr ""
27882
27883 # type: textblock
27884 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27885 msgid ""
27886 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27887 "replacement."
27888 msgstr ""
27889
27890 # type: textblock
27891 #: ../tools/virt-list-filesystems.pl:45
27892 msgid ""
27893 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27894 "are contained in a virtual machine or disk image."
27895 msgstr ""
27896
27897 # type: textblock
27898 #: ../tools/virt-list-filesystems.pl:49
27899 msgid ""
27900 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27901 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27902 "> tool."
27903 msgstr ""
27904
27905 # type: =item
27906 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27907 msgid "B<-l> | B<--long>"
27908 msgstr ""
27909
27910 # type: textblock
27911 #: ../tools/virt-list-filesystems.pl:108
27912 msgid ""
27913 "With this option, C<virt-list-filesystems> displays the type of each "
27914 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27915 msgstr ""
27916
27917 # type: =item
27918 #: ../tools/virt-list-filesystems.pl:115
27919 msgid "B<-a> | B<--all>"
27920 msgstr ""
27921
27922 # type: textblock
27923 #: ../tools/virt-list-filesystems.pl:117
27924 msgid ""
27925 "Normally we only show mountable filesystems.  If this option is given then "
27926 "swap devices are shown too."
27927 msgstr ""
27928
27929 # type: textblock
27930 #: ../tools/virt-list-filesystems.pl:191
27931 msgid ""
27932 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
27933 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27934 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27935 msgstr ""
27936
27937 # type: textblock
27938 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27939 msgid "Copyright (C) 2009 Red Hat Inc."
27940 msgstr ""
27941
27942 # type: textblock
27943 #: ../tools/virt-tar.pl:33
27944 msgid "virt-tar - Extract or upload files to a virtual machine"
27945 msgstr ""
27946
27947 # type: verbatim
27948 #: ../tools/virt-tar.pl:37
27949 #, no-wrap
27950 msgid ""
27951 " virt-tar [--options] -x domname directory tarball\n"
27952 "\n"
27953 msgstr ""
27954
27955 # type: verbatim
27956 #: ../tools/virt-tar.pl:39
27957 #, no-wrap
27958 msgid ""
27959 " virt-tar [--options] -u domname tarball directory\n"
27960 "\n"
27961 msgstr ""
27962
27963 # type: verbatim
27964 #: ../tools/virt-tar.pl:41
27965 #, no-wrap
27966 msgid ""
27967 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27968 "\n"
27969 msgstr ""
27970
27971 # type: verbatim
27972 #: ../tools/virt-tar.pl:43
27973 #, no-wrap
27974 msgid ""
27975 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27976 "\n"
27977 msgstr ""
27978
27979 # type: textblock
27980 #: ../tools/virt-tar.pl:47
27981 msgid "Download C</home> from the VM into a local tarball:"
27982 msgstr ""
27983
27984 # type: verbatim
27985 #: ../tools/virt-tar.pl:49
27986 #, no-wrap
27987 msgid ""
27988 " virt-tar -x domname /home home.tar\n"
27989 "\n"
27990 msgstr ""
27991
27992 # type: verbatim
27993 #: ../tools/virt-tar.pl:51
27994 #, no-wrap
27995 msgid ""
27996 " virt-tar -zx domname /home home.tar.gz\n"
27997 "\n"
27998 msgstr ""
27999
28000 # type: textblock
28001 #: ../tools/virt-tar.pl:53
28002 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28003 msgstr ""
28004
28005 # type: verbatim
28006 #: ../tools/virt-tar.pl:55
28007 #, no-wrap
28008 msgid ""
28009 " virt-tar -u domname uploadstuff.tar /tmp\n"
28010 "\n"
28011 msgstr ""
28012
28013 # type: verbatim
28014 #: ../tools/virt-tar.pl:57
28015 #, no-wrap
28016 msgid ""
28017 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28018 "\n"
28019 msgstr ""
28020
28021 # type: textblock
28022 #: ../tools/virt-tar.pl:61
28023 msgid ""
28024 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28025 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28026 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28027 msgstr ""
28028
28029 # type: textblock
28030 #: ../tools/virt-tar.pl:66
28031 msgid ""
28032 "You can use C<-x> (extract) on live virtual machines, but you might get "
28033 "inconsistent results or errors if there is filesystem activity inside the "
28034 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28035 "work, but the only way to guarantee consistent results is if the virtual "
28036 "machine is shut down."
28037 msgstr ""
28038
28039 # type: textblock
28040 #: ../tools/virt-tar.pl:74
28041 msgid ""
28042 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28043 "parts of a guest filesystem.  There are many possibilities: making backups, "
28044 "uploading data files, snooping on guest activity, fixing or customizing "
28045 "guests, etc."
28046 msgstr ""
28047
28048 # type: textblock
28049 #: ../tools/virt-tar.pl:79
28050 msgid ""
28051 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28052 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28053 "should look at the L<guestfish(1)> tool."
28054 msgstr ""
28055
28056 # type: textblock
28057 #: ../tools/virt-tar.pl:83
28058 msgid ""
28059 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28060 "its contents (recursively) from the virtual machine into a local tarball.  "
28061 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28062 "virtual machine.  You cannot use these two options together."
28063 msgstr ""
28064
28065 # type: textblock
28066 #: ../tools/virt-tar.pl:89
28067 msgid ""
28068 "In addition, you may need to use the C<-z> (gZip) option to enable "
28069 "compression.  When uploading, you have to specify C<-z> if the upload file "
28070 "is compressed because virt-tar won't detect this on its own."
28071 msgstr ""
28072
28073 # type: textblock
28074 #: ../tools/virt-tar.pl:93
28075 msgid ""
28076 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28077 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28078 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28079 "the L<libguestfs(3)> API)."
28080 msgstr ""
28081
28082 # type: =item
28083 #: ../tools/virt-tar.pl:151
28084 msgid "B<-x> | B<--extract> | B<--download>"
28085 msgstr ""
28086
28087 # type: =item
28088 #: ../tools/virt-tar.pl:153
28089 msgid "B<-u> | B<--upload>"
28090 msgstr ""
28091
28092 # type: textblock
28093 #: ../tools/virt-tar.pl:155
28094 msgid ""
28095 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28096 "local tarball."
28097 msgstr ""
28098
28099 # type: textblock
28100 #: ../tools/virt-tar.pl:158
28101 msgid ""
28102 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28103 "Please read the L</WARNING> section above before using this option."
28104 msgstr ""
28105
28106 # type: textblock
28107 #: ../tools/virt-tar.pl:162
28108 msgid "You must specify exactly one of these options."
28109 msgstr ""
28110
28111 # type: =item
28112 #: ../tools/virt-tar.pl:168
28113 msgid "B<-z> | B<--gzip>"
28114 msgstr ""
28115
28116 # type: textblock
28117 #: ../tools/virt-tar.pl:170
28118 msgid "Specify that the input or output tarball is gzip-compressed."
28119 msgstr ""
28120
28121 # type: textblock
28122 #: ../tools/virt-tar.pl:283
28123 msgid ""
28124 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28125 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28126 "org/>."
28127 msgstr ""
28128
28129 # type: textblock
28130 #: ../tools/virt-make-fs.pl:37
28131 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28132 msgstr ""
28133
28134 # type: verbatim
28135 #: ../tools/virt-make-fs.pl:41
28136 #, no-wrap
28137 msgid ""
28138 " virt-make-fs [--options] input.tar output.img\n"
28139 "\n"
28140 msgstr ""
28141
28142 # type: verbatim
28143 #: ../tools/virt-make-fs.pl:43
28144 #, no-wrap
28145 msgid ""
28146 " virt-make-fs [--options] input.tar.gz output.img\n"
28147 "\n"
28148 msgstr ""
28149
28150 # type: verbatim
28151 #: ../tools/virt-make-fs.pl:45
28152 #, no-wrap
28153 msgid ""
28154 " virt-make-fs [--options] directory output.img\n"
28155 "\n"
28156 msgstr ""
28157
28158 # type: textblock
28159 #: ../tools/virt-make-fs.pl:49
28160 msgid ""
28161 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28162 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28163 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28164 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28165 "you want to attach these filesystems to existing virtual machines (eg. to "
28166 "import large amounts of read-only data to a VM)."
28167 msgstr ""
28168
28169 # type: textblock
28170 #: ../tools/virt-make-fs.pl:57
28171 msgid "Basic usage is:"
28172 msgstr ""
28173
28174 # type: verbatim
28175 #: ../tools/virt-make-fs.pl:59
28176 #, no-wrap
28177 msgid ""
28178 " virt-make-fs input output\n"
28179 "\n"
28180 msgstr ""
28181
28182 # type: textblock
28183 #: ../tools/virt-make-fs.pl:61
28184 msgid ""
28185 "where C<input> is either a directory containing files that you want to add, "
28186 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28187 "C<output> is a disk image.  The input type is detected automatically.  The "
28188 "output disk image defaults to a raw ext2 image unless you specify extra "
28189 "flags (see L</OPTIONS> below)."
28190 msgstr ""
28191
28192 # type: =head2
28193 #: ../tools/virt-make-fs.pl:67
28194 msgid "EXTRA SPACE"
28195 msgstr ""
28196
28197 # type: textblock
28198 #: ../tools/virt-make-fs.pl:69
28199 msgid ""
28200 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28201 "the files that it contains, but might have extra space.  Depending on how "
28202 "you are going to use the output, you might think this extra space is wasted "
28203 "and want to minimize it, or you might want to leave space so that more files "
28204 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28205 "but you can use the C<--size> flag to leave space in the filesystem if you "
28206 "want it."
28207 msgstr ""
28208
28209 # type: textblock
28210 #: ../tools/virt-make-fs.pl:77
28211 msgid ""
28212 "An alternative way to leave extra space but not make the output image any "
28213 "bigger is to use an alternative disk image format (instead of the default "
28214 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28215 "image format (check your hypervisor supports this before using it).  This "
28216 "allows you to choose a large C<--size> but the extra space won't actually be "
28217 "allocated in the image until you try to store something in it."
28218 msgstr ""
28219
28220 # type: textblock
28221 #: ../tools/virt-make-fs.pl:85
28222 msgid ""
28223 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28224 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28225 "resize to build another image from scratch."
28226 msgstr ""
28227
28228 # type: =head3
28229 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28230 #: ../tools/virt-make-fs.pl:142
28231 msgid "EXAMPLE"
28232 msgstr ""
28233
28234 # type: verbatim
28235 #: ../tools/virt-make-fs.pl:91
28236 #, no-wrap
28237 msgid ""
28238 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28239 "\n"
28240 msgstr ""
28241
28242 # type: =head2
28243 #: ../tools/virt-make-fs.pl:93
28244 msgid "FILESYSTEM TYPE"
28245 msgstr ""
28246
28247 # type: textblock
28248 #: ../tools/virt-make-fs.pl:95
28249 msgid ""
28250 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28251 "libguestfs supports can be used (but I<not> read-only formats like "
28252 "ISO9660).  Here are some of the more common choices:"
28253 msgstr ""
28254
28255 # type: =item
28256 #: ../tools/virt-make-fs.pl:101
28257 msgid "I<ext3>"
28258 msgstr ""
28259
28260 # type: textblock
28261 #: ../tools/virt-make-fs.pl:103
28262 msgid ""
28263 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28264 "you are not going to use the filesystem in a way that requires the journal, "
28265 "then this is just wasted overhead."
28266 msgstr ""
28267
28268 # type: =item
28269 #: ../tools/virt-make-fs.pl:107
28270 msgid "I<ntfs> or I<vfat>"
28271 msgstr ""
28272
28273 # type: textblock
28274 #: ../tools/virt-make-fs.pl:109
28275 msgid "Useful if exporting data to a Windows guest."
28276 msgstr ""
28277
28278 # type: textblock
28279 #: ../tools/virt-make-fs.pl:111
28280 msgid ""
28281 "I<Note for vfat>: The tar archive or local directory must only contain files "
28282 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28283 "program running within libguestfs is unable to change the ownership of non-"
28284 "root files, since vfat itself does not support this."
28285 msgstr ""
28286
28287 # type: =item
28288 #: ../tools/virt-make-fs.pl:116
28289 msgid "I<minix>"
28290 msgstr ""
28291
28292 # type: textblock
28293 #: ../tools/virt-make-fs.pl:118
28294 msgid ""
28295 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28296 "total filesystem size."
28297 msgstr ""
28298
28299 # type: verbatim
28300 #: ../tools/virt-make-fs.pl:125
28301 #, no-wrap
28302 msgid ""
28303 " virt-make-fs --type=minix input minixfs.img\n"
28304 "\n"
28305 msgstr ""
28306
28307 # type: =head2
28308 #: ../tools/virt-make-fs.pl:127
28309 msgid "TO PARTITION OR NOT TO PARTITION"
28310 msgstr ""
28311
28312 # type: textblock
28313 #: ../tools/virt-make-fs.pl:129
28314 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28315 msgstr ""
28316
28317 # type: textblock
28318 #: ../tools/virt-make-fs.pl:131
28319 msgid ""
28320 "Adding a partition can make the disk image more compatible with certain "
28321 "virtualized operating systems which don't expect to see a filesystem "
28322 "directly located on a block device (Linux doesn't care and will happily "
28323 "handle both types)."
28324 msgstr ""
28325
28326 # type: textblock
28327 #: ../tools/virt-make-fs.pl:136
28328 msgid ""
28329 "On the other hand, if you have a partition table then the output image is no "
28330 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28331 "directly on a partitioned disk image.  (However libguestfs tools such as "
28332 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28333 msgstr ""
28334
28335 # type: textblock
28336 #: ../tools/virt-make-fs.pl:144
28337 msgid "Add an MBR partition:"
28338 msgstr ""
28339
28340 # type: verbatim
28341 #: ../tools/virt-make-fs.pl:146
28342 #, no-wrap
28343 msgid ""
28344 " virt-make-fs --partition -- input disk.img\n"
28345 "\n"
28346 msgstr ""
28347
28348 # type: textblock
28349 #: ../tools/virt-make-fs.pl:148
28350 msgid ""
28351 "If the output disk image could be terabyte-sized or larger, it's better to "
28352 "use an EFI/GPT-compatible partition table:"
28353 msgstr ""
28354
28355 # type: verbatim
28356 #: ../tools/virt-make-fs.pl:151
28357 #, no-wrap
28358 msgid ""
28359 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28360 "\n"
28361 msgstr ""
28362
28363 # type: textblock
28364 #: ../tools/virt-make-fs.pl:179
28365 msgid "Enable debugging information."
28366 msgstr ""
28367
28368 # type: =item
28369 #: ../tools/virt-make-fs.pl:185
28370 msgid "B<--size=E<lt>NE<gt>>"
28371 msgstr ""
28372
28373 # type: =item
28374 #: ../tools/virt-make-fs.pl:187
28375 msgid "B<--size=+E<lt>NE<gt>>"
28376 msgstr ""
28377
28378 # type: =item
28379 #: ../tools/virt-make-fs.pl:189
28380 msgid "B<-s E<lt>NE<gt>>"
28381 msgstr ""
28382
28383 # type: =item
28384 #: ../tools/virt-make-fs.pl:191
28385 msgid "B<-s +E<lt>NE<gt>>"
28386 msgstr ""
28387
28388 # type: textblock
28389 #: ../tools/virt-make-fs.pl:193
28390 msgid ""
28391 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28392 msgstr ""
28393
28394 # type: textblock
28395 #: ../tools/virt-make-fs.pl:196
28396 msgid ""
28397 "If this option is I<not> given, then the output image will be just large "
28398 "enough to contain all the files, with not much wasted space."
28399 msgstr ""
28400
28401 # type: textblock
28402 #: ../tools/virt-make-fs.pl:199
28403 msgid ""
28404 "To choose a fixed size output disk, specify an absolute number followed by b/"
28405 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28406 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28407 "files, else you will get an error."
28408 msgstr ""
28409
28410 # type: textblock
28411 #: ../tools/virt-make-fs.pl:204
28412 msgid ""
28413 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28414 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28415 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28416 "the input files, and (approximately) an extra 200 MB free space."
28417 msgstr ""
28418
28419 # type: textblock
28420 #: ../tools/virt-make-fs.pl:210
28421 msgid ""
28422 "Note that virt-make-fs estimates free space, and therefore will not produce "
28423 "filesystems containing precisely the free space requested.  (It is much more "
28424 "expensive and time-consuming to produce a filesystem which has precisely the "
28425 "desired free space)."
28426 msgstr ""
28427
28428 # type: =item
28429 #: ../tools/virt-make-fs.pl:219
28430 msgid "B<--format=E<lt>fmtE<gt>>"
28431 msgstr ""
28432
28433 # type: =item
28434 #: ../tools/virt-make-fs.pl:221
28435 msgid "B<-F E<lt>fmtE<gt>>"
28436 msgstr ""
28437
28438 # type: textblock
28439 #: ../tools/virt-make-fs.pl:223
28440 msgid "Choose the output disk image format."
28441 msgstr ""
28442
28443 # type: textblock
28444 #: ../tools/virt-make-fs.pl:225
28445 msgid "The default is C<raw> (raw disk image)."
28446 msgstr ""
28447
28448 # type: textblock
28449 #: ../tools/virt-make-fs.pl:227
28450 msgid ""
28451 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28452 "that would really make sense here is C<qcow2>."
28453 msgstr ""
28454
28455 # type: =item
28456 #: ../tools/virt-make-fs.pl:234
28457 msgid "B<--type=E<lt>fsE<gt>>"
28458 msgstr ""
28459
28460 # type: =item
28461 #: ../tools/virt-make-fs.pl:236
28462 msgid "B<-t E<lt>fsE<gt>>"
28463 msgstr ""
28464
28465 # type: textblock
28466 #: ../tools/virt-make-fs.pl:238
28467 msgid "Choose the output filesystem type."
28468 msgstr ""
28469
28470 # type: textblock
28471 #: ../tools/virt-make-fs.pl:240
28472 msgid "The default is C<ext2>."
28473 msgstr ""
28474
28475 # type: textblock
28476 #: ../tools/virt-make-fs.pl:242
28477 msgid ""
28478 "Any filesystem which is supported read-write by libguestfs can be used here."
28479 msgstr ""
28480
28481 # type: =item
28482 #: ../tools/virt-make-fs.pl:249
28483 msgid "B<--partition>"
28484 msgstr ""
28485
28486 # type: =item
28487 #: ../tools/virt-make-fs.pl:251
28488 msgid "B<--partition=E<lt>parttypeE<gt>>"
28489 msgstr ""
28490
28491 # type: textblock
28492 #: ../tools/virt-make-fs.pl:253
28493 msgid ""
28494 "If specified, this flag adds an MBR partition table to the output disk image."
28495 msgstr ""
28496
28497 # type: textblock
28498 #: ../tools/virt-make-fs.pl:256
28499 msgid ""
28500 "You can change the partition table type, eg. C<--partition=gpt> for large "
28501 "disks."
28502 msgstr ""
28503
28504 # type: textblock
28505 #: ../tools/virt-make-fs.pl:259
28506 msgid ""
28507 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28508 "might consider the next parameter to be the partition type.  For example:"
28509 msgstr ""
28510
28511 # type: verbatim
28512 #: ../tools/virt-make-fs.pl:263
28513 #, no-wrap
28514 msgid ""
28515 " virt-make-fs --partition input.tar ...\n"
28516 "\n"
28517 msgstr ""
28518
28519 # type: textblock
28520 #: ../tools/virt-make-fs.pl:265
28521 msgid ""
28522 "would cause virt-make-fs to think you wanted to use a partition type of "
28523 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28524 "dash) between options and the input file argument:"
28525 msgstr ""
28526
28527 # type: verbatim
28528 #: ../tools/virt-make-fs.pl:269
28529 #, no-wrap
28530 msgid ""
28531 " virt-make-fs --partition -- input.tar ...\n"
28532 "\n"
28533 msgstr ""
28534
28535 # type: textblock
28536 #: ../tools/virt-make-fs.pl:536
28537 msgid ""
28538 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28539 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28540 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28541 msgstr ""
28542
28543 # type: verbatim
28544 #: ../tools/virt-make-fs.pl:553
28545 #, no-wrap
28546 msgid ""
28547 " export LIBGUESTFS_DEBUG=1\n"
28548 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28549 "\n"
28550 msgstr ""
28551
28552 # type: textblock
28553 #: ../tools/virt-make-fs.pl:556
28554 msgid ""
28555 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28556 "redhat.com/>"
28557 msgstr ""
28558
28559 # type: textblock
28560 #: ../tools/virt-list-partitions.pl:32
28561 msgid ""
28562 "virt-list-partitions - List partitions in a virtual machine or disk image"
28563 msgstr ""
28564
28565 # type: verbatim
28566 #: ../tools/virt-list-partitions.pl:36
28567 #, no-wrap
28568 msgid ""
28569 " virt-list-partitions [--options] domname\n"
28570 "\n"
28571 msgstr ""
28572
28573 # type: verbatim
28574 #: ../tools/virt-list-partitions.pl:38
28575 #, no-wrap
28576 msgid ""
28577 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28578 "\n"
28579 msgstr ""
28580
28581 # type: textblock
28582 #: ../tools/virt-list-partitions.pl:45
28583 msgid ""
28584 "C<virt-list-partitions> is a command line tool to list the partitions that "
28585 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28586 "first step to using L<virt-resize(1)>."
28587 msgstr ""
28588
28589 # type: textblock
28590 #: ../tools/virt-list-partitions.pl:50
28591 msgid ""
28592 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28593 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28594 "> tool."
28595 msgstr ""
28596
28597 # type: =item
28598 #: ../tools/virt-list-partitions.pl:107
28599 msgid "B<-h> | B<--human-readable>"
28600 msgstr ""
28601
28602 # type: textblock
28603 #: ../tools/virt-list-partitions.pl:109
28604 msgid "Show sizes in human-readable form (eg. \"1G\")."
28605 msgstr ""
28606
28607 # type: textblock
28608 #: ../tools/virt-list-partitions.pl:117
28609 msgid ""
28610 "With this option, C<virt-list-partitions> displays the type and size of each "
28611 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28612 msgstr ""
28613
28614 # type: =item
28615 #: ../tools/virt-list-partitions.pl:124
28616 msgid "B<-t> | B<--total>"
28617 msgstr ""
28618
28619 # type: textblock
28620 #: ../tools/virt-list-partitions.pl:126
28621 msgid ""
28622 "Display the total size of each block device (as a separate row or rows)."
28623 msgstr ""
28624
28625 # type: textblock
28626 #: ../tools/virt-list-partitions.pl:259
28627 msgid ""
28628 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
28629 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
28630 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28631 msgstr ""