Version 1.7.18.
[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-12-01 17:35+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../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:2007 ../src/guestfs.pod:2013 ../src/guestfs.pod:2018
792 #: ../src/guestfs.pod:2024 ../src/guestfs.pod:2136 ../src/guestfs.pod:2140
793 #: ../src/guestfs.pod:2144 ../src/guestfs.pod:2148
794 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
795 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579
796 #: ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593
797 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593
798 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601
799 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613
800 #: ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627
801 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635
802 #: ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777
803 #: ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787
804 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852
805 #: ../src/guestfs-actions.pod:1857 ../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:345 ../tools/virt-resize.pl:350
820 #: ../tools/virt-resize.pl:360
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:1844 ../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 ""
3646 "For functions that take optional arguments, the optional arguments are "
3647 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3648 "arguments.  A bitmask in the header indicates which optional arguments are "
3649 "meaningful.  The bitmask is also checked to see if it contains bits set "
3650 "which the daemon does not know about (eg. if more optional arguments were "
3651 "added in a later version of the library), and this causes the call to be "
3652 "rejected."
3653 msgstr ""
3654
3655 # type: textblock
3656 #: ../src/guestfs.pod:1866
3657 msgid "The reply message for ordinary functions is:"
3658 msgstr ""
3659
3660 # type: verbatim
3661 #: ../src/guestfs.pod:1868
3662 #, no-wrap
3663 msgid ""
3664 " total length (header + ret,\n"
3665 "      but not including the length word itself)\n"
3666 " struct guestfs_message_header (encoded as XDR)\n"
3667 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3668 "\n"
3669 msgstr ""
3670
3671 # type: textblock
3672 #: ../src/guestfs.pod:1873
3673 msgid ""
3674 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3675 "functions that return no formal return values."
3676 msgstr ""
3677
3678 # type: textblock
3679 #: ../src/guestfs.pod:1876
3680 msgid ""
3681 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3682 msgstr ""
3683
3684 # type: textblock
3685 #: ../src/guestfs.pod:1879
3686 msgid ""
3687 "In the case of an error, a flag is set in the header, and the reply message "
3688 "is slightly changed:"
3689 msgstr ""
3690
3691 # type: verbatim
3692 #: ../src/guestfs.pod:1882
3693 #, no-wrap
3694 msgid ""
3695 " total length (header + error,\n"
3696 "      but not including the length word itself)\n"
3697 " struct guestfs_message_header (encoded as XDR)\n"
3698 " struct guestfs_message_error (encoded as XDR)\n"
3699 "\n"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1887
3704 msgid ""
3705 "The C<guestfs_message_error> structure contains the error message as a "
3706 "string."
3707 msgstr ""
3708
3709 # type: =head3
3710 #: ../src/guestfs.pod:1890
3711 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3712 msgstr ""
3713
3714 # type: textblock
3715 #: ../src/guestfs.pod:1892
3716 msgid ""
3717 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3718 "The normal request message is sent (see above).  However this is followed by "
3719 "a sequence of file chunks."
3720 msgstr ""
3721
3722 # type: verbatim
3723 #: ../src/guestfs.pod:1896
3724 #, no-wrap
3725 msgid ""
3726 " total length (header + arguments,\n"
3727 "      but not including the length word itself,\n"
3728 "      and not including the chunks)\n"
3729 " struct guestfs_message_header (encoded as XDR)\n"
3730 " struct guestfs_<foo>_args (encoded as XDR)\n"
3731 " sequence of chunks for FileIn param #0\n"
3732 " sequence of chunks for FileIn param #1 etc.\n"
3733 "\n"
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1904
3738 msgid "The \"sequence of chunks\" is:"
3739 msgstr ""
3740
3741 # type: verbatim
3742 #: ../src/guestfs.pod:1906
3743 #, no-wrap
3744 msgid ""
3745 " length of chunk (not including length word itself)\n"
3746 " struct guestfs_chunk (encoded as XDR)\n"
3747 " length of chunk\n"
3748 " struct guestfs_chunk (encoded as XDR)\n"
3749 "   ...\n"
3750 " length of chunk\n"
3751 " struct guestfs_chunk (with data.data_len == 0)\n"
3752 "\n"
3753 msgstr ""
3754
3755 # type: textblock
3756 #: ../src/guestfs.pod:1914
3757 msgid ""
3758 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3759 "is set in the final chunk to indicate either successful completion or early "
3760 "cancellation."
3761 msgstr ""
3762
3763 # type: textblock
3764 #: ../src/guestfs.pod:1918
3765 msgid ""
3766 "At time of writing there are no functions that have more than one FileIn "
3767 "parameter.  However this is (theoretically) supported, by sending the "
3768 "sequence of chunks for each FileIn parameter one after another (from left to "
3769 "right)."
3770 msgstr ""
3771
3772 # type: textblock
3773 #: ../src/guestfs.pod:1923
3774 msgid ""
3775 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3776 "transfer.  The library does this by sending a chunk with a special flag set "
3777 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3778 "RPC, does I<not> send any reply, and goes back to reading the next request."
3779 msgstr ""
3780
3781 # type: textblock
3782 #: ../src/guestfs.pod:1929
3783 msgid ""
3784 "The daemon may also cancel.  It does this by writing a special word "
3785 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3786 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3787 "cancel chunk).  The special word is chosen so that even if cancellation "
3788 "happens right at the end of the transfer (after the library has finished "
3789 "writing and has started listening for the reply), the \"spurious\" cancel "
3790 "flag will not be confused with the reply message."
3791 msgstr ""
3792
3793 # type: textblock
3794 #: ../src/guestfs.pod:1938
3795 msgid ""
3796 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3797 "limit), and also files where the size is not known in advance (eg. from "
3798 "pipes or sockets).  However the chunks are rather small "
3799 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3800 "to keep much in memory."
3801 msgstr ""
3802
3803 # type: =head3
3804 #: ../src/guestfs.pod:1944
3805 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3806 msgstr ""
3807
3808 # type: textblock
3809 #: ../src/guestfs.pod:1946
3810 msgid ""
3811 "The protocol for FileOut parameters is exactly the same as for FileIn "
3812 "parameters, but with the roles of daemon and library reversed."
3813 msgstr ""
3814
3815 # type: verbatim
3816 #: ../src/guestfs.pod:1949
3817 #, no-wrap
3818 msgid ""
3819 " total length (header + ret,\n"
3820 "      but not including the length word itself,\n"
3821 "      and not including the chunks)\n"
3822 " struct guestfs_message_header (encoded as XDR)\n"
3823 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3824 " sequence of chunks for FileOut param #0\n"
3825 " sequence of chunks for FileOut param #1 etc.\n"
3826 "\n"
3827 msgstr ""
3828
3829 # type: =head3
3830 #: ../src/guestfs.pod:1957
3831 msgid "INITIAL MESSAGE"
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1959
3836 msgid ""
3837 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3838 "which indicates that the guest and daemon is alive.  This is what L</"
3839 "guestfs_launch> waits for."
3840 msgstr ""
3841
3842 # type: =head3
3843 #: ../src/guestfs.pod:1963
3844 msgid "PROGRESS NOTIFICATION MESSAGES"
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs.pod:1965
3849 msgid ""
3850 "The daemon may send progress notification messages at any time.  These are "
3851 "distinguished by the normal length word being replaced by "
3852 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3853 msgstr ""
3854
3855 # type: textblock
3856 #: ../src/guestfs.pod:1969
3857 msgid ""
3858 "The library turns them into progress callbacks (see "
3859 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3860 "discards them if not."
3861 msgstr ""
3862
3863 # type: textblock
3864 #: ../src/guestfs.pod:1973
3865 msgid ""
3866 "The daemon self-limits the frequency of progress messages it sends (see "
3867 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3868 "messages."
3869 msgstr ""
3870
3871 # type: =head1
3872 #: ../src/guestfs.pod:1977
3873 msgid "LIBGUESTFS VERSION NUMBERS"
3874 msgstr ""
3875
3876 # type: textblock
3877 #: ../src/guestfs.pod:1979
3878 msgid ""
3879 "Since April 2010, libguestfs has started to make separate development and "
3880 "stable releases, along with corresponding branches in our git repository.  "
3881 "These separate releases can be identified by version number:"
3882 msgstr ""
3883
3884 # type: verbatim
3885 #: ../src/guestfs.pod:1984
3886 #, no-wrap
3887 msgid ""
3888 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3889 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3890 "       |\n"
3891 "       v\n"
3892 " 1  .  3  .  5\n"
3893 " ^           ^\n"
3894 " |           |\n"
3895 " |           `-------- sub-version\n"
3896 " |\n"
3897 " `------ always '1' because we don't change the ABI\n"
3898 "\n"
3899 msgstr ""
3900
3901 # type: textblock
3902 #: ../src/guestfs.pod:1995
3903 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3904 msgstr ""
3905
3906 # type: textblock
3907 #: ../src/guestfs.pod:1997
3908 msgid ""
3909 "As time passes we cherry pick fixes from the development branch and backport "
3910 "those into the stable branch, the effect being that the stable branch should "
3911 "get more stable and less buggy over time.  So the stable releases are ideal "
3912 "for people who don't need new features but would just like the software to "
3913 "work."
3914 msgstr ""
3915
3916 # type: textblock
3917 #: ../src/guestfs.pod:2003
3918 msgid "Our criteria for backporting changes are:"
3919 msgstr ""
3920
3921 # type: textblock
3922 #: ../src/guestfs.pod:2009
3923 msgid ""
3924 "Documentation changes which don't affect any code are backported unless the "
3925 "documentation refers to a future feature which is not in stable."
3926 msgstr ""
3927
3928 # type: textblock
3929 #: ../src/guestfs.pod:2015
3930 msgid ""
3931 "Bug fixes which are not controversial, fix obvious problems, and have been "
3932 "well tested are backported."
3933 msgstr ""
3934
3935 # type: textblock
3936 #: ../src/guestfs.pod:2020
3937 msgid ""
3938 "Simple rearrangements of code which shouldn't affect how it works get "
3939 "backported.  This is so that the code in the two branches doesn't get too "
3940 "far out of step, allowing us to backport future fixes more easily."
3941 msgstr ""
3942
3943 # type: textblock
3944 #: ../src/guestfs.pod:2026
3945 msgid ""
3946 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3947 "exceptional case: the new feature is required in order to implement an "
3948 "important bug fix."
3949 msgstr ""
3950
3951 # type: textblock
3952 #: ../src/guestfs.pod:2032
3953 msgid ""
3954 "A new stable branch starts when we think the new features in development are "
3955 "substantial and compelling enough over the current stable branch to warrant "
3956 "it.  When that happens we create new stable and development versions 1.N.0 "
3957 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3958 "stable at this point, but by backporting fixes from development, that branch "
3959 "will stabilize over time."
3960 msgstr ""
3961
3962 # type: =head1
3963 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:915
3964 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3965 msgid "ENVIRONMENT VARIABLES"
3966 msgstr ""
3967
3968 # type: =item
3969 #: ../src/guestfs.pod:2044 ../fish/guestfish.pod:941
3970 msgid "LIBGUESTFS_APPEND"
3971 msgstr ""
3972
3973 # type: textblock
3974 #: ../src/guestfs.pod:2046 ../fish/guestfish.pod:943
3975 msgid "Pass additional options to the guest kernel."
3976 msgstr ""
3977
3978 # type: =item
3979 #: ../src/guestfs.pod:2048 ../fish/guestfish.pod:945
3980 msgid "LIBGUESTFS_DEBUG"
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs.pod:2050
3985 msgid ""
3986 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3987 "effect as calling C<guestfs_set_verbose (g, 1)>."
3988 msgstr ""
3989
3990 # type: =item
3991 #: ../src/guestfs.pod:2053 ../fish/guestfish.pod:950
3992 msgid "LIBGUESTFS_MEMSIZE"
3993 msgstr ""
3994
3995 # type: textblock
3996 #: ../src/guestfs.pod:2055 ../fish/guestfish.pod:952
3997 msgid ""
3998 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3999 msgstr ""
4000
4001 # type: verbatim
4002 #: ../src/guestfs.pod:2058 ../fish/guestfish.pod:955
4003 #, no-wrap
4004 msgid ""
4005 " LIBGUESTFS_MEMSIZE=700\n"
4006 "\n"
4007 msgstr ""
4008
4009 # type: =item
4010 #: ../src/guestfs.pod:2060 ../fish/guestfish.pod:957
4011 msgid "LIBGUESTFS_PATH"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs.pod:2062
4016 msgid ""
4017 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4018 "the discussion of paths in section PATH above."
4019 msgstr ""
4020
4021 # type: =item
4022 #: ../src/guestfs.pod:2065 ../fish/guestfish.pod:962
4023 msgid "LIBGUESTFS_QEMU"
4024 msgstr ""
4025
4026 # type: textblock
4027 #: ../src/guestfs.pod:2067 ../fish/guestfish.pod:964
4028 msgid ""
4029 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4030 "which was found at compile time by the configure script is used."
4031 msgstr ""
4032
4033 # type: textblock
4034 #: ../src/guestfs.pod:2071
4035 msgid "See also L</QEMU WRAPPERS> above."
4036 msgstr ""
4037
4038 # type: =item
4039 #: ../src/guestfs.pod:2073 ../fish/guestfish.pod:968
4040 msgid "LIBGUESTFS_TRACE"
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs.pod:2075
4045 msgid ""
4046 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4047 "effect as calling C<guestfs_set_trace (g, 1)>."
4048 msgstr ""
4049
4050 # type: =item
4051 #: ../src/guestfs.pod:2078 ../fish/guestfish.pod:977
4052 msgid "TMPDIR"
4053 msgstr ""
4054
4055 # type: textblock
4056 #: ../src/guestfs.pod:2080 ../fish/guestfish.pod:979
4057 msgid "Location of temporary directory, defaults to C</tmp>."
4058 msgstr ""
4059
4060 # type: textblock
4061 #: ../src/guestfs.pod:2082 ../fish/guestfish.pod:981
4062 msgid ""
4063 "If libguestfs was compiled to use the supermin appliance then the real "
4064 "appliance is cached in this directory, shared between all handles belonging "
4065 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4066 "use in case C</tmp> is not large enough."
4067 msgstr ""
4068
4069 # type: =head1
4070 #: ../src/guestfs.pod:2090 ../fish/guestfish.pod:1039
4071 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4072 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484
4073 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
4074 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
4075 #: ../tools/virt-list-partitions.pl:257
4076 msgid "SEE ALSO"
4077 msgstr ""
4078
4079 # type: textblock
4080 #: ../src/guestfs.pod:2092
4081 msgid ""
4082 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4083 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4084 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4085 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4086 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4087 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4088 msgstr ""
4089
4090 # type: textblock
4091 #: ../src/guestfs.pod:2115
4092 msgid ""
4093 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4094 "(8)>, L<disktype(1)>."
4095 msgstr ""
4096
4097 # type: =head1
4098 #: ../src/guestfs.pod:2122 ../tools/virt-win-reg.pl:499
4099 #: ../tools/virt-make-fs.pl:548
4100 msgid "BUGS"
4101 msgstr ""
4102
4103 # type: textblock
4104 #: ../src/guestfs.pod:2124
4105 msgid "To get a list of bugs against libguestfs use this link:"
4106 msgstr ""
4107
4108 # type: textblock
4109 #: ../src/guestfs.pod:2126
4110 msgid ""
4111 "L<https://bugzilla.redhat.com/buglist.cgi?"
4112 "component=libguestfs&product=Virtualization+Tools>"
4113 msgstr ""
4114
4115 # type: textblock
4116 #: ../src/guestfs.pod:2128
4117 msgid "To report a new bug against libguestfs use this link:"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs.pod:2130
4122 msgid ""
4123 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4124 "component=libguestfs&product=Virtualization+Tools>"
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs.pod:2132
4129 msgid "When reporting a bug, please check:"
4130 msgstr ""
4131
4132 # type: textblock
4133 #: ../src/guestfs.pod:2138
4134 msgid "That the bug hasn't been reported already."
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs.pod:2142
4139 msgid "That you are testing a recent version."
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs.pod:2146
4144 msgid "Describe the bug accurately, and give a way to reproduce it."
4145 msgstr ""
4146
4147 # type: textblock
4148 #: ../src/guestfs.pod:2150
4149 msgid ""
4150 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4151 "bug report."
4152 msgstr ""
4153
4154 # type: =head1
4155 #: ../src/guestfs.pod:2155 ../fish/guestfish.pod:1058
4156 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4157 msgid "AUTHORS"
4158 msgstr ""
4159
4160 # type: textblock
4161 #: ../src/guestfs.pod:2157 ../fish/guestfish.pod:1060
4162 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4163 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4164 msgstr ""
4165
4166 # type: =head1
4167 #: ../src/guestfs.pod:2159 ../fish/guestfish.pod:1062
4168 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4169 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4170 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
4171 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
4172 #: ../tools/virt-list-partitions.pl:273
4173 msgid "COPYRIGHT"
4174 msgstr ""
4175
4176 # type: textblock
4177 #: ../src/guestfs.pod:2161 ../fish/guestfish.pod:1064
4178 #: ../fuse/guestmount.pod:250
4179 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4180 msgstr ""
4181
4182 # type: textblock
4183 #: ../src/guestfs.pod:2164
4184 msgid ""
4185 "This library is free software; you can redistribute it and/or modify it "
4186 "under the terms of the GNU Lesser General Public License as published by the "
4187 "Free Software Foundation; either version 2 of the License, or (at your "
4188 "option) any later version."
4189 msgstr ""
4190
4191 # type: textblock
4192 #: ../src/guestfs.pod:2169
4193 msgid ""
4194 "This library is distributed in the hope that it will be useful, but WITHOUT "
4195 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4196 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4197 "for more details."
4198 msgstr ""
4199
4200 # type: textblock
4201 #: ../src/guestfs.pod:2174
4202 msgid ""
4203 "You should have received a copy of the GNU Lesser General Public License "
4204 "along with this library; if not, write to the Free Software Foundation, "
4205 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4206 msgstr ""
4207
4208 # type: =head2
4209 #: ../src/guestfs-actions.pod:1
4210 msgid "guestfs_add_cdrom"
4211 msgstr ""
4212
4213 # type: verbatim
4214 #: ../src/guestfs-actions.pod:3
4215 #, no-wrap
4216 msgid ""
4217 " int\n"
4218 " guestfs_add_cdrom (guestfs_h *g,\n"
4219 "                    const char *filename);\n"
4220 "\n"
4221 msgstr ""
4222
4223 # type: textblock
4224 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4225 msgid "This function adds a virtual CD-ROM disk image to the guest."
4226 msgstr ""
4227
4228 # type: textblock
4229 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4230 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4231 msgstr ""
4232
4233 # type: textblock
4234 #: ../src/guestfs-actions.pod:17
4235 msgid ""
4236 "This call checks for the existence of C<filename>.  This stops you from "
4237 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4238 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4239 "instead."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:24
4244 msgid ""
4245 "If you just want to add an ISO file (often you use this as an efficient way "
4246 "to transfer large files into the guest), then you should probably use "
4247 "C<guestfs_add_drive_ro> instead."
4248 msgstr ""
4249
4250 # type: textblock
4251 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128
4252 #: ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226
4253 #: ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261
4254 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295
4255 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4256 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489
4257 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4258 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635
4259 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664
4260 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
4261 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
4262 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990
4263 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092
4264 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129
4265 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163
4266 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264
4267 #: ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326
4268 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466
4269 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706
4270 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2215
4271 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2420
4272 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3194
4273 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3229
4274 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3368
4275 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3395
4276 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3446
4277 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3538
4278 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3578
4279 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3633
4280 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3671
4281 #: ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3718
4282 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3770
4283 #: ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3798
4284 #: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:3908
4285 #: ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:3941
4286 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4010
4287 #: ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4044
4288 #: ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4072
4289 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104
4290 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4173
4291 #: ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4223
4292 #: ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4254
4293 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4284
4294 #: ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4314
4295 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4364
4296 #: ../src/guestfs-actions.pod:4384 ../src/guestfs-actions.pod:4398
4297 #: ../src/guestfs-actions.pod:4415 ../src/guestfs-actions.pod:4464
4298 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4515
4299 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4560
4300 #: ../src/guestfs-actions.pod:4578 ../src/guestfs-actions.pod:4712
4301 #: ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4791
4302 #: ../src/guestfs-actions.pod:4809 ../src/guestfs-actions.pod:4841
4303 #: ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4924
4304 #: ../src/guestfs-actions.pod:4937 ../src/guestfs-actions.pod:4951
4305 #: ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5259
4306 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5285
4307 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5311
4308 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5341
4309 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5381
4310 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5418
4311 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5459
4312 #: ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:5499
4313 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5535
4314 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5587
4315 #: ../src/guestfs-actions.pod:5606 ../src/guestfs-actions.pod:5630
4316 #: ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5660
4317 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5716
4318 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:5765
4319 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:5994
4320 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6019
4321 #: ../src/guestfs-actions.pod:6032 ../src/guestfs-actions.pod:6054
4322 #: ../src/guestfs-actions.pod:6067 ../src/guestfs-actions.pod:6080
4323 #: ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6108
4324 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6184
4325 #: ../src/guestfs-actions.pod:6200 ../src/guestfs-actions.pod:6216
4326 #: ../src/guestfs-actions.pod:6233 ../src/guestfs-actions.pod:6246
4327 #: ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6302
4328 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6357
4329 #: ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6388
4330 #: ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6458
4331 #: ../src/guestfs-actions.pod:6577 ../src/guestfs-actions.pod:6595
4332 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6664
4333 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6722
4334 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6809
4335 #: ../src/guestfs-actions.pod:6835 ../src/guestfs-actions.pod:6901
4336 #: ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:6949
4337 msgid "This function returns 0 on success or -1 on error."
4338 msgstr ""
4339
4340 # type: textblock
4341 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242
4342 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28
4343 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4344 msgid ""
4345 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4346 "instead."
4347 msgstr ""
4348
4349 # type: textblock
4350 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245
4351 #: ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437
4352 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944
4353 #: ../src/guestfs-actions.pod:6843 ../src/guestfs-actions.pod:7012
4354 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4355 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4356 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4357 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4358 msgid ""
4359 "Deprecated functions will not be removed from the API, but the fact that "
4360 "they are deprecated indicates that there are problems with correct use of "
4361 "these functions."
4362 msgstr ""
4363
4364 # type: textblock
4365 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130
4366 #: ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895
4367 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096
4368 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
4369 #: ../src/guestfs-actions.pod:4351 ../src/guestfs-actions.pod:5420
4370 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5647
4371 #: ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6235
4372 #: ../src/guestfs-actions.pod:6757
4373 msgid "(Added in 0.3)"
4374 msgstr ""
4375
4376 # type: =head2
4377 #: ../src/guestfs-actions.pod:41
4378 msgid "guestfs_add_domain"
4379 msgstr ""
4380
4381 # type: verbatim
4382 #: ../src/guestfs-actions.pod:43
4383 #, no-wrap
4384 msgid ""
4385 " int\n"
4386 " guestfs_add_domain (guestfs_h *g,\n"
4387 "                     const char *dom,\n"
4388 "                     ...);\n"
4389 "\n"
4390 msgstr ""
4391
4392 # type: textblock
4393 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4394 msgid ""
4395 "You may supply a list of optional arguments to this call.  Use zero or more "
4396 "of the following pairs of parameters, and terminate the list with C<-1> on "
4397 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4398 msgstr ""
4399
4400 # type: verbatim
4401 #: ../src/guestfs-actions.pod:53
4402 #, no-wrap
4403 msgid ""
4404 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4405 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4406 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4407 "\n"
4408 msgstr ""
4409
4410 # type: textblock
4411 #: ../src/guestfs-actions.pod:57
4412 msgid ""
4413 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4414 "It works by connecting to libvirt, requesting the domain and domain XML from "
4415 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4416 "one."
4417 msgstr ""
4418
4419 # type: textblock
4420 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4421 msgid ""
4422 "The number of disks added is returned.  This operation is atomic: if an "
4423 "error is returned, then no disks are added."
4424 msgstr ""
4425
4426 # type: textblock
4427 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4428 msgid ""
4429 "This function does some minimal checks to make sure the libvirt domain is "
4430 "not running (unless C<readonly> is true).  In a future version we will try "
4431 "to acquire the libvirt lock on each disk."
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4436 msgid ""
4437 "Disks must be accessible locally.  This often means that adding disks from a "
4438 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4439 "unless those disks are accessible via the same device path locally too."
4440 msgstr ""
4441
4442 # type: textblock
4443 #: ../src/guestfs-actions.pod:74
4444 msgid ""
4445 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4446 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4447 "libvirt URI (or one set through an environment variable, see the libvirt "
4448 "documentation for full details).  If you are using the C API directly then "
4449 "it is more flexible to create the libvirt connection object yourself, get "
4450 "the domain object, and call C<guestfs_add_libvirt_dom>."
4451 msgstr ""
4452
4453 # type: textblock
4454 #: ../src/guestfs-actions.pod:82
4455 msgid ""
4456 "The other optional parameters are passed directly through to "
4457 "C<guestfs_add_drive_opts>."
4458 msgstr ""
4459
4460 # type: textblock
4461 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338
4462 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681
4463 #: ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730
4464 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309
4465 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866
4466 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005
4467 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083
4468 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2634
4469 #: ../src/guestfs-actions.pod:2655 ../src/guestfs-actions.pod:4487
4470 #: ../src/guestfs-actions.pod:4615 ../src/guestfs-actions.pod:5021
4471 #: ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:6343
4472 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6781
4473 #: ../src/guestfs-actions.pod:6794
4474 msgid "On error this function returns -1."
4475 msgstr ""
4476
4477 # type: textblock
4478 #: ../src/guestfs-actions.pod:87
4479 msgid "(Added in 1.7.4)"
4480 msgstr ""
4481
4482 # type: =head2
4483 #: ../src/guestfs-actions.pod:89
4484 msgid "guestfs_add_domain_va"
4485 msgstr ""
4486
4487 # type: verbatim
4488 #: ../src/guestfs-actions.pod:91
4489 #, no-wrap
4490 msgid ""
4491 " int\n"
4492 " guestfs_add_domain_va (guestfs_h *g,\n"
4493 "                        const char *dom,\n"
4494 "                        va_list args);\n"
4495 "\n"
4496 msgstr ""
4497
4498 # type: textblock
4499 #: ../src/guestfs-actions.pod:96
4500 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4501 msgstr ""
4502
4503 # type: textblock
4504 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109
4505 #: ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4506 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4507 msgstr ""
4508
4509 # type: =head2
4510 #: ../src/guestfs-actions.pod:100
4511 msgid "guestfs_add_domain_argv"
4512 msgstr ""
4513
4514 # type: verbatim
4515 #: ../src/guestfs-actions.pod:102
4516 #, no-wrap
4517 msgid ""
4518 " int\n"
4519 " guestfs_add_domain_argv (guestfs_h *g,\n"
4520 "                          const char *dom,\n"
4521 "                          const struct guestfs_add_domain_argv *optargs);\n"
4522 "\n"
4523 msgstr ""
4524
4525 # type: textblock
4526 #: ../src/guestfs-actions.pod:107
4527 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4528 msgstr ""
4529
4530 # type: =head2
4531 #: ../src/guestfs-actions.pod:111
4532 msgid "guestfs_add_drive"
4533 msgstr ""
4534
4535 # type: verbatim
4536 #: ../src/guestfs-actions.pod:113
4537 #, no-wrap
4538 msgid ""
4539 " int\n"
4540 " guestfs_add_drive (guestfs_h *g,\n"
4541 "                    const char *filename);\n"
4542 "\n"
4543 msgstr ""
4544
4545 # type: textblock
4546 #: ../src/guestfs-actions.pod:117
4547 msgid ""
4548 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4549 "optional parameters, so the disk is added writable, with the format being "
4550 "detected automatically."
4551 msgstr ""
4552
4553 # type: textblock
4554 #: ../src/guestfs-actions.pod:121
4555 msgid ""
4556 "Automatic detection of the format opens you up to a potential security hole "
4557 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4558 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4559 "you should think about replacing calls to this function with calls to "
4560 "C<guestfs_add_drive_opts>, and specifying the format."
4561 msgstr ""
4562
4563 # type: =head2
4564 #: ../src/guestfs-actions.pod:132
4565 msgid "guestfs_add_drive_opts"
4566 msgstr ""
4567
4568 # type: verbatim
4569 #: ../src/guestfs-actions.pod:134
4570 #, no-wrap
4571 msgid ""
4572 " int\n"
4573 " guestfs_add_drive_opts (guestfs_h *g,\n"
4574 "                         const char *filename,\n"
4575 "                         ...);\n"
4576 "\n"
4577 msgstr ""
4578
4579 # type: verbatim
4580 #: ../src/guestfs-actions.pod:144
4581 #, no-wrap
4582 msgid ""
4583 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4584 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4585 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4586 "\n"
4587 msgstr ""
4588
4589 # type: textblock
4590 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4591 msgid ""
4592 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4593 "The first time you call this function, the disk appears as C</dev/sda>, the "
4594 "second time as C</dev/sdb>, and so on."
4595 msgstr ""
4596
4597 # type: textblock
4598 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4599 msgid ""
4600 "You don't necessarily need to be root when using libguestfs.  However you "
4601 "obviously do need sufficient permissions to access the filename for whatever "
4602 "operations you want to perform (ie. read access if you just want to read the "
4603 "image or write access if you want to modify the image)."
4604 msgstr ""
4605
4606 # type: textblock
4607 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4608 msgid "This call checks that C<filename> exists."
4609 msgstr ""
4610
4611 # type: textblock
4612 #: ../src/guestfs-actions.pod:161 ../fish/guestfish-actions.pod:105
4613 msgid "The optional arguments are:"
4614 msgstr ""
4615
4616 # type: =item
4617 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4618 msgid "C<readonly>"
4619 msgstr ""
4620
4621 # type: textblock
4622 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4623 msgid ""
4624 "If true then the image is treated as read-only.  Writes are still allowed, "
4625 "but they are stored in a temporary snapshot overlay which is discarded at "
4626 "the end.  The disk that you add is not modified."
4627 msgstr ""
4628
4629 # type: =item
4630 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4631 msgid "C<format>"
4632 msgstr ""
4633
4634 # type: textblock
4635 #: ../src/guestfs-actions.pod:173
4636 msgid ""
4637 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4638 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4639 "Possible formats include C<raw> and C<qcow2>."
4640 msgstr ""
4641
4642 # type: textblock
4643 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4644 msgid ""
4645 "Automatic detection of the format opens you up to a potential security hole "
4646 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4647 "RHBZ#642934.  Specifying the format closes this security hole."
4648 msgstr ""
4649
4650 # type: =item
4651 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4652 msgid "C<iface>"
4653 msgstr ""
4654
4655 # type: textblock
4656 #: ../src/guestfs-actions.pod:184
4657 msgid ""
4658 "This rarely-used option lets you emulate the behaviour of the deprecated "
4659 "C<guestfs_add_drive_with_if> call (q.v.)"
4660 msgstr ""
4661
4662 # type: textblock
4663 #: ../src/guestfs-actions.pod:191
4664 msgid "(Added in 1.5.23)"
4665 msgstr ""
4666
4667 # type: =head2
4668 #: ../src/guestfs-actions.pod:193
4669 msgid "guestfs_add_drive_opts_va"
4670 msgstr ""
4671
4672 # type: verbatim
4673 #: ../src/guestfs-actions.pod:195
4674 #, no-wrap
4675 msgid ""
4676 " int\n"
4677 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4678 "                            const char *filename,\n"
4679 "                            va_list args);\n"
4680 "\n"
4681 msgstr ""
4682
4683 # type: textblock
4684 #: ../src/guestfs-actions.pod:200
4685 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4686 msgstr ""
4687
4688 # type: =head2
4689 #: ../src/guestfs-actions.pod:204
4690 msgid "guestfs_add_drive_opts_argv"
4691 msgstr ""
4692
4693 # type: verbatim
4694 #: ../src/guestfs-actions.pod:206
4695 #, no-wrap
4696 msgid ""
4697 " int\n"
4698 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4699 "                              const char *filename,\n"
4700 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4701 "\n"
4702 msgstr ""
4703
4704 # type: textblock
4705 #: ../src/guestfs-actions.pod:211
4706 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4707 msgstr ""
4708
4709 # type: =head2
4710 #: ../src/guestfs-actions.pod:215
4711 msgid "guestfs_add_drive_ro"
4712 msgstr ""
4713
4714 # type: verbatim
4715 #: ../src/guestfs-actions.pod:217
4716 #, no-wrap
4717 msgid ""
4718 " int\n"
4719 " guestfs_add_drive_ro (guestfs_h *g,\n"
4720 "                       const char *filename);\n"
4721 "\n"
4722 msgstr ""
4723
4724 # type: textblock
4725 #: ../src/guestfs-actions.pod:221
4726 msgid ""
4727 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4728 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4729 "disk is added read-only, with the format being detected automatically."
4730 msgstr ""
4731
4732 # type: textblock
4733 #: ../src/guestfs-actions.pod:228
4734 msgid "(Added in 1.0.38)"
4735 msgstr ""
4736
4737 # type: =head2
4738 #: ../src/guestfs-actions.pod:230
4739 msgid "guestfs_add_drive_ro_with_if"
4740 msgstr ""
4741
4742 # type: verbatim
4743 #: ../src/guestfs-actions.pod:232
4744 #, no-wrap
4745 msgid ""
4746 " int\n"
4747 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4748 "                               const char *filename,\n"
4749 "                               const char *iface);\n"
4750 "\n"
4751 msgstr ""
4752
4753 # type: textblock
4754 #: ../src/guestfs-actions.pod:237
4755 msgid ""
4756 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4757 "QEMU interface emulation to use at run time."
4758 msgstr ""
4759
4760 # type: textblock
4761 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
4762 #: ../src/guestfs-actions.pod:2305
4763 msgid "(Added in 1.0.84)"
4764 msgstr ""
4765
4766 # type: =head2
4767 #: ../src/guestfs-actions.pod:251
4768 msgid "guestfs_add_drive_with_if"
4769 msgstr ""
4770
4771 # type: verbatim
4772 #: ../src/guestfs-actions.pod:253
4773 #, no-wrap
4774 msgid ""
4775 " int\n"
4776 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4777 "                            const char *filename,\n"
4778 "                            const char *iface);\n"
4779 "\n"
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:258
4784 msgid ""
4785 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4786 "QEMU interface emulation to use at run time."
4787 msgstr ""
4788
4789 # type: =head2
4790 #: ../src/guestfs-actions.pod:272
4791 msgid "guestfs_aug_clear"
4792 msgstr ""
4793
4794 # type: verbatim
4795 #: ../src/guestfs-actions.pod:274
4796 #, no-wrap
4797 msgid ""
4798 " int\n"
4799 " guestfs_aug_clear (guestfs_h *g,\n"
4800 "                    const char *augpath);\n"
4801 "\n"
4802 msgstr ""
4803
4804 # type: textblock
4805 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4806 msgid ""
4807 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4808 "L<augtool(1)> C<clear> command."
4809 msgstr ""
4810
4811 # type: textblock
4812 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4813 msgid "(Added in 1.3.4)"
4814 msgstr ""
4815
4816 # type: =head2
4817 #: ../src/guestfs-actions.pod:285
4818 msgid "guestfs_aug_close"
4819 msgstr ""
4820
4821 # type: verbatim
4822 #: ../src/guestfs-actions.pod:287
4823 #, no-wrap
4824 msgid ""
4825 " int\n"
4826 " guestfs_aug_close (guestfs_h *g);\n"
4827 "\n"
4828 msgstr ""
4829
4830 # type: textblock
4831 #: ../src/guestfs-actions.pod:290
4832 msgid ""
4833 "Close the current Augeas handle and free up any resources used by it.  After "
4834 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4835 "any other Augeas functions."
4836 msgstr ""
4837
4838 # type: textblock
4839 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322
4840 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354
4841 #: ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432
4842 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477
4843 #: ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505
4844 #: ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537
4845 #: ../src/guestfs-actions.pod:5098
4846 msgid "(Added in 0.7)"
4847 msgstr ""
4848
4849 # type: =head2
4850 #: ../src/guestfs-actions.pod:299
4851 msgid "guestfs_aug_defnode"
4852 msgstr ""
4853
4854 # type: verbatim
4855 #: ../src/guestfs-actions.pod:301
4856 #, no-wrap
4857 msgid ""
4858 " struct guestfs_int_bool *\n"
4859 " guestfs_aug_defnode (guestfs_h *g,\n"
4860 "                      const char *name,\n"
4861 "                      const char *expr,\n"
4862 "                      const char *val);\n"
4863 "\n"
4864 msgstr ""
4865
4866 # type: textblock
4867 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4868 msgid ""
4869 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4870 msgstr ""
4871
4872 # type: textblock
4873 #: ../src/guestfs-actions.pod:310
4874 msgid ""
4875 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4876 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4877 "containing that single node."
4878 msgstr ""
4879
4880 # type: textblock
4881 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4882 msgid ""
4883 "On success this returns a pair containing the number of nodes in the "
4884 "nodeset, and a boolean flag if a node was created."
4885 msgstr ""
4886
4887 # type: textblock
4888 #: ../src/guestfs-actions.pod:318
4889 msgid ""
4890 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4891 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4892 msgstr ""
4893
4894 # type: =head2
4895 #: ../src/guestfs-actions.pod:324
4896 msgid "guestfs_aug_defvar"
4897 msgstr ""
4898
4899 # type: verbatim
4900 #: ../src/guestfs-actions.pod:326
4901 #, no-wrap
4902 msgid ""
4903 " int\n"
4904 " guestfs_aug_defvar (guestfs_h *g,\n"
4905 "                     const char *name,\n"
4906 "                     const char *expr);\n"
4907 "\n"
4908 msgstr ""
4909
4910 # type: textblock
4911 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4912 msgid ""
4913 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4914 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4915 msgstr ""
4916
4917 # type: textblock
4918 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4919 msgid ""
4920 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4921 "evaluates to something which is not a nodeset."
4922 msgstr ""
4923
4924 # type: =head2
4925 #: ../src/guestfs-actions.pod:342
4926 msgid "guestfs_aug_get"
4927 msgstr ""
4928
4929 # type: verbatim
4930 #: ../src/guestfs-actions.pod:344
4931 #, no-wrap
4932 msgid ""
4933 " char *\n"
4934 " guestfs_aug_get (guestfs_h *g,\n"
4935 "                  const char *augpath);\n"
4936 "\n"
4937 msgstr ""
4938
4939 # type: textblock
4940 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4941 msgid ""
4942 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4943 "node, the C<value> is returned."
4944 msgstr ""
4945
4946 # type: textblock
4947 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851
4948 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929
4949 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048
4950 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195
4951 #: ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343
4952 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646
4953 #: ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826
4954 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938
4955 #: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2270
4956 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2558
4957 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2716
4958 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2771
4959 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2856
4960 #: ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3690
4961 #: ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3970
4962 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4826
4963 #: ../src/guestfs-actions.pod:4996 ../src/guestfs-actions.pod:5174
4964 #: ../src/guestfs-actions.pod:5223 ../src/guestfs-actions.pod:5786
4965 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5819
4966 #: ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6517
4967 #: ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6554
4968 #: ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:7006
4969 msgid ""
4970 "This function returns a string, or NULL on error.  I<The caller must free "
4971 "the returned string after use>."
4972 msgstr ""
4973
4974 # type: =head2
4975 #: ../src/guestfs-actions.pod:356
4976 msgid "guestfs_aug_init"
4977 msgstr ""
4978
4979 # type: verbatim
4980 #: ../src/guestfs-actions.pod:358
4981 #, no-wrap
4982 msgid ""
4983 " int\n"
4984 " guestfs_aug_init (guestfs_h *g,\n"
4985 "                   const char *root,\n"
4986 "                   int flags);\n"
4987 "\n"
4988 msgstr ""
4989
4990 # type: textblock
4991 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4992 msgid ""
4993 "Create a new Augeas handle for editing configuration files.  If there was "
4994 "any previous Augeas handle associated with this guestfs session, then it is "
4995 "closed."
4996 msgstr ""
4997
4998 # type: textblock
4999 #: ../src/guestfs-actions.pod:367
5000 msgid "You must call this before using any other C<guestfs_aug_*> commands."
5001 msgstr ""
5002
5003 # type: textblock
5004 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
5005 msgid ""
5006 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5007 msgstr ""
5008
5009 # type: textblock
5010 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
5011 msgid ""
5012 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5013 "logical I<or> of the following integers:"
5014 msgstr ""
5015
5016 # type: =item
5017 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5018 msgid "C<AUG_SAVE_BACKUP> = 1"
5019 msgstr ""
5020
5021 # type: textblock
5022 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5023 msgid "Keep the original file with a C<.augsave> extension."
5024 msgstr ""
5025
5026 # type: =item
5027 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5028 msgid "C<AUG_SAVE_NEWFILE> = 2"
5029 msgstr ""
5030
5031 # type: textblock
5032 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
5033 msgid ""
5034 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5035 "original.  Overrides C<AUG_SAVE_BACKUP>."
5036 msgstr ""
5037
5038 # type: =item
5039 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5040 msgid "C<AUG_TYPE_CHECK> = 4"
5041 msgstr ""
5042
5043 # type: textblock
5044 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5045 msgid "Typecheck lenses (can be expensive)."
5046 msgstr ""
5047
5048 # type: =item
5049 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5050 msgid "C<AUG_NO_STDINC> = 8"
5051 msgstr ""
5052
5053 # type: textblock
5054 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5055 msgid "Do not use standard load path for modules."
5056 msgstr ""
5057
5058 # type: =item
5059 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5060 msgid "C<AUG_SAVE_NOOP> = 16"
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5065 msgid "Make save a no-op, just record what would have been changed."
5066 msgstr ""
5067
5068 # type: =item
5069 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
5070 msgid "C<AUG_NO_LOAD> = 32"
5071 msgstr ""
5072
5073 # type: textblock
5074 #: ../src/guestfs-actions.pod:402
5075 msgid "Do not load the tree in C<guestfs_aug_init>."
5076 msgstr ""
5077
5078 # type: textblock
5079 #: ../src/guestfs-actions.pod:406
5080 msgid "To close the handle, you can call C<guestfs_aug_close>."
5081 msgstr ""
5082
5083 # type: textblock
5084 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
5085 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5086 msgstr ""
5087
5088 # type: =head2
5089 #: ../src/guestfs-actions.pod:414
5090 msgid "guestfs_aug_insert"
5091 msgstr ""
5092
5093 # type: verbatim
5094 #: ../src/guestfs-actions.pod:416
5095 #, no-wrap
5096 msgid ""
5097 " int\n"
5098 " guestfs_aug_insert (guestfs_h *g,\n"
5099 "                     const char *augpath,\n"
5100 "                     const char *label,\n"
5101 "                     int before);\n"
5102 "\n"
5103 msgstr ""
5104
5105 # type: textblock
5106 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
5107 msgid ""
5108 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5109 "or after C<path> (depending on the boolean flag C<before>)."
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
5114 msgid ""
5115 "C<path> must match exactly one existing node in the tree, and C<label> must "
5116 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5117 msgstr ""
5118
5119 # type: =head2
5120 #: ../src/guestfs-actions.pod:434
5121 msgid "guestfs_aug_load"
5122 msgstr ""
5123
5124 # type: verbatim
5125 #: ../src/guestfs-actions.pod:436
5126 #, no-wrap
5127 msgid ""
5128 " int\n"
5129 " guestfs_aug_load (guestfs_h *g);\n"
5130 "\n"
5131 msgstr ""
5132
5133 # type: textblock
5134 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5135 msgid "Load files into the tree."
5136 msgstr ""
5137
5138 # type: textblock
5139 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5140 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5141 msgstr ""
5142
5143 # type: =head2
5144 #: ../src/guestfs-actions.pod:448
5145 msgid "guestfs_aug_ls"
5146 msgstr ""
5147
5148 # type: verbatim
5149 #: ../src/guestfs-actions.pod:450
5150 #, no-wrap
5151 msgid ""
5152 " char **\n"
5153 " guestfs_aug_ls (guestfs_h *g,\n"
5154 "                 const char *augpath);\n"
5155 "\n"
5156 msgstr ""
5157
5158 # type: textblock
5159 #: ../src/guestfs-actions.pod:454
5160 msgid ""
5161 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5162 "sorting the resulting nodes into alphabetical order."
5163 msgstr ""
5164
5165 # type: textblock
5166 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473
5167 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067
5168 #: ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377
5169 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499
5170 #: ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2150
5171 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2185
5172 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2252
5173 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2372
5174 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2790
5175 #: ../src/guestfs-actions.pod:3005 ../src/guestfs-actions.pod:3260
5176 #: ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3427
5177 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:4448
5178 #: ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:5094
5179 #: ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5859
5180 #: ../src/guestfs-actions.pod:5920 ../src/guestfs-actions.pod:5975
5181 #: ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6145
5182 #: ../src/guestfs-actions.pod:6627 ../src/guestfs-actions.pod:6647
5183 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6859
5184 #: ../src/guestfs-actions.pod:6878 ../src/guestfs-actions.pod:6963
5185 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7028
5186 #: ../src/guestfs-actions.pod:7047
5187 msgid ""
5188 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5189 ">), or NULL if there was an error.  I<The caller must free the strings and "
5190 "the array after use>."
5191 msgstr ""
5192
5193 # type: textblock
5194 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992
5195 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415
5196 #: ../src/guestfs-actions.pod:3083 ../src/guestfs-actions.pod:3114
5197 #: ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3723
5198 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3943
5199 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4452
5200 #: ../src/guestfs-actions.pod:4909 ../src/guestfs-actions.pod:5287
5201 #: ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5313
5202 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:6359
5203 #: ../src/guestfs-actions.pod:6372 ../src/guestfs-actions.pod:6611
5204 #: ../src/guestfs-actions.pod:6814 ../src/guestfs-actions.pod:6847
5205 msgid "(Added in 0.8)"
5206 msgstr ""
5207
5208 # type: =head2
5209 #: ../src/guestfs-actions.pod:463
5210 msgid "guestfs_aug_match"
5211 msgstr ""
5212
5213 # type: verbatim
5214 #: ../src/guestfs-actions.pod:465
5215 #, no-wrap
5216 msgid ""
5217 " char **\n"
5218 " guestfs_aug_match (guestfs_h *g,\n"
5219 "                    const char *augpath);\n"
5220 "\n"
5221 msgstr ""
5222
5223 # type: textblock
5224 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5225 msgid ""
5226 "Returns a list of paths which match the path expression C<path>.  The "
5227 "returned paths are sufficiently qualified so that they match exactly one "
5228 "node in the current tree."
5229 msgstr ""
5230
5231 # type: =head2
5232 #: ../src/guestfs-actions.pod:479
5233 msgid "guestfs_aug_mv"
5234 msgstr ""
5235
5236 # type: verbatim
5237 #: ../src/guestfs-actions.pod:481
5238 #, no-wrap
5239 msgid ""
5240 " int\n"
5241 " guestfs_aug_mv (guestfs_h *g,\n"
5242 "                 const char *src,\n"
5243 "                 const char *dest);\n"
5244 "\n"
5245 msgstr ""
5246
5247 # type: textblock
5248 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5249 msgid ""
5250 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5251 "C<dest> is overwritten if it exists."
5252 msgstr ""
5253
5254 # type: =head2
5255 #: ../src/guestfs-actions.pod:493
5256 msgid "guestfs_aug_rm"
5257 msgstr ""
5258
5259 # type: verbatim
5260 #: ../src/guestfs-actions.pod:495
5261 #, no-wrap
5262 msgid ""
5263 " int\n"
5264 " guestfs_aug_rm (guestfs_h *g,\n"
5265 "                 const char *augpath);\n"
5266 "\n"
5267 msgstr ""
5268
5269 # type: textblock
5270 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5271 msgid "Remove C<path> and all of its children."
5272 msgstr ""
5273
5274 # type: textblock
5275 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5276 msgid "On success this returns the number of entries which were removed."
5277 msgstr ""
5278
5279 # type: =head2
5280 #: ../src/guestfs-actions.pod:507
5281 msgid "guestfs_aug_save"
5282 msgstr ""
5283
5284 # type: verbatim
5285 #: ../src/guestfs-actions.pod:509
5286 #, no-wrap
5287 msgid ""
5288 " int\n"
5289 " guestfs_aug_save (guestfs_h *g);\n"
5290 "\n"
5291 msgstr ""
5292
5293 # type: textblock
5294 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5295 msgid "This writes all pending changes to disk."
5296 msgstr ""
5297
5298 # type: textblock
5299 #: ../src/guestfs-actions.pod:514
5300 msgid ""
5301 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5302 "are saved."
5303 msgstr ""
5304
5305 # type: =head2
5306 #: ../src/guestfs-actions.pod:521
5307 msgid "guestfs_aug_set"
5308 msgstr ""
5309
5310 # type: verbatim
5311 #: ../src/guestfs-actions.pod:523
5312 #, no-wrap
5313 msgid ""
5314 " int\n"
5315 " guestfs_aug_set (guestfs_h *g,\n"
5316 "                  const char *augpath,\n"
5317 "                  const char *val);\n"
5318 "\n"
5319 msgstr ""
5320
5321 # type: textblock
5322 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5323 msgid "Set the value associated with C<path> to C<val>."
5324 msgstr ""
5325
5326 # type: textblock
5327 #: ../src/guestfs-actions.pod:530
5328 msgid ""
5329 "In the Augeas API, it is possible to clear a node by setting the value to "
5330 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5331 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5332 msgstr ""
5333
5334 # type: =head2
5335 #: ../src/guestfs-actions.pod:539
5336 msgid "guestfs_available"
5337 msgstr ""
5338
5339 # type: verbatim
5340 #: ../src/guestfs-actions.pod:541
5341 #, no-wrap
5342 msgid ""
5343 " int\n"
5344 " guestfs_available (guestfs_h *g,\n"
5345 "                    char *const *groups);\n"
5346 "\n"
5347 msgstr ""
5348
5349 # type: textblock
5350 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5351 msgid ""
5352 "This command is used to check the availability of some groups of "
5353 "functionality in the appliance, which not all builds of the libguestfs "
5354 "appliance will be able to provide."
5355 msgstr ""
5356
5357 # type: textblock
5358 #: ../src/guestfs-actions.pod:549
5359 msgid ""
5360 "The libguestfs groups, and the functions that those groups correspond to, "
5361 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5362 "runtime by calling C<guestfs_available_all_groups>."
5363 msgstr ""
5364
5365 # type: textblock
5366 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5367 msgid ""
5368 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5369 "\"]> would check for the availability of the Linux inotify functions and "
5370 "Augeas (configuration file editing) functions."
5371 msgstr ""
5372
5373 # type: textblock
5374 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5375 msgid "The command returns no error if I<all> requested groups are available."
5376 msgstr ""
5377
5378 # type: textblock
5379 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5380 msgid ""
5381 "It fails with an error if one or more of the requested groups is unavailable "
5382 "in the appliance."
5383 msgstr ""
5384
5385 # type: textblock
5386 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5387 msgid ""
5388 "If an unknown group name is included in the list of groups then an error is "
5389 "always returned."
5390 msgstr ""
5391
5392 # type: textblock
5393 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5394 msgid "I<Notes:>"
5395 msgstr ""
5396
5397 # type: textblock
5398 #: ../src/guestfs-actions.pod:573
5399 msgid "You must call C<guestfs_launch> before calling this function."
5400 msgstr ""
5401
5402 # type: textblock
5403 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5404 msgid ""
5405 "The reason is because we don't know what groups are supported by the "
5406 "appliance/daemon until it is running and can be queried."
5407 msgstr ""
5408
5409 # type: textblock
5410 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5411 msgid ""
5412 "If a group of functions is available, this does not necessarily mean that "
5413 "they will work.  You still have to check for errors when calling individual "
5414 "API functions even if they are available."
5415 msgstr ""
5416
5417 # type: textblock
5418 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5419 msgid ""
5420 "It is usually the job of distro packagers to build complete functionality "
5421 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5422 "with all requirements satisfied, will support everything."
5423 msgstr ""
5424
5425 # type: textblock
5426 #: ../src/guestfs-actions.pod:595
5427 msgid ""
5428 "This call was added in version C<1.0.80>.  In previous versions of "
5429 "libguestfs all you could do would be to speculatively execute a command to "
5430 "find out if the daemon implemented it.  See also C<guestfs_version>."
5431 msgstr ""
5432
5433 # type: textblock
5434 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5435 msgid "(Added in 1.0.80)"
5436 msgstr ""
5437
5438 # type: =head2
5439 #: ../src/guestfs-actions.pod:606
5440 msgid "guestfs_available_all_groups"
5441 msgstr ""
5442
5443 # type: verbatim
5444 #: ../src/guestfs-actions.pod:608
5445 #, no-wrap
5446 msgid ""
5447 " char **\n"
5448 " guestfs_available_all_groups (guestfs_h *g);\n"
5449 "\n"
5450 msgstr ""
5451
5452 # type: textblock
5453 #: ../src/guestfs-actions.pod:611
5454 msgid ""
5455 "This command returns a list of all optional groups that this daemon knows "
5456 "about.  Note this returns both supported and unsupported groups.  To find "
5457 "out which ones the daemon can actually support you have to call "
5458 "C<guestfs_available> on each member of the returned list."
5459 msgstr ""
5460
5461 # type: textblock
5462 #: ../src/guestfs-actions.pod:617
5463 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5464 msgstr ""
5465
5466 # type: textblock
5467 #: ../src/guestfs-actions.pod:623
5468 msgid "(Added in 1.3.15)"
5469 msgstr ""
5470
5471 # type: =head2
5472 #: ../src/guestfs-actions.pod:625
5473 msgid "guestfs_base64_in"
5474 msgstr ""
5475
5476 # type: verbatim
5477 #: ../src/guestfs-actions.pod:627
5478 #, no-wrap
5479 msgid ""
5480 " int\n"
5481 " guestfs_base64_in (guestfs_h *g,\n"
5482 "                    const char *base64file,\n"
5483 "                    const char *filename);\n"
5484 "\n"
5485 msgstr ""
5486
5487 # type: textblock
5488 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5489 msgid ""
5490 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5491 msgstr ""
5492
5493 # type: textblock
5494 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5495 msgid "(Added in 1.3.5)"
5496 msgstr ""
5497
5498 # type: =head2
5499 #: ../src/guestfs-actions.pod:639
5500 msgid "guestfs_base64_out"
5501 msgstr ""
5502
5503 # type: verbatim
5504 #: ../src/guestfs-actions.pod:641
5505 #, no-wrap
5506 msgid ""
5507 " int\n"
5508 " guestfs_base64_out (guestfs_h *g,\n"
5509 "                     const char *filename,\n"
5510 "                     const char *base64file);\n"
5511 "\n"
5512 msgstr ""
5513
5514 # type: textblock
5515 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5516 msgid ""
5517 "This command downloads the contents of C<filename>, writing it out to local "
5518 "file C<base64file> encoded as base64."
5519 msgstr ""
5520
5521 # type: =head2
5522 #: ../src/guestfs-actions.pod:653
5523 msgid "guestfs_blockdev_flushbufs"
5524 msgstr ""
5525
5526 # type: verbatim
5527 #: ../src/guestfs-actions.pod:655
5528 #, no-wrap
5529 msgid ""
5530 " int\n"
5531 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5532 "                             const char *device);\n"
5533 "\n"
5534 msgstr ""
5535
5536 # type: textblock
5537 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5538 msgid ""
5539 "This tells the kernel to flush internal buffers associated with C<device>."
5540 msgstr ""
5541
5542 # type: textblock
5543 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679
5544 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710
5545 #: ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747
5546 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5547 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5548 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5549 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5550 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5551 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5552 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5553 msgid "This uses the L<blockdev(8)> command."
5554 msgstr ""
5555
5556 # type: textblock
5557 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683
5558 #: ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714
5559 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751
5560 #: ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783
5561 #: ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5562 msgid "(Added in 0.9.3)"
5563 msgstr ""
5564
5565 # type: =head2
5566 #: ../src/guestfs-actions.pod:668
5567 msgid "guestfs_blockdev_getbsz"
5568 msgstr ""
5569
5570 # type: verbatim
5571 #: ../src/guestfs-actions.pod:670
5572 #, no-wrap
5573 msgid ""
5574 " int\n"
5575 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5576 "                          const char *device);\n"
5577 "\n"
5578 msgstr ""
5579
5580 # type: textblock
5581 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5582 msgid "This returns the block size of a device."
5583 msgstr ""
5584
5585 # type: textblock
5586 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776
5587 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5588 msgid ""
5589 "(Note this is different from both I<size in blocks> and I<filesystem block "
5590 "size>)."
5591 msgstr ""
5592
5593 # type: =head2
5594 #: ../src/guestfs-actions.pod:685
5595 msgid "guestfs_blockdev_getro"
5596 msgstr ""
5597
5598 # type: verbatim
5599 #: ../src/guestfs-actions.pod:687
5600 #, no-wrap
5601 msgid ""
5602 " int\n"
5603 " guestfs_blockdev_getro (guestfs_h *g,\n"
5604 "                         const char *device);\n"
5605 "\n"
5606 msgstr ""
5607
5608 # type: textblock
5609 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5610 msgid ""
5611 "Returns a boolean indicating if the block device is read-only (true if read-"
5612 "only, false if not)."
5613 msgstr ""
5614
5615 # type: textblock
5616 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398
5617 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893
5618 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976
5619 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046
5620 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094
5621 #: ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3036
5622 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3065
5623 #: ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3096
5624 #: ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3126
5625 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3153
5626 #: ../src/guestfs-actions.pod:3168 ../src/guestfs-actions.pod:3183
5627 #: ../src/guestfs-actions.pod:4597
5628 msgid "This function returns a C truth value on success or -1 on error."
5629 msgstr ""
5630
5631 # type: =head2
5632 #: ../src/guestfs-actions.pod:700
5633 msgid "guestfs_blockdev_getsize64"
5634 msgstr ""
5635
5636 # type: verbatim
5637 #: ../src/guestfs-actions.pod:702
5638 #, no-wrap
5639 msgid ""
5640 " int64_t\n"
5641 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5642 "                             const char *device);\n"
5643 "\n"
5644 msgstr ""
5645
5646 # type: textblock
5647 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5648 msgid "This returns the size of the device in bytes."
5649 msgstr ""
5650
5651 # type: textblock
5652 #: ../src/guestfs-actions.pod:708
5653 msgid "See also C<guestfs_blockdev_getsz>."
5654 msgstr ""
5655
5656 # type: =head2
5657 #: ../src/guestfs-actions.pod:716
5658 msgid "guestfs_blockdev_getss"
5659 msgstr ""
5660
5661 # type: verbatim
5662 #: ../src/guestfs-actions.pod:718
5663 #, no-wrap
5664 msgid ""
5665 " int\n"
5666 " guestfs_blockdev_getss (guestfs_h *g,\n"
5667 "                         const char *device);\n"
5668 "\n"
5669 msgstr ""
5670
5671 # type: textblock
5672 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5673 msgid ""
5674 "This returns the size of sectors on a block device.  Usually 512, but can be "
5675 "larger for modern devices."
5676 msgstr ""
5677
5678 # type: textblock
5679 #: ../src/guestfs-actions.pod:725
5680 msgid ""
5681 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5682 "that)."
5683 msgstr ""
5684
5685 # type: =head2
5686 #: ../src/guestfs-actions.pod:734
5687 msgid "guestfs_blockdev_getsz"
5688 msgstr ""
5689
5690 # type: verbatim
5691 #: ../src/guestfs-actions.pod:736
5692 #, no-wrap
5693 msgid ""
5694 " int64_t\n"
5695 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5696 "                         const char *device);\n"
5697 "\n"
5698 msgstr ""
5699
5700 # type: textblock
5701 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5702 msgid ""
5703 "This returns the size of the device in units of 512-byte sectors (even if "
5704 "the sectorsize isn't 512 bytes ... weird)."
5705 msgstr ""
5706
5707 # type: textblock
5708 #: ../src/guestfs-actions.pod:743
5709 msgid ""
5710 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5711 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5712 msgstr ""
5713
5714 # type: =head2
5715 #: ../src/guestfs-actions.pod:753
5716 msgid "guestfs_blockdev_rereadpt"
5717 msgstr ""
5718
5719 # type: verbatim
5720 #: ../src/guestfs-actions.pod:755
5721 #, no-wrap
5722 msgid ""
5723 " int\n"
5724 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5725 "                            const char *device);\n"
5726 "\n"
5727 msgstr ""
5728
5729 # type: textblock
5730 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5731 msgid "Reread the partition table on C<device>."
5732 msgstr ""
5733
5734 # type: =head2
5735 #: ../src/guestfs-actions.pod:767
5736 msgid "guestfs_blockdev_setbsz"
5737 msgstr ""
5738
5739 # type: verbatim
5740 #: ../src/guestfs-actions.pod:769
5741 #, no-wrap
5742 msgid ""
5743 " int\n"
5744 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5745 "                          const char *device,\n"
5746 "                          int blocksize);\n"
5747 "\n"
5748 msgstr ""
5749
5750 # type: textblock
5751 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5752 msgid "This sets the block size of a device."
5753 msgstr ""
5754
5755 # type: =head2
5756 #: ../src/guestfs-actions.pod:785
5757 msgid "guestfs_blockdev_setro"
5758 msgstr ""
5759
5760 # type: verbatim
5761 #: ../src/guestfs-actions.pod:787
5762 #, no-wrap
5763 msgid ""
5764 " int\n"
5765 " guestfs_blockdev_setro (guestfs_h *g,\n"
5766 "                         const char *device);\n"
5767 "\n"
5768 msgstr ""
5769
5770 # type: textblock
5771 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5772 msgid "Sets the block device named C<device> to read-only."
5773 msgstr ""
5774
5775 # type: =head2
5776 #: ../src/guestfs-actions.pod:799
5777 msgid "guestfs_blockdev_setrw"
5778 msgstr ""
5779
5780 # type: verbatim
5781 #: ../src/guestfs-actions.pod:801
5782 #, no-wrap
5783 msgid ""
5784 " int\n"
5785 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5786 "                         const char *device);\n"
5787 "\n"
5788 msgstr ""
5789
5790 # type: textblock
5791 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5792 msgid "Sets the block device named C<device> to read-write."
5793 msgstr ""
5794
5795 # type: =head2
5796 #: ../src/guestfs-actions.pod:813
5797 msgid "guestfs_case_sensitive_path"
5798 msgstr ""
5799
5800 # type: verbatim
5801 #: ../src/guestfs-actions.pod:815
5802 #, no-wrap
5803 msgid ""
5804 " char *\n"
5805 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5806 "                              const char *path);\n"
5807 "\n"
5808 msgstr ""
5809
5810 # type: textblock
5811 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5812 msgid ""
5813 "This can be used to resolve case insensitive paths on a filesystem which is "
5814 "case sensitive.  The use case is to resolve paths which you have read from "
5815 "Windows configuration files or the Windows Registry, to the true path."
5816 msgstr ""
5817
5818 # type: textblock
5819 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5820 msgid ""
5821 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5822 "(and probably others), which is that although the underlying filesystem is "
5823 "case-insensitive, the driver exports the filesystem to Linux as case-"
5824 "sensitive."
5825 msgstr ""
5826
5827 # type: textblock
5828 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5829 msgid ""
5830 "One consequence of this is that special directories such as C<c:\\windows> "
5831 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5832 "precise details of how they were created.  In Windows itself this would not "
5833 "be a problem."
5834 msgstr ""
5835
5836 # type: textblock
5837 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5838 msgid ""
5839 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5840 "#posixfilenames1>"
5841 msgstr ""
5842
5843 # type: textblock
5844 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5845 msgid ""
5846 "This function resolves the true case of each element in the path and returns "
5847 "the case-sensitive path."
5848 msgstr ""
5849
5850 # type: textblock
5851 #: ../src/guestfs-actions.pod:841
5852 msgid ""
5853 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5854 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5855 "how the directories were originally created under Windows)."
5856 msgstr ""
5857
5858 # type: textblock
5859 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5860 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5861 msgstr ""
5862
5863 # type: textblock
5864 #: ../src/guestfs-actions.pod:849
5865 msgid "See also C<guestfs_realpath>."
5866 msgstr ""
5867
5868 # type: textblock
5869 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6539
5870 msgid "(Added in 1.0.75)"
5871 msgstr ""
5872
5873 # type: =head2
5874 #: ../src/guestfs-actions.pod:856
5875 msgid "guestfs_cat"
5876 msgstr ""
5877
5878 # type: verbatim
5879 #: ../src/guestfs-actions.pod:858
5880 #, no-wrap
5881 msgid ""
5882 " char *\n"
5883 " guestfs_cat (guestfs_h *g,\n"
5884 "              const char *path);\n"
5885 "\n"
5886 msgstr ""
5887
5888 # type: textblock
5889 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5084
5890 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5891 msgid "Return the contents of the file named C<path>."
5892 msgstr ""
5893
5894 # type: textblock
5895 #: ../src/guestfs-actions.pod:864
5896 msgid ""
5897 "Note that this function cannot correctly handle binary files (specifically, "
5898 "files containing C<\\0> character which is treated as end of string).  For "
5899 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5900 "functions which have a more complex interface."
5901 msgstr ""
5902
5903 # type: textblock
5904 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051
5905 #: ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362
5906 #: ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484
5907 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752
5908 #: ../src/guestfs-actions.pod:2170 ../src/guestfs-actions.pod:2189
5909 #: ../src/guestfs-actions.pod:2232 ../src/guestfs-actions.pod:2256
5910 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2302
5911 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4892
5912 #: ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5049
5913 #: ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5924
5914 #: ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6125
5915 #: ../src/guestfs-actions.pod:6149 ../src/guestfs-actions.pod:6811
5916 #: ../src/guestfs-actions.pod:6837 ../src/guestfs-actions.pod:6863
5917 #: ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:6967
5918 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7032
5919 #: ../src/guestfs-actions.pod:7051 ../fish/guestfish-actions.pod:582
5920 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5921 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5922 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5923 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5924 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5925 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5926 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5927 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5928 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5929 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5930 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5931 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5932 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5933 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5934 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5935 msgid ""
5936 "Because of the message protocol, there is a transfer limit of somewhere "
5937 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3264
5942 #: ../src/guestfs-actions.pod:3326 ../src/guestfs-actions.pod:3343
5943 #: ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3836
5944 #: ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:4972
5945 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:6698
5946 #: ../src/guestfs-actions.pod:6712
5947 msgid "(Added in 0.4)"
5948 msgstr ""
5949
5950 # type: =head2
5951 #: ../src/guestfs-actions.pod:877
5952 msgid "guestfs_checksum"
5953 msgstr ""
5954
5955 # type: verbatim
5956 #: ../src/guestfs-actions.pod:879
5957 #, no-wrap
5958 msgid ""
5959 " char *\n"
5960 " guestfs_checksum (guestfs_h *g,\n"
5961 "                   const char *csumtype,\n"
5962 "                   const char *path);\n"
5963 "\n"
5964 msgstr ""
5965
5966 # type: textblock
5967 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5968 msgid ""
5969 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5970 msgstr ""
5971
5972 # type: textblock
5973 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5974 msgid ""
5975 "The type of checksum to compute is given by the C<csumtype> parameter which "
5976 "must have one of the following values:"
5977 msgstr ""
5978
5979 # type: =item
5980 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5981 msgid "C<crc>"
5982 msgstr ""
5983
5984 # type: textblock
5985 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5986 msgid ""
5987 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5988 "C<cksum> command."
5989 msgstr ""
5990
5991 # type: =item
5992 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5993 msgid "C<md5>"
5994 msgstr ""
5995
5996 # type: textblock
5997 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
5998 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5999 msgstr ""
6000
6001 # type: =item
6002 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
6003 msgid "C<sha1>"
6004 msgstr ""
6005
6006 # type: textblock
6007 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
6008 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6009 msgstr ""
6010
6011 # type: =item
6012 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6013 msgid "C<sha224>"
6014 msgstr ""
6015
6016 # type: textblock
6017 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6018 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6019 msgstr ""
6020
6021 # type: =item
6022 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6023 msgid "C<sha256>"
6024 msgstr ""
6025
6026 # type: textblock
6027 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6028 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6029 msgstr ""
6030
6031 # type: =item
6032 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6033 msgid "C<sha384>"
6034 msgstr ""
6035
6036 # type: textblock
6037 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6038 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6039 msgstr ""
6040
6041 # type: =item
6042 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6043 msgid "C<sha512>"
6044 msgstr ""
6045
6046 # type: textblock
6047 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
6048 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
6053 msgid "The checksum is returned as a printable string."
6054 msgstr ""
6055
6056 # type: textblock
6057 #: ../src/guestfs-actions.pod:925
6058 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6059 msgstr ""
6060
6061 # type: textblock
6062 #: ../src/guestfs-actions.pod:927
6063 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6064 msgstr ""
6065
6066 # type: textblock
6067 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240
6068 #: ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3038
6069 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3128
6070 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:6395
6071 msgid "(Added in 1.0.2)"
6072 msgstr ""
6073
6074 # type: =head2
6075 #: ../src/guestfs-actions.pod:934
6076 msgid "guestfs_checksum_device"
6077 msgstr ""
6078
6079 # type: verbatim
6080 #: ../src/guestfs-actions.pod:936
6081 #, no-wrap
6082 msgid ""
6083 " char *\n"
6084 " guestfs_checksum_device (guestfs_h *g,\n"
6085 "                          const char *csumtype,\n"
6086 "                          const char *device);\n"
6087 "\n"
6088 msgstr ""
6089
6090 # type: textblock
6091 #: ../src/guestfs-actions.pod:941
6092 msgid ""
6093 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6094 "device named C<device>.  For the types of checksums supported see the "
6095 "C<guestfs_checksum> command."
6096 msgstr ""
6097
6098 # type: textblock
6099 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4503
6100 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4599
6101 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4793
6102 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6318
6103 #: ../src/guestfs-actions.pod:6724
6104 msgid "(Added in 1.3.2)"
6105 msgstr ""
6106
6107 # type: =head2
6108 #: ../src/guestfs-actions.pod:950
6109 msgid "guestfs_checksums_out"
6110 msgstr ""
6111
6112 # type: verbatim
6113 #: ../src/guestfs-actions.pod:952
6114 #, no-wrap
6115 msgid ""
6116 " int\n"
6117 " guestfs_checksums_out (guestfs_h *g,\n"
6118 "                        const char *csumtype,\n"
6119 "                        const char *directory,\n"
6120 "                        const char *sumsfile);\n"
6121 "\n"
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
6126 msgid ""
6127 "This command computes the checksums of all regular files in C<directory> and "
6128 "then emits a list of those checksums to the local output file C<sumsfile>."
6129 msgstr ""
6130
6131 # type: textblock
6132 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
6133 msgid ""
6134 "This can be used for verifying the integrity of a virtual machine.  However "
6135 "to be properly secure you should pay attention to the output of the checksum "
6136 "command (it uses the ones from GNU coreutils).  In particular when the "
6137 "filename is not printable, coreutils uses a special backslash syntax.  For "
6138 "more information, see the GNU coreutils info file."
6139 msgstr ""
6140
6141 # type: textblock
6142 #: ../src/guestfs-actions.pod:972
6143 msgid "(Added in 1.3.7)"
6144 msgstr ""
6145
6146 # type: =head2
6147 #: ../src/guestfs-actions.pod:974
6148 msgid "guestfs_chmod"
6149 msgstr ""
6150
6151 # type: verbatim
6152 #: ../src/guestfs-actions.pod:976
6153 #, no-wrap
6154 msgid ""
6155 " int\n"
6156 " guestfs_chmod (guestfs_h *g,\n"
6157 "                int mode,\n"
6158 "                const char *path);\n"
6159 "\n"
6160 msgstr ""
6161
6162 # type: textblock
6163 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
6164 msgid ""
6165 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6166 "supported."
6167 msgstr ""
6168
6169 # type: textblock
6170 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
6171 msgid ""
6172 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6173 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6174 "C<700>."
6175 msgstr ""
6176
6177 # type: textblock
6178 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4087
6179 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4221
6180 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:671
6181 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6182 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6183 msgid "The mode actually set is affected by the umask."
6184 msgstr ""
6185
6186 # type: =head2
6187 #: ../src/guestfs-actions.pod:994
6188 msgid "guestfs_chown"
6189 msgstr ""
6190
6191 # type: verbatim
6192 #: ../src/guestfs-actions.pod:996
6193 #, no-wrap
6194 msgid ""
6195 " int\n"
6196 " guestfs_chown (guestfs_h *g,\n"
6197 "                int owner,\n"
6198 "                int group,\n"
6199 "                const char *path);\n"
6200 "\n"
6201 msgstr ""
6202
6203 # type: textblock
6204 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
6205 msgid "Change the file owner to C<owner> and group to C<group>."
6206 msgstr ""
6207
6208 # type: textblock
6209 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3225
6210 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6211 msgid ""
6212 "Only numeric uid and gid are supported.  If you want to use names, you will "
6213 "need to locate and parse the password file yourself (Augeas support makes "
6214 "this relatively easy)."
6215 msgstr ""
6216
6217 # type: =head2
6218 #: ../src/guestfs-actions.pod:1012
6219 msgid "guestfs_command"
6220 msgstr ""
6221
6222 # type: verbatim
6223 #: ../src/guestfs-actions.pod:1014
6224 #, no-wrap
6225 msgid ""
6226 " char *\n"
6227 " guestfs_command (guestfs_h *g,\n"
6228 "                  char *const *arguments);\n"
6229 "\n"
6230 msgstr ""
6231
6232 # type: textblock
6233 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6234 msgid ""
6235 "This call runs a command from the guest filesystem.  The filesystem must be "
6236 "mounted, and must contain a compatible operating system (ie. something "
6237 "Linux, with the same or compatible processor architecture)."
6238 msgstr ""
6239
6240 # type: textblock
6241 #: ../src/guestfs-actions.pod:1023
6242 msgid ""
6243 "The single parameter is an argv-style list of arguments.  The first element "
6244 "is the name of the program to run.  Subsequent elements are parameters.  The "
6245 "list must be non-empty (ie. must contain a program name).  Note that the "
6246 "command runs directly, and is I<not> invoked via the shell (see "
6247 "C<guestfs_sh>)."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6252 msgid "The return value is anything printed to I<stdout> by the command."
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6257 msgid ""
6258 "If the command returns a non-zero exit status, then this function returns an "
6259 "error message.  The error message string is the content of I<stderr> from "
6260 "the command."
6261 msgstr ""
6262
6263 # type: textblock
6264 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6265 msgid ""
6266 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6267 "bin>.  If you require a program from another location, you should provide "
6268 "the full path in the first parameter."
6269 msgstr ""
6270
6271 # type: textblock
6272 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6273 msgid ""
6274 "Shared libraries and data files required by the program must be available on "
6275 "filesystems which are mounted in the correct places.  It is the caller's "
6276 "responsibility to ensure all filesystems that are needed are mounted at the "
6277 "right locations."
6278 msgstr ""
6279
6280 # type: textblock
6281 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074
6282 #: ../src/guestfs-actions.pod:1537
6283 msgid "(Added in 0.9.1)"
6284 msgstr ""
6285
6286 # type: =head2
6287 #: ../src/guestfs-actions.pod:1056
6288 msgid "guestfs_command_lines"
6289 msgstr ""
6290
6291 # type: verbatim
6292 #: ../src/guestfs-actions.pod:1058
6293 #, no-wrap
6294 msgid ""
6295 " char **\n"
6296 " guestfs_command_lines (guestfs_h *g,\n"
6297 "                        char *const *arguments);\n"
6298 "\n"
6299 msgstr ""
6300
6301 # type: textblock
6302 #: ../src/guestfs-actions.pod:1062
6303 msgid ""
6304 "This is the same as C<guestfs_command>, but splits the result into a list of "
6305 "lines."
6306 msgstr ""
6307
6308 # type: textblock
6309 #: ../src/guestfs-actions.pod:1065
6310 msgid "See also: C<guestfs_sh_lines>"
6311 msgstr ""
6312
6313 # type: =head2
6314 #: ../src/guestfs-actions.pod:1076
6315 msgid "guestfs_config"
6316 msgstr ""
6317
6318 # type: verbatim
6319 #: ../src/guestfs-actions.pod:1078
6320 #, no-wrap
6321 msgid ""
6322 " int\n"
6323 " guestfs_config (guestfs_h *g,\n"
6324 "                 const char *qemuparam,\n"
6325 "                 const char *qemuvalue);\n"
6326 "\n"
6327 msgstr ""
6328
6329 # type: textblock
6330 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6331 msgid ""
6332 "This can be used to add arbitrary qemu command line parameters of the form "
6333 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6334 "setting some parameters which would interfere with parameters that we use."
6335 msgstr ""
6336
6337 # type: textblock
6338 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6339 msgid "The first character of C<param> string must be a C<-> (dash)."
6340 msgstr ""
6341
6342 # type: textblock
6343 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6344 msgid "C<value> can be NULL."
6345 msgstr ""
6346
6347 # type: =head2
6348 #: ../src/guestfs-actions.pod:1096
6349 msgid "guestfs_copy_size"
6350 msgstr ""
6351
6352 # type: verbatim
6353 #: ../src/guestfs-actions.pod:1098
6354 #, no-wrap
6355 msgid ""
6356 " int\n"
6357 " guestfs_copy_size (guestfs_h *g,\n"
6358 "                    const char *src,\n"
6359 "                    const char *dest,\n"
6360 "                    int64_t size);\n"
6361 "\n"
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6366 msgid ""
6367 "This command copies exactly C<size> bytes from one source device or file "
6368 "C<src> to another destination device or file C<dest>."
6369 msgstr ""
6370
6371 # type: textblock
6372 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6373 msgid ""
6374 "Note this will fail if the source is too short or if the destination is not "
6375 "large enough."
6376 msgstr ""
6377
6378 # type: textblock
6379 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235
6380 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686
6381 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6390
6382 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6903
6383 #: ../src/guestfs-actions.pod:6922
6384 msgid ""
6385 "This long-running command can generate progress notification messages so "
6386 "that the caller can display a progress bar or indicator.  To receive these "
6387 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6388 "guestfs_set_progress_callback>."
6389 msgstr ""
6390
6391 # type: textblock
6392 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3863
6393 #: ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:6631
6394 #: ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6737
6395 msgid "(Added in 1.0.87)"
6396 msgstr ""
6397
6398 # type: =head2
6399 #: ../src/guestfs-actions.pod:1119
6400 msgid "guestfs_cp"
6401 msgstr ""
6402
6403 # type: verbatim
6404 #: ../src/guestfs-actions.pod:1121
6405 #, no-wrap
6406 msgid ""
6407 " int\n"
6408 " guestfs_cp (guestfs_h *g,\n"
6409 "             const char *src,\n"
6410 "             const char *dest);\n"
6411 "\n"
6412 msgstr ""
6413
6414 # type: textblock
6415 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6416 msgid ""
6417 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6418 "destination filename or destination directory."
6419 msgstr ""
6420
6421 # type: textblock
6422 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145
6423 #: ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291
6424 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4466
6425 #: ../src/guestfs-actions.pod:4843
6426 msgid "(Added in 1.0.18)"
6427 msgstr ""
6428
6429 # type: =head2
6430 #: ../src/guestfs-actions.pod:1133
6431 msgid "guestfs_cp_a"
6432 msgstr ""
6433
6434 # type: verbatim
6435 #: ../src/guestfs-actions.pod:1135
6436 #, no-wrap
6437 msgid ""
6438 " int\n"
6439 " guestfs_cp_a (guestfs_h *g,\n"
6440 "               const char *src,\n"
6441 "               const char *dest);\n"
6442 "\n"
6443 msgstr ""
6444
6445 # type: textblock
6446 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6447 msgid ""
6448 "This copies a file or directory from C<src> to C<dest> recursively using the "
6449 "C<cp -a> command."
6450 msgstr ""
6451
6452 # type: =head2
6453 #: ../src/guestfs-actions.pod:1147
6454 msgid "guestfs_dd"
6455 msgstr ""
6456
6457 # type: verbatim
6458 #: ../src/guestfs-actions.pod:1149
6459 #, no-wrap
6460 msgid ""
6461 " int\n"
6462 " guestfs_dd (guestfs_h *g,\n"
6463 "             const char *src,\n"
6464 "             const char *dest);\n"
6465 "\n"
6466 msgstr ""
6467
6468 # type: textblock
6469 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6470 msgid ""
6471 "This command copies from one source device or file C<src> to another "
6472 "destination device or file C<dest>.  Normally you would use this to copy to "
6473 "or from a device or partition, for example to duplicate a filesystem."
6474 msgstr ""
6475
6476 # type: textblock
6477 #: ../src/guestfs-actions.pod:1159
6478 msgid ""
6479 "If the destination is a device, it must be as large or larger than the "
6480 "source file or device, otherwise the copy will fail.  This command cannot do "
6481 "partial copies (see C<guestfs_copy_size>)."
6482 msgstr ""
6483
6484 # type: =head2
6485 #: ../src/guestfs-actions.pod:1167
6486 msgid "guestfs_df"
6487 msgstr ""
6488
6489 # type: verbatim
6490 #: ../src/guestfs-actions.pod:1169
6491 #, no-wrap
6492 msgid ""
6493 " char *\n"
6494 " guestfs_df (guestfs_h *g);\n"
6495 "\n"
6496 msgstr ""
6497
6498 # type: textblock
6499 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6500 msgid "This command runs the C<df> command to report disk space used."
6501 msgstr ""
6502
6503 # type: textblock
6504 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6505 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6506 msgid ""
6507 "This command is mostly useful for interactive sessions.  It is I<not> "
6508 "intended that you try to parse the output string.  Use C<statvfs> from "
6509 "programs."
6510 msgstr ""
6511
6512 # type: textblock
6513 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198
6514 #: ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2235
6515 #: ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2327
6516 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4366
6517 #: ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6152
6518 #: ../src/guestfs-actions.pod:6770 ../src/guestfs-actions.pod:6783
6519 #: ../src/guestfs-actions.pod:6796
6520 msgid "(Added in 1.0.54)"
6521 msgstr ""
6522
6523 # type: =head2
6524 #: ../src/guestfs-actions.pod:1183
6525 msgid "guestfs_df_h"
6526 msgstr ""
6527
6528 # type: verbatim
6529 #: ../src/guestfs-actions.pod:1185
6530 #, no-wrap
6531 msgid ""
6532 " char *\n"
6533 " guestfs_df_h (guestfs_h *g);\n"
6534 "\n"
6535 msgstr ""
6536
6537 # type: textblock
6538 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6539 msgid ""
6540 "This command runs the C<df -h> command to report disk space used in human-"
6541 "readable format."
6542 msgstr ""
6543
6544 # type: =head2
6545 #: ../src/guestfs-actions.pod:1200
6546 msgid "guestfs_dmesg"
6547 msgstr ""
6548
6549 # type: verbatim
6550 #: ../src/guestfs-actions.pod:1202
6551 #, no-wrap
6552 msgid ""
6553 " char *\n"
6554 " guestfs_dmesg (guestfs_h *g);\n"
6555 "\n"
6556 msgstr ""
6557
6558 # type: textblock
6559 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6560 msgid ""
6561 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6562 "This is sometimes useful for extended debugging of problems."
6563 msgstr ""
6564
6565 # type: textblock
6566 #: ../src/guestfs-actions.pod:1209
6567 msgid ""
6568 "Another way to get the same information is to enable verbose messages with "
6569 "C<guestfs_set_verbose> or by setting the environment variable "
6570 "C<LIBGUESTFS_DEBUG=1> before running the program."
6571 msgstr ""
6572
6573 # type: =head2
6574 #: ../src/guestfs-actions.pod:1219
6575 msgid "guestfs_download"
6576 msgstr ""
6577
6578 # type: verbatim
6579 #: ../src/guestfs-actions.pod:1221
6580 #, no-wrap
6581 msgid ""
6582 " int\n"
6583 " guestfs_download (guestfs_h *g,\n"
6584 "                   const char *remotefilename,\n"
6585 "                   const char *filename);\n"
6586 "\n"
6587 msgstr ""
6588
6589 # type: textblock
6590 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251
6591 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6592 msgid ""
6593 "Download file C<remotefilename> and save it as C<filename> on the local "
6594 "machine."
6595 msgstr ""
6596
6597 # type: textblock
6598 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6384
6599 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6600 msgid "C<filename> can also be a named pipe."
6601 msgstr ""
6602
6603 # type: textblock
6604 #: ../src/guestfs-actions.pod:1231
6605 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6606 msgstr ""
6607
6608 # type: =head2
6609 #: ../src/guestfs-actions.pod:1242
6610 msgid "guestfs_download_offset"
6611 msgstr ""
6612
6613 # type: verbatim
6614 #: ../src/guestfs-actions.pod:1244
6615 #, no-wrap
6616 msgid ""
6617 " int\n"
6618 " guestfs_download_offset (guestfs_h *g,\n"
6619 "                          const char *remotefilename,\n"
6620 "                          const char *filename,\n"
6621 "                          int64_t offset,\n"
6622 "                          int64_t size);\n"
6623 "\n"
6624 msgstr ""
6625
6626 # type: textblock
6627 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6628 msgid ""
6629 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6630 "region must be within the file or device)."
6631 msgstr ""
6632
6633 # type: textblock
6634 #: ../src/guestfs-actions.pod:1257
6635 msgid ""
6636 "Note that there is no limit on the amount of data that can be downloaded "
6637 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6638 "full amount unless an error occurs."
6639 msgstr ""
6640
6641 # type: textblock
6642 #: ../src/guestfs-actions.pod:1262
6643 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6644 msgstr ""
6645
6646 # type: textblock
6647 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6429
6648 msgid "(Added in 1.5.17)"
6649 msgstr ""
6650
6651 # type: =head2
6652 #: ../src/guestfs-actions.pod:1273
6653 msgid "guestfs_drop_caches"
6654 msgstr ""
6655
6656 # type: verbatim
6657 #: ../src/guestfs-actions.pod:1275
6658 #, no-wrap
6659 msgid ""
6660 " int\n"
6661 " guestfs_drop_caches (guestfs_h *g,\n"
6662 "                      int whattodrop);\n"
6663 "\n"
6664 msgstr ""
6665
6666 # type: textblock
6667 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6668 msgid ""
6669 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6670 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6671 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6672 msgstr ""
6673
6674 # type: textblock
6675 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6676 msgid "Setting C<whattodrop> to 3 should drop everything."
6677 msgstr ""
6678
6679 # type: textblock
6680 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6681 msgid ""
6682 "This automatically calls L<sync(2)> before the operation, so that the "
6683 "maximum guest memory is freed."
6684 msgstr ""
6685
6686 # type: =head2
6687 #: ../src/guestfs-actions.pod:1293
6688 msgid "guestfs_du"
6689 msgstr ""
6690
6691 # type: verbatim
6692 #: ../src/guestfs-actions.pod:1295
6693 #, no-wrap
6694 msgid ""
6695 " int64_t\n"
6696 " guestfs_du (guestfs_h *g,\n"
6697 "             const char *path);\n"
6698 "\n"
6699 msgstr ""
6700
6701 # type: textblock
6702 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6703 msgid ""
6704 "This command runs the C<du -s> command to estimate file space usage for "
6705 "C<path>."
6706 msgstr ""
6707
6708 # type: textblock
6709 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6710 msgid ""
6711 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6712 "estimate includes the contents of the directory and all subdirectories "
6713 "(recursively)."
6714 msgstr ""
6715
6716 # type: textblock
6717 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6718 msgid ""
6719 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6720 msgstr ""
6721
6722 # type: =head2
6723 #: ../src/guestfs-actions.pod:1313
6724 msgid "guestfs_e2fsck_f"
6725 msgstr ""
6726
6727 # type: verbatim
6728 #: ../src/guestfs-actions.pod:1315
6729 #, no-wrap
6730 msgid ""
6731 " int\n"
6732 " guestfs_e2fsck_f (guestfs_h *g,\n"
6733 "                   const char *device);\n"
6734 "\n"
6735 msgstr ""
6736
6737 # type: textblock
6738 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6739 msgid ""
6740 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6741 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6742 "clean (C<-f>)."
6743 msgstr ""
6744
6745 # type: textblock
6746 #: ../src/guestfs-actions.pod:1323
6747 msgid ""
6748 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6749 "Normally you should use C<guestfs_fsck>."
6750 msgstr ""
6751
6752 # type: textblock
6753 #: ../src/guestfs-actions.pod:1328
6754 msgid "(Added in 1.0.29)"
6755 msgstr ""
6756
6757 # type: =head2
6758 #: ../src/guestfs-actions.pod:1330
6759 msgid "guestfs_echo_daemon"
6760 msgstr ""
6761
6762 # type: verbatim
6763 #: ../src/guestfs-actions.pod:1332
6764 #, no-wrap
6765 msgid ""
6766 " char *\n"
6767 " guestfs_echo_daemon (guestfs_h *g,\n"
6768 "                      char *const *words);\n"
6769 "\n"
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6774 msgid ""
6775 "This command concatenates the list of C<words> passed with single spaces "
6776 "between them and returns the resulting string."
6777 msgstr ""
6778
6779 # type: textblock
6780 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6781 msgid "You can use this command to test the connection through to the daemon."
6782 msgstr ""
6783
6784 # type: textblock
6785 #: ../src/guestfs-actions.pod:1341
6786 msgid "See also C<guestfs_ping_daemon>."
6787 msgstr ""
6788
6789 # type: textblock
6790 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073
6791 #: ../src/guestfs-actions.pod:5632
6792 msgid "(Added in 1.0.69)"
6793 msgstr ""
6794
6795 # type: =head2
6796 #: ../src/guestfs-actions.pod:1348
6797 msgid "guestfs_egrep"
6798 msgstr ""
6799
6800 # type: verbatim
6801 #: ../src/guestfs-actions.pod:1350
6802 #, no-wrap
6803 msgid ""
6804 " char **\n"
6805 " guestfs_egrep (guestfs_h *g,\n"
6806 "                const char *regex,\n"
6807 "                const char *path);\n"
6808 "\n"
6809 msgstr ""
6810
6811 # type: textblock
6812 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6813 msgid ""
6814 "This calls the external C<egrep> program and returns the matching lines."
6815 msgstr ""
6816
6817 # type: textblock
6818 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384
6819 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487
6820 #: ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2173
6821 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2348
6822 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:2376
6823 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2444
6824 #: ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3356
6825 #: ../src/guestfs-actions.pod:3370 ../src/guestfs-actions.pod:3383
6826 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:4301
6827 #: ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5226
6828 #: ../src/guestfs-actions.pod:5996 ../src/guestfs-actions.pod:6008
6829 #: ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6034
6830 #: ../src/guestfs-actions.pod:6056 ../src/guestfs-actions.pod:6069
6831 #: ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6095
6832 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6885
6833 #: ../src/guestfs-actions.pod:6970 ../src/guestfs-actions.pod:6989
6834 #: ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7054
6835 msgid "(Added in 1.0.66)"
6836 msgstr ""
6837
6838 # type: =head2
6839 #: ../src/guestfs-actions.pod:1367
6840 msgid "guestfs_egrepi"
6841 msgstr ""
6842
6843 # type: verbatim
6844 #: ../src/guestfs-actions.pod:1369
6845 #, no-wrap
6846 msgid ""
6847 " char **\n"
6848 " guestfs_egrepi (guestfs_h *g,\n"
6849 "                 const char *regex,\n"
6850 "                 const char *path);\n"
6851 "\n"
6852 msgstr ""
6853
6854 # type: textblock
6855 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6856 msgid ""
6857 "This calls the external C<egrep -i> program and returns the matching lines."
6858 msgstr ""
6859
6860 # type: =head2
6861 #: ../src/guestfs-actions.pod:1386
6862 msgid "guestfs_equal"
6863 msgstr ""
6864
6865 # type: verbatim
6866 #: ../src/guestfs-actions.pod:1388
6867 #, no-wrap
6868 msgid ""
6869 " int\n"
6870 " guestfs_equal (guestfs_h *g,\n"
6871 "                const char *file1,\n"
6872 "                const char *file2);\n"
6873 "\n"
6874 msgstr ""
6875
6876 # type: textblock
6877 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6878 msgid ""
6879 "This compares the two files C<file1> and C<file2> and returns true if their "
6880 "content is exactly equal, or false otherwise."
6881 msgstr ""
6882
6883 # type: textblock
6884 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6885 msgid "The external L<cmp(1)> program is used for the comparison."
6886 msgstr ""
6887
6888 # type: =head2
6889 #: ../src/guestfs-actions.pod:1402
6890 msgid "guestfs_exists"
6891 msgstr ""
6892
6893 # type: verbatim
6894 #: ../src/guestfs-actions.pod:1404
6895 #, no-wrap
6896 msgid ""
6897 " int\n"
6898 " guestfs_exists (guestfs_h *g,\n"
6899 "                 const char *path);\n"
6900 "\n"
6901 msgstr ""
6902
6903 # type: textblock
6904 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6905 msgid ""
6906 "This returns C<true> if and only if there is a file, directory (or anything) "
6907 "with the given C<path> name."
6908 msgstr ""
6909
6910 # type: textblock
6911 #: ../src/guestfs-actions.pod:1411
6912 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6913 msgstr ""
6914
6915 # type: =head2
6916 #: ../src/guestfs-actions.pod:1417
6917 msgid "guestfs_fallocate"
6918 msgstr ""
6919
6920 # type: verbatim
6921 #: ../src/guestfs-actions.pod:1419
6922 #, no-wrap
6923 msgid ""
6924 " int\n"
6925 " guestfs_fallocate (guestfs_h *g,\n"
6926 "                    const char *path,\n"
6927 "                    int len);\n"
6928 "\n"
6929 msgstr ""
6930
6931 # type: textblock
6932 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450
6933 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6934 msgid ""
6935 "This command preallocates a file (containing zero bytes) named C<path> of "
6936 "size C<len> bytes.  If the file exists already, it is overwritten."
6937 msgstr ""
6938
6939 # type: textblock
6940 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6941 msgid ""
6942 "Do not confuse this with the guestfish-specific C<alloc> command which "
6943 "allocates a file in the host and attaches it as a device."
6944 msgstr ""
6945
6946 # type: textblock
6947 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6948 msgid ""
6949 "This function is deprecated.  In new code, use the C<fallocate64> call "
6950 "instead."
6951 msgstr ""
6952
6953 # type: =head2
6954 #: ../src/guestfs-actions.pod:1443
6955 msgid "guestfs_fallocate64"
6956 msgstr ""
6957
6958 # type: verbatim
6959 #: ../src/guestfs-actions.pod:1445
6960 #, no-wrap
6961 msgid ""
6962 " int\n"
6963 " guestfs_fallocate64 (guestfs_h *g,\n"
6964 "                      const char *path,\n"
6965 "                      int64_t len);\n"
6966 "\n"
6967 msgstr ""
6968
6969 # type: textblock
6970 #: ../src/guestfs-actions.pod:1454
6971 msgid ""
6972 "Note that this call allocates disk blocks for the file.  To create a sparse "
6973 "file use C<guestfs_truncate_size> instead."
6974 msgstr ""
6975
6976 # type: textblock
6977 #: ../src/guestfs-actions.pod:1457
6978 msgid ""
6979 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6980 "oversight it only allowed 30 bit lengths to be specified, effectively "
6981 "limiting the maximum size of files created through that call to 1GB."
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6986 msgid ""
6987 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6988 "commands which create a file in the host and attach it as a device."
6989 msgstr ""
6990
6991 # type: textblock
6992 #: ../src/guestfs-actions.pod:1468
6993 msgid "(Added in 1.3.17)"
6994 msgstr ""
6995
6996 # type: =head2
6997 #: ../src/guestfs-actions.pod:1470
6998 msgid "guestfs_fgrep"
6999 msgstr ""
7000
7001 # type: verbatim
7002 #: ../src/guestfs-actions.pod:1472
7003 #, no-wrap
7004 msgid ""
7005 " char **\n"
7006 " guestfs_fgrep (guestfs_h *g,\n"
7007 "                const char *pattern,\n"
7008 "                const char *path);\n"
7009 "\n"
7010 msgstr ""
7011
7012 # type: textblock
7013 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
7014 msgid ""
7015 "This calls the external C<fgrep> program and returns the matching lines."
7016 msgstr ""
7017
7018 # type: =head2
7019 #: ../src/guestfs-actions.pod:1489
7020 msgid "guestfs_fgrepi"
7021 msgstr ""
7022
7023 # type: verbatim
7024 #: ../src/guestfs-actions.pod:1491
7025 #, no-wrap
7026 msgid ""
7027 " char **\n"
7028 " guestfs_fgrepi (guestfs_h *g,\n"
7029 "                 const char *pattern,\n"
7030 "                 const char *path);\n"
7031 "\n"
7032 msgstr ""
7033
7034 # type: textblock
7035 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
7036 msgid ""
7037 "This calls the external C<fgrep -i> program and returns the matching lines."
7038 msgstr ""
7039
7040 # type: =head2
7041 #: ../src/guestfs-actions.pod:1508
7042 msgid "guestfs_file"
7043 msgstr ""
7044
7045 # type: verbatim
7046 #: ../src/guestfs-actions.pod:1510
7047 #, no-wrap
7048 msgid ""
7049 " char *\n"
7050 " guestfs_file (guestfs_h *g,\n"
7051 "               const char *path);\n"
7052 "\n"
7053 msgstr ""
7054
7055 # type: textblock
7056 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
7057 msgid ""
7058 "This call uses the standard L<file(1)> command to determine the type or "
7059 "contents of the file."
7060 msgstr ""
7061
7062 # type: textblock
7063 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
7064 msgid ""
7065 "This call will also transparently look inside various types of compressed "
7066 "file."
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
7071 msgid ""
7072 "The exact command which runs is C<file -zb path>.  Note in particular that "
7073 "the filename is not prepended to the output (the C<-b> option)."
7074 msgstr ""
7075
7076 # type: textblock
7077 #: ../src/guestfs-actions.pod:1524
7078 msgid ""
7079 "This command can also be used on C</dev/> devices (and partitions, LV "
7080 "names).  You can for example use this to determine if a device contains a "
7081 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7082 msgstr ""
7083
7084 # type: textblock
7085 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
7086 msgid ""
7087 "If the C<path> does not begin with C</dev/> then this command only works for "
7088 "the content of regular files.  For other file types (directory, symbolic "
7089 "link etc) it will just return the string C<directory> etc."
7090 msgstr ""
7091
7092 # type: =head2
7093 #: ../src/guestfs-actions.pod:1539
7094 msgid "guestfs_file_architecture"
7095 msgstr ""
7096
7097 # type: verbatim
7098 #: ../src/guestfs-actions.pod:1541
7099 #, no-wrap
7100 msgid ""
7101 " char *\n"
7102 " guestfs_file_architecture (guestfs_h *g,\n"
7103 "                            const char *filename);\n"
7104 "\n"
7105 msgstr ""
7106
7107 # type: textblock
7108 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
7109 msgid ""
7110 "This detects the architecture of the binary C<filename>, and returns it if "
7111 "known."
7112 msgstr ""
7113
7114 # type: textblock
7115 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
7116 msgid "Currently defined architectures are:"
7117 msgstr ""
7118
7119 # type: =item
7120 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7121 msgid "\"i386\""
7122 msgstr ""
7123
7124 # type: textblock
7125 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
7126 msgid ""
7127 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7128 "irrespective of the precise processor requirements of the binary."
7129 msgstr ""
7130
7131 # type: =item
7132 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7133 msgid "\"x86_64\""
7134 msgstr ""
7135
7136 # type: textblock
7137 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7138 msgid "64 bit x86-64."
7139 msgstr ""
7140
7141 # type: =item
7142 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7143 msgid "\"sparc\""
7144 msgstr ""
7145
7146 # type: textblock
7147 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7148 msgid "32 bit SPARC."
7149 msgstr ""
7150
7151 # type: =item
7152 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7153 msgid "\"sparc64\""
7154 msgstr ""
7155
7156 # type: textblock
7157 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7158 msgid "64 bit SPARC V9 and above."
7159 msgstr ""
7160
7161 # type: =item
7162 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7163 msgid "\"ia64\""
7164 msgstr ""
7165
7166 # type: textblock
7167 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7168 msgid "Intel Itanium."
7169 msgstr ""
7170
7171 # type: =item
7172 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7173 msgid "\"ppc\""
7174 msgstr ""
7175
7176 # type: textblock
7177 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7178 msgid "32 bit Power PC."
7179 msgstr ""
7180
7181 # type: =item
7182 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7183 msgid "\"ppc64\""
7184 msgstr ""
7185
7186 # type: textblock
7187 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
7188 msgid "64 bit Power PC."
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7193 msgid "Libguestfs may return other architecture strings in future."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
7198 msgid "The function works on at least the following types of files:"
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
7203 msgid "many types of Un*x and Linux binary"
7204 msgstr ""
7205
7206 # type: textblock
7207 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
7208 msgid "many types of Un*x and Linux shared library"
7209 msgstr ""
7210
7211 # type: textblock
7212 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
7213 msgid "Windows Win32 and Win64 binaries"
7214 msgstr ""
7215
7216 # type: textblock
7217 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7218 msgid "Windows Win32 and Win64 DLLs"
7219 msgstr ""
7220
7221 # type: textblock
7222 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7223 msgid "Win32 binaries and DLLs return C<i386>."
7224 msgstr ""
7225
7226 # type: textblock
7227 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
7228 msgid "Win64 binaries and DLLs return C<x86_64>."
7229 msgstr ""
7230
7231 # type: textblock
7232 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
7233 msgid "Linux kernel modules"
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
7238 msgid "Linux new-style initrd images"
7239 msgstr ""
7240
7241 # type: textblock
7242 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
7243 msgid "some non-x86 Linux vmlinuz kernels"
7244 msgstr ""
7245
7246 # type: textblock
7247 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
7248 msgid "What it can't do currently:"
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
7253 msgid "static libraries (libfoo.a)"
7254 msgstr ""
7255
7256 # type: textblock
7257 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
7258 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7259 msgstr ""
7260
7261 # type: textblock
7262 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7263 msgid "x86 Linux vmlinuz kernels"
7264 msgstr ""
7265
7266 # type: textblock
7267 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7268 msgid ""
7269 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7270 "compressed code, and are horribly hard to unpack.  If you want to find the "
7271 "architecture of a kernel, use the architecture of the associated initrd or "
7272 "kernel module(s) instead."
7273 msgstr ""
7274
7275 # type: textblock
7276 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812
7277 #: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2480
7278 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2587
7279 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2657
7280 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2774
7281 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:3009
7282 #: ../src/guestfs-actions.pod:3141
7283 msgid "(Added in 1.5.3)"
7284 msgstr ""
7285
7286 # type: =head2
7287 #: ../src/guestfs-actions.pod:1651
7288 msgid "guestfs_filesize"
7289 msgstr ""
7290
7291 # type: verbatim
7292 #: ../src/guestfs-actions.pod:1653
7293 #, no-wrap
7294 msgid ""
7295 " int64_t\n"
7296 " guestfs_filesize (guestfs_h *g,\n"
7297 "                   const char *file);\n"
7298 "\n"
7299 msgstr ""
7300
7301 # type: textblock
7302 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7303 msgid "This command returns the size of C<file> in bytes."
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1659
7308 msgid ""
7309 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7310 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7311 "devices, use C<guestfs_blockdev_getsize64>."
7312 msgstr ""
7313
7314 # type: textblock
7315 #: ../src/guestfs-actions.pod:1665
7316 msgid "(Added in 1.0.82)"
7317 msgstr ""
7318
7319 # type: =head2
7320 #: ../src/guestfs-actions.pod:1667
7321 msgid "guestfs_fill"
7322 msgstr ""
7323
7324 # type: verbatim
7325 #: ../src/guestfs-actions.pod:1669
7326 #, no-wrap
7327 msgid ""
7328 " int\n"
7329 " guestfs_fill (guestfs_h *g,\n"
7330 "               int c,\n"
7331 "               int len,\n"
7332 "               const char *path);\n"
7333 "\n"
7334 msgstr ""
7335
7336 # type: textblock
7337 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7338 msgid ""
7339 "This command creates a new file called C<path>.  The initial content of the "
7340 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7341 "[0..255]>."
7342 msgstr ""
7343
7344 # type: textblock
7345 #: ../src/guestfs-actions.pod:1679
7346 msgid ""
7347 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7348 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7349 "bytes use C<guestfs_fill_pattern>."
7350 msgstr ""
7351
7352 # type: textblock
7353 #: ../src/guestfs-actions.pod:1691
7354 msgid "(Added in 1.0.79)"
7355 msgstr ""
7356
7357 # type: =head2
7358 #: ../src/guestfs-actions.pod:1693
7359 msgid "guestfs_fill_pattern"
7360 msgstr ""
7361
7362 # type: verbatim
7363 #: ../src/guestfs-actions.pod:1695
7364 #, no-wrap
7365 msgid ""
7366 " int\n"
7367 " guestfs_fill_pattern (guestfs_h *g,\n"
7368 "                       const char *pattern,\n"
7369 "                       int len,\n"
7370 "                       const char *path);\n"
7371 "\n"
7372 msgstr ""
7373
7374 # type: textblock
7375 #: ../src/guestfs-actions.pod:1701
7376 msgid ""
7377 "This function is like C<guestfs_fill> except that it creates a new file of "
7378 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7379 "pattern is truncated if necessary to ensure the length of the file is "
7380 "exactly C<len> bytes."
7381 msgstr ""
7382
7383 # type: textblock
7384 #: ../src/guestfs-actions.pod:1713
7385 msgid "(Added in 1.3.12)"
7386 msgstr ""
7387
7388 # type: =head2
7389 #: ../src/guestfs-actions.pod:1715
7390 msgid "guestfs_find"
7391 msgstr ""
7392
7393 # type: verbatim
7394 #: ../src/guestfs-actions.pod:1717
7395 #, no-wrap
7396 msgid ""
7397 " char **\n"
7398 " guestfs_find (guestfs_h *g,\n"
7399 "               const char *directory);\n"
7400 "\n"
7401 msgstr ""
7402
7403 # type: textblock
7404 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7405 msgid ""
7406 "This command lists out all files and directories, recursively, starting at "
7407 "C<directory>.  It is essentially equivalent to running the shell command "
7408 "C<find directory -print> but some post-processing happens on the output, "
7409 "described below."
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7414 msgid ""
7415 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7416 "structure was:"
7417 msgstr ""
7418
7419 # type: verbatim
7420 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7421 #, no-wrap
7422 msgid ""
7423 " /tmp/a\n"
7424 " /tmp/b\n"
7425 " /tmp/c/d\n"
7426 "\n"
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:1733
7431 msgid ""
7432 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7433 msgstr ""
7434
7435 # type: verbatim
7436 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7437 #, no-wrap
7438 msgid ""
7439 " a\n"
7440 " b\n"
7441 " c\n"
7442 " c/d\n"
7443 "\n"
7444 msgstr ""
7445
7446 # type: textblock
7447 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7448 msgid "If C<directory> is not a directory, then this command returns an error."
7449 msgstr ""
7450
7451 # type: textblock
7452 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7453 msgid "The returned list is sorted."
7454 msgstr ""
7455
7456 # type: textblock
7457 #: ../src/guestfs-actions.pod:1746
7458 msgid "See also C<guestfs_find0>."
7459 msgstr ""
7460
7461 # type: textblock
7462 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3800
7463 #: ../src/guestfs-actions.pod:5261
7464 msgid "(Added in 1.0.27)"
7465 msgstr ""
7466
7467 # type: =head2
7468 #: ../src/guestfs-actions.pod:1757
7469 msgid "guestfs_find0"
7470 msgstr ""
7471
7472 # type: verbatim
7473 #: ../src/guestfs-actions.pod:1759
7474 #, no-wrap
7475 msgid ""
7476 " int\n"
7477 " guestfs_find0 (guestfs_h *g,\n"
7478 "                const char *directory,\n"
7479 "                const char *files);\n"
7480 "\n"
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7485 msgid ""
7486 "This command lists out all files and directories, recursively, starting at "
7487 "C<directory>, placing the resulting list in the external file called "
7488 "C<files>."
7489 msgstr ""
7490
7491 # type: textblock
7492 #: ../src/guestfs-actions.pod:1768
7493 msgid ""
7494 "This command works the same way as C<guestfs_find> with the following "
7495 "exceptions:"
7496 msgstr ""
7497
7498 # type: textblock
7499 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7500 msgid "The resulting list is written to an external file."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7505 msgid ""
7506 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7507 "L<find(1)> option I<-print0>."
7508 msgstr ""
7509
7510 # type: textblock
7511 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7512 msgid "This command is not limited in the number of names that it can return."
7513 msgstr ""
7514
7515 # type: textblock
7516 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7517 msgid "The result list is not sorted."
7518 msgstr ""
7519
7520 # type: textblock
7521 #: ../src/guestfs-actions.pod:1795
7522 msgid "(Added in 1.0.74)"
7523 msgstr ""
7524
7525 # type: =head2
7526 #: ../src/guestfs-actions.pod:1797
7527 msgid "guestfs_findfs_label"
7528 msgstr ""
7529
7530 # type: verbatim
7531 #: ../src/guestfs-actions.pod:1799
7532 #, no-wrap
7533 msgid ""
7534 " char *\n"
7535 " guestfs_findfs_label (guestfs_h *g,\n"
7536 "                       const char *label);\n"
7537 "\n"
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7542 msgid ""
7543 "This command searches the filesystems and returns the one which has the "
7544 "given label.  An error is returned if no such filesystem can be found."
7545 msgstr ""
7546
7547 # type: textblock
7548 #: ../src/guestfs-actions.pod:1807
7549 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7550 msgstr ""
7551
7552 # type: =head2
7553 #: ../src/guestfs-actions.pod:1814
7554 msgid "guestfs_findfs_uuid"
7555 msgstr ""
7556
7557 # type: verbatim
7558 #: ../src/guestfs-actions.pod:1816
7559 #, no-wrap
7560 msgid ""
7561 " char *\n"
7562 " guestfs_findfs_uuid (guestfs_h *g,\n"
7563 "                      const char *uuid);\n"
7564 "\n"
7565 msgstr ""
7566
7567 # type: textblock
7568 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7569 msgid ""
7570 "This command searches the filesystems and returns the one which has the "
7571 "given UUID.  An error is returned if no such filesystem can be found."
7572 msgstr ""
7573
7574 # type: textblock
7575 #: ../src/guestfs-actions.pod:1824
7576 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7577 msgstr ""
7578
7579 # type: =head2
7580 #: ../src/guestfs-actions.pod:1831
7581 msgid "guestfs_fsck"
7582 msgstr ""
7583
7584 # type: verbatim
7585 #: ../src/guestfs-actions.pod:1833
7586 #, no-wrap
7587 msgid ""
7588 " int\n"
7589 " guestfs_fsck (guestfs_h *g,\n"
7590 "               const char *fstype,\n"
7591 "               const char *device);\n"
7592 "\n"
7593 msgstr ""
7594
7595 # type: textblock
7596 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7597 msgid ""
7598 "This runs the filesystem checker (fsck) on C<device> which should have "
7599 "filesystem type C<fstype>."
7600 msgstr ""
7601
7602 # type: textblock
7603 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7604 msgid ""
7605 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7606 "codes from C<fsck>."
7607 msgstr ""
7608
7609 # type: textblock
7610 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7611 msgid "Multiple status codes can be summed together."
7612 msgstr ""
7613
7614 # type: textblock
7615 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7616 msgid ""
7617 "A non-zero return code can mean \"success\", for example if errors have been "
7618 "corrected on the filesystem."
7619 msgstr ""
7620
7621 # type: textblock
7622 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7623 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7624 msgstr ""
7625
7626 # type: textblock
7627 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7628 msgid ""
7629 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7630 msgstr ""
7631
7632 # type: textblock
7633 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:6908
7634 msgid "(Added in 1.0.16)"
7635 msgstr ""
7636
7637 # type: =head2
7638 #: ../src/guestfs-actions.pod:1870
7639 msgid "guestfs_get_append"
7640 msgstr ""
7641
7642 # type: verbatim
7643 #: ../src/guestfs-actions.pod:1872
7644 #, no-wrap
7645 msgid ""
7646 " const char *\n"
7647 " guestfs_get_append (guestfs_h *g);\n"
7648 "\n"
7649 msgstr ""
7650
7651 # type: textblock
7652 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7653 msgid ""
7654 "Return the additional kernel options which are added to the guest kernel "
7655 "command line."
7656 msgstr ""
7657
7658 # type: textblock
7659 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7660 msgid "If C<NULL> then no options are added."
7661 msgstr ""
7662
7663 # type: textblock
7664 #: ../src/guestfs-actions.pod:1880
7665 msgid ""
7666 "This function returns a string which may be NULL.  There is no way to return "
7667 "an error from this function.  The string is owned by the guest handle and "
7668 "must I<not> be freed."
7669 msgstr ""
7670
7671 # type: textblock
7672 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:4939
7673 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5770
7674 #: ../src/guestfs-actions.pod:5789 ../src/guestfs-actions.pod:5805
7675 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:6579
7676 #: ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:6951
7677 msgid "(Added in 1.0.26)"
7678 msgstr ""
7679
7680 # type: =head2
7681 #: ../src/guestfs-actions.pod:1886
7682 msgid "guestfs_get_autosync"
7683 msgstr ""
7684
7685 # type: verbatim
7686 #: ../src/guestfs-actions.pod:1888
7687 #, no-wrap
7688 msgid ""
7689 " int\n"
7690 " guestfs_get_autosync (guestfs_h *g);\n"
7691 "\n"
7692 msgstr ""
7693
7694 # type: textblock
7695 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7696 msgid "Get the autosync flag."
7697 msgstr ""
7698
7699 # type: =head2
7700 #: ../src/guestfs-actions.pod:1897
7701 msgid "guestfs_get_direct"
7702 msgstr ""
7703
7704 # type: verbatim
7705 #: ../src/guestfs-actions.pod:1899
7706 #, no-wrap
7707 msgid ""
7708 " int\n"
7709 " guestfs_get_direct (guestfs_h *g);\n"
7710 "\n"
7711 msgstr ""
7712
7713 # type: textblock
7714 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7715 msgid "Return the direct appliance mode flag."
7716 msgstr ""
7717
7718 # type: textblock
7719 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5443
7720 msgid "(Added in 1.0.72)"
7721 msgstr ""
7722
7723 # type: =head2
7724 #: ../src/guestfs-actions.pod:1908
7725 msgid "guestfs_get_e2label"
7726 msgstr ""
7727
7728 # type: verbatim
7729 #: ../src/guestfs-actions.pod:1910
7730 #, no-wrap
7731 msgid ""
7732 " char *\n"
7733 " guestfs_get_e2label (guestfs_h *g,\n"
7734 "                      const char *device);\n"
7735 "\n"
7736 msgstr ""
7737
7738 # type: textblock
7739 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7740 msgid ""
7741 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7742 msgstr ""
7743
7744 # type: textblock
7745 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7746 msgid ""
7747 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7748 msgstr ""
7749
7750 # type: textblock
7751 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948
7752 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5480
7753 msgid "(Added in 1.0.15)"
7754 msgstr ""
7755
7756 # type: =head2
7757 #: ../src/guestfs-actions.pod:1929
7758 msgid "guestfs_get_e2uuid"
7759 msgstr ""
7760
7761 # type: verbatim
7762 #: ../src/guestfs-actions.pod:1931
7763 #, no-wrap
7764 msgid ""
7765 " char *\n"
7766 " guestfs_get_e2uuid (guestfs_h *g,\n"
7767 "                     const char *device);\n"
7768 "\n"
7769 msgstr ""
7770
7771 # type: textblock
7772 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7773 msgid ""
7774 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7775 msgstr ""
7776
7777 # type: textblock
7778 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7779 msgid ""
7780 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7781 msgstr ""
7782
7783 # type: =head2
7784 #: ../src/guestfs-actions.pod:1950
7785 msgid "guestfs_get_memsize"
7786 msgstr ""
7787
7788 # type: verbatim
7789 #: ../src/guestfs-actions.pod:1952
7790 #, no-wrap
7791 msgid ""
7792 " int\n"
7793 " guestfs_get_memsize (guestfs_h *g);\n"
7794 "\n"
7795 msgstr ""
7796
7797 # type: textblock
7798 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7799 msgid ""
7800 "This gets the memory size in megabytes allocated to the qemu subprocess."
7801 msgstr ""
7802
7803 # type: textblock
7804 #: ../src/guestfs-actions.pod:1958
7805 msgid ""
7806 "If C<guestfs_set_memsize> was not called on this handle, and if "
7807 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7808 "value for memsize."
7809 msgstr ""
7810
7811 # type: textblock
7812 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043
7813 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5603
7814 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7815 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7816 msgid ""
7817 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7818 msgstr ""
7819
7820 # type: textblock
7821 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4091
7822 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4225
7823 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4256
7824 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:4286
7825 #: ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5501
7826 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:6345
7827 msgid "(Added in 1.0.55)"
7828 msgstr ""
7829
7830 # type: =head2
7831 #: ../src/guestfs-actions.pod:1969
7832 msgid "guestfs_get_network"
7833 msgstr ""
7834
7835 # type: verbatim
7836 #: ../src/guestfs-actions.pod:1971
7837 #, no-wrap
7838 msgid ""
7839 " int\n"
7840 " guestfs_get_network (guestfs_h *g);\n"
7841 "\n"
7842 msgstr ""
7843
7844 # type: textblock
7845 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7846 msgid "This returns the enable network flag."
7847 msgstr ""
7848
7849 # type: textblock
7850 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5520
7851 msgid "(Added in 1.5.4)"
7852 msgstr ""
7853
7854 # type: =head2
7855 #: ../src/guestfs-actions.pod:1980
7856 msgid "guestfs_get_path"
7857 msgstr ""
7858
7859 # type: verbatim
7860 #: ../src/guestfs-actions.pod:1982
7861 #, no-wrap
7862 msgid ""
7863 " const char *\n"
7864 " guestfs_get_path (guestfs_h *g);\n"
7865 "\n"
7866 msgstr ""
7867
7868 # type: textblock
7869 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7870 msgid "Return the current search path."
7871 msgstr ""
7872
7873 # type: textblock
7874 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7875 msgid ""
7876 "This is always non-NULL.  If it wasn't set already, then this will return "
7877 "the default path."
7878 msgstr ""
7879
7880 # type: textblock
7881 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7882 msgid ""
7883 "This function returns a string, or NULL on error.  The string is owned by "
7884 "the guest handle and must I<not> be freed."
7885 msgstr ""
7886
7887 # type: =head2
7888 #: ../src/guestfs-actions.pod:1995
7889 msgid "guestfs_get_pid"
7890 msgstr ""
7891
7892 # type: verbatim
7893 #: ../src/guestfs-actions.pod:1997
7894 #, no-wrap
7895 msgid ""
7896 " int\n"
7897 " guestfs_get_pid (guestfs_h *g);\n"
7898 "\n"
7899 msgstr ""
7900
7901 # type: textblock
7902 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7903 msgid ""
7904 "Return the process ID of the qemu subprocess.  If there is no qemu "
7905 "subprocess, then this will return an error."
7906 msgstr ""
7907
7908 # type: textblock
7909 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7910 msgid "This is an internal call used for debugging and testing."
7911 msgstr ""
7912
7913 # type: textblock
7914 #: ../src/guestfs-actions.pod:2007
7915 msgid "(Added in 1.0.56)"
7916 msgstr ""
7917
7918 # type: =head2
7919 #: ../src/guestfs-actions.pod:2009
7920 msgid "guestfs_get_qemu"
7921 msgstr ""
7922
7923 # type: verbatim
7924 #: ../src/guestfs-actions.pod:2011
7925 #, no-wrap
7926 msgid ""
7927 " const char *\n"
7928 " guestfs_get_qemu (guestfs_h *g);\n"
7929 "\n"
7930 msgstr ""
7931
7932 # type: textblock
7933 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7934 msgid "Return the current qemu binary."
7935 msgstr ""
7936
7937 # type: textblock
7938 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7939 msgid ""
7940 "This is always non-NULL.  If it wasn't set already, then this will return "
7941 "the default qemu binary name."
7942 msgstr ""
7943
7944 # type: textblock
7945 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5565
7946 msgid "(Added in 1.0.6)"
7947 msgstr ""
7948
7949 # type: =head2
7950 #: ../src/guestfs-actions.pod:2024
7951 msgid "guestfs_get_recovery_proc"
7952 msgstr ""
7953
7954 # type: verbatim
7955 #: ../src/guestfs-actions.pod:2026
7956 #, no-wrap
7957 msgid ""
7958 " int\n"
7959 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7960 "\n"
7961 msgstr ""
7962
7963 # type: textblock
7964 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7965 msgid "Return the recovery process enabled flag."
7966 msgstr ""
7967
7968 # type: textblock
7969 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3231
7970 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3898
7971 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:4869
7972 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5589
7973 #: ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6268
7974 #: ../src/guestfs-actions.pod:6460
7975 msgid "(Added in 1.0.77)"
7976 msgstr ""
7977
7978 # type: =head2
7979 #: ../src/guestfs-actions.pod:2035
7980 msgid "guestfs_get_selinux"
7981 msgstr ""
7982
7983 # type: verbatim
7984 #: ../src/guestfs-actions.pod:2037
7985 #, no-wrap
7986 msgid ""
7987 " int\n"
7988 " guestfs_get_selinux (guestfs_h *g);\n"
7989 "\n"
7990 msgstr ""
7991
7992 # type: textblock
7993 #: ../src/guestfs-actions.pod:2040
7994 msgid ""
7995 "This returns the current setting of the selinux flag which is passed to the "
7996 "appliance at boot time.  See C<guestfs_set_selinux>."
7997 msgstr ""
7998
7999 # type: textblock
8000 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111
8001 #: ../src/guestfs-actions.pod:5608 ../src/guestfs-actions.pod:5662
8002 msgid "(Added in 1.0.67)"
8003 msgstr ""
8004
8005 # type: =head2
8006 #: ../src/guestfs-actions.pod:2050
8007 msgid "guestfs_get_state"
8008 msgstr ""
8009
8010 # type: verbatim
8011 #: ../src/guestfs-actions.pod:2052
8012 #, no-wrap
8013 msgid ""
8014 " int\n"
8015 " guestfs_get_state (guestfs_h *g);\n"
8016 "\n"
8017 msgstr ""
8018
8019 # type: textblock
8020 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
8021 msgid ""
8022 "This returns the current state as an opaque integer.  This is only useful "
8023 "for printing debug and internal error messages."
8024 msgstr ""
8025
8026 # type: textblock
8027 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3034
8028 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3124
8029 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:1398
8030 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8031 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8032 msgid "For more information on states, see L<guestfs(3)>."
8033 msgstr ""
8034
8035 # type: =head2
8036 #: ../src/guestfs-actions.pod:2064
8037 msgid "guestfs_get_trace"
8038 msgstr ""
8039
8040 # type: verbatim
8041 #: ../src/guestfs-actions.pod:2066
8042 #, no-wrap
8043 msgid ""
8044 " int\n"
8045 " guestfs_get_trace (guestfs_h *g);\n"
8046 "\n"
8047 msgstr ""
8048
8049 # type: textblock
8050 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
8051 msgid "Return the command trace flag."
8052 msgstr ""
8053
8054 # type: =head2
8055 #: ../src/guestfs-actions.pod:2075
8056 msgid "guestfs_get_umask"
8057 msgstr ""
8058
8059 # type: verbatim
8060 #: ../src/guestfs-actions.pod:2077
8061 #, no-wrap
8062 msgid ""
8063 " int\n"
8064 " guestfs_get_umask (guestfs_h *g);\n"
8065 "\n"
8066 msgstr ""
8067
8068 # type: textblock
8069 #: ../src/guestfs-actions.pod:2080
8070 msgid ""
8071 "Return the current umask.  By default the umask is C<022> unless it has been "
8072 "set by calling C<guestfs_umask>."
8073 msgstr ""
8074
8075 # type: =head2
8076 #: ../src/guestfs-actions.pod:2087
8077 msgid "guestfs_get_verbose"
8078 msgstr ""
8079
8080 # type: verbatim
8081 #: ../src/guestfs-actions.pod:2089
8082 #, no-wrap
8083 msgid ""
8084 " int\n"
8085 " guestfs_get_verbose (guestfs_h *g);\n"
8086 "\n"
8087 msgstr ""
8088
8089 # type: textblock
8090 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
8091 msgid "This returns the verbose messages flag."
8092 msgstr ""
8093
8094 # type: =head2
8095 #: ../src/guestfs-actions.pod:2098
8096 msgid "guestfs_getcon"
8097 msgstr ""
8098
8099 # type: verbatim
8100 #: ../src/guestfs-actions.pod:2100
8101 #, no-wrap
8102 msgid ""
8103 " char *\n"
8104 " guestfs_getcon (guestfs_h *g);\n"
8105 "\n"
8106 msgstr ""
8107
8108 # type: textblock
8109 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
8110 msgid "This gets the SELinux security context of the daemon."
8111 msgstr ""
8112
8113 # type: textblock
8114 #: ../src/guestfs-actions.pod:2105
8115 msgid ""
8116 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8117 msgstr ""
8118
8119 # type: =head2
8120 #: ../src/guestfs-actions.pod:2113
8121 msgid "guestfs_getxattrs"
8122 msgstr ""
8123
8124 # type: verbatim
8125 #: ../src/guestfs-actions.pod:2115
8126 #, no-wrap
8127 msgid ""
8128 " struct guestfs_xattr_list *\n"
8129 " guestfs_getxattrs (guestfs_h *g,\n"
8130 "                    const char *path);\n"
8131 "\n"
8132 msgstr ""
8133
8134 # type: textblock
8135 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1432
8136 msgid ""
8137 "This call lists the extended attributes of the file or directory C<path>."
8138 msgstr ""
8139
8140 # type: textblock
8141 #: ../src/guestfs-actions.pod:2122 ../fish/guestfish-actions.pod:1435
8142 msgid ""
8143 "At the system call level, this is a combination of the L<listxattr(2)> and "
8144 "L<getxattr(2)> calls."
8145 msgstr ""
8146
8147 # type: textblock
8148 #: ../src/guestfs-actions.pod:2125
8149 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3243
8154 #: ../src/guestfs-actions.pod:3894
8155 msgid ""
8156 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8157 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:3247
8162 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3448
8163 #: ../src/guestfs-actions.pod:5242 ../src/guestfs-actions.pod:5681
8164 #: ../src/guestfs-actions.pod:7016
8165 msgid "(Added in 1.0.59)"
8166 msgstr ""
8167
8168 # type: =head2
8169 #: ../src/guestfs-actions.pod:2133
8170 msgid "guestfs_glob_expand"
8171 msgstr ""
8172
8173 # type: verbatim
8174 #: ../src/guestfs-actions.pod:2135
8175 #, no-wrap
8176 msgid ""
8177 " char **\n"
8178 " guestfs_glob_expand (guestfs_h *g,\n"
8179 "                      const char *pattern);\n"
8180 "\n"
8181 msgstr ""
8182
8183 # type: textblock
8184 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1444
8185 msgid ""
8186 "This command searches for all the pathnames matching C<pattern> according to "
8187 "the wildcard expansion rules used by the shell."
8188 msgstr ""
8189
8190 # type: textblock
8191 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1448
8192 msgid ""
8193 "If no paths match, then this returns an empty list (note: not an error)."
8194 msgstr ""
8195
8196 # type: textblock
8197 #: ../src/guestfs-actions.pod:2146 ../fish/guestfish-actions.pod:1451
8198 msgid ""
8199 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8200 "GLOB_BRACE>.  See that manual page for more details."
8201 msgstr ""
8202
8203 # type: textblock
8204 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:5846
8205 #: ../src/guestfs-actions.pod:5863
8206 msgid "(Added in 1.0.50)"
8207 msgstr ""
8208
8209 # type: =head2
8210 #: ../src/guestfs-actions.pod:2156
8211 msgid "guestfs_grep"
8212 msgstr ""
8213
8214 # type: verbatim
8215 #: ../src/guestfs-actions.pod:2158
8216 #, no-wrap
8217 msgid ""
8218 " char **\n"
8219 " guestfs_grep (guestfs_h *g,\n"
8220 "               const char *regex,\n"
8221 "               const char *path);\n"
8222 "\n"
8223 msgstr ""
8224
8225 # type: textblock
8226 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1459
8227 msgid "This calls the external C<grep> program and returns the matching lines."
8228 msgstr ""
8229
8230 # type: =head2
8231 #: ../src/guestfs-actions.pod:2175
8232 msgid "guestfs_grepi"
8233 msgstr ""
8234
8235 # type: verbatim
8236 #: ../src/guestfs-actions.pod:2177
8237 #, no-wrap
8238 msgid ""
8239 " char **\n"
8240 " guestfs_grepi (guestfs_h *g,\n"
8241 "                const char *regex,\n"
8242 "                const char *path);\n"
8243 "\n"
8244 msgstr ""
8245
8246 # type: textblock
8247 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1469
8248 msgid ""
8249 "This calls the external C<grep -i> program and returns the matching lines."
8250 msgstr ""
8251
8252 # type: =head2
8253 #: ../src/guestfs-actions.pod:2194
8254 msgid "guestfs_grub_install"
8255 msgstr ""
8256
8257 # type: verbatim
8258 #: ../src/guestfs-actions.pod:2196
8259 #, no-wrap
8260 msgid ""
8261 " int\n"
8262 " guestfs_grub_install (guestfs_h *g,\n"
8263 "                       const char *root,\n"
8264 "                       const char *device);\n"
8265 "\n"
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1479
8270 msgid ""
8271 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8272 "the root directory being C<root>."
8273 msgstr ""
8274
8275 # type: textblock
8276 #: ../src/guestfs-actions.pod:2204 ../fish/guestfish-actions.pod:1482
8277 msgid ""
8278 "Note: If grub-install reports the error \"No suitable drive was found in the "
8279 "generated device map.\" it may be that you need to create a C</boot/grub/"
8280 "device.map> file first that contains the mapping between grub device names "
8281 "and Linux device names.  It is usually sufficient to create a file "
8282 "containing:"
8283 msgstr ""
8284
8285 # type: verbatim
8286 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1489
8287 #, no-wrap
8288 msgid ""
8289 " (hd0) /dev/vda\n"
8290 "\n"
8291 msgstr ""
8292
8293 # type: textblock
8294 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1491
8295 msgid "replacing C</dev/vda> with the name of the installation device."
8296 msgstr ""
8297
8298 # type: textblock
8299 #: ../src/guestfs-actions.pod:2217
8300 msgid "(Added in 1.0.17)"
8301 msgstr ""
8302
8303 # type: =head2
8304 #: ../src/guestfs-actions.pod:2219
8305 msgid "guestfs_head"
8306 msgstr ""
8307
8308 # type: verbatim
8309 #: ../src/guestfs-actions.pod:2221
8310 #, no-wrap
8311 msgid ""
8312 " char **\n"
8313 " guestfs_head (guestfs_h *g,\n"
8314 "               const char *path);\n"
8315 "\n"
8316 msgstr ""
8317
8318 # type: textblock
8319 #: ../src/guestfs-actions.pod:2225 ../fish/guestfish-actions.pod:1497
8320 msgid ""
8321 "This command returns up to the first 10 lines of a file as a list of strings."
8322 msgstr ""
8323
8324 # type: =head2
8325 #: ../src/guestfs-actions.pod:2237
8326 msgid "guestfs_head_n"
8327 msgstr ""
8328
8329 # type: verbatim
8330 #: ../src/guestfs-actions.pod:2239
8331 #, no-wrap
8332 msgid ""
8333 " char **\n"
8334 " guestfs_head_n (guestfs_h *g,\n"
8335 "                 int nrlines,\n"
8336 "                 const char *path);\n"
8337 "\n"
8338 msgstr ""
8339
8340 # type: textblock
8341 #: ../src/guestfs-actions.pod:2244 ../fish/guestfish-actions.pod:1507
8342 msgid ""
8343 "If the parameter C<nrlines> is a positive number, this returns the first "
8344 "C<nrlines> lines of the file C<path>."
8345 msgstr ""
8346
8347 # type: textblock
8348 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
8349 msgid ""
8350 "If the parameter C<nrlines> is a negative number, this returns lines from "
8351 "the file C<path>, excluding the last C<nrlines> lines."
8352 msgstr ""
8353
8354 # type: textblock
8355 #: ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:6143
8356 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8357 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8358 msgstr ""
8359
8360 # type: =head2
8361 #: ../src/guestfs-actions.pod:2261
8362 msgid "guestfs_hexdump"
8363 msgstr ""
8364
8365 # type: verbatim
8366 #: ../src/guestfs-actions.pod:2263
8367 #, no-wrap
8368 msgid ""
8369 " char *\n"
8370 " guestfs_hexdump (guestfs_h *g,\n"
8371 "                  const char *path);\n"
8372 "\n"
8373 msgstr ""
8374
8375 # type: textblock
8376 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
8377 msgid ""
8378 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8379 "readable, canonical hex dump of the file."
8380 msgstr ""
8381
8382 # type: textblock
8383 #: ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:5927
8384 #: ../src/guestfs-actions.pod:5982
8385 msgid "(Added in 1.0.22)"
8386 msgstr ""
8387
8388 # type: =head2
8389 #: ../src/guestfs-actions.pod:2278
8390 msgid "guestfs_initrd_cat"
8391 msgstr ""
8392
8393 # type: verbatim
8394 #: ../src/guestfs-actions.pod:2280
8395 #, no-wrap
8396 msgid ""
8397 " char *\n"
8398 " guestfs_initrd_cat (guestfs_h *g,\n"
8399 "                     const char *initrdpath,\n"
8400 "                     const char *filename,\n"
8401 "                     size_t *size_r);\n"
8402 "\n"
8403 msgstr ""
8404
8405 # type: textblock
8406 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1532
8407 msgid ""
8408 "This command unpacks the file C<filename> from the initrd file called "
8409 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8410 "character."
8411 msgstr ""
8412
8413 # type: textblock
8414 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1536
8415 msgid ""
8416 "For example, in guestfish you could use the following command to examine the "
8417 "boot script (usually called C</init>)  contained in a Linux initrd or "
8418 "initramfs image:"
8419 msgstr ""
8420
8421 # type: verbatim
8422 #: ../src/guestfs-actions.pod:2294 ../fish/guestfish-actions.pod:1540
8423 #, no-wrap
8424 msgid ""
8425 " initrd-cat /boot/initrd-<version>.img init\n"
8426 "\n"
8427 msgstr ""
8428
8429 # type: textblock
8430 #: ../src/guestfs-actions.pod:2296
8431 msgid "See also C<guestfs_initrd_list>."
8432 msgstr ""
8433
8434 # type: textblock
8435 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:4862
8436 #: ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:5069
8437 msgid ""
8438 "This function returns a buffer, or NULL on error.  The size of the returned "
8439 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8440 "after use>."
8441 msgstr ""
8442
8443 # type: =head2
8444 #: ../src/guestfs-actions.pod:2307
8445 msgid "guestfs_initrd_list"
8446 msgstr ""
8447
8448 # type: verbatim
8449 #: ../src/guestfs-actions.pod:2309
8450 #, no-wrap
8451 msgid ""
8452 " char **\n"
8453 " guestfs_initrd_list (guestfs_h *g,\n"
8454 "                      const char *path);\n"
8455 "\n"
8456 msgstr ""
8457
8458 # type: textblock
8459 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1551
8460 msgid "This command lists out files contained in an initrd."
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1553
8465 msgid ""
8466 "The files are listed without any initial C</> character.  The files are "
8467 "listed in the order they appear (not necessarily alphabetical).  Directory "
8468 "names are listed as separate items."
8469 msgstr ""
8470
8471 # type: textblock
8472 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1557
8473 msgid ""
8474 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8475 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8476 "files)."
8477 msgstr ""
8478
8479 # type: =head2
8480 #: ../src/guestfs-actions.pod:2329
8481 msgid "guestfs_inotify_add_watch"
8482 msgstr ""
8483
8484 # type: verbatim
8485 #: ../src/guestfs-actions.pod:2331
8486 #, no-wrap
8487 msgid ""
8488 " int64_t\n"
8489 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8490 "                            const char *path,\n"
8491 "                            int mask);\n"
8492 "\n"
8493 msgstr ""
8494
8495 # type: textblock
8496 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1565
8497 msgid "Watch C<path> for the events listed in C<mask>."
8498 msgstr ""
8499
8500 # type: textblock
8501 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1567
8502 msgid ""
8503 "Note that if C<path> is a directory then events within that directory are "
8504 "watched, but this does I<not> happen recursively (in subdirectories)."
8505 msgstr ""
8506
8507 # type: textblock
8508 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1571
8509 msgid ""
8510 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8511 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8512 msgstr ""
8513
8514 # type: =head2
8515 #: ../src/guestfs-actions.pod:2350
8516 msgid "guestfs_inotify_close"
8517 msgstr ""
8518
8519 # type: verbatim
8520 #: ../src/guestfs-actions.pod:2352
8521 #, no-wrap
8522 msgid ""
8523 " int\n"
8524 " guestfs_inotify_close (guestfs_h *g);\n"
8525 "\n"
8526 msgstr ""
8527
8528 # type: textblock
8529 #: ../src/guestfs-actions.pod:2355 ../fish/guestfish-actions.pod:1579
8530 msgid ""
8531 "This closes the inotify handle which was previously opened by inotify_init.  "
8532 "It removes all watches, throws away any pending events, and deallocates all "
8533 "resources."
8534 msgstr ""
8535
8536 # type: =head2
8537 #: ../src/guestfs-actions.pod:2363
8538 msgid "guestfs_inotify_files"
8539 msgstr ""
8540
8541 # type: verbatim
8542 #: ../src/guestfs-actions.pod:2365
8543 #, no-wrap
8544 msgid ""
8545 " char **\n"
8546 " guestfs_inotify_files (guestfs_h *g);\n"
8547 "\n"
8548 msgstr ""
8549
8550 # type: textblock
8551 #: ../src/guestfs-actions.pod:2368
8552 msgid ""
8553 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8554 "returns a list of pathnames of objects that were touched.  The returned "
8555 "pathnames are sorted and deduplicated."
8556 msgstr ""
8557
8558 # type: =head2
8559 #: ../src/guestfs-actions.pod:2378
8560 msgid "guestfs_inotify_init"
8561 msgstr ""
8562
8563 # type: verbatim
8564 #: ../src/guestfs-actions.pod:2380
8565 #, no-wrap
8566 msgid ""
8567 " int\n"
8568 " guestfs_inotify_init (guestfs_h *g,\n"
8569 "                       int maxevents);\n"
8570 "\n"
8571 msgstr ""
8572
8573 # type: textblock
8574 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1595
8575 msgid ""
8576 "This command creates a new inotify handle.  The inotify subsystem can be "
8577 "used to notify events which happen to objects in the guest filesystem."
8578 msgstr ""
8579
8580 # type: textblock
8581 #: ../src/guestfs-actions.pod:2388
8582 msgid ""
8583 "C<maxevents> is the maximum number of events which will be queued up between "
8584 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8585 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8586 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8587 "throws away events, but records the fact that it threw them away by setting "
8588 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8589 "C<guestfs_inotify_read>)."
8590 msgstr ""
8591
8592 # type: textblock
8593 #: ../src/guestfs-actions.pod:2398
8594 msgid ""
8595 "Before any events are generated, you have to add some watches to the "
8596 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8597 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8598 msgstr ""
8599
8600 # type: textblock
8601 #: ../src/guestfs-actions.pod:2404
8602 msgid ""
8603 "Queued up events should be read periodically by calling "
8604 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8605 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8606 "often enough then you risk the internal queue overflowing."
8607 msgstr ""
8608
8609 # type: textblock
8610 #: ../src/guestfs-actions.pod:2411
8611 msgid ""
8612 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8613 "This also removes any watches automatically."
8614 msgstr ""
8615
8616 # type: textblock
8617 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1626
8618 msgid ""
8619 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8620 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8621 "that there is one global inotify handle per libguestfs instance."
8622 msgstr ""
8623
8624 # type: =head2
8625 #: ../src/guestfs-actions.pod:2424
8626 msgid "guestfs_inotify_read"
8627 msgstr ""
8628
8629 # type: verbatim
8630 #: ../src/guestfs-actions.pod:2426
8631 #, no-wrap
8632 msgid ""
8633 " struct guestfs_inotify_event_list *\n"
8634 " guestfs_inotify_read (guestfs_h *g);\n"
8635 "\n"
8636 msgstr ""
8637
8638 # type: textblock
8639 #: ../src/guestfs-actions.pod:2429 ../fish/guestfish-actions.pod:1635
8640 msgid ""
8641 "Return the complete queue of events that have happened since the previous "
8642 "read call."
8643 msgstr ""
8644
8645 # type: textblock
8646 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1638
8647 msgid "If no events have happened, this returns an empty list."
8648 msgstr ""
8649
8650 # type: textblock
8651 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1640
8652 msgid ""
8653 "I<Note>: In order to make sure that all events have been read, you must call "
8654 "this function repeatedly until it returns an empty list.  The reason is that "
8655 "the call will read events up to the maximum appliance-to-host message size "
8656 "and leave remaining events in the queue."
8657 msgstr ""
8658
8659 # type: textblock
8660 #: ../src/guestfs-actions.pod:2440
8661 msgid ""
8662 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8663 "there was an error.  I<The caller must call "
8664 "C<guestfs_free_inotify_event_list> after use>."
8665 msgstr ""
8666
8667 # type: =head2
8668 #: ../src/guestfs-actions.pod:2446
8669 msgid "guestfs_inotify_rm_watch"
8670 msgstr ""
8671
8672 # type: verbatim
8673 #: ../src/guestfs-actions.pod:2448
8674 #, no-wrap
8675 msgid ""
8676 " int\n"
8677 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8678 "                           int wd);\n"
8679 "\n"
8680 msgstr ""
8681
8682 # type: textblock
8683 #: ../src/guestfs-actions.pod:2452
8684 msgid ""
8685 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8686 msgstr ""
8687
8688 # type: =head2
8689 #: ../src/guestfs-actions.pod:2459
8690 msgid "guestfs_inspect_get_arch"
8691 msgstr ""
8692
8693 # type: verbatim
8694 #: ../src/guestfs-actions.pod:2461
8695 #, no-wrap
8696 msgid ""
8697 " char *\n"
8698 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8699 "                           const char *root);\n"
8700 "\n"
8701 msgstr ""
8702
8703 # type: textblock
8704 #: ../src/guestfs-actions.pod:2465 ../src/guestfs-actions.pod:2488
8705 #: ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2595
8706 #: ../src/guestfs-actions.pod:2617 ../src/guestfs-actions.pod:2644
8707 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2698
8708 #: ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2758
8709 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2844
8710 #: ../src/guestfs-actions.pod:2867
8711 msgid ""
8712 "This function should only be called with a root device string as returned by "
8713 "C<guestfs_inspect_os>."
8714 msgstr ""
8715
8716 # type: textblock
8717 #: ../src/guestfs-actions.pod:2468
8718 msgid ""
8719 "This returns the architecture of the inspected operating system.  The "
8720 "possible return values are listed under C<guestfs_file_architecture>."
8721 msgstr ""
8722
8723 # type: textblock
8724 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1664
8725 msgid ""
8726 "If the architecture could not be determined, then the string C<unknown> is "
8727 "returned."
8728 msgstr ""
8729
8730 # type: textblock
8731 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
8732 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2632
8733 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2745
8734 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2788
8735 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2854
8736 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3001
8737 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8738 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8739 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8740 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8741 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8742 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8743 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8744 msgstr ""
8745
8746 # type: =head2
8747 #: ../src/guestfs-actions.pod:2482
8748 msgid "guestfs_inspect_get_distro"
8749 msgstr ""
8750
8751 # type: verbatim
8752 #: ../src/guestfs-actions.pod:2484
8753 #, no-wrap
8754 msgid ""
8755 " char *\n"
8756 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8757 "                             const char *root);\n"
8758 "\n"
8759 msgstr ""
8760
8761 # type: textblock
8762 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
8763 msgid ""
8764 "This returns the distro (distribution) of the inspected operating system."
8765 msgstr ""
8766
8767 # type: textblock
8768 #: ../src/guestfs-actions.pod:2494 ../fish/guestfish-actions.pod:1679
8769 msgid "Currently defined distros are:"
8770 msgstr ""
8771
8772 # type: =item
8773 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1683
8774 msgid "\"archlinux\""
8775 msgstr ""
8776
8777 # type: textblock
8778 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1685
8779 msgid "Arch Linux."
8780 msgstr ""
8781
8782 # type: =item
8783 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1687
8784 msgid "\"debian\""
8785 msgstr ""
8786
8787 # type: textblock
8788 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1689
8789 msgid "Debian."
8790 msgstr ""
8791
8792 # type: =item
8793 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1691
8794 msgid "\"fedora\""
8795 msgstr ""
8796
8797 # type: textblock
8798 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1693
8799 msgid "Fedora."
8800 msgstr ""
8801
8802 # type: =item
8803 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1695
8804 msgid "\"gentoo\""
8805 msgstr ""
8806
8807 # type: textblock
8808 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1697
8809 msgid "Gentoo."
8810 msgstr ""
8811
8812 # type: =item
8813 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1699
8814 msgid "\"linuxmint\""
8815 msgstr ""
8816
8817 # type: textblock
8818 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1701
8819 msgid "Linux Mint."
8820 msgstr ""
8821
8822 # type: =item
8823 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1703
8824 msgid "\"mandriva\""
8825 msgstr ""
8826
8827 # type: textblock
8828 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1705
8829 msgid "Mandriva."
8830 msgstr ""
8831
8832 # type: =item
8833 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1707
8834 msgid "\"meego\""
8835 msgstr ""
8836
8837 # type: textblock
8838 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1709
8839 msgid "MeeGo."
8840 msgstr ""
8841
8842 # type: =item
8843 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1711
8844 msgid "\"pardus\""
8845 msgstr ""
8846
8847 # type: textblock
8848 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1713
8849 msgid "Pardus."
8850 msgstr ""
8851
8852 # type: =item
8853 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1715
8854 msgid "\"redhat-based\""
8855 msgstr ""
8856
8857 # type: textblock
8858 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1717
8859 msgid "Some Red Hat-derived distro."
8860 msgstr ""
8861
8862 # type: =item
8863 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1719
8864 msgid "\"rhel\""
8865 msgstr ""
8866
8867 # type: textblock
8868 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1721
8869 msgid "Red Hat Enterprise Linux and some derivatives."
8870 msgstr ""
8871
8872 # type: =item
8873 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1723
8874 msgid "\"ubuntu\""
8875 msgstr ""
8876
8877 # type: textblock
8878 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1725
8879 msgid "Ubuntu."
8880 msgstr ""
8881
8882 # type: =item
8883 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2822
8884 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8885 msgid "\"unknown\""
8886 msgstr ""
8887
8888 # type: textblock
8889 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1729
8890 msgid "The distro could not be determined."
8891 msgstr ""
8892
8893 # type: =item
8894 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2814
8895 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8896 msgid "\"windows\""
8897 msgstr ""
8898
8899 # type: textblock
8900 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1733
8901 msgid ""
8902 "Windows does not have distributions.  This string is returned if the OS type "
8903 "is Windows."
8904 msgstr ""
8905
8906 # type: textblock
8907 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2828
8908 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8909 msgid ""
8910 "Future versions of libguestfs may return other strings here.  The caller "
8911 "should be prepared to handle any string."
8912 msgstr ""
8913
8914 # type: =head2
8915 #: ../src/guestfs-actions.pod:2563
8916 msgid "guestfs_inspect_get_filesystems"
8917 msgstr ""
8918
8919 # type: verbatim
8920 #: ../src/guestfs-actions.pod:2565
8921 #, no-wrap
8922 msgid ""
8923 " char **\n"
8924 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8925 "                                  const char *root);\n"
8926 "\n"
8927 msgstr ""
8928
8929 # type: textblock
8930 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1750
8931 msgid ""
8932 "This returns a list of all the filesystems that we think are associated with "
8933 "this operating system.  This includes the root filesystem, other ordinary "
8934 "filesystems, and non-mounted devices like swap partitions."
8935 msgstr ""
8936
8937 # type: textblock
8938 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1755
8939 msgid ""
8940 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8941 "to be shared between operating systems."
8942 msgstr ""
8943
8944 # type: textblock
8945 #: ../src/guestfs-actions.pod:2580
8946 msgid ""
8947 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8948 "C<guestfs_inspect_get_mountpoints>."
8949 msgstr ""
8950
8951 # type: =head2
8952 #: ../src/guestfs-actions.pod:2589
8953 msgid "guestfs_inspect_get_hostname"
8954 msgstr ""
8955
8956 # type: verbatim
8957 #: ../src/guestfs-actions.pod:2591
8958 #, no-wrap
8959 msgid ""
8960 " char *\n"
8961 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8962 "                               const char *root);\n"
8963 "\n"
8964 msgstr ""
8965
8966 # type: textblock
8967 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
8968 msgid ""
8969 "This function returns the hostname of the operating system as found by "
8970 "inspection of the guest's configuration files."
8971 msgstr ""
8972
8973 # type: textblock
8974 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1771
8975 msgid ""
8976 "If the hostname could not be determined, then the string C<unknown> is "
8977 "returned."
8978 msgstr ""
8979
8980 # type: textblock
8981 #: ../src/guestfs-actions.pod:2609
8982 msgid "(Added in 1.7.9)"
8983 msgstr ""
8984
8985 # type: =head2
8986 #: ../src/guestfs-actions.pod:2611
8987 msgid "guestfs_inspect_get_major_version"
8988 msgstr ""
8989
8990 # type: verbatim
8991 #: ../src/guestfs-actions.pod:2613
8992 #, no-wrap
8993 msgid ""
8994 " int\n"
8995 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8996 "                                    const char *root);\n"
8997 "\n"
8998 msgstr ""
8999
9000 # type: textblock
9001 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1783
9002 msgid ""
9003 "This returns the major version number of the inspected operating system."
9004 msgstr ""
9005
9006 # type: textblock
9007 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
9008 msgid ""
9009 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9010 "popular public names used by the operating system.  Notably the operating "
9011 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9012 "1).  You can find out the real versions corresponding to releases of Windows "
9013 "by consulting Wikipedia or MSDN."
9014 msgstr ""
9015
9016 # type: textblock
9017 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2650
9018 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
9019 msgid "If the version could not be determined, then C<0> is returned."
9020 msgstr ""
9021
9022 # type: =head2
9023 #: ../src/guestfs-actions.pod:2638
9024 msgid "guestfs_inspect_get_minor_version"
9025 msgstr ""
9026
9027 # type: verbatim
9028 #: ../src/guestfs-actions.pod:2640
9029 #, no-wrap
9030 msgid ""
9031 " int\n"
9032 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9033 "                                    const char *root);\n"
9034 "\n"
9035 msgstr ""
9036
9037 # type: textblock
9038 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
9039 msgid ""
9040 "This returns the minor version number of the inspected operating system."
9041 msgstr ""
9042
9043 # type: textblock
9044 #: ../src/guestfs-actions.pod:2652
9045 msgid ""
9046 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9047 "C<guestfs_inspect_get_major_version>."
9048 msgstr ""
9049
9050 # type: =head2
9051 #: ../src/guestfs-actions.pod:2659
9052 msgid "guestfs_inspect_get_mountpoints"
9053 msgstr ""
9054
9055 # type: verbatim
9056 #: ../src/guestfs-actions.pod:2661
9057 #, no-wrap
9058 msgid ""
9059 " char **\n"
9060 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9061 "                                  const char *root);\n"
9062 "\n"
9063 msgstr ""
9064
9065 # type: textblock
9066 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1819
9067 msgid ""
9068 "This returns a hash of where we think the filesystems associated with this "
9069 "operating system should be mounted.  Callers should note that this is at "
9070 "best an educated guess made by reading configuration files such as C</etc/"
9071 "fstab>."
9072 msgstr ""
9073
9074 # type: textblock
9075 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1824
9076 msgid ""
9077 "Each element in the returned hashtable has a key which is the path of the "
9078 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9079 "mounted there (eg. C</dev/sda1>)."
9080 msgstr ""
9081
9082 # type: textblock
9083 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1829
9084 msgid ""
9085 "Non-mounted devices such as swap devices are I<not> returned in this list."
9086 msgstr ""
9087
9088 # type: textblock
9089 #: ../src/guestfs-actions.pod:2681
9090 msgid ""
9091 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9092 "C<guestfs_inspect_get_filesystems>."
9093 msgstr ""
9094
9095 # type: textblock
9096 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:3300
9097 #: ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:6284
9098 msgid ""
9099 "This function returns a NULL-terminated array of strings, or NULL if there "
9100 "was an error.  The array of strings will always have length C<2n+1>, where "
9101 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9102 "caller must free the strings and the array after use>."
9103 msgstr ""
9104
9105 # type: =head2
9106 #: ../src/guestfs-actions.pod:2692
9107 msgid "guestfs_inspect_get_package_format"
9108 msgstr ""
9109
9110 # type: verbatim
9111 #: ../src/guestfs-actions.pod:2694
9112 #, no-wrap
9113 msgid ""
9114 " char *\n"
9115 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9116 "                                     const char *root);\n"
9117 "\n"
9118 msgstr ""
9119
9120 # type: textblock
9121 #: ../src/guestfs-actions.pod:2701
9122 msgid ""
9123 "This function and C<guestfs_inspect_get_package_management> return the "
9124 "package format and package management tool used by the inspected operating "
9125 "system.  For example for Fedora these functions would return C<rpm> (package "
9126 "format) and C<yum> (package management)."
9127 msgstr ""
9128
9129 # type: textblock
9130 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1848
9131 msgid ""
9132 "This returns the string C<unknown> if we could not determine the package "
9133 "format I<or> if the operating system does not have a real packaging system "
9134 "(eg. Windows)."
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
9139 msgid ""
9140 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9141 "Future versions of libguestfs may return other strings."
9142 msgstr ""
9143
9144 # type: textblock
9145 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2750
9146 msgid "(Added in 1.7.5)"
9147 msgstr ""
9148
9149 # type: =head2
9150 #: ../src/guestfs-actions.pod:2721
9151 msgid "guestfs_inspect_get_package_management"
9152 msgstr ""
9153
9154 # type: verbatim
9155 #: ../src/guestfs-actions.pod:2723
9156 #, no-wrap
9157 msgid ""
9158 " char *\n"
9159 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9160 "                                         const char *root);\n"
9161 "\n"
9162 msgstr ""
9163
9164 # type: textblock
9165 #: ../src/guestfs-actions.pod:2730
9166 msgid ""
9167 "C<guestfs_inspect_get_package_format> and this function return the package "
9168 "format and package management tool used by the inspected operating system.  "
9169 "For example for Fedora these functions would return C<rpm> (package format) "
9170 "and C<yum> (package management)."
9171 msgstr ""
9172
9173 # type: textblock
9174 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1870
9175 msgid ""
9176 "This returns the string C<unknown> if we could not determine the package "
9177 "management tool I<or> if the operating system does not have a real packaging "
9178 "system (eg. Windows)."
9179 msgstr ""
9180
9181 # type: textblock
9182 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:1874
9183 msgid ""
9184 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9185 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9186 "libguestfs may return other strings."
9187 msgstr ""
9188
9189 # type: =head2
9190 #: ../src/guestfs-actions.pod:2752
9191 msgid "guestfs_inspect_get_product_name"
9192 msgstr ""
9193
9194 # type: verbatim
9195 #: ../src/guestfs-actions.pod:2754
9196 #, no-wrap
9197 msgid ""
9198 " char *\n"
9199 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9200 "                                   const char *root);\n"
9201 "\n"
9202 msgstr ""
9203
9204 # type: textblock
9205 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1888
9206 msgid ""
9207 "This returns the product name of the inspected operating system.  The "
9208 "product name is generally some freeform string which can be displayed to the "
9209 "user, but should not be parsed by programs."
9210 msgstr ""
9211
9212 # type: textblock
9213 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1893
9214 msgid ""
9215 "If the product name could not be determined, then the string C<unknown> is "
9216 "returned."
9217 msgstr ""
9218
9219 # type: =head2
9220 #: ../src/guestfs-actions.pod:2776
9221 msgid "guestfs_inspect_get_roots"
9222 msgstr ""
9223
9224 # type: verbatim
9225 #: ../src/guestfs-actions.pod:2778
9226 #, no-wrap
9227 msgid ""
9228 " char **\n"
9229 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9230 "\n"
9231 msgstr ""
9232
9233 # type: textblock
9234 #: ../src/guestfs-actions.pod:2781
9235 msgid ""
9236 "This function is a convenient way to get the list of root devices, as "
9237 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9238 "the whole inspection process."
9239 msgstr ""
9240
9241 # type: textblock
9242 #: ../src/guestfs-actions.pod:2785
9243 msgid ""
9244 "This returns an empty list if either no root devices were found or the "
9245 "caller has not called C<guestfs_inspect_os>."
9246 msgstr ""
9247
9248 # type: textblock
9249 #: ../src/guestfs-actions.pod:2794
9250 msgid "(Added in 1.7.3)"
9251 msgstr ""
9252
9253 # type: =head2
9254 #: ../src/guestfs-actions.pod:2796
9255 msgid "guestfs_inspect_get_type"
9256 msgstr ""
9257
9258 # type: verbatim
9259 #: ../src/guestfs-actions.pod:2798
9260 #, no-wrap
9261 msgid ""
9262 " char *\n"
9263 " guestfs_inspect_get_type (guestfs_h *g,\n"
9264 "                           const char *root);\n"
9265 "\n"
9266 msgstr ""
9267
9268 # type: textblock
9269 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
9270 msgid ""
9271 "This returns the type of the inspected operating system.  Currently defined "
9272 "types are:"
9273 msgstr ""
9274
9275 # type: =item
9276 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1923
9277 msgid "\"linux\""
9278 msgstr ""
9279
9280 # type: textblock
9281 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
9282 msgid "Any Linux-based operating system."
9283 msgstr ""
9284
9285 # type: textblock
9286 #: ../src/guestfs-actions.pod:2816 ../fish/guestfish-actions.pod:1929
9287 msgid "Any Microsoft Windows operating system."
9288 msgstr ""
9289
9290 # type: =item
9291 #: ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1931
9292 msgid "\"freebsd\""
9293 msgstr ""
9294
9295 # type: textblock
9296 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1933
9297 msgid "FreeBSD."
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1937
9302 msgid "The operating system type could not be determined."
9303 msgstr ""
9304
9305 # type: =head2
9306 #: ../src/guestfs-actions.pod:2838
9307 msgid "guestfs_inspect_get_windows_systemroot"
9308 msgstr ""
9309
9310 # type: verbatim
9311 #: ../src/guestfs-actions.pod:2840
9312 #, no-wrap
9313 msgid ""
9314 " char *\n"
9315 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9316 "                                         const char *root);\n"
9317 "\n"
9318 msgstr ""
9319
9320 # type: textblock
9321 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:1953
9322 msgid ""
9323 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9324 "is a directory path such as C</WINDOWS>."
9325 msgstr ""
9326
9327 # type: textblock
9328 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1956
9329 msgid ""
9330 "This call assumes that the guest is Windows and that the systemroot could be "
9331 "determined by inspection.  If this is not the case then an error is returned."
9332 msgstr ""
9333
9334 # type: textblock
9335 #: ../src/guestfs-actions.pod:2859
9336 msgid "(Added in 1.5.25)"
9337 msgstr ""
9338
9339 # type: =head2
9340 #: ../src/guestfs-actions.pod:2861
9341 msgid "guestfs_inspect_list_applications"
9342 msgstr ""
9343
9344 # type: verbatim
9345 #: ../src/guestfs-actions.pod:2863
9346 #, no-wrap
9347 msgid ""
9348 " struct guestfs_application_list *\n"
9349 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9350 "                                    const char *root);\n"
9351 "\n"
9352 msgstr ""
9353
9354 # type: textblock
9355 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1969
9356 msgid "Return the list of applications installed in the operating system."
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:2872
9361 msgid ""
9362 "I<Note:> This call works differently from other parts of the inspection "
9363 "API.  You have to call C<guestfs_inspect_os>, then "
9364 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9365 "this.  Listing applications is a significantly more difficult operation "
9366 "which requires access to the full filesystem.  Also note that unlike the "
9367 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9368 "the libguestfs handle, this call actually reads parts of the mounted "
9369 "filesystems during the call."
9370 msgstr ""
9371
9372 # type: textblock
9373 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1981
9374 msgid ""
9375 "This returns an empty list if the inspection code was not able to determine "
9376 "the list of applications."
9377 msgstr ""
9378
9379 # type: textblock
9380 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1984
9381 msgid "The application structure contains the following fields:"
9382 msgstr ""
9383
9384 # type: =item
9385 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1988
9386 msgid "C<app_name>"
9387 msgstr ""
9388
9389 # type: textblock
9390 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1990
9391 msgid ""
9392 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9393 "guests, this is the package name."
9394 msgstr ""
9395
9396 # type: =item
9397 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1993
9398 msgid "C<app_display_name>"
9399 msgstr ""
9400
9401 # type: textblock
9402 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1995
9403 msgid ""
9404 "The display name of the application, sometimes localized to the install "
9405 "language of the guest operating system."
9406 msgstr ""
9407
9408 # type: textblock
9409 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1998
9410 msgid ""
9411 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9412 "to display something can use C<app_name> instead."
9413 msgstr ""
9414
9415 # type: =item
9416 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2001
9417 msgid "C<app_epoch>"
9418 msgstr ""
9419
9420 # type: textblock
9421 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2003
9422 msgid ""
9423 "For package managers which use epochs, this contains the epoch of the "
9424 "package (an integer).  If unavailable, this is returned as C<0>."
9425 msgstr ""
9426
9427 # type: =item
9428 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2006
9429 msgid "C<app_version>"
9430 msgstr ""
9431
9432 # type: textblock
9433 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2008
9434 msgid ""
9435 "The version string of the application or package.  If unavailable this is "
9436 "returned as an empty string C<\"\">."
9437 msgstr ""
9438
9439 # type: =item
9440 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2011
9441 msgid "C<app_release>"
9442 msgstr ""
9443
9444 # type: textblock
9445 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2013
9446 msgid ""
9447 "The release string of the application or package, for package managers that "
9448 "use this.  If unavailable this is returned as an empty string C<\"\">."
9449 msgstr ""
9450
9451 # type: =item
9452 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2017
9453 msgid "C<app_install_path>"
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2019
9458 msgid ""
9459 "The installation path of the application (on operating systems such as "
9460 "Windows which use installation paths).  This path is in the format used by "
9461 "the guest operating system, it is not a libguestfs path."
9462 msgstr ""
9463
9464 # type: textblock
9465 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2024
9466 msgid "If unavailable this is returned as an empty string C<\"\">."
9467 msgstr ""
9468
9469 # type: =item
9470 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2026
9471 msgid "C<app_trans_path>"
9472 msgstr ""
9473
9474 # type: textblock
9475 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2028
9476 msgid ""
9477 "The install path translated into a libguestfs path.  If unavailable this is "
9478 "returned as an empty string C<\"\">."
9479 msgstr ""
9480
9481 # type: =item
9482 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2031
9483 msgid "C<app_publisher>"
9484 msgstr ""
9485
9486 # type: textblock
9487 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2033
9488 msgid ""
9489 "The name of the publisher of the application, for package managers that use "
9490 "this.  If unavailable this is returned as an empty string C<\"\">."
9491 msgstr ""
9492
9493 # type: =item
9494 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2037
9495 msgid "C<app_url>"
9496 msgstr ""
9497
9498 # type: textblock
9499 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2039
9500 msgid ""
9501 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9502 "returned as an empty string C<\"\">."
9503 msgstr ""
9504
9505 # type: =item
9506 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2042
9507 msgid "C<app_source_package>"
9508 msgstr ""
9509
9510 # type: textblock
9511 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2044
9512 msgid ""
9513 "For packaging systems which support this, the name of the source package.  "
9514 "If unavailable this is returned as an empty string C<\"\">."
9515 msgstr ""
9516
9517 # type: =item
9518 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2047
9519 msgid "C<app_summary>"
9520 msgstr ""
9521
9522 # type: textblock
9523 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2049
9524 msgid ""
9525 "A short (usually one line) description of the application or package.  If "
9526 "unavailable this is returned as an empty string C<\"\">."
9527 msgstr ""
9528
9529 # type: =item
9530 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2052
9531 msgid "C<app_description>"
9532 msgstr ""
9533
9534 # type: textblock
9535 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2054
9536 msgid ""
9537 "A longer description of the application or package.  If unavailable this is "
9538 "returned as an empty string C<\"\">."
9539 msgstr ""
9540
9541 # type: textblock
9542 #: ../src/guestfs-actions.pod:2962
9543 msgid ""
9544 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9545 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9546 "after use>."
9547 msgstr ""
9548
9549 # type: textblock
9550 #: ../src/guestfs-actions.pod:2966
9551 msgid "(Added in 1.7.8)"
9552 msgstr ""
9553
9554 # type: =head2
9555 #: ../src/guestfs-actions.pod:2968
9556 msgid "guestfs_inspect_os"
9557 msgstr ""
9558
9559 # type: verbatim
9560 #: ../src/guestfs-actions.pod:2970
9561 #, no-wrap
9562 msgid ""
9563 " char **\n"
9564 " guestfs_inspect_os (guestfs_h *g);\n"
9565 "\n"
9566 msgstr ""
9567
9568 # type: textblock
9569 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2065
9570 msgid ""
9571 "This function uses other libguestfs functions and certain heuristics to "
9572 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9573 "for operating systems."
9574 msgstr ""
9575
9576 # type: textblock
9577 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2069
9578 msgid "The list returned is empty if no operating systems were found."
9579 msgstr ""
9580
9581 # type: textblock
9582 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2071
9583 msgid ""
9584 "If one operating system was found, then this returns a list with a single "
9585 "element, which is the name of the root filesystem of this operating system.  "
9586 "It is also possible for this function to return a list containing more than "
9587 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9588 "element being the root filesystem of one of the operating systems."
9589 msgstr ""
9590
9591 # type: textblock
9592 #: ../src/guestfs-actions.pod:2986
9593 msgid ""
9594 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9595 "functions in order to query further information about each operating system, "
9596 "such as the name and version."
9597 msgstr ""
9598
9599 # type: textblock
9600 #: ../src/guestfs-actions.pod:2991
9601 msgid ""
9602 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9603 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9604 "the contents.  This should be called with no disks currently mounted.  The "
9605 "function may also use Augeas, so any existing Augeas handle will be closed."
9606 msgstr ""
9607
9608 # type: textblock
9609 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2089
9610 msgid ""
9611 "This function cannot decrypt encrypted disks.  The caller must do that first "
9612 "(supplying the necessary keys) if the disk is encrypted."
9613 msgstr ""
9614
9615 # type: textblock
9616 #: ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3258
9617 #: ../src/guestfs-actions.pod:3320
9618 msgid "See also C<guestfs_list_filesystems>."
9619 msgstr ""
9620
9621 # type: =head2
9622 #: ../src/guestfs-actions.pod:3011
9623 msgid "guestfs_is_blockdev"
9624 msgstr ""
9625
9626 # type: verbatim
9627 #: ../src/guestfs-actions.pod:3013
9628 #, no-wrap
9629 msgid ""
9630 " int\n"
9631 " guestfs_is_blockdev (guestfs_h *g,\n"
9632 "                      const char *path);\n"
9633 "\n"
9634 msgstr ""
9635
9636 # type: textblock
9637 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2101
9638 msgid ""
9639 "This returns C<true> if and only if there is a block device with the given "
9640 "C<path> name."
9641 msgstr ""
9642
9643 # type: textblock
9644 #: ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3049
9645 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3094
9646 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3166
9647 #: ../src/guestfs-actions.pod:3181
9648 msgid "See also C<guestfs_stat>."
9649 msgstr ""
9650
9651 # type: textblock
9652 #: ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3053
9653 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3170
9654 #: ../src/guestfs-actions.pod:3185
9655 msgid "(Added in 1.5.10)"
9656 msgstr ""
9657
9658 # type: =head2
9659 #: ../src/guestfs-actions.pod:3026
9660 msgid "guestfs_is_busy"
9661 msgstr ""
9662
9663 # type: verbatim
9664 #: ../src/guestfs-actions.pod:3028
9665 #, no-wrap
9666 msgid ""
9667 " int\n"
9668 " guestfs_is_busy (guestfs_h *g);\n"
9669 "\n"
9670 msgstr ""
9671
9672 # type: textblock
9673 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2110
9674 msgid ""
9675 "This returns true iff this handle is busy processing a command (in the "
9676 "C<BUSY> state)."
9677 msgstr ""
9678
9679 # type: =head2
9680 #: ../src/guestfs-actions.pod:3040
9681 msgid "guestfs_is_chardev"
9682 msgstr ""
9683
9684 # type: verbatim
9685 #: ../src/guestfs-actions.pod:3042
9686 #, no-wrap
9687 msgid ""
9688 " int\n"
9689 " guestfs_is_chardev (guestfs_h *g,\n"
9690 "                     const char *path);\n"
9691 "\n"
9692 msgstr ""
9693
9694 # type: textblock
9695 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2119
9696 msgid ""
9697 "This returns C<true> if and only if there is a character device with the "
9698 "given C<path> name."
9699 msgstr ""
9700
9701 # type: =head2
9702 #: ../src/guestfs-actions.pod:3055
9703 msgid "guestfs_is_config"
9704 msgstr ""
9705
9706 # type: verbatim
9707 #: ../src/guestfs-actions.pod:3057
9708 #, no-wrap
9709 msgid ""
9710 " int\n"
9711 " guestfs_is_config (guestfs_h *g);\n"
9712 "\n"
9713 msgstr ""
9714
9715 # type: textblock
9716 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2128
9717 msgid ""
9718 "This returns true iff this handle is being configured (in the C<CONFIG> "
9719 "state)."
9720 msgstr ""
9721
9722 # type: =head2
9723 #: ../src/guestfs-actions.pod:3069
9724 msgid "guestfs_is_dir"
9725 msgstr ""
9726
9727 # type: verbatim
9728 #: ../src/guestfs-actions.pod:3071
9729 #, no-wrap
9730 msgid ""
9731 " int\n"
9732 " guestfs_is_dir (guestfs_h *g,\n"
9733 "                 const char *path);\n"
9734 "\n"
9735 msgstr ""
9736
9737 # type: textblock
9738 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
9739 msgid ""
9740 "This returns C<true> if and only if there is a directory with the given "
9741 "C<path> name.  Note that it returns false for other objects like files."
9742 msgstr ""
9743
9744 # type: =head2
9745 #: ../src/guestfs-actions.pod:3085
9746 msgid "guestfs_is_fifo"
9747 msgstr ""
9748
9749 # type: verbatim
9750 #: ../src/guestfs-actions.pod:3087
9751 #, no-wrap
9752 msgid ""
9753 " int\n"
9754 " guestfs_is_fifo (guestfs_h *g,\n"
9755 "                  const char *path);\n"
9756 "\n"
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2147
9761 msgid ""
9762 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9763 "given C<path> name."
9764 msgstr ""
9765
9766 # type: =head2
9767 #: ../src/guestfs-actions.pod:3100
9768 msgid "guestfs_is_file"
9769 msgstr ""
9770
9771 # type: verbatim
9772 #: ../src/guestfs-actions.pod:3102
9773 #, no-wrap
9774 msgid ""
9775 " int\n"
9776 " guestfs_is_file (guestfs_h *g,\n"
9777 "                  const char *path);\n"
9778 "\n"
9779 msgstr ""
9780
9781 # type: textblock
9782 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2156
9783 msgid ""
9784 "This returns C<true> if and only if there is a regular file with the given "
9785 "C<path> name.  Note that it returns false for other objects like directories."
9786 msgstr ""
9787
9788 # type: =head2
9789 #: ../src/guestfs-actions.pod:3116
9790 msgid "guestfs_is_launching"
9791 msgstr ""
9792
9793 # type: verbatim
9794 #: ../src/guestfs-actions.pod:3118
9795 #, no-wrap
9796 msgid ""
9797 " int\n"
9798 " guestfs_is_launching (guestfs_h *g);\n"
9799 "\n"
9800 msgstr ""
9801
9802 # type: textblock
9803 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2166
9804 msgid ""
9805 "This returns true iff this handle is launching the subprocess (in the "
9806 "C<LAUNCHING> state)."
9807 msgstr ""
9808
9809 # type: =head2
9810 #: ../src/guestfs-actions.pod:3130
9811 msgid "guestfs_is_lv"
9812 msgstr ""
9813
9814 # type: verbatim
9815 #: ../src/guestfs-actions.pod:3132
9816 #, no-wrap
9817 msgid ""
9818 " int\n"
9819 " guestfs_is_lv (guestfs_h *g,\n"
9820 "                const char *device);\n"
9821 "\n"
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2175
9826 msgid ""
9827 "This command tests whether C<device> is a logical volume, and returns true "
9828 "iff this is the case."
9829 msgstr ""
9830
9831 # type: =head2
9832 #: ../src/guestfs-actions.pod:3143
9833 msgid "guestfs_is_ready"
9834 msgstr ""
9835
9836 # type: verbatim
9837 #: ../src/guestfs-actions.pod:3145
9838 #, no-wrap
9839 msgid ""
9840 " int\n"
9841 " guestfs_is_ready (guestfs_h *g);\n"
9842 "\n"
9843 msgstr ""
9844
9845 # type: textblock
9846 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2182
9847 msgid ""
9848 "This returns true iff this handle is ready to accept commands (in the "
9849 "C<READY> state)."
9850 msgstr ""
9851
9852 # type: =head2
9853 #: ../src/guestfs-actions.pod:3157
9854 msgid "guestfs_is_socket"
9855 msgstr ""
9856
9857 # type: verbatim
9858 #: ../src/guestfs-actions.pod:3159
9859 #, no-wrap
9860 msgid ""
9861 " int\n"
9862 " guestfs_is_socket (guestfs_h *g,\n"
9863 "                    const char *path);\n"
9864 "\n"
9865 msgstr ""
9866
9867 # type: textblock
9868 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2191
9869 msgid ""
9870 "This returns C<true> if and only if there is a Unix domain socket with the "
9871 "given C<path> name."
9872 msgstr ""
9873
9874 # type: =head2
9875 #: ../src/guestfs-actions.pod:3172
9876 msgid "guestfs_is_symlink"
9877 msgstr ""
9878
9879 # type: verbatim
9880 #: ../src/guestfs-actions.pod:3174
9881 #, no-wrap
9882 msgid ""
9883 " int\n"
9884 " guestfs_is_symlink (guestfs_h *g,\n"
9885 "                     const char *path);\n"
9886 "\n"
9887 msgstr ""
9888
9889 # type: textblock
9890 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2200
9891 msgid ""
9892 "This returns C<true> if and only if there is a symbolic link with the given "
9893 "C<path> name."
9894 msgstr ""
9895
9896 # type: =head2
9897 #: ../src/guestfs-actions.pod:3187
9898 msgid "guestfs_kill_subprocess"
9899 msgstr ""
9900
9901 # type: verbatim
9902 #: ../src/guestfs-actions.pod:3189
9903 #, no-wrap
9904 msgid ""
9905 " int\n"
9906 " guestfs_kill_subprocess (guestfs_h *g);\n"
9907 "\n"
9908 msgstr ""
9909
9910 # type: textblock
9911 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2209
9912 msgid "This kills the qemu subprocess.  You should never need to call this."
9913 msgstr ""
9914
9915 # type: =head2
9916 #: ../src/guestfs-actions.pod:3198
9917 msgid "guestfs_launch"
9918 msgstr ""
9919
9920 # type: verbatim
9921 #: ../src/guestfs-actions.pod:3200
9922 #, no-wrap
9923 msgid ""
9924 " int\n"
9925 " guestfs_launch (guestfs_h *g);\n"
9926 "\n"
9927 msgstr ""
9928
9929 # type: textblock
9930 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2217
9931 msgid ""
9932 "Internally libguestfs is implemented by running a virtual machine using "
9933 "L<qemu(1)>."
9934 msgstr ""
9935
9936 # type: textblock
9937 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9938 msgid ""
9939 "You should call this after configuring the handle (eg. adding drives) but "
9940 "before performing any actions."
9941 msgstr ""
9942
9943 # type: =head2
9944 #: ../src/guestfs-actions.pod:3213
9945 msgid "guestfs_lchown"
9946 msgstr ""
9947
9948 # type: verbatim
9949 #: ../src/guestfs-actions.pod:3215
9950 #, no-wrap
9951 msgid ""
9952 " int\n"
9953 " guestfs_lchown (guestfs_h *g,\n"
9954 "                 int owner,\n"
9955 "                 int group,\n"
9956 "                 const char *path);\n"
9957 "\n"
9958 msgstr ""
9959
9960 # type: textblock
9961 #: ../src/guestfs-actions.pod:3221
9962 msgid ""
9963 "Change the file owner to C<owner> and group to C<group>.  This is like "
9964 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9965 "changed, not the target."
9966 msgstr ""
9967
9968 # type: =head2
9969 #: ../src/guestfs-actions.pod:3233
9970 msgid "guestfs_lgetxattrs"
9971 msgstr ""
9972
9973 # type: verbatim
9974 #: ../src/guestfs-actions.pod:3235
9975 #, no-wrap
9976 msgid ""
9977 " struct guestfs_xattr_list *\n"
9978 " guestfs_lgetxattrs (guestfs_h *g,\n"
9979 "                     const char *path);\n"
9980 "\n"
9981 msgstr ""
9982
9983 # type: textblock
9984 #: ../src/guestfs-actions.pod:3239
9985 msgid ""
9986 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9987 "then it returns the extended attributes of the link itself."
9988 msgstr ""
9989
9990 # type: =head2
9991 #: ../src/guestfs-actions.pod:3249
9992 msgid "guestfs_list_devices"
9993 msgstr ""
9994
9995 # type: verbatim
9996 #: ../src/guestfs-actions.pod:3251
9997 #, no-wrap
9998 msgid ""
9999 " char **\n"
10000 " guestfs_list_devices (guestfs_h *g);\n"
10001 "\n"
10002 msgstr ""
10003
10004 # type: textblock
10005 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2247
10006 msgid "List all the block devices."
10007 msgstr ""
10008
10009 # type: textblock
10010 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2249
10011 msgid "The full block device names are returned, eg. C</dev/sda>."
10012 msgstr ""
10013
10014 # type: =head2
10015 #: ../src/guestfs-actions.pod:3266
10016 msgid "guestfs_list_filesystems"
10017 msgstr ""
10018
10019 # type: verbatim
10020 #: ../src/guestfs-actions.pod:3268
10021 #, no-wrap
10022 msgid ""
10023 " char **\n"
10024 " guestfs_list_filesystems (guestfs_h *g);\n"
10025 "\n"
10026 msgstr ""
10027
10028 # type: textblock
10029 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2257
10030 msgid ""
10031 "This inspection command looks for filesystems on partitions, block devices "
10032 "and logical volumes, returning a list of devices containing filesystems and "
10033 "their type."
10034 msgstr ""
10035
10036 # type: textblock
10037 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2261
10038 msgid ""
10039 "The return value is a hash, where the keys are the devices containing "
10040 "filesystems, and the values are the filesystem types.  For example:"
10041 msgstr ""
10042
10043 # type: verbatim
10044 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2265
10045 #, no-wrap
10046 msgid ""
10047 " \"/dev/sda1\" => \"ntfs\"\n"
10048 " \"/dev/sda2\" => \"ext2\"\n"
10049 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10050 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10051 "\n"
10052 msgstr ""
10053
10054 # type: textblock
10055 #: ../src/guestfs-actions.pod:3284 ../fish/guestfish-actions.pod:2270
10056 msgid ""
10057 "The value can have the special value \"unknown\", meaning the content of the "
10058 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10059 msgstr ""
10060
10061 # type: textblock
10062 #: ../src/guestfs-actions.pod:3288
10063 msgid ""
10064 "This command runs other libguestfs commands, which might include "
10065 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10066 "soon after launch and only when nothing is mounted."
10067 msgstr ""
10068
10069 # type: textblock
10070 #: ../src/guestfs-actions.pod:3292
10071 msgid ""
10072 "Not all of the filesystems returned will be mountable.  In particular, swap "
10073 "partitions are returned in the list.  Also this command does not check that "
10074 "each filesystem found is valid and mountable, and some filesystems might be "
10075 "mountable but require special options.  Filesystems may not all belong to a "
10076 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10077 msgstr ""
10078
10079 # type: textblock
10080 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:4829
10081 msgid "(Added in 1.5.15)"
10082 msgstr ""
10083
10084 # type: =head2
10085 #: ../src/guestfs-actions.pod:3308
10086 msgid "guestfs_list_partitions"
10087 msgstr ""
10088
10089 # type: verbatim
10090 #: ../src/guestfs-actions.pod:3310
10091 #, no-wrap
10092 msgid ""
10093 " char **\n"
10094 " guestfs_list_partitions (guestfs_h *g);\n"
10095 "\n"
10096 msgstr ""
10097
10098 # type: textblock
10099 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2290
10100 msgid "List all the partitions detected on all block devices."
10101 msgstr ""
10102
10103 # type: textblock
10104 #: ../src/guestfs-actions.pod:3315 ../fish/guestfish-actions.pod:2292
10105 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10106 msgstr ""
10107
10108 # type: textblock
10109 #: ../src/guestfs-actions.pod:3317
10110 msgid ""
10111 "This does not return logical volumes.  For that you will need to call "
10112 "C<guestfs_lvs>."
10113 msgstr ""
10114
10115 # type: =head2
10116 #: ../src/guestfs-actions.pod:3328
10117 msgid "guestfs_ll"
10118 msgstr ""
10119
10120 # type: verbatim
10121 #: ../src/guestfs-actions.pod:3330
10122 #, no-wrap
10123 msgid ""
10124 " char *\n"
10125 " guestfs_ll (guestfs_h *g,\n"
10126 "             const char *directory);\n"
10127 "\n"
10128 msgstr ""
10129
10130 # type: textblock
10131 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2303
10132 msgid ""
10133 "List the files in C<directory> (relative to the root directory, there is no "
10134 "cwd) in the format of 'ls -la'."
10135 msgstr ""
10136
10137 # type: textblock
10138 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2306
10139 msgid ""
10140 "This command is mostly useful for interactive sessions.  It is I<not> "
10141 "intended that you try to parse the output string."
10142 msgstr ""
10143
10144 # type: =head2
10145 #: ../src/guestfs-actions.pod:3345
10146 msgid "guestfs_ln"
10147 msgstr ""
10148
10149 # type: verbatim
10150 #: ../src/guestfs-actions.pod:3347
10151 #, no-wrap
10152 msgid ""
10153 " int\n"
10154 " guestfs_ln (guestfs_h *g,\n"
10155 "             const char *target,\n"
10156 "             const char *linkname);\n"
10157 "\n"
10158 msgstr ""
10159
10160 # type: textblock
10161 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2313
10162 msgid "This command creates a hard link using the C<ln> command."
10163 msgstr ""
10164
10165 # type: =head2
10166 #: ../src/guestfs-actions.pod:3358
10167 msgid "guestfs_ln_f"
10168 msgstr ""
10169
10170 # type: verbatim
10171 #: ../src/guestfs-actions.pod:3360
10172 #, no-wrap
10173 msgid ""
10174 " int\n"
10175 " guestfs_ln_f (guestfs_h *g,\n"
10176 "               const char *target,\n"
10177 "               const char *linkname);\n"
10178 "\n"
10179 msgstr ""
10180
10181 # type: textblock
10182 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2319
10183 msgid ""
10184 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10185 "option removes the link (C<linkname>) if it exists already."
10186 msgstr ""
10187
10188 # type: =head2
10189 #: ../src/guestfs-actions.pod:3372
10190 msgid "guestfs_ln_s"
10191 msgstr ""
10192
10193 # type: verbatim
10194 #: ../src/guestfs-actions.pod:3374
10195 #, no-wrap
10196 msgid ""
10197 " int\n"
10198 " guestfs_ln_s (guestfs_h *g,\n"
10199 "               const char *target,\n"
10200 "               const char *linkname);\n"
10201 "\n"
10202 msgstr ""
10203
10204 # type: textblock
10205 #: ../src/guestfs-actions.pod:3379 ../fish/guestfish-actions.pod:2326
10206 msgid "This command creates a symbolic link using the C<ln -s> command."
10207 msgstr ""
10208
10209 # type: =head2
10210 #: ../src/guestfs-actions.pod:3385
10211 msgid "guestfs_ln_sf"
10212 msgstr ""
10213
10214 # type: verbatim
10215 #: ../src/guestfs-actions.pod:3387
10216 #, no-wrap
10217 msgid ""
10218 " int\n"
10219 " guestfs_ln_sf (guestfs_h *g,\n"
10220 "                const char *target,\n"
10221 "                const char *linkname);\n"
10222 "\n"
10223 msgstr ""
10224
10225 # type: textblock
10226 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2332
10227 msgid ""
10228 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10229 "option removes the link (C<linkname>) if it exists already."
10230 msgstr ""
10231
10232 # type: =head2
10233 #: ../src/guestfs-actions.pod:3399
10234 msgid "guestfs_lremovexattr"
10235 msgstr ""
10236
10237 # type: verbatim
10238 #: ../src/guestfs-actions.pod:3401
10239 #, no-wrap
10240 msgid ""
10241 " int\n"
10242 " guestfs_lremovexattr (guestfs_h *g,\n"
10243 "                       const char *xattr,\n"
10244 "                       const char *path);\n"
10245 "\n"
10246 msgstr ""
10247
10248 # type: textblock
10249 #: ../src/guestfs-actions.pod:3406
10250 msgid ""
10251 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10252 "link, then it removes an extended attribute of the link itself."
10253 msgstr ""
10254
10255 # type: =head2
10256 #: ../src/guestfs-actions.pod:3414
10257 msgid "guestfs_ls"
10258 msgstr ""
10259
10260 # type: verbatim
10261 #: ../src/guestfs-actions.pod:3416
10262 #, no-wrap
10263 msgid ""
10264 " char **\n"
10265 " guestfs_ls (guestfs_h *g,\n"
10266 "             const char *directory);\n"
10267 "\n"
10268 msgstr ""
10269
10270 # type: textblock
10271 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2347
10272 msgid ""
10273 "List the files in C<directory> (relative to the root directory, there is no "
10274 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10275 msgstr ""
10276
10277 # type: textblock
10278 #: ../src/guestfs-actions.pod:3424
10279 msgid ""
10280 "This command is mostly useful for interactive sessions.  Programs should "
10281 "probably use C<guestfs_readdir> instead."
10282 msgstr ""
10283
10284 # type: =head2
10285 #: ../src/guestfs-actions.pod:3433
10286 msgid "guestfs_lsetxattr"
10287 msgstr ""
10288
10289 # type: verbatim
10290 #: ../src/guestfs-actions.pod:3435
10291 #, no-wrap
10292 msgid ""
10293 " int\n"
10294 " guestfs_lsetxattr (guestfs_h *g,\n"
10295 "                    const char *xattr,\n"
10296 "                    const char *val,\n"
10297 "                    int vallen,\n"
10298 "                    const char *path);\n"
10299 "\n"
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3442
10304 msgid ""
10305 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10306 "then it sets an extended attribute of the link itself."
10307 msgstr ""
10308
10309 # type: =head2
10310 #: ../src/guestfs-actions.pod:3450
10311 msgid "guestfs_lstat"
10312 msgstr ""
10313
10314 # type: verbatim
10315 #: ../src/guestfs-actions.pod:3452
10316 #, no-wrap
10317 msgid ""
10318 " struct guestfs_stat *\n"
10319 " guestfs_lstat (guestfs_h *g,\n"
10320 "                const char *path);\n"
10321 "\n"
10322 msgstr ""
10323
10324 # type: textblock
10325 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5883
10326 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10327 msgid "Returns file information for the given C<path>."
10328 msgstr ""
10329
10330 # type: textblock
10331 #: ../src/guestfs-actions.pod:3458
10332 msgid ""
10333 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10334 "link, then the link is stat-ed, not the file it refers to."
10335 msgstr ""
10336
10337 # type: textblock
10338 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2372
10339 msgid "This is the same as the C<lstat(2)> system call."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3464 ../src/guestfs-actions.pod:5887
10344 msgid ""
10345 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10346 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10347 msgstr ""
10348
10349 # type: textblock
10350 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:5891
10351 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6290
10352 msgid "(Added in 0.9.2)"
10353 msgstr ""
10354
10355 # type: =head2
10356 #: ../src/guestfs-actions.pod:3470
10357 msgid "guestfs_lstatlist"
10358 msgstr ""
10359
10360 # type: verbatim
10361 #: ../src/guestfs-actions.pod:3472
10362 #, no-wrap
10363 msgid ""
10364 " struct guestfs_stat_list *\n"
10365 " guestfs_lstatlist (guestfs_h *g,\n"
10366 "                    const char *path,\n"
10367 "                    char *const *names);\n"
10368 "\n"
10369 msgstr ""
10370
10371 # type: textblock
10372 #: ../src/guestfs-actions.pod:3477
10373 msgid ""
10374 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10375 "files, where all files are in the directory C<path>.  C<names> is the list "
10376 "of files from this directory."
10377 msgstr ""
10378
10379 # type: textblock
10380 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:2382
10381 msgid ""
10382 "On return you get a list of stat structs, with a one-to-one correspondence "
10383 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10384 "then the C<ino> field of that structure is set to C<-1>."
10385 msgstr ""
10386
10387 # type: textblock
10388 #: ../src/guestfs-actions.pod:3486
10389 msgid ""
10390 "This call is intended for programs that want to efficiently list a directory "
10391 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10392 "for a similarly efficient call for getting extended attributes.  Very long "
10393 "directory listings might cause the protocol message size to be exceeded, "
10394 "causing this call to fail.  The caller must split up such requests into "
10395 "smaller groups of names."
10396 msgstr ""
10397
10398 # type: textblock
10399 #: ../src/guestfs-actions.pod:3494
10400 msgid ""
10401 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10402 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10403 msgstr ""
10404
10405 # type: =head2
10406 #: ../src/guestfs-actions.pod:3500
10407 msgid "guestfs_luks_add_key"
10408 msgstr ""
10409
10410 # type: verbatim
10411 #: ../src/guestfs-actions.pod:3502
10412 #, no-wrap
10413 msgid ""
10414 " int\n"
10415 " guestfs_luks_add_key (guestfs_h *g,\n"
10416 "                       const char *device,\n"
10417 "                       const char *key,\n"
10418 "                       const char *newkey,\n"
10419 "                       int keyslot);\n"
10420 "\n"
10421 msgstr ""
10422
10423 # type: textblock
10424 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2399
10425 msgid ""
10426 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10427 "existing key, and is used to access the device.  C<newkey> is the new key to "
10428 "add.  C<keyslot> is the key slot that will be replaced."
10429 msgstr ""
10430
10431 # type: textblock
10432 #: ../src/guestfs-actions.pod:3514
10433 msgid ""
10434 "Note that if C<keyslot> already contains a key, then this command will "
10435 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10436 msgstr ""
10437
10438 # type: textblock
10439 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:3560
10440 #: ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3603
10441 #: ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:3654
10442 msgid ""
10443 "This function takes a key or passphrase parameter which could contain "
10444 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10445 "information."
10446 msgstr ""
10447
10448 # type: textblock
10449 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3564
10450 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3607
10451 msgid "(Added in 1.5.2)"
10452 msgstr ""
10453
10454 # type: =head2
10455 #: ../src/guestfs-actions.pod:3526
10456 msgid "guestfs_luks_close"
10457 msgstr ""
10458
10459 # type: verbatim
10460 #: ../src/guestfs-actions.pod:3528
10461 #, no-wrap
10462 msgid ""
10463 " int\n"
10464 " guestfs_luks_close (guestfs_h *g,\n"
10465 "                     const char *device);\n"
10466 "\n"
10467 msgstr ""
10468
10469 # type: textblock
10470 #: ../src/guestfs-actions.pod:3532
10471 msgid ""
10472 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10473 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10474 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10475 "underlying block device."
10476 msgstr ""
10477
10478 # type: textblock
10479 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3639
10480 #: ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3708
10481 #: ../src/guestfs-actions.pod:3756
10482 msgid "(Added in 1.5.1)"
10483 msgstr ""
10484
10485 # type: =head2
10486 #: ../src/guestfs-actions.pod:3542
10487 msgid "guestfs_luks_format"
10488 msgstr ""
10489
10490 # type: verbatim
10491 #: ../src/guestfs-actions.pod:3544
10492 #, no-wrap
10493 msgid ""
10494 " int\n"
10495 " guestfs_luks_format (guestfs_h *g,\n"
10496 "                      const char *device,\n"
10497 "                      const char *key,\n"
10498 "                      int keyslot);\n"
10499 "\n"
10500 msgstr ""
10501
10502 # type: textblock
10503 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2425
10504 msgid ""
10505 "This command erases existing data on C<device> and formats the device as a "
10506 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10507 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10508 msgstr ""
10509
10510 # type: textblock
10511 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3580
10512 #: ../src/guestfs-actions.pod:3720 ../src/guestfs-actions.pod:4580
10513 #: ../src/guestfs-actions.pod:5343 ../src/guestfs-actions.pod:5718
10514 #: ../src/guestfs-actions.pod:5741 ../src/guestfs-actions.pod:5767
10515 #: ../src/guestfs-actions.pod:6927 ../fish/guestfish-actions.pod:2433
10516 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10517 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10518 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10519 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10520 msgid ""
10521 "B<This command is dangerous.  Without careful use you can easily destroy all "
10522 "your data>."
10523 msgstr ""
10524
10525 # type: =head2
10526 #: ../src/guestfs-actions.pod:3566
10527 msgid "guestfs_luks_format_cipher"
10528 msgstr ""
10529
10530 # type: verbatim
10531 #: ../src/guestfs-actions.pod:3568
10532 #, no-wrap
10533 msgid ""
10534 " int\n"
10535 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10536 "                             const char *device,\n"
10537 "                             const char *key,\n"
10538 "                             int keyslot,\n"
10539 "                             const char *cipher);\n"
10540 "\n"
10541 msgstr ""
10542
10543 # type: textblock
10544 #: ../src/guestfs-actions.pod:3575
10545 msgid ""
10546 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10547 "set the C<cipher> used."
10548 msgstr ""
10549
10550 # type: =head2
10551 #: ../src/guestfs-actions.pod:3589
10552 msgid "guestfs_luks_kill_slot"
10553 msgstr ""
10554
10555 # type: verbatim
10556 #: ../src/guestfs-actions.pod:3591
10557 #, no-wrap
10558 msgid ""
10559 " int\n"
10560 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10561 "                         const char *device,\n"
10562 "                         const char *key,\n"
10563 "                         int keyslot);\n"
10564 "\n"
10565 msgstr ""
10566
10567 # type: textblock
10568 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2453
10569 msgid ""
10570 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10571 "device C<device>.  C<key> must be one of the I<other> keys."
10572 msgstr ""
10573
10574 # type: =head2
10575 #: ../src/guestfs-actions.pod:3609
10576 msgid "guestfs_luks_open"
10577 msgstr ""
10578
10579 # type: verbatim
10580 #: ../src/guestfs-actions.pod:3611
10581 #, no-wrap
10582 msgid ""
10583 " int\n"
10584 " guestfs_luks_open (guestfs_h *g,\n"
10585 "                    const char *device,\n"
10586 "                    const char *key,\n"
10587 "                    const char *mapname);\n"
10588 "\n"
10589 msgstr ""
10590
10591 # type: textblock
10592 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2464
10593 msgid ""
10594 "This command opens a block device which has been encrypted according to the "
10595 "Linux Unified Key Setup (LUKS) standard."
10596 msgstr ""
10597
10598 # type: textblock
10599 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2467
10600 msgid "C<device> is the encrypted block device or partition."
10601 msgstr ""
10602
10603 # type: textblock
10604 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2469
10605 msgid ""
10606 "The caller must supply one of the keys associated with the LUKS block "
10607 "device, in the C<key> parameter."
10608 msgstr ""
10609
10610 # type: textblock
10611 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2472
10612 msgid ""
10613 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10614 "writes to this block device are decrypted from and encrypted to the "
10615 "underlying C<device> respectively."
10616 msgstr ""
10617
10618 # type: textblock
10619 #: ../src/guestfs-actions.pod:3629
10620 msgid ""
10621 "If this block device contains LVM volume groups, then calling "
10622 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10623 "visible."
10624 msgstr ""
10625
10626 # type: =head2
10627 #: ../src/guestfs-actions.pod:3641
10628 msgid "guestfs_luks_open_ro"
10629 msgstr ""
10630
10631 # type: verbatim
10632 #: ../src/guestfs-actions.pod:3643
10633 #, no-wrap
10634 msgid ""
10635 " int\n"
10636 " guestfs_luks_open_ro (guestfs_h *g,\n"
10637 "                       const char *device,\n"
10638 "                       const char *key,\n"
10639 "                       const char *mapname);\n"
10640 "\n"
10641 msgstr ""
10642
10643 # type: textblock
10644 #: ../src/guestfs-actions.pod:3649
10645 msgid ""
10646 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10647 "created."
10648 msgstr ""
10649
10650 # type: =head2
10651 #: ../src/guestfs-actions.pod:3660
10652 msgid "guestfs_lvcreate"
10653 msgstr ""
10654
10655 # type: verbatim
10656 #: ../src/guestfs-actions.pod:3662
10657 #, no-wrap
10658 msgid ""
10659 " int\n"
10660 " guestfs_lvcreate (guestfs_h *g,\n"
10661 "                   const char *logvol,\n"
10662 "                   const char *volgroup,\n"
10663 "                   int mbytes);\n"
10664 "\n"
10665 msgstr ""
10666
10667 # type: textblock
10668 #: ../src/guestfs-actions.pod:3668 ../fish/guestfish-actions.pod:2497
10669 msgid ""
10670 "This creates an LVM logical volume called C<logvol> on the volume group "
10671 "C<volgroup>, with C<size> megabytes."
10672 msgstr ""
10673
10674 # type: =head2
10675 #: ../src/guestfs-actions.pod:3675
10676 msgid "guestfs_lvm_canonical_lv_name"
10677 msgstr ""
10678
10679 # type: verbatim
10680 #: ../src/guestfs-actions.pod:3677
10681 #, no-wrap
10682 msgid ""
10683 " char *\n"
10684 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10685 "                                const char *lvname);\n"
10686 "\n"
10687 msgstr ""
10688
10689 # type: textblock
10690 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2504
10691 msgid ""
10692 "This converts alternative naming schemes for LVs that you might find to the "
10693 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10694 "LV>."
10695 msgstr ""
10696
10697 # type: textblock
10698 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2508
10699 msgid ""
10700 "This command returns an error if the C<lvname> parameter does not refer to a "
10701 "logical volume."
10702 msgstr ""
10703
10704 # type: textblock
10705 #: ../src/guestfs-actions.pod:3688
10706 msgid "See also C<guestfs_is_lv>."
10707 msgstr ""
10708
10709 # type: textblock
10710 #: ../src/guestfs-actions.pod:3693
10711 msgid "(Added in 1.5.24)"
10712 msgstr ""
10713
10714 # type: =head2
10715 #: ../src/guestfs-actions.pod:3695
10716 msgid "guestfs_lvm_clear_filter"
10717 msgstr ""
10718
10719 # type: verbatim
10720 #: ../src/guestfs-actions.pod:3697
10721 #, no-wrap
10722 msgid ""
10723 " int\n"
10724 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10725 "\n"
10726 msgstr ""
10727
10728 # type: textblock
10729 #: ../src/guestfs-actions.pod:3700
10730 msgid ""
10731 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10732 "see every block device."
10733 msgstr ""
10734
10735 # type: textblock
10736 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3745
10737 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10738 msgid ""
10739 "This command also clears the LVM cache and performs a volume group scan."
10740 msgstr ""
10741
10742 # type: =head2
10743 #: ../src/guestfs-actions.pod:3710
10744 msgid "guestfs_lvm_remove_all"
10745 msgstr ""
10746
10747 # type: verbatim
10748 #: ../src/guestfs-actions.pod:3712
10749 #, no-wrap
10750 msgid ""
10751 " int\n"
10752 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10753 "\n"
10754 msgstr ""
10755
10756 # type: textblock
10757 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2527
10758 msgid ""
10759 "This command removes all LVM logical volumes, volume groups and physical "
10760 "volumes."
10761 msgstr ""
10762
10763 # type: =head2
10764 #: ../src/guestfs-actions.pod:3725
10765 msgid "guestfs_lvm_set_filter"
10766 msgstr ""
10767
10768 # type: verbatim
10769 #: ../src/guestfs-actions.pod:3727
10770 #, no-wrap
10771 msgid ""
10772 " int\n"
10773 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10774 "                         char *const *devices);\n"
10775 "\n"
10776 msgstr ""
10777
10778 # type: textblock
10779 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2537
10780 msgid ""
10781 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10782 "block devices in the list C<devices>, and will ignore all other attached "
10783 "block devices."
10784 msgstr ""
10785
10786 # type: textblock
10787 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2541
10788 msgid ""
10789 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10790 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10791 "there are two types of duplication possible: either cloned PVs/VGs which "
10792 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10793 "same name.  In normal operation you cannot create this situation, but you "
10794 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10795 "inside the LVM metadata."
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2554
10800 msgid "You can filter whole block devices or individual partitions."
10801 msgstr ""
10802
10803 # type: textblock
10804 #: ../src/guestfs-actions.pod:3750 ../fish/guestfish-actions.pod:2556
10805 msgid ""
10806 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10807 "filesystem), even if you are not filtering out that VG."
10808 msgstr ""
10809
10810 # type: =head2
10811 #: ../src/guestfs-actions.pod:3758
10812 msgid "guestfs_lvremove"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #: ../src/guestfs-actions.pod:3760
10817 #, no-wrap
10818 msgid ""
10819 " int\n"
10820 " guestfs_lvremove (guestfs_h *g,\n"
10821 "                   const char *device);\n"
10822 "\n"
10823 msgstr ""
10824
10825 # type: textblock
10826 #: ../src/guestfs-actions.pod:3764 ../fish/guestfish-actions.pod:2564
10827 msgid ""
10828 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10829 "LV, such as C</dev/VG/LV>."
10830 msgstr ""
10831
10832 # type: textblock
10833 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2567
10834 msgid ""
10835 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10836 "dev/VG>."
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:4926
10841 #: ../src/guestfs-actions.pod:6666
10842 msgid "(Added in 1.0.13)"
10843 msgstr ""
10844
10845 # type: =head2
10846 #: ../src/guestfs-actions.pod:3774
10847 msgid "guestfs_lvrename"
10848 msgstr ""
10849
10850 # type: verbatim
10851 #: ../src/guestfs-actions.pod:3776
10852 #, no-wrap
10853 msgid ""
10854 " int\n"
10855 " guestfs_lvrename (guestfs_h *g,\n"
10856 "                   const char *logvol,\n"
10857 "                   const char *newlogvol);\n"
10858 "\n"
10859 msgstr ""
10860
10861 # type: textblock
10862 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2574
10863 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10864 msgstr ""
10865
10866 # type: textblock
10867 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:6679
10868 msgid "(Added in 1.0.83)"
10869 msgstr ""
10870
10871 # type: =head2
10872 #: ../src/guestfs-actions.pod:3787
10873 msgid "guestfs_lvresize"
10874 msgstr ""
10875
10876 # type: verbatim
10877 #: ../src/guestfs-actions.pod:3789
10878 #, no-wrap
10879 msgid ""
10880 " int\n"
10881 " guestfs_lvresize (guestfs_h *g,\n"
10882 "                   const char *device,\n"
10883 "                   int mbytes);\n"
10884 "\n"
10885 msgstr ""
10886
10887 # type: textblock
10888 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2580
10889 msgid ""
10890 "This resizes (expands or shrinks) an existing LVM logical volume to "
10891 "C<mbytes>.  When reducing, data in the reduced part is lost."
10892 msgstr ""
10893
10894 # type: =head2
10895 #: ../src/guestfs-actions.pod:3802
10896 msgid "guestfs_lvresize_free"
10897 msgstr ""
10898
10899 # type: verbatim
10900 #: ../src/guestfs-actions.pod:3804
10901 #, no-wrap
10902 msgid ""
10903 " int\n"
10904 " guestfs_lvresize_free (guestfs_h *g,\n"
10905 "                        const char *lv,\n"
10906 "                        int percent);\n"
10907 "\n"
10908 msgstr ""
10909
10910 # type: textblock
10911 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2588
10912 msgid ""
10913 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10914 "remaining free space in the volume group.  Commonly you would call this with "
10915 "pc = 100 which expands the logical volume as much as possible, using all "
10916 "remaining free space in the volume group."
10917 msgstr ""
10918
10919 # type: textblock
10920 #: ../src/guestfs-actions.pod:3817
10921 msgid "(Added in 1.3.3)"
10922 msgstr ""
10923
10924 # type: =head2
10925 #: ../src/guestfs-actions.pod:3819
10926 msgid "guestfs_lvs"
10927 msgstr ""
10928
10929 # type: verbatim
10930 #: ../src/guestfs-actions.pod:3821
10931 #, no-wrap
10932 msgid ""
10933 " char **\n"
10934 " guestfs_lvs (guestfs_h *g);\n"
10935 "\n"
10936 msgstr ""
10937
10938 # type: textblock
10939 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2598
10940 msgid ""
10941 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10942 "(8)> command."
10943 msgstr ""
10944
10945 # type: textblock
10946 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2601
10947 msgid ""
10948 "This returns a list of the logical volume device names (eg. C</dev/"
10949 "VolGroup00/LogVol00>)."
10950 msgstr ""
10951
10952 # type: textblock
10953 #: ../src/guestfs-actions.pod:3830
10954 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10955 msgstr ""
10956
10957 # type: =head2
10958 #: ../src/guestfs-actions.pod:3838
10959 msgid "guestfs_lvs_full"
10960 msgstr ""
10961
10962 # type: verbatim
10963 #: ../src/guestfs-actions.pod:3840
10964 #, no-wrap
10965 msgid ""
10966 " struct guestfs_lvm_lv_list *\n"
10967 " guestfs_lvs_full (guestfs_h *g);\n"
10968 "\n"
10969 msgstr ""
10970
10971 # type: textblock
10972 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2610
10973 msgid ""
10974 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10975 "(8)> command.  The \"full\" version includes all fields."
10976 msgstr ""
10977
10978 # type: textblock
10979 #: ../src/guestfs-actions.pod:3846
10980 msgid ""
10981 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10982 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10983 msgstr ""
10984
10985 # type: =head2
10986 #: ../src/guestfs-actions.pod:3852
10987 msgid "guestfs_lvuuid"
10988 msgstr ""
10989
10990 # type: verbatim
10991 #: ../src/guestfs-actions.pod:3854
10992 #, no-wrap
10993 msgid ""
10994 " char *\n"
10995 " guestfs_lvuuid (guestfs_h *g,\n"
10996 "                 const char *device);\n"
10997 "\n"
10998 msgstr ""
10999
11000 # type: textblock
11001 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2617
11002 msgid "This command returns the UUID of the LVM LV C<device>."
11003 msgstr ""
11004
11005 # type: =head2
11006 #: ../src/guestfs-actions.pod:3865
11007 msgid "guestfs_lxattrlist"
11008 msgstr ""
11009
11010 # type: verbatim
11011 #: ../src/guestfs-actions.pod:3867
11012 #, no-wrap
11013 msgid ""
11014 " struct guestfs_xattr_list *\n"
11015 " guestfs_lxattrlist (guestfs_h *g,\n"
11016 "                     const char *path,\n"
11017 "                     char *const *names);\n"
11018 "\n"
11019 msgstr ""
11020
11021 # type: textblock
11022 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2623
11023 msgid ""
11024 "This call allows you to get the extended attributes of multiple files, where "
11025 "all files are in the directory C<path>.  C<names> is the list of files from "
11026 "this directory."
11027 msgstr ""
11028
11029 # type: textblock
11030 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2627
11031 msgid ""
11032 "On return you get a flat list of xattr structs which must be interpreted "
11033 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11034 "C<attrval> in this struct is zero-length to indicate there was an error "
11035 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11036 "number (the number of following attributes for this file, which could be C<"
11037 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11038 "for the first named file.  This repeats for the second and subsequent files."
11039 msgstr ""
11040
11041 # type: textblock
11042 #: ../src/guestfs-actions.pod:3886
11043 msgid ""
11044 "This call is intended for programs that want to efficiently list a directory "
11045 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11046 "a similarly efficient call for getting standard stats.  Very long directory "
11047 "listings might cause the protocol message size to be exceeded, causing this "
11048 "call to fail.  The caller must split up such requests into smaller groups of "
11049 "names."
11050 msgstr ""
11051
11052 # type: =head2
11053 #: ../src/guestfs-actions.pod:3900
11054 msgid "guestfs_mkdir"
11055 msgstr ""
11056
11057 # type: verbatim
11058 #: ../src/guestfs-actions.pod:3902
11059 #, no-wrap
11060 msgid ""
11061 " int\n"
11062 " guestfs_mkdir (guestfs_h *g,\n"
11063 "                const char *path);\n"
11064 "\n"
11065 msgstr ""
11066
11067 # type: textblock
11068 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2649
11069 msgid "Create a directory named C<path>."
11070 msgstr ""
11071
11072 # type: =head2
11073 #: ../src/guestfs-actions.pod:3912
11074 msgid "guestfs_mkdir_mode"
11075 msgstr ""
11076
11077 # type: verbatim
11078 #: ../src/guestfs-actions.pod:3914
11079 #, no-wrap
11080 msgid ""
11081 " int\n"
11082 " guestfs_mkdir_mode (guestfs_h *g,\n"
11083 "                     const char *path,\n"
11084 "                     int mode);\n"
11085 "\n"
11086 msgstr ""
11087
11088 # type: textblock
11089 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2655
11090 msgid ""
11091 "This command creates a directory, setting the initial permissions of the "
11092 "directory to C<mode>."
11093 msgstr ""
11094
11095 # type: textblock
11096 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2658
11097 msgid ""
11098 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11099 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11100 "other ways."
11101 msgstr ""
11102
11103 # type: textblock
11104 #: ../src/guestfs-actions.pod:3926
11105 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11106 msgstr ""
11107
11108 # type: =head2
11109 #: ../src/guestfs-actions.pod:3932
11110 msgid "guestfs_mkdir_p"
11111 msgstr ""
11112
11113 # type: verbatim
11114 #: ../src/guestfs-actions.pod:3934
11115 #, no-wrap
11116 msgid ""
11117 " int\n"
11118 " guestfs_mkdir_p (guestfs_h *g,\n"
11119 "                  const char *path);\n"
11120 "\n"
11121 msgstr ""
11122
11123 # type: textblock
11124 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2668
11125 msgid ""
11126 "Create a directory named C<path>, creating any parent directories as "
11127 "necessary.  This is like the C<mkdir -p> shell command."
11128 msgstr ""
11129
11130 # type: =head2
11131 #: ../src/guestfs-actions.pod:3945
11132 msgid "guestfs_mkdtemp"
11133 msgstr ""
11134
11135 # type: verbatim
11136 #: ../src/guestfs-actions.pod:3947
11137 #, no-wrap
11138 msgid ""
11139 " char *\n"
11140 " guestfs_mkdtemp (guestfs_h *g,\n"
11141 "                  const char *template);\n"
11142 "\n"
11143 msgstr ""
11144
11145 # type: textblock
11146 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2675
11147 msgid ""
11148 "This command creates a temporary directory.  The C<template> parameter "
11149 "should be a full pathname for the temporary directory name with the final "
11150 "six characters being \"XXXXXX\"."
11151 msgstr ""
11152
11153 # type: textblock
11154 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2680
11155 msgid ""
11156 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11157 "being suitable for Windows filesystems."
11158 msgstr ""
11159
11160 # type: textblock
11161 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2683
11162 msgid "The name of the temporary directory that was created is returned."
11163 msgstr ""
11164
11165 # type: textblock
11166 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2686
11167 msgid "The temporary directory is created with mode 0700 and is owned by root."
11168 msgstr ""
11169
11170 # type: textblock
11171 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2689
11172 msgid ""
11173 "The caller is responsible for deleting the temporary directory and its "
11174 "contents after use."
11175 msgstr ""
11176
11177 # type: textblock
11178 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2692
11179 msgid "See also: L<mkdtemp(3)>"
11180 msgstr ""
11181
11182 # type: =head2
11183 #: ../src/guestfs-actions.pod:3975
11184 msgid "guestfs_mke2fs_J"
11185 msgstr ""
11186
11187 # type: verbatim
11188 #: ../src/guestfs-actions.pod:3977
11189 #, no-wrap
11190 msgid ""
11191 " int\n"
11192 " guestfs_mke2fs_J (guestfs_h *g,\n"
11193 "                   const char *fstype,\n"
11194 "                   int blocksize,\n"
11195 "                   const char *device,\n"
11196 "                   const char *journal);\n"
11197 "\n"
11198 msgstr ""
11199
11200 # type: textblock
11201 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2698
11202 msgid ""
11203 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11204 "C<journal>.  It is equivalent to the command:"
11205 msgstr ""
11206
11207 # type: verbatim
11208 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2702
11209 #, no-wrap
11210 msgid ""
11211 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11212 "\n"
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:3990
11217 msgid "See also C<guestfs_mke2journal>."
11218 msgstr ""
11219
11220 # type: textblock
11221 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4012
11222 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4046
11223 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4074
11224 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:4316
11225 msgid "(Added in 1.0.68)"
11226 msgstr ""
11227
11228 # type: =head2
11229 #: ../src/guestfs-actions.pod:3996
11230 msgid "guestfs_mke2fs_JL"
11231 msgstr ""
11232
11233 # type: verbatim
11234 #: ../src/guestfs-actions.pod:3998
11235 #, no-wrap
11236 msgid ""
11237 " int\n"
11238 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11239 "                    const char *fstype,\n"
11240 "                    int blocksize,\n"
11241 "                    const char *device,\n"
11242 "                    const char *label);\n"
11243 "\n"
11244 msgstr ""
11245
11246 # type: textblock
11247 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2710
11248 msgid ""
11249 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11250 "the journal labeled C<label>."
11251 msgstr ""
11252
11253 # type: textblock
11254 #: ../src/guestfs-actions.pod:4008
11255 msgid "See also C<guestfs_mke2journal_L>."
11256 msgstr ""
11257
11258 # type: =head2
11259 #: ../src/guestfs-actions.pod:4014
11260 msgid "guestfs_mke2fs_JU"
11261 msgstr ""
11262
11263 # type: verbatim
11264 #: ../src/guestfs-actions.pod:4016
11265 #, no-wrap
11266 msgid ""
11267 " int\n"
11268 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11269 "                    const char *fstype,\n"
11270 "                    int blocksize,\n"
11271 "                    const char *device,\n"
11272 "                    const char *uuid);\n"
11273 "\n"
11274 msgstr ""
11275
11276 # type: textblock
11277 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2719
11278 msgid ""
11279 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11280 "the journal with UUID C<uuid>."
11281 msgstr ""
11282
11283 # type: textblock
11284 #: ../src/guestfs-actions.pod:4026
11285 msgid "See also C<guestfs_mke2journal_U>."
11286 msgstr ""
11287
11288 # type: =head2
11289 #: ../src/guestfs-actions.pod:4032
11290 msgid "guestfs_mke2journal"
11291 msgstr ""
11292
11293 # type: verbatim
11294 #: ../src/guestfs-actions.pod:4034
11295 #, no-wrap
11296 msgid ""
11297 " int\n"
11298 " guestfs_mke2journal (guestfs_h *g,\n"
11299 "                      int blocksize,\n"
11300 "                      const char *device);\n"
11301 "\n"
11302 msgstr ""
11303
11304 # type: textblock
11305 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2728
11306 msgid ""
11307 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11308 "command:"
11309 msgstr ""
11310
11311 # type: verbatim
11312 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2731
11313 #, no-wrap
11314 msgid ""
11315 " mke2fs -O journal_dev -b blocksize device\n"
11316 "\n"
11317 msgstr ""
11318
11319 # type: =head2
11320 #: ../src/guestfs-actions.pod:4048
11321 msgid "guestfs_mke2journal_L"
11322 msgstr ""
11323
11324 # type: verbatim
11325 #: ../src/guestfs-actions.pod:4050
11326 #, no-wrap
11327 msgid ""
11328 " int\n"
11329 " guestfs_mke2journal_L (guestfs_h *g,\n"
11330 "                        int blocksize,\n"
11331 "                        const char *label,\n"
11332 "                        const char *device);\n"
11333 "\n"
11334 msgstr ""
11335
11336 # type: textblock
11337 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2737
11338 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11339 msgstr ""
11340
11341 # type: =head2
11342 #: ../src/guestfs-actions.pod:4062
11343 msgid "guestfs_mke2journal_U"
11344 msgstr ""
11345
11346 # type: verbatim
11347 #: ../src/guestfs-actions.pod:4064
11348 #, no-wrap
11349 msgid ""
11350 " int\n"
11351 " guestfs_mke2journal_U (guestfs_h *g,\n"
11352 "                        int blocksize,\n"
11353 "                        const char *uuid,\n"
11354 "                        const char *device);\n"
11355 "\n"
11356 msgstr ""
11357
11358 # type: textblock
11359 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2743
11360 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11361 msgstr ""
11362
11363 # type: =head2
11364 #: ../src/guestfs-actions.pod:4076
11365 msgid "guestfs_mkfifo"
11366 msgstr ""
11367
11368 # type: verbatim
11369 #: ../src/guestfs-actions.pod:4078
11370 #, no-wrap
11371 msgid ""
11372 " int\n"
11373 " guestfs_mkfifo (guestfs_h *g,\n"
11374 "                 int mode,\n"
11375 "                 const char *path);\n"
11376 "\n"
11377 msgstr ""
11378
11379 # type: textblock
11380 #: ../src/guestfs-actions.pod:4083
11381 msgid ""
11382 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11383 "is just a convenient wrapper around C<guestfs_mknod>."
11384 msgstr ""
11385
11386 # type: =head2
11387 #: ../src/guestfs-actions.pod:4093
11388 msgid "guestfs_mkfs"
11389 msgstr ""
11390
11391 # type: verbatim
11392 #: ../src/guestfs-actions.pod:4095
11393 #, no-wrap
11394 msgid ""
11395 " int\n"
11396 " guestfs_mkfs (guestfs_h *g,\n"
11397 "               const char *fstype,\n"
11398 "               const char *device);\n"
11399 "\n"
11400 msgstr ""
11401
11402 # type: textblock
11403 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2759
11404 msgid ""
11405 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11406 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11407 msgstr ""
11408
11409 # type: =head2
11410 #: ../src/guestfs-actions.pod:4108
11411 msgid "guestfs_mkfs_b"
11412 msgstr ""
11413
11414 # type: verbatim
11415 #: ../src/guestfs-actions.pod:4110
11416 #, no-wrap
11417 msgid ""
11418 " int\n"
11419 " guestfs_mkfs_b (guestfs_h *g,\n"
11420 "                 const char *fstype,\n"
11421 "                 int blocksize,\n"
11422 "                 const char *device);\n"
11423 "\n"
11424 msgstr ""
11425
11426 # type: textblock
11427 #: ../src/guestfs-actions.pod:4116
11428 msgid ""
11429 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11430 "block size of the resulting filesystem.  Supported block sizes depend on the "
11431 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11432 msgstr ""
11433
11434 # type: textblock
11435 #: ../src/guestfs-actions.pod:4121 ../fish/guestfish-actions.pod:2772
11436 msgid ""
11437 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11438 "cluster size."
11439 msgstr ""
11440
11441 # type: =head2
11442 #: ../src/guestfs-actions.pod:4128
11443 msgid "guestfs_mkmountpoint"
11444 msgstr ""
11445
11446 # type: verbatim
11447 #: ../src/guestfs-actions.pod:4130
11448 #, no-wrap
11449 msgid ""
11450 " int\n"
11451 " guestfs_mkmountpoint (guestfs_h *g,\n"
11452 "                       const char *exemptpath);\n"
11453 "\n"
11454 msgstr ""
11455
11456 # type: textblock
11457 #: ../src/guestfs-actions.pod:4134
11458 msgid ""
11459 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11460 "that can be used to create extra mountpoints before mounting the first "
11461 "filesystem."
11462 msgstr ""
11463
11464 # type: textblock
11465 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:2783
11466 msgid ""
11467 "These calls are I<only> necessary in some very limited circumstances, mainly "
11468 "the case where you want to mount a mix of unrelated and/or read-only "
11469 "filesystems together."
11470 msgstr ""
11471
11472 # type: textblock
11473 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:2787
11474 msgid ""
11475 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11476 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11477 "inside that.  You can unpack this as follows in guestfish:"
11478 msgstr ""
11479
11480 # type: verbatim
11481 #: ../src/guestfs-actions.pod:4147 ../fish/guestfish-actions.pod:2792
11482 #, no-wrap
11483 msgid ""
11484 " add-ro Fedora-11-i686-Live.iso\n"
11485 " run\n"
11486 " mkmountpoint /cd\n"
11487 " mkmountpoint /sqsh\n"
11488 " mkmountpoint /ext3fs\n"
11489 " mount /dev/sda /cd\n"
11490 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11491 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11492 "\n"
11493 msgstr ""
11494
11495 # type: textblock
11496 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2801
11497 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11498 msgstr ""
11499
11500 # type: textblock
11501 #: ../src/guestfs-actions.pod:4158
11502 msgid ""
11503 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11504 "may get unexpected errors if you try to mix these calls.  It is safest to "
11505 "manually unmount filesystems and remove mountpoints after use."
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4162
11510 msgid ""
11511 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11512 "first, so for this to work for manual mountpoints, you must ensure that the "
11513 "innermost mountpoints have the longest pathnames, as in the example code "
11514 "above."
11515 msgstr ""
11516
11517 # type: textblock
11518 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:2812
11519 msgid ""
11520 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11521 msgstr ""
11522
11523 # type: textblock
11524 #: ../src/guestfs-actions.pod:4169
11525 msgid ""
11526 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11527 "means that C<guestfs_umount_all> is called when the handle is closed which "
11528 "can also trigger these issues."
11529 msgstr ""
11530
11531 # type: textblock
11532 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4434
11533 #: ../src/guestfs-actions.pod:5327
11534 msgid "(Added in 1.0.62)"
11535 msgstr ""
11536
11537 # type: =head2
11538 #: ../src/guestfs-actions.pod:4177
11539 msgid "guestfs_mknod"
11540 msgstr ""
11541
11542 # type: verbatim
11543 #: ../src/guestfs-actions.pod:4179
11544 #, no-wrap
11545 msgid ""
11546 " int\n"
11547 " guestfs_mknod (guestfs_h *g,\n"
11548 "                int mode,\n"
11549 "                int devmajor,\n"
11550 "                int devminor,\n"
11551 "                const char *path);\n"
11552 "\n"
11553 msgstr ""
11554
11555 # type: textblock
11556 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:2822
11557 msgid ""
11558 "This call creates block or character special devices, or named pipes (FIFOs)."
11559 msgstr ""
11560
11561 # type: textblock
11562 #: ../src/guestfs-actions.pod:4189 ../fish/guestfish-actions.pod:2825
11563 msgid ""
11564 "The C<mode> parameter should be the mode, using the standard constants.  "
11565 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11566 "used when creating block and character special devices."
11567 msgstr ""
11568
11569 # type: textblock
11570 #: ../src/guestfs-actions.pod:4194
11571 msgid ""
11572 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11573 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11574 "regular file).  These constants are available in the standard Linux header "
11575 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11576 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11577 "the appropriate constant for you."
11578 msgstr ""
11579
11580 # type: =head2
11581 #: ../src/guestfs-actions.pod:4208
11582 msgid "guestfs_mknod_b"
11583 msgstr ""
11584
11585 # type: verbatim
11586 #: ../src/guestfs-actions.pod:4210
11587 #, no-wrap
11588 msgid ""
11589 " int\n"
11590 " guestfs_mknod_b (guestfs_h *g,\n"
11591 "                  int mode,\n"
11592 "                  int devmajor,\n"
11593 "                  int devminor,\n"
11594 "                  const char *path);\n"
11595 "\n"
11596 msgstr ""
11597
11598 # type: textblock
11599 #: ../src/guestfs-actions.pod:4217
11600 msgid ""
11601 "This call creates a block device node called C<path> with mode C<mode> and "
11602 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11603 "wrapper around C<guestfs_mknod>."
11604 msgstr ""
11605
11606 # type: =head2
11607 #: ../src/guestfs-actions.pod:4227
11608 msgid "guestfs_mknod_c"
11609 msgstr ""
11610
11611 # type: verbatim
11612 #: ../src/guestfs-actions.pod:4229
11613 #, no-wrap
11614 msgid ""
11615 " int\n"
11616 " guestfs_mknod_c (guestfs_h *g,\n"
11617 "                  int mode,\n"
11618 "                  int devmajor,\n"
11619 "                  int devminor,\n"
11620 "                  const char *path);\n"
11621 "\n"
11622 msgstr ""
11623
11624 # type: textblock
11625 #: ../src/guestfs-actions.pod:4236
11626 msgid ""
11627 "This call creates a char device node called C<path> with mode C<mode> and "
11628 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11629 "wrapper around C<guestfs_mknod>."
11630 msgstr ""
11631
11632 # type: =head2
11633 #: ../src/guestfs-actions.pod:4246
11634 msgid "guestfs_mkswap"
11635 msgstr ""
11636
11637 # type: verbatim
11638 #: ../src/guestfs-actions.pod:4248
11639 #, no-wrap
11640 msgid ""
11641 " int\n"
11642 " guestfs_mkswap (guestfs_h *g,\n"
11643 "                 const char *device);\n"
11644 "\n"
11645 msgstr ""
11646
11647 # type: textblock
11648 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2864
11649 msgid "Create a swap partition on C<device>."
11650 msgstr ""
11651
11652 # type: =head2
11653 #: ../src/guestfs-actions.pod:4258
11654 msgid "guestfs_mkswap_L"
11655 msgstr ""
11656
11657 # type: verbatim
11658 #: ../src/guestfs-actions.pod:4260
11659 #, no-wrap
11660 msgid ""
11661 " int\n"
11662 " guestfs_mkswap_L (guestfs_h *g,\n"
11663 "                   const char *label,\n"
11664 "                   const char *device);\n"
11665 "\n"
11666 msgstr ""
11667
11668 # type: textblock
11669 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2870
11670 msgid "Create a swap partition on C<device> with label C<label>."
11671 msgstr ""
11672
11673 # type: textblock
11674 #: ../src/guestfs-actions.pod:4267 ../fish/guestfish-actions.pod:2872
11675 msgid ""
11676 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11677 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11678 "or swap tools."
11679 msgstr ""
11680
11681 # type: =head2
11682 #: ../src/guestfs-actions.pod:4275
11683 msgid "guestfs_mkswap_U"
11684 msgstr ""
11685
11686 # type: verbatim
11687 #: ../src/guestfs-actions.pod:4277
11688 #, no-wrap
11689 msgid ""
11690 " int\n"
11691 " guestfs_mkswap_U (guestfs_h *g,\n"
11692 "                   const char *uuid,\n"
11693 "                   const char *device);\n"
11694 "\n"
11695 msgstr ""
11696
11697 # type: textblock
11698 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2880
11699 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11700 msgstr ""
11701
11702 # type: =head2
11703 #: ../src/guestfs-actions.pod:4288
11704 msgid "guestfs_mkswap_file"
11705 msgstr ""
11706
11707 # type: verbatim
11708 #: ../src/guestfs-actions.pod:4290
11709 #, no-wrap
11710 msgid ""
11711 " int\n"
11712 " guestfs_mkswap_file (guestfs_h *g,\n"
11713 "                      const char *path);\n"
11714 "\n"
11715 msgstr ""
11716
11717 # type: textblock
11718 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2886
11719 msgid "Create a swap file."
11720 msgstr ""
11721
11722 # type: textblock
11723 #: ../src/guestfs-actions.pod:4296
11724 msgid ""
11725 "This command just writes a swap file signature to an existing file.  To "
11726 "create the file itself, use something like C<guestfs_fallocate>."
11727 msgstr ""
11728
11729 # type: =head2
11730 #: ../src/guestfs-actions.pod:4303
11731 msgid "guestfs_modprobe"
11732 msgstr ""
11733
11734 # type: verbatim
11735 #: ../src/guestfs-actions.pod:4305
11736 #, no-wrap
11737 msgid ""
11738 " int\n"
11739 " guestfs_modprobe (guestfs_h *g,\n"
11740 "                   const char *modulename);\n"
11741 "\n"
11742 msgstr ""
11743
11744 # type: textblock
11745 #: ../src/guestfs-actions.pod:4309 ../fish/guestfish-actions.pod:2895
11746 msgid "This loads a kernel module in the appliance."
11747 msgstr ""
11748
11749 # type: textblock
11750 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2897
11751 msgid ""
11752 "The kernel module must have been whitelisted when libguestfs was built (see "
11753 "C<appliance/kmod.whitelist.in> in the source)."
11754 msgstr ""
11755
11756 # type: =head2
11757 #: ../src/guestfs-actions.pod:4318
11758 msgid "guestfs_mount"
11759 msgstr ""
11760
11761 # type: verbatim
11762 #: ../src/guestfs-actions.pod:4320
11763 #, no-wrap
11764 msgid ""
11765 " int\n"
11766 " guestfs_mount (guestfs_h *g,\n"
11767 "                const char *device,\n"
11768 "                const char *mountpoint);\n"
11769 "\n"
11770 msgstr ""
11771
11772 # type: textblock
11773 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:2904
11774 msgid ""
11775 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11776 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11777 "those block devices contain partitions, they will have the usual names (eg. "
11778 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11779 msgstr ""
11780
11781 # type: textblock
11782 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2910
11783 msgid ""
11784 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11785 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11786 "mounted on directories which already exist."
11787 msgstr ""
11788
11789 # type: textblock
11790 #: ../src/guestfs-actions.pod:4336 ../fish/guestfish-actions.pod:2915
11791 msgid ""
11792 "The mounted filesystem is writable, if we have sufficient permissions on the "
11793 "underlying device."
11794 msgstr ""
11795
11796 # type: textblock
11797 #: ../src/guestfs-actions.pod:4339
11798 msgid ""
11799 "B<Important note:> When you use this call, the filesystem options C<sync> "
11800 "and C<noatime> are set implicitly.  This was originally done because we "
11801 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11802 "very large negative performance impact and negligible effect on "
11803 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11804 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11805 "(use an empty string for the first parameter if you don't want any options)."
11806 msgstr ""
11807
11808 # type: =head2
11809 #: ../src/guestfs-actions.pod:4353
11810 msgid "guestfs_mount_loop"
11811 msgstr ""
11812
11813 # type: verbatim
11814 #: ../src/guestfs-actions.pod:4355
11815 #, no-wrap
11816 msgid ""
11817 " int\n"
11818 " guestfs_mount_loop (guestfs_h *g,\n"
11819 "                     const char *file,\n"
11820 "                     const char *mountpoint);\n"
11821 "\n"
11822 msgstr ""
11823
11824 # type: textblock
11825 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2932
11826 msgid ""
11827 "This command lets you mount C<file> (a filesystem image in a file) on a "
11828 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11829 "mountpoint>."
11830 msgstr ""
11831
11832 # type: =head2
11833 #: ../src/guestfs-actions.pod:4368
11834 msgid "guestfs_mount_options"
11835 msgstr ""
11836
11837 # type: verbatim
11838 #: ../src/guestfs-actions.pod:4370
11839 #, no-wrap
11840 msgid ""
11841 " int\n"
11842 " guestfs_mount_options (guestfs_h *g,\n"
11843 "                        const char *options,\n"
11844 "                        const char *device,\n"
11845 "                        const char *mountpoint);\n"
11846 "\n"
11847 msgstr ""
11848
11849 # type: textblock
11850 #: ../src/guestfs-actions.pod:4376
11851 msgid ""
11852 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11853 "the mount options as for the L<mount(8)> I<-o> flag."
11854 msgstr ""
11855
11856 # type: textblock
11857 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2944
11858 msgid ""
11859 "If the C<options> parameter is an empty string, then no options are passed "
11860 "(all options default to whatever the filesystem uses)."
11861 msgstr ""
11862
11863 # type: textblock
11864 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4400
11865 #: ../src/guestfs-actions.pod:4417
11866 msgid "(Added in 1.0.10)"
11867 msgstr ""
11868
11869 # type: =head2
11870 #: ../src/guestfs-actions.pod:4388
11871 msgid "guestfs_mount_ro"
11872 msgstr ""
11873
11874 # type: verbatim
11875 #: ../src/guestfs-actions.pod:4390
11876 #, no-wrap
11877 msgid ""
11878 " int\n"
11879 " guestfs_mount_ro (guestfs_h *g,\n"
11880 "                   const char *device,\n"
11881 "                   const char *mountpoint);\n"
11882 "\n"
11883 msgstr ""
11884
11885 # type: textblock
11886 #: ../src/guestfs-actions.pod:4395
11887 msgid ""
11888 "This is the same as the C<guestfs_mount> command, but it mounts the "
11889 "filesystem with the read-only (I<-o ro>) flag."
11890 msgstr ""
11891
11892 # type: =head2
11893 #: ../src/guestfs-actions.pod:4402
11894 msgid "guestfs_mount_vfs"
11895 msgstr ""
11896
11897 # type: verbatim
11898 #: ../src/guestfs-actions.pod:4404
11899 #, no-wrap
11900 msgid ""
11901 " int\n"
11902 " guestfs_mount_vfs (guestfs_h *g,\n"
11903 "                    const char *options,\n"
11904 "                    const char *vfstype,\n"
11905 "                    const char *device,\n"
11906 "                    const char *mountpoint);\n"
11907 "\n"
11908 msgstr ""
11909
11910 # type: textblock
11911 #: ../src/guestfs-actions.pod:4411
11912 msgid ""
11913 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11914 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11915 "t> flags."
11916 msgstr ""
11917
11918 # type: =head2
11919 #: ../src/guestfs-actions.pod:4419
11920 msgid "guestfs_mountpoints"
11921 msgstr ""
11922
11923 # type: verbatim
11924 #: ../src/guestfs-actions.pod:4421
11925 #, no-wrap
11926 msgid ""
11927 " char **\n"
11928 " guestfs_mountpoints (guestfs_h *g);\n"
11929 "\n"
11930 msgstr ""
11931
11932 # type: textblock
11933 #: ../src/guestfs-actions.pod:4424
11934 msgid ""
11935 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11936 "devices.  This one returns a hash table (map) of device name to directory "
11937 "where the device is mounted."
11938 msgstr ""
11939
11940 # type: =head2
11941 #: ../src/guestfs-actions.pod:4436
11942 msgid "guestfs_mounts"
11943 msgstr ""
11944
11945 # type: verbatim
11946 #: ../src/guestfs-actions.pod:4438
11947 #, no-wrap
11948 msgid ""
11949 " char **\n"
11950 " guestfs_mounts (guestfs_h *g);\n"
11951 "\n"
11952 msgstr ""
11953
11954 # type: textblock
11955 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:2975
11956 msgid ""
11957 "This returns the list of currently mounted filesystems.  It returns the list "
11958 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11959 msgstr ""
11960
11961 # type: textblock
11962 #: ../src/guestfs-actions.pod:4444 ../fish/guestfish-actions.pod:2978
11963 msgid "Some internal mounts are not shown."
11964 msgstr ""
11965
11966 # type: textblock
11967 #: ../src/guestfs-actions.pod:4446
11968 msgid "See also: C<guestfs_mountpoints>"
11969 msgstr ""
11970
11971 # type: =head2
11972 #: ../src/guestfs-actions.pod:4454
11973 msgid "guestfs_mv"
11974 msgstr ""
11975
11976 # type: verbatim
11977 #: ../src/guestfs-actions.pod:4456
11978 #, no-wrap
11979 msgid ""
11980 " int\n"
11981 " guestfs_mv (guestfs_h *g,\n"
11982 "             const char *src,\n"
11983 "             const char *dest);\n"
11984 "\n"
11985 msgstr ""
11986
11987 # type: textblock
11988 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:2986
11989 msgid ""
11990 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11991 "destination filename or destination directory."
11992 msgstr ""
11993
11994 # type: =head2
11995 #: ../src/guestfs-actions.pod:4468
11996 msgid "guestfs_ntfs_3g_probe"
11997 msgstr ""
11998
11999 # type: verbatim
12000 #: ../src/guestfs-actions.pod:4470
12001 #, no-wrap
12002 msgid ""
12003 " int\n"
12004 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
12005 "                        int rw,\n"
12006 "                        const char *device);\n"
12007 "\n"
12008 msgstr ""
12009
12010 # type: textblock
12011 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:2993
12012 msgid ""
12013 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12014 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12015 "write, and some cannot be mounted at all)."
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:2997
12020 msgid ""
12021 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12022 "can be mounted read-write.  Set it to false if you want to test if the "
12023 "volume can be mounted read-only."
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3001
12028 msgid ""
12029 "The return value is an integer which C<0> if the operation would succeed, or "
12030 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4489
12035 msgid "(Added in 1.0.43)"
12036 msgstr ""
12037
12038 # type: =head2
12039 #: ../src/guestfs-actions.pod:4491
12040 msgid "guestfs_ntfsresize"
12041 msgstr ""
12042
12043 # type: verbatim
12044 #: ../src/guestfs-actions.pod:4493
12045 #, no-wrap
12046 msgid ""
12047 " int\n"
12048 " guestfs_ntfsresize (guestfs_h *g,\n"
12049 "                     const char *device);\n"
12050 "\n"
12051 msgstr ""
12052
12053 # type: textblock
12054 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:3009
12055 msgid ""
12056 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12057 "size of the underlying device.  See also L<ntfsresize(8)>."
12058 msgstr ""
12059
12060 # type: =head2
12061 #: ../src/guestfs-actions.pod:4505
12062 msgid "guestfs_ntfsresize_size"
12063 msgstr ""
12064
12065 # type: verbatim
12066 #: ../src/guestfs-actions.pod:4507
12067 #, no-wrap
12068 msgid ""
12069 " int\n"
12070 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12071 "                          const char *device,\n"
12072 "                          int64_t size);\n"
12073 "\n"
12074 msgstr ""
12075
12076 # type: textblock
12077 #: ../src/guestfs-actions.pod:4512
12078 msgid ""
12079 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12080 "to specify the new size (in bytes) explicitly."
12081 msgstr ""
12082
12083 # type: textblock
12084 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4953
12085 #: ../src/guestfs-actions.pod:5026 ../src/guestfs-actions.pod:5275
12086 msgid "(Added in 1.3.14)"
12087 msgstr ""
12088
12089 # type: =head2
12090 #: ../src/guestfs-actions.pod:4519
12091 msgid "guestfs_part_add"
12092 msgstr ""
12093
12094 # type: verbatim
12095 #: ../src/guestfs-actions.pod:4521
12096 #, no-wrap
12097 msgid ""
12098 " int\n"
12099 " guestfs_part_add (guestfs_h *g,\n"
12100 "                   const char *device,\n"
12101 "                   const char *prlogex,\n"
12102 "                   int64_t startsect,\n"
12103 "                   int64_t endsect);\n"
12104 "\n"
12105 msgstr ""
12106
12107 # type: textblock
12108 #: ../src/guestfs-actions.pod:4528
12109 msgid ""
12110 "This command adds a partition to C<device>.  If there is no partition table "
12111 "on the device, call C<guestfs_part_init> first."
12112 msgstr ""
12113
12114 # type: textblock
12115 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3027
12116 msgid ""
12117 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12118 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12119 "C<logical>) and C<e> (or C<extended>) partition types."
12120 msgstr ""
12121
12122 # type: textblock
12123 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3032
12124 msgid ""
12125 "C<startsect> and C<endsect> are the start and end of the partition in "
12126 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12127 "from the end of the disk (C<-1> is the last sector)."
12128 msgstr ""
12129
12130 # type: textblock
12131 #: ../src/guestfs-actions.pod:4540
12132 msgid ""
12133 "Creating a partition which covers the whole disk is not so easy.  Use "
12134 "C<guestfs_part_disk> to do that."
12135 msgstr ""
12136
12137 # type: textblock
12138 #: ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4583
12139 #: ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:4714
12140 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4771
12141 #: ../src/guestfs-actions.pod:4811
12142 msgid "(Added in 1.0.78)"
12143 msgstr ""
12144
12145 # type: =head2
12146 #: ../src/guestfs-actions.pod:4547
12147 msgid "guestfs_part_del"
12148 msgstr ""
12149
12150 # type: verbatim
12151 #: ../src/guestfs-actions.pod:4549
12152 #, no-wrap
12153 msgid ""
12154 " int\n"
12155 " guestfs_part_del (guestfs_h *g,\n"
12156 "                   const char *device,\n"
12157 "                   int partnum);\n"
12158 "\n"
12159 msgstr ""
12160
12161 # type: textblock
12162 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3043
12163 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12164 msgstr ""
12165
12166 # type: textblock
12167 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3045
12168 msgid ""
12169 "Note that in the case of MBR partitioning, deleting an extended partition "
12170 "also deletes any logical partitions it contains."
12171 msgstr ""
12172
12173 # type: =head2
12174 #: ../src/guestfs-actions.pod:4564
12175 msgid "guestfs_part_disk"
12176 msgstr ""
12177
12178 # type: verbatim
12179 #: ../src/guestfs-actions.pod:4566
12180 #, no-wrap
12181 msgid ""
12182 " int\n"
12183 " guestfs_part_disk (guestfs_h *g,\n"
12184 "                    const char *device,\n"
12185 "                    const char *parttype);\n"
12186 "\n"
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4571
12191 msgid ""
12192 "This command is simply a combination of C<guestfs_part_init> followed by "
12193 "C<guestfs_part_add> to create a single primary partition covering the whole "
12194 "disk."
12195 msgstr ""
12196
12197 # type: textblock
12198 #: ../src/guestfs-actions.pod:4575
12199 msgid ""
12200 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12201 "possible values are described in C<guestfs_part_init>."
12202 msgstr ""
12203
12204 # type: =head2
12205 #: ../src/guestfs-actions.pod:4585
12206 msgid "guestfs_part_get_bootable"
12207 msgstr ""
12208
12209 # type: verbatim
12210 #: ../src/guestfs-actions.pod:4587
12211 #, no-wrap
12212 msgid ""
12213 " int\n"
12214 " guestfs_part_get_bootable (guestfs_h *g,\n"
12215 "                            const char *device,\n"
12216 "                            int partnum);\n"
12217 "\n"
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3067
12222 msgid ""
12223 "This command returns true if the partition C<partnum> on C<device> has the "
12224 "bootable flag set."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:4595
12229 msgid "See also C<guestfs_part_set_bootable>."
12230 msgstr ""
12231
12232 # type: =head2
12233 #: ../src/guestfs-actions.pod:4601
12234 msgid "guestfs_part_get_mbr_id"
12235 msgstr ""
12236
12237 # type: verbatim
12238 #: ../src/guestfs-actions.pod:4603
12239 #, no-wrap
12240 msgid ""
12241 " int\n"
12242 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12243 "                          const char *device,\n"
12244 "                          int partnum);\n"
12245 "\n"
12246 msgstr ""
12247
12248 # type: textblock
12249 #: ../src/guestfs-actions.pod:4608 ../fish/guestfish-actions.pod:3076
12250 msgid ""
12251 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12252 "partition C<partnum>."
12253 msgstr ""
12254
12255 # type: textblock
12256 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4787
12257 msgid ""
12258 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12259 "undefined results for other partition table types (see "
12260 "C<guestfs_part_get_parttype>)."
12261 msgstr ""
12262
12263 # type: =head2
12264 #: ../src/guestfs-actions.pod:4619
12265 msgid "guestfs_part_get_parttype"
12266 msgstr ""
12267
12268 # type: verbatim
12269 #: ../src/guestfs-actions.pod:4621
12270 #, no-wrap
12271 msgid ""
12272 " char *\n"
12273 " guestfs_part_get_parttype (guestfs_h *g,\n"
12274 "                            const char *device);\n"
12275 "\n"
12276 msgstr ""
12277
12278 # type: textblock
12279 #: ../src/guestfs-actions.pod:4625 ../fish/guestfish-actions.pod:3087
12280 msgid ""
12281 "This command examines the partition table on C<device> and returns the "
12282 "partition table type (format) being used."
12283 msgstr ""
12284
12285 # type: textblock
12286 #: ../src/guestfs-actions.pod:4628
12287 msgid ""
12288 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12289 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12290 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12291 msgstr ""
12292
12293 # type: =head2
12294 #: ../src/guestfs-actions.pod:4638
12295 msgid "guestfs_part_init"
12296 msgstr ""
12297
12298 # type: verbatim
12299 #: ../src/guestfs-actions.pod:4640
12300 #, no-wrap
12301 msgid ""
12302 " int\n"
12303 " guestfs_part_init (guestfs_h *g,\n"
12304 "                    const char *device,\n"
12305 "                    const char *parttype);\n"
12306 "\n"
12307 msgstr ""
12308
12309 # type: textblock
12310 #: ../src/guestfs-actions.pod:4645 ../fish/guestfish-actions.pod:3099
12311 msgid ""
12312 "This creates an empty partition table on C<device> of one of the partition "
12313 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12314 "(for large disks)."
12315 msgstr ""
12316
12317 # type: textblock
12318 #: ../src/guestfs-actions.pod:4649
12319 msgid ""
12320 "Initially there are no partitions.  Following this, you should call "
12321 "C<guestfs_part_add> for each partition required."
12322 msgstr ""
12323
12324 # type: textblock
12325 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3106
12326 msgid "Possible values for C<parttype> are:"
12327 msgstr ""
12328
12329 # type: =item
12330 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3110
12331 msgid "B<efi> | B<gpt>"
12332 msgstr ""
12333
12334 # type: textblock
12335 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3112
12336 msgid "Intel EFI / GPT partition table."
12337 msgstr ""
12338
12339 # type: textblock
12340 #: ../src/guestfs-actions.pod:4660 ../fish/guestfish-actions.pod:3114
12341 msgid ""
12342 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12343 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12344 "the C<mbr> format."
12345 msgstr ""
12346
12347 # type: =item
12348 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3118
12349 msgid "B<mbr> | B<msdos>"
12350 msgstr ""
12351
12352 # type: textblock
12353 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3120
12354 msgid ""
12355 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12356 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12357 "TB.  For large disks we recommend using C<gpt>."
12358 msgstr ""
12359
12360 # type: textblock
12361 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3127
12362 msgid ""
12363 "Other partition table types that may work but are not supported include:"
12364 msgstr ""
12365
12366 # type: =item
12367 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3132
12368 msgid "B<aix>"
12369 msgstr ""
12370
12371 # type: textblock
12372 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3134
12373 msgid "AIX disk labels."
12374 msgstr ""
12375
12376 # type: =item
12377 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3136
12378 msgid "B<amiga> | B<rdb>"
12379 msgstr ""
12380
12381 # type: textblock
12382 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3138
12383 msgid "Amiga \"Rigid Disk Block\" format."
12384 msgstr ""
12385
12386 # type: =item
12387 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3140
12388 msgid "B<bsd>"
12389 msgstr ""
12390
12391 # type: textblock
12392 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3142
12393 msgid "BSD disk labels."
12394 msgstr ""
12395
12396 # type: =item
12397 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3144
12398 msgid "B<dasd>"
12399 msgstr ""
12400
12401 # type: textblock
12402 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3146
12403 msgid "DASD, used on IBM mainframes."
12404 msgstr ""
12405
12406 # type: =item
12407 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3148
12408 msgid "B<dvh>"
12409 msgstr ""
12410
12411 # type: textblock
12412 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3150
12413 msgid "MIPS/SGI volumes."
12414 msgstr ""
12415
12416 # type: =item
12417 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3152
12418 msgid "B<mac>"
12419 msgstr ""
12420
12421 # type: textblock
12422 #: ../src/guestfs-actions.pod:4700 ../fish/guestfish-actions.pod:3154
12423 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12424 msgstr ""
12425
12426 # type: =item
12427 #: ../src/guestfs-actions.pod:4702 ../fish/guestfish-actions.pod:3156
12428 msgid "B<pc98>"
12429 msgstr ""
12430
12431 # type: textblock
12432 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:3158
12433 msgid "NEC PC-98 format, common in Japan apparently."
12434 msgstr ""
12435
12436 # type: =item
12437 #: ../src/guestfs-actions.pod:4706 ../fish/guestfish-actions.pod:3160
12438 msgid "B<sun>"
12439 msgstr ""
12440
12441 # type: textblock
12442 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3162
12443 msgid "Sun disk labels."
12444 msgstr ""
12445
12446 # type: =head2
12447 #: ../src/guestfs-actions.pod:4716
12448 msgid "guestfs_part_list"
12449 msgstr ""
12450
12451 # type: verbatim
12452 #: ../src/guestfs-actions.pod:4718
12453 #, no-wrap
12454 msgid ""
12455 " struct guestfs_partition_list *\n"
12456 " guestfs_part_list (guestfs_h *g,\n"
12457 "                    const char *device);\n"
12458 "\n"
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3170
12463 msgid ""
12464 "This command parses the partition table on C<device> and returns the list of "
12465 "partitions found."
12466 msgstr ""
12467
12468 # type: textblock
12469 #: ../src/guestfs-actions.pod:4725 ../fish/guestfish-actions.pod:3173
12470 msgid "The fields in the returned structure are:"
12471 msgstr ""
12472
12473 # type: =item
12474 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3177
12475 msgid "B<part_num>"
12476 msgstr ""
12477
12478 # type: textblock
12479 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3179
12480 msgid "Partition number, counting from 1."
12481 msgstr ""
12482
12483 # type: =item
12484 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3181
12485 msgid "B<part_start>"
12486 msgstr ""
12487
12488 # type: textblock
12489 #: ../src/guestfs-actions.pod:4735
12490 msgid ""
12491 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12492 "the device's sector size, see C<guestfs_blockdev_getss>."
12493 msgstr ""
12494
12495 # type: =item
12496 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3186
12497 msgid "B<part_end>"
12498 msgstr ""
12499
12500 # type: textblock
12501 #: ../src/guestfs-actions.pod:4740 ../fish/guestfish-actions.pod:3188
12502 msgid "End of the partition in bytes."
12503 msgstr ""
12504
12505 # type: =item
12506 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3190
12507 msgid "B<part_size>"
12508 msgstr ""
12509
12510 # type: textblock
12511 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3192
12512 msgid "Size of the partition in bytes."
12513 msgstr ""
12514
12515 # type: textblock
12516 #: ../src/guestfs-actions.pod:4748
12517 msgid ""
12518 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12519 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12520 "use>."
12521 msgstr ""
12522
12523 # type: =head2
12524 #: ../src/guestfs-actions.pod:4754
12525 msgid "guestfs_part_set_bootable"
12526 msgstr ""
12527
12528 # type: verbatim
12529 #: ../src/guestfs-actions.pod:4756
12530 #, no-wrap
12531 msgid ""
12532 " int\n"
12533 " guestfs_part_set_bootable (guestfs_h *g,\n"
12534 "                            const char *device,\n"
12535 "                            int partnum,\n"
12536 "                            int bootable);\n"
12537 "\n"
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3200
12542 msgid ""
12543 "This sets the bootable flag on partition numbered C<partnum> on device "
12544 "C<device>.  Note that partitions are numbered from 1."
12545 msgstr ""
12546
12547 # type: textblock
12548 #: ../src/guestfs-actions.pod:4765 ../fish/guestfish-actions.pod:3203
12549 msgid ""
12550 "The bootable flag is used by some operating systems (notably Windows) to "
12551 "determine which partition to boot from.  It is by no means universally "
12552 "recognized."
12553 msgstr ""
12554
12555 # type: =head2
12556 #: ../src/guestfs-actions.pod:4773
12557 msgid "guestfs_part_set_mbr_id"
12558 msgstr ""
12559
12560 # type: verbatim
12561 #: ../src/guestfs-actions.pod:4775
12562 #, no-wrap
12563 msgid ""
12564 " int\n"
12565 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12566 "                          const char *device,\n"
12567 "                          int partnum,\n"
12568 "                          int idbyte);\n"
12569 "\n"
12570 msgstr ""
12571
12572 # type: textblock
12573 #: ../src/guestfs-actions.pod:4781 ../fish/guestfish-actions.pod:3211
12574 msgid ""
12575 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12576 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12577 "documentation are in fact hexadecimal numbers, but usually documented "
12578 "without any leading \"0x\" which might be confusing."
12579 msgstr ""
12580
12581 # type: =head2
12582 #: ../src/guestfs-actions.pod:4795
12583 msgid "guestfs_part_set_name"
12584 msgstr ""
12585
12586 # type: verbatim
12587 #: ../src/guestfs-actions.pod:4797
12588 #, no-wrap
12589 msgid ""
12590 " int\n"
12591 " guestfs_part_set_name (guestfs_h *g,\n"
12592 "                        const char *device,\n"
12593 "                        int partnum,\n"
12594 "                        const char *name);\n"
12595 "\n"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:4803 ../fish/guestfish-actions.pod:3225
12600 msgid ""
12601 "This sets the partition name on partition numbered C<partnum> on device "
12602 "C<device>.  Note that partitions are numbered from 1."
12603 msgstr ""
12604
12605 # type: textblock
12606 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3228
12607 msgid ""
12608 "The partition name can only be set on certain types of partition table.  "
12609 "This works on C<gpt> but not on C<mbr> partitions."
12610 msgstr ""
12611
12612 # type: =head2
12613 #: ../src/guestfs-actions.pod:4813
12614 msgid "guestfs_part_to_dev"
12615 msgstr ""
12616
12617 # type: verbatim
12618 #: ../src/guestfs-actions.pod:4815
12619 #, no-wrap
12620 msgid ""
12621 " char *\n"
12622 " guestfs_part_to_dev (guestfs_h *g,\n"
12623 "                      const char *partition);\n"
12624 "\n"
12625 msgstr ""
12626
12627 # type: textblock
12628 #: ../src/guestfs-actions.pod:4819 ../fish/guestfish-actions.pod:3235
12629 msgid ""
12630 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12631 "partition number, returning the device name (eg. \"/dev/sdb\")."
12632 msgstr ""
12633
12634 # type: textblock
12635 #: ../src/guestfs-actions.pod:4823
12636 msgid ""
12637 "The named partition must exist, for example as a string returned from "
12638 "C<guestfs_list_partitions>."
12639 msgstr ""
12640
12641 # type: =head2
12642 #: ../src/guestfs-actions.pod:4831
12643 msgid "guestfs_ping_daemon"
12644 msgstr ""
12645
12646 # type: verbatim
12647 #: ../src/guestfs-actions.pod:4833
12648 #, no-wrap
12649 msgid ""
12650 " int\n"
12651 " guestfs_ping_daemon (guestfs_h *g);\n"
12652 "\n"
12653 msgstr ""
12654
12655 # type: textblock
12656 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3246
12657 msgid ""
12658 "This is a test probe into the guestfs daemon running inside the qemu "
12659 "subprocess.  Calling this function checks that the daemon responds to the "
12660 "ping message, without affecting the daemon or attached block device(s) in "
12661 "any other way."
12662 msgstr ""
12663
12664 # type: =head2
12665 #: ../src/guestfs-actions.pod:4845
12666 msgid "guestfs_pread"
12667 msgstr ""
12668
12669 # type: verbatim
12670 #: ../src/guestfs-actions.pod:4847
12671 #, no-wrap
12672 msgid ""
12673 " char *\n"
12674 " guestfs_pread (guestfs_h *g,\n"
12675 "                const char *path,\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:4854 ../fish/guestfish-actions.pod:3255
12684 msgid ""
12685 "This command lets you read part of a file.  It reads C<count> bytes of the "
12686 "file, starting at C<offset>, from file C<path>."
12687 msgstr ""
12688
12689 # type: textblock
12690 #: ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4883
12691 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12692 msgid ""
12693 "This may read fewer bytes than requested.  For further details see the "
12694 "L<pread(2)> system call."
12695 msgstr ""
12696
12697 # type: textblock
12698 #: ../src/guestfs-actions.pod:4860
12699 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12700 msgstr ""
12701
12702 # type: =head2
12703 #: ../src/guestfs-actions.pod:4871
12704 msgid "guestfs_pread_device"
12705 msgstr ""
12706
12707 # type: verbatim
12708 #: ../src/guestfs-actions.pod:4873
12709 #, no-wrap
12710 msgid ""
12711 " char *\n"
12712 " guestfs_pread_device (guestfs_h *g,\n"
12713 "                       const char *device,\n"
12714 "                       int count,\n"
12715 "                       int64_t offset,\n"
12716 "                       size_t *size_r);\n"
12717 "\n"
12718 msgstr ""
12719
12720 # type: textblock
12721 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3270
12722 msgid ""
12723 "This command lets you read part of a file.  It reads C<count> bytes of "
12724 "C<device>, starting at C<offset>."
12725 msgstr ""
12726
12727 # type: textblock
12728 #: ../src/guestfs-actions.pod:4886
12729 msgid "See also C<guestfs_pread>."
12730 msgstr ""
12731
12732 # type: textblock
12733 #: ../src/guestfs-actions.pod:4895
12734 msgid "(Added in 1.5.21)"
12735 msgstr ""
12736
12737 # type: =head2
12738 #: ../src/guestfs-actions.pod:4897
12739 msgid "guestfs_pvcreate"
12740 msgstr ""
12741
12742 # type: verbatim
12743 #: ../src/guestfs-actions.pod:4899
12744 #, no-wrap
12745 msgid ""
12746 " int\n"
12747 " guestfs_pvcreate (guestfs_h *g,\n"
12748 "                   const char *device);\n"
12749 "\n"
12750 msgstr ""
12751
12752 # type: textblock
12753 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3285
12754 msgid ""
12755 "This creates an LVM physical volume on the named C<device>, where C<device> "
12756 "should usually be a partition name such as C</dev/sda1>."
12757 msgstr ""
12758
12759 # type: =head2
12760 #: ../src/guestfs-actions.pod:4911
12761 msgid "guestfs_pvremove"
12762 msgstr ""
12763
12764 # type: verbatim
12765 #: ../src/guestfs-actions.pod:4913
12766 #, no-wrap
12767 msgid ""
12768 " int\n"
12769 " guestfs_pvremove (guestfs_h *g,\n"
12770 "                   const char *device);\n"
12771 "\n"
12772 msgstr ""
12773
12774 # type: textblock
12775 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3293
12776 msgid ""
12777 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12778 "it."
12779 msgstr ""
12780
12781 # type: textblock
12782 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3296
12783 msgid ""
12784 "The implementation uses the C<pvremove> command which refuses to wipe "
12785 "physical volumes that contain any volume groups, so you have to remove those "
12786 "first."
12787 msgstr ""
12788
12789 # type: =head2
12790 #: ../src/guestfs-actions.pod:4928
12791 msgid "guestfs_pvresize"
12792 msgstr ""
12793
12794 # type: verbatim
12795 #: ../src/guestfs-actions.pod:4930
12796 #, no-wrap
12797 msgid ""
12798 " int\n"
12799 " guestfs_pvresize (guestfs_h *g,\n"
12800 "                   const char *device);\n"
12801 "\n"
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3304
12806 msgid ""
12807 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12808 "the new size of the underlying device."
12809 msgstr ""
12810
12811 # type: =head2
12812 #: ../src/guestfs-actions.pod:4941
12813 msgid "guestfs_pvresize_size"
12814 msgstr ""
12815
12816 # type: verbatim
12817 #: ../src/guestfs-actions.pod:4943
12818 #, no-wrap
12819 msgid ""
12820 " int\n"
12821 " guestfs_pvresize_size (guestfs_h *g,\n"
12822 "                        const char *device,\n"
12823 "                        int64_t size);\n"
12824 "\n"
12825 msgstr ""
12826
12827 # type: textblock
12828 #: ../src/guestfs-actions.pod:4948
12829 msgid ""
12830 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12831 "specify the new size (in bytes) explicitly."
12832 msgstr ""
12833
12834 # type: =head2
12835 #: ../src/guestfs-actions.pod:4955
12836 msgid "guestfs_pvs"
12837 msgstr ""
12838
12839 # type: verbatim
12840 #: ../src/guestfs-actions.pod:4957
12841 #, no-wrap
12842 msgid ""
12843 " char **\n"
12844 " guestfs_pvs (guestfs_h *g);\n"
12845 "\n"
12846 msgstr ""
12847
12848 # type: textblock
12849 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3318
12850 msgid ""
12851 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12852 "(8)> command."
12853 msgstr ""
12854
12855 # type: textblock
12856 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3321
12857 msgid ""
12858 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12859 "sda2>)."
12860 msgstr ""
12861
12862 # type: textblock
12863 #: ../src/guestfs-actions.pod:4966
12864 msgid "See also C<guestfs_pvs_full>."
12865 msgstr ""
12866
12867 # type: =head2
12868 #: ../src/guestfs-actions.pod:4974
12869 msgid "guestfs_pvs_full"
12870 msgstr ""
12871
12872 # type: verbatim
12873 #: ../src/guestfs-actions.pod:4976
12874 #, no-wrap
12875 msgid ""
12876 " struct guestfs_lvm_pv_list *\n"
12877 " guestfs_pvs_full (guestfs_h *g);\n"
12878 "\n"
12879 msgstr ""
12880
12881 # type: textblock
12882 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3330
12883 msgid ""
12884 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12885 "(8)> command.  The \"full\" version includes all fields."
12886 msgstr ""
12887
12888 # type: textblock
12889 #: ../src/guestfs-actions.pod:4982
12890 msgid ""
12891 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12892 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12893 msgstr ""
12894
12895 # type: =head2
12896 #: ../src/guestfs-actions.pod:4988
12897 msgid "guestfs_pvuuid"
12898 msgstr ""
12899
12900 # type: verbatim
12901 #: ../src/guestfs-actions.pod:4990
12902 #, no-wrap
12903 msgid ""
12904 " char *\n"
12905 " guestfs_pvuuid (guestfs_h *g,\n"
12906 "                 const char *device);\n"
12907 "\n"
12908 msgstr ""
12909
12910 # type: textblock
12911 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3337
12912 msgid "This command returns the UUID of the LVM PV C<device>."
12913 msgstr ""
12914
12915 # type: =head2
12916 #: ../src/guestfs-actions.pod:5001
12917 msgid "guestfs_pwrite"
12918 msgstr ""
12919
12920 # type: verbatim
12921 #: ../src/guestfs-actions.pod:5003
12922 #, no-wrap
12923 msgid ""
12924 " int\n"
12925 " guestfs_pwrite (guestfs_h *g,\n"
12926 "                 const char *path,\n"
12927 "                 const char *content,\n"
12928 "                 size_t content_size,\n"
12929 "                 int64_t offset);\n"
12930 "\n"
12931 msgstr ""
12932
12933 # type: textblock
12934 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3343
12935 msgid ""
12936 "This command writes to part of a file.  It writes the data buffer C<content> "
12937 "to the file C<path> starting at offset C<offset>."
12938 msgstr ""
12939
12940 # type: textblock
12941 #: ../src/guestfs-actions.pod:5013 ../fish/guestfish-actions.pod:3346
12942 msgid ""
12943 "This command implements the L<pwrite(2)> system call, and like that system "
12944 "call it may not write the full data requested.  The return value is the "
12945 "number of bytes that were actually written to the file.  This could even be "
12946 "0, although short writes are unlikely for regular files in ordinary "
12947 "circumstances."
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:5019
12952 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12953 msgstr ""
12954
12955 # type: =head2
12956 #: ../src/guestfs-actions.pod:5028
12957 msgid "guestfs_pwrite_device"
12958 msgstr ""
12959
12960 # type: verbatim
12961 #: ../src/guestfs-actions.pod:5030
12962 #, no-wrap
12963 msgid ""
12964 " int\n"
12965 " guestfs_pwrite_device (guestfs_h *g,\n"
12966 "                        const char *device,\n"
12967 "                        const char *content,\n"
12968 "                        size_t content_size,\n"
12969 "                        int64_t offset);\n"
12970 "\n"
12971 msgstr ""
12972
12973 # type: textblock
12974 #: ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:3361
12975 msgid ""
12976 "This command writes to part of a device.  It writes the data buffer "
12977 "C<content> to C<device> starting at offset C<offset>."
12978 msgstr ""
12979
12980 # type: textblock
12981 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3364
12982 msgid ""
12983 "This command implements the L<pwrite(2)> system call, and like that system "
12984 "call it may not write the full data requested (although short writes to disk "
12985 "devices and partitions are probably impossible with standard Linux kernels)."
12986 msgstr ""
12987
12988 # type: textblock
12989 #: ../src/guestfs-actions.pod:5045
12990 msgid "See also C<guestfs_pwrite>."
12991 msgstr ""
12992
12993 # type: textblock
12994 #: ../src/guestfs-actions.pod:5052
12995 msgid "(Added in 1.5.20)"
12996 msgstr ""
12997
12998 # type: =head2
12999 #: ../src/guestfs-actions.pod:5054
13000 msgid "guestfs_read_file"
13001 msgstr ""
13002
13003 # type: verbatim
13004 #: ../src/guestfs-actions.pod:5056
13005 #, no-wrap
13006 msgid ""
13007 " char *\n"
13008 " guestfs_read_file (guestfs_h *g,\n"
13009 "                    const char *path,\n"
13010 "                    size_t *size_r);\n"
13011 "\n"
13012 msgstr ""
13013
13014 # type: textblock
13015 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3378
13016 msgid "This calls returns the contents of the file C<path> as a buffer."
13017 msgstr ""
13018
13019 # type: textblock
13020 #: ../src/guestfs-actions.pod:5064
13021 msgid ""
13022 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13023 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13024 "function is limited in the total size of file that can be handled."
13025 msgstr ""
13026
13027 # type: textblock
13028 #: ../src/guestfs-actions.pod:5076
13029 msgid "(Added in 1.0.63)"
13030 msgstr ""
13031
13032 # type: =head2
13033 #: ../src/guestfs-actions.pod:5078
13034 msgid "guestfs_read_lines"
13035 msgstr ""
13036
13037 # type: verbatim
13038 #: ../src/guestfs-actions.pod:5080
13039 #, no-wrap
13040 msgid ""
13041 " char **\n"
13042 " guestfs_read_lines (guestfs_h *g,\n"
13043 "                     const char *path);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3395
13049 msgid ""
13050 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13051 "C<CRLF> character sequences are I<not> returned."
13052 msgstr ""
13053
13054 # type: textblock
13055 #: ../src/guestfs-actions.pod:5089
13056 msgid ""
13057 "Note that this function cannot correctly handle binary files (specifically, "
13058 "files containing C<\\0> character which is treated as end of line).  For "
13059 "those you need to use the C<guestfs_read_file> function which has a more "
13060 "complex interface."
13061 msgstr ""
13062
13063 # type: =head2
13064 #: ../src/guestfs-actions.pod:5100
13065 msgid "guestfs_readdir"
13066 msgstr ""
13067
13068 # type: verbatim
13069 #: ../src/guestfs-actions.pod:5102
13070 #, no-wrap
13071 msgid ""
13072 " struct guestfs_dirent_list *\n"
13073 " guestfs_readdir (guestfs_h *g,\n"
13074 "                  const char *dir);\n"
13075 "\n"
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3407
13080 msgid "This returns the list of directory entries in directory C<dir>."
13081 msgstr ""
13082
13083 # type: textblock
13084 #: ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:3409
13085 msgid ""
13086 "All entries in the directory are returned, including C<.> and C<..>.  The "
13087 "entries are I<not> sorted, but returned in the same order as the underlying "
13088 "filesystem."
13089 msgstr ""
13090
13091 # type: textblock
13092 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3413
13093 msgid ""
13094 "Also this call returns basic file type information about each file.  The "
13095 "C<ftyp> field will contain one of the following characters:"
13096 msgstr ""
13097
13098 # type: =item
13099 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3418
13100 msgid "'b'"
13101 msgstr ""
13102
13103 # type: textblock
13104 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3420
13105 msgid "Block special"
13106 msgstr ""
13107
13108 # type: =item
13109 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3422
13110 msgid "'c'"
13111 msgstr ""
13112
13113 # type: textblock
13114 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3424
13115 msgid "Char special"
13116 msgstr ""
13117
13118 # type: =item
13119 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3426
13120 msgid "'d'"
13121 msgstr ""
13122
13123 # type: textblock
13124 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3428
13125 msgid "Directory"
13126 msgstr ""
13127
13128 # type: =item
13129 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3430
13130 msgid "'f'"
13131 msgstr ""
13132
13133 # type: textblock
13134 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3432
13135 msgid "FIFO (named pipe)"
13136 msgstr ""
13137
13138 # type: =item
13139 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3434
13140 msgid "'l'"
13141 msgstr ""
13142
13143 # type: textblock
13144 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3436
13145 msgid "Symbolic link"
13146 msgstr ""
13147
13148 # type: =item
13149 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3438
13150 msgid "'r'"
13151 msgstr ""
13152
13153 # type: textblock
13154 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3440
13155 msgid "Regular file"
13156 msgstr ""
13157
13158 # type: =item
13159 #: ../src/guestfs-actions.pod:5141 ../fish/guestfish-actions.pod:3442
13160 msgid "'s'"
13161 msgstr ""
13162
13163 # type: textblock
13164 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3444
13165 msgid "Socket"
13166 msgstr ""
13167
13168 # type: =item
13169 #: ../src/guestfs-actions.pod:5145 ../fish/guestfish-actions.pod:3446
13170 msgid "'u'"
13171 msgstr ""
13172
13173 # type: textblock
13174 #: ../src/guestfs-actions.pod:5147 ../fish/guestfish-actions.pod:3448
13175 msgid "Unknown file type"
13176 msgstr ""
13177
13178 # type: =item
13179 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3450
13180 msgid "'?'"
13181 msgstr ""
13182
13183 # type: textblock
13184 #: ../src/guestfs-actions.pod:5151 ../fish/guestfish-actions.pod:3452
13185 msgid ""
13186 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13187 msgstr ""
13188
13189 # type: textblock
13190 #: ../src/guestfs-actions.pod:5156
13191 msgid ""
13192 "This function is primarily intended for use by programs.  To get a simple "
13193 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13194 "consumption, use C<guestfs_ll>."
13195 msgstr ""
13196
13197 # type: textblock
13198 #: ../src/guestfs-actions.pod:5160
13199 msgid ""
13200 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13201 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13202 msgstr ""
13203
13204 # type: =head2
13205 #: ../src/guestfs-actions.pod:5166
13206 msgid "guestfs_readlink"
13207 msgstr ""
13208
13209 # type: verbatim
13210 #: ../src/guestfs-actions.pod:5168
13211 #, no-wrap
13212 msgid ""
13213 " char *\n"
13214 " guestfs_readlink (guestfs_h *g,\n"
13215 "                   const char *path);\n"
13216 "\n"
13217 msgstr ""
13218
13219 # type: textblock
13220 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3465
13221 msgid "This command reads the target of a symbolic link."
13222 msgstr ""
13223
13224 # type: =head2
13225 #: ../src/guestfs-actions.pod:5179
13226 msgid "guestfs_readlinklist"
13227 msgstr ""
13228
13229 # type: verbatim
13230 #: ../src/guestfs-actions.pod:5181
13231 #, no-wrap
13232 msgid ""
13233 " char **\n"
13234 " guestfs_readlinklist (guestfs_h *g,\n"
13235 "                       const char *path,\n"
13236 "                       char *const *names);\n"
13237 "\n"
13238 msgstr ""
13239
13240 # type: textblock
13241 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3471
13242 msgid ""
13243 "This call allows you to do a C<readlink> operation on multiple files, where "
13244 "all files are in the directory C<path>.  C<names> is the list of files from "
13245 "this directory."
13246 msgstr ""
13247
13248 # type: textblock
13249 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3475
13250 msgid ""
13251 "On return you get a list of strings, with a one-to-one correspondence to the "
13252 "C<names> list.  Each string is the value of the symbolic link."
13253 msgstr ""
13254
13255 # type: textblock
13256 #: ../src/guestfs-actions.pod:5194 ../fish/guestfish-actions.pod:3479
13257 msgid ""
13258 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13259 "result string is the empty string C<\"\">.  However the whole operation is "
13260 "completed even if there were C<readlink(2)> errors, and so you can call this "
13261 "function with names where you don't know if they are symbolic links already "
13262 "(albeit slightly less efficient)."
13263 msgstr ""
13264
13265 # type: textblock
13266 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3486
13267 msgid ""
13268 "This call is intended for programs that want to efficiently list a directory "
13269 "contents without making many round-trips.  Very long directory listings "
13270 "might cause the protocol message size to be exceeded, causing this call to "
13271 "fail.  The caller must split up such requests into smaller groups of names."
13272 msgstr ""
13273
13274 # type: =head2
13275 #: ../src/guestfs-actions.pod:5214
13276 msgid "guestfs_realpath"
13277 msgstr ""
13278
13279 # type: verbatim
13280 #: ../src/guestfs-actions.pod:5216
13281 #, no-wrap
13282 msgid ""
13283 " char *\n"
13284 " guestfs_realpath (guestfs_h *g,\n"
13285 "                   const char *path);\n"
13286 "\n"
13287 msgstr ""
13288
13289 # type: textblock
13290 #: ../src/guestfs-actions.pod:5220 ../fish/guestfish-actions.pod:3497
13291 msgid ""
13292 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13293 "has no C<.>, C<..> or symbolic link path elements."
13294 msgstr ""
13295
13296 # type: =head2
13297 #: ../src/guestfs-actions.pod:5228
13298 msgid "guestfs_removexattr"
13299 msgstr ""
13300
13301 # type: verbatim
13302 #: ../src/guestfs-actions.pod:5230
13303 #, no-wrap
13304 msgid ""
13305 " int\n"
13306 " guestfs_removexattr (guestfs_h *g,\n"
13307 "                      const char *xattr,\n"
13308 "                      const char *path);\n"
13309 "\n"
13310 msgstr ""
13311
13312 # type: textblock
13313 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3504
13314 msgid ""
13315 "This call removes the extended attribute named C<xattr> of the file C<path>."
13316 msgstr ""
13317
13318 # type: textblock
13319 #: ../src/guestfs-actions.pod:5238
13320 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13321 msgstr ""
13322
13323 # type: =head2
13324 #: ../src/guestfs-actions.pod:5244
13325 msgid "guestfs_resize2fs"
13326 msgstr ""
13327
13328 # type: verbatim
13329 #: ../src/guestfs-actions.pod:5246
13330 #, no-wrap
13331 msgid ""
13332 " int\n"
13333 " guestfs_resize2fs (guestfs_h *g,\n"
13334 "                    const char *device);\n"
13335 "\n"
13336 msgstr ""
13337
13338 # type: textblock
13339 #: ../src/guestfs-actions.pod:5250 ../fish/guestfish-actions.pod:3513
13340 msgid ""
13341 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13342 "underlying device."
13343 msgstr ""
13344
13345 # type: textblock
13346 #: ../src/guestfs-actions.pod:5253
13347 msgid ""
13348 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13349 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13350 "sometimes gives an error about this and sometimes not.  In any case, it is "
13351 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13352 msgstr ""
13353
13354 # type: =head2
13355 #: ../src/guestfs-actions.pod:5263
13356 msgid "guestfs_resize2fs_size"
13357 msgstr ""
13358
13359 # type: verbatim
13360 #: ../src/guestfs-actions.pod:5265
13361 #, no-wrap
13362 msgid ""
13363 " int\n"
13364 " guestfs_resize2fs_size (guestfs_h *g,\n"
13365 "                         const char *device,\n"
13366 "                         int64_t size);\n"
13367 "\n"
13368 msgstr ""
13369
13370 # type: textblock
13371 #: ../src/guestfs-actions.pod:5270
13372 msgid ""
13373 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13374 "to specify the new size (in bytes) explicitly."
13375 msgstr ""
13376
13377 # type: =head2
13378 #: ../src/guestfs-actions.pod:5277
13379 msgid "guestfs_rm"
13380 msgstr ""
13381
13382 # type: verbatim
13383 #: ../src/guestfs-actions.pod:5279
13384 #, no-wrap
13385 msgid ""
13386 " int\n"
13387 " guestfs_rm (guestfs_h *g,\n"
13388 "             const char *path);\n"
13389 "\n"
13390 msgstr ""
13391
13392 # type: textblock
13393 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3533
13394 msgid "Remove the single file C<path>."
13395 msgstr ""
13396
13397 # type: =head2
13398 #: ../src/guestfs-actions.pod:5289
13399 msgid "guestfs_rm_rf"
13400 msgstr ""
13401
13402 # type: verbatim
13403 #: ../src/guestfs-actions.pod:5291
13404 #, no-wrap
13405 msgid ""
13406 " int\n"
13407 " guestfs_rm_rf (guestfs_h *g,\n"
13408 "                const char *path);\n"
13409 "\n"
13410 msgstr ""
13411
13412 # type: textblock
13413 #: ../src/guestfs-actions.pod:5295 ../fish/guestfish-actions.pod:3539
13414 msgid ""
13415 "Remove the file or directory C<path>, recursively removing the contents if "
13416 "its a directory.  This is like the C<rm -rf> shell command."
13417 msgstr ""
13418
13419 # type: =head2
13420 #: ../src/guestfs-actions.pod:5303
13421 msgid "guestfs_rmdir"
13422 msgstr ""
13423
13424 # type: verbatim
13425 #: ../src/guestfs-actions.pod:5305
13426 #, no-wrap
13427 msgid ""
13428 " int\n"
13429 " guestfs_rmdir (guestfs_h *g,\n"
13430 "                const char *path);\n"
13431 "\n"
13432 msgstr ""
13433
13434 # type: textblock
13435 #: ../src/guestfs-actions.pod:5309 ../fish/guestfish-actions.pod:3547
13436 msgid "Remove the single directory C<path>."
13437 msgstr ""
13438
13439 # type: =head2
13440 #: ../src/guestfs-actions.pod:5315
13441 msgid "guestfs_rmmountpoint"
13442 msgstr ""
13443
13444 # type: verbatim
13445 #: ../src/guestfs-actions.pod:5317
13446 #, no-wrap
13447 msgid ""
13448 " int\n"
13449 " guestfs_rmmountpoint (guestfs_h *g,\n"
13450 "                       const char *exemptpath);\n"
13451 "\n"
13452 msgstr ""
13453
13454 # type: textblock
13455 #: ../src/guestfs-actions.pod:5321
13456 msgid ""
13457 "This calls removes a mountpoint that was previously created with "
13458 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13459 msgstr ""
13460
13461 # type: =head2
13462 #: ../src/guestfs-actions.pod:5329
13463 msgid "guestfs_scrub_device"
13464 msgstr ""
13465
13466 # type: verbatim
13467 #: ../src/guestfs-actions.pod:5331
13468 #, no-wrap
13469 msgid ""
13470 " int\n"
13471 " guestfs_scrub_device (guestfs_h *g,\n"
13472 "                       const char *device);\n"
13473 "\n"
13474 msgstr ""
13475
13476 # type: textblock
13477 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:3561
13478 msgid ""
13479 "This command writes patterns over C<device> to make data retrieval more "
13480 "difficult."
13481 msgstr ""
13482
13483 # type: textblock
13484 #: ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:5359
13485 #: ../src/guestfs-actions.pod:5378 ../fish/guestfish-actions.pod:3564
13486 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13487 msgid ""
13488 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13489 "more details."
13490 msgstr ""
13491
13492 # type: textblock
13493 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5364
13494 #: ../src/guestfs-actions.pod:5383
13495 msgid "(Added in 1.0.52)"
13496 msgstr ""
13497
13498 # type: =head2
13499 #: ../src/guestfs-actions.pod:5348
13500 msgid "guestfs_scrub_file"
13501 msgstr ""
13502
13503 # type: verbatim
13504 #: ../src/guestfs-actions.pod:5350
13505 #, no-wrap
13506 msgid ""
13507 " int\n"
13508 " guestfs_scrub_file (guestfs_h *g,\n"
13509 "                     const char *file);\n"
13510 "\n"
13511 msgstr ""
13512
13513 # type: textblock
13514 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3574
13515 msgid ""
13516 "This command writes patterns over a file to make data retrieval more "
13517 "difficult."
13518 msgstr ""
13519
13520 # type: textblock
13521 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3577
13522 msgid "The file is I<removed> after scrubbing."
13523 msgstr ""
13524
13525 # type: =head2
13526 #: ../src/guestfs-actions.pod:5366
13527 msgid "guestfs_scrub_freespace"
13528 msgstr ""
13529
13530 # type: verbatim
13531 #: ../src/guestfs-actions.pod:5368
13532 #, no-wrap
13533 msgid ""
13534 " int\n"
13535 " guestfs_scrub_freespace (guestfs_h *g,\n"
13536 "                          const char *dir);\n"
13537 "\n"
13538 msgstr ""
13539
13540 # type: textblock
13541 #: ../src/guestfs-actions.pod:5372
13542 msgid ""
13543 "This command creates the directory C<dir> and then fills it with files until "
13544 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13545 "and deletes them.  The intention is to scrub any free space on the partition "
13546 "containing C<dir>."
13547 msgstr ""
13548
13549 # type: =head2
13550 #: ../src/guestfs-actions.pod:5385
13551 msgid "guestfs_set_append"
13552 msgstr ""
13553
13554 # type: verbatim
13555 #: ../src/guestfs-actions.pod:5387
13556 #, no-wrap
13557 msgid ""
13558 " int\n"
13559 " guestfs_set_append (guestfs_h *g,\n"
13560 "                     const char *append);\n"
13561 "\n"
13562 msgstr ""
13563
13564 # type: textblock
13565 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:3601
13566 msgid ""
13567 "This function is used to add additional options to the guest kernel command "
13568 "line."
13569 msgstr ""
13570
13571 # type: textblock
13572 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3604
13573 msgid ""
13574 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13575 "environment variable."
13576 msgstr ""
13577
13578 # type: textblock
13579 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3607
13580 msgid ""
13581 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13582 "(libguestfs always adds a few of its own)."
13583 msgstr ""
13584
13585 # type: =head2
13586 #: ../src/guestfs-actions.pod:5404
13587 msgid "guestfs_set_autosync"
13588 msgstr ""
13589
13590 # type: verbatim
13591 #: ../src/guestfs-actions.pod:5406
13592 #, no-wrap
13593 msgid ""
13594 " int\n"
13595 " guestfs_set_autosync (guestfs_h *g,\n"
13596 "                       int autosync);\n"
13597 "\n"
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-actions.pod:5410
13602 msgid ""
13603 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13604 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13605 "the handle is closed (also if the program exits without closing handles)."
13606 msgstr ""
13607
13608 # type: textblock
13609 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3621
13610 msgid ""
13611 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13612 "disabled by default)."
13613 msgstr ""
13614
13615 # type: =head2
13616 #: ../src/guestfs-actions.pod:5422
13617 msgid "guestfs_set_direct"
13618 msgstr ""
13619
13620 # type: verbatim
13621 #: ../src/guestfs-actions.pod:5424
13622 #, no-wrap
13623 msgid ""
13624 " int\n"
13625 " guestfs_set_direct (guestfs_h *g,\n"
13626 "                     int direct);\n"
13627 "\n"
13628 msgstr ""
13629
13630 # type: textblock
13631 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3630
13632 msgid ""
13633 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13634 "passed directly through to the appliance once it is launched."
13635 msgstr ""
13636
13637 # type: textblock
13638 #: ../src/guestfs-actions.pod:5432
13639 msgid ""
13640 "One consequence of this is that log messages aren't caught by the library "
13641 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13642 "stdout."
13643 msgstr ""
13644
13645 # type: textblock
13646 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3638
13647 msgid "You probably don't want to use this unless you know what you are doing."
13648 msgstr ""
13649
13650 # type: textblock
13651 #: ../src/guestfs-actions.pod:5439 ../fish/guestfish-actions.pod:3641
13652 msgid "The default is disabled."
13653 msgstr ""
13654
13655 # type: =head2
13656 #: ../src/guestfs-actions.pod:5445
13657 msgid "guestfs_set_e2label"
13658 msgstr ""
13659
13660 # type: verbatim
13661 #: ../src/guestfs-actions.pod:5447
13662 #, no-wrap
13663 msgid ""
13664 " int\n"
13665 " guestfs_set_e2label (guestfs_h *g,\n"
13666 "                      const char *device,\n"
13667 "                      const char *label);\n"
13668 "\n"
13669 msgstr ""
13670
13671 # type: textblock
13672 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3647
13673 msgid ""
13674 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13675 "C<label>.  Filesystem labels are limited to 16 characters."
13676 msgstr ""
13677
13678 # type: textblock
13679 #: ../src/guestfs-actions.pod:5456
13680 msgid ""
13681 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13682 "the existing label on a filesystem."
13683 msgstr ""
13684
13685 # type: =head2
13686 #: ../src/guestfs-actions.pod:5463
13687 msgid "guestfs_set_e2uuid"
13688 msgstr ""
13689
13690 # type: verbatim
13691 #: ../src/guestfs-actions.pod:5465
13692 #, no-wrap
13693 msgid ""
13694 " int\n"
13695 " guestfs_set_e2uuid (guestfs_h *g,\n"
13696 "                     const char *device,\n"
13697 "                     const char *uuid);\n"
13698 "\n"
13699 msgstr ""
13700
13701 # type: textblock
13702 #: ../src/guestfs-actions.pod:5470 ../fish/guestfish-actions.pod:3658
13703 msgid ""
13704 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13705 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13706 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13707 msgstr ""
13708
13709 # type: textblock
13710 #: ../src/guestfs-actions.pod:5475
13711 msgid ""
13712 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13713 "the existing UUID of a filesystem."
13714 msgstr ""
13715
13716 # type: =head2
13717 #: ../src/guestfs-actions.pod:5482
13718 msgid "guestfs_set_memsize"
13719 msgstr ""
13720
13721 # type: verbatim
13722 #: ../src/guestfs-actions.pod:5484
13723 #, no-wrap
13724 msgid ""
13725 " int\n"
13726 " guestfs_set_memsize (guestfs_h *g,\n"
13727 "                      int memsize);\n"
13728 "\n"
13729 msgstr ""
13730
13731 # type: textblock
13732 #: ../src/guestfs-actions.pod:5488
13733 msgid ""
13734 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13735 "This only has any effect if called before C<guestfs_launch>."
13736 msgstr ""
13737
13738 # type: textblock
13739 #: ../src/guestfs-actions.pod:5492 ../fish/guestfish-actions.pod:3676
13740 msgid ""
13741 "You can also change this by setting the environment variable "
13742 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13743 msgstr ""
13744
13745 # type: =head2
13746 #: ../src/guestfs-actions.pod:5503
13747 msgid "guestfs_set_network"
13748 msgstr ""
13749
13750 # type: verbatim
13751 #: ../src/guestfs-actions.pod:5505
13752 #, no-wrap
13753 msgid ""
13754 " int\n"
13755 " guestfs_set_network (guestfs_h *g,\n"
13756 "                      int network);\n"
13757 "\n"
13758 msgstr ""
13759
13760 # type: textblock
13761 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3689
13762 msgid ""
13763 "If C<network> is true, then the network is enabled in the libguestfs "
13764 "appliance.  The default is false."
13765 msgstr ""
13766
13767 # type: textblock
13768 #: ../src/guestfs-actions.pod:5512 ../fish/guestfish-actions.pod:3692
13769 msgid ""
13770 "This affects whether commands are able to access the network (see L<guestfs"
13771 "(3)/RUNNING COMMANDS>)."
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5515
13776 msgid ""
13777 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13778 "effect."
13779 msgstr ""
13780
13781 # type: =head2
13782 #: ../src/guestfs-actions.pod:5522
13783 msgid "guestfs_set_path"
13784 msgstr ""
13785
13786 # type: verbatim
13787 #: ../src/guestfs-actions.pod:5524
13788 #, no-wrap
13789 msgid ""
13790 " int\n"
13791 " guestfs_set_path (guestfs_h *g,\n"
13792 "                   const char *searchpath);\n"
13793 "\n"
13794 msgstr ""
13795
13796 # type: textblock
13797 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3704
13798 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:3706
13803 msgid ""
13804 "The default is C<$libdir/guestfs> unless overridden by setting "
13805 "C<LIBGUESTFS_PATH> environment variable."
13806 msgstr ""
13807
13808 # type: textblock
13809 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3709
13810 msgid "Setting C<path> to C<NULL> restores the default path."
13811 msgstr ""
13812
13813 # type: =head2
13814 #: ../src/guestfs-actions.pod:5539
13815 msgid "guestfs_set_qemu"
13816 msgstr ""
13817
13818 # type: verbatim
13819 #: ../src/guestfs-actions.pod:5541
13820 #, no-wrap
13821 msgid ""
13822 " int\n"
13823 " guestfs_set_qemu (guestfs_h *g,\n"
13824 "                   const char *qemu);\n"
13825 "\n"
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5545 ../fish/guestfish-actions.pod:3717
13830 msgid "Set the qemu binary that we will use."
13831 msgstr ""
13832
13833 # type: textblock
13834 #: ../src/guestfs-actions.pod:5547 ../fish/guestfish-actions.pod:3719
13835 msgid ""
13836 "The default is chosen when the library was compiled by the configure script."
13837 msgstr ""
13838
13839 # type: textblock
13840 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3722
13841 msgid ""
13842 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13843 "variable."
13844 msgstr ""
13845
13846 # type: textblock
13847 #: ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:3725
13848 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13849 msgstr ""
13850
13851 # type: textblock
13852 #: ../src/guestfs-actions.pod:5555 ../fish/guestfish-actions.pod:3727
13853 msgid ""
13854 "Note that you should call this function as early as possible after creating "
13855 "the handle.  This is because some pre-launch operations depend on testing "
13856 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13857 "don't retest features, and so you might see inconsistent results.  Using the "
13858 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13859 "the qemu binary at the same time as the handle is created."
13860 msgstr ""
13861
13862 # type: =head2
13863 #: ../src/guestfs-actions.pod:5567
13864 msgid "guestfs_set_recovery_proc"
13865 msgstr ""
13866
13867 # type: verbatim
13868 #: ../src/guestfs-actions.pod:5569
13869 #, no-wrap
13870 msgid ""
13871 " int\n"
13872 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13873 "                            int recoveryproc);\n"
13874 "\n"
13875 msgstr ""
13876
13877 # type: textblock
13878 #: ../src/guestfs-actions.pod:5573
13879 msgid ""
13880 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13881 "not create a recovery process.  The purpose of the recovery process is to "
13882 "stop runaway qemu processes in the case where the main program aborts "
13883 "abruptly."
13884 msgstr ""
13885
13886 # type: textblock
13887 #: ../src/guestfs-actions.pod:5578
13888 msgid ""
13889 "This only has any effect if called before C<guestfs_launch>, and the default "
13890 "is true."
13891 msgstr ""
13892
13893 # type: textblock
13894 #: ../src/guestfs-actions.pod:5581 ../fish/guestfish-actions.pod:3749
13895 msgid ""
13896 "About the only time when you would want to disable this is if the main "
13897 "process will fork itself into the background (\"daemonize\" itself).  In "
13898 "this case the recovery process thinks that the main program has disappeared "
13899 "and so kills qemu, which is not very helpful."
13900 msgstr ""
13901
13902 # type: =head2
13903 #: ../src/guestfs-actions.pod:5591
13904 msgid "guestfs_set_selinux"
13905 msgstr ""
13906
13907 # type: verbatim
13908 #: ../src/guestfs-actions.pod:5593
13909 #, no-wrap
13910 msgid ""
13911 " int\n"
13912 " guestfs_set_selinux (guestfs_h *g,\n"
13913 "                      int selinux);\n"
13914 "\n"
13915 msgstr ""
13916
13917 # type: textblock
13918 #: ../src/guestfs-actions.pod:5597 ../fish/guestfish-actions.pod:3761
13919 msgid ""
13920 "This sets the selinux flag that is passed to the appliance at boot time.  "
13921 "The default is C<selinux=0> (disabled)."
13922 msgstr ""
13923
13924 # type: textblock
13925 #: ../src/guestfs-actions.pod:5600 ../fish/guestfish-actions.pod:3764
13926 msgid ""
13927 "Note that if SELinux is enabled, it is always in Permissive mode "
13928 "(C<enforcing=0>)."
13929 msgstr ""
13930
13931 # type: =head2
13932 #: ../src/guestfs-actions.pod:5610
13933 msgid "guestfs_set_trace"
13934 msgstr ""
13935
13936 # type: verbatim
13937 #: ../src/guestfs-actions.pod:5612
13938 #, no-wrap
13939 msgid ""
13940 " int\n"
13941 " guestfs_set_trace (guestfs_h *g,\n"
13942 "                    int trace);\n"
13943 "\n"
13944 msgstr ""
13945
13946 # type: textblock
13947 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3776
13948 msgid ""
13949 "If the command trace flag is set to 1, then commands are printed on stderr "
13950 "before they are executed in a format which is very similar to the one used "
13951 "by guestfish.  In other words, you can run a program with this enabled, and "
13952 "you will get out a script which you can feed to guestfish to perform the "
13953 "same set of actions."
13954 msgstr ""
13955
13956 # type: textblock
13957 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3783
13958 msgid ""
13959 "If you want to trace C API calls into libguestfs (and other libraries) then "
13960 "possibly a better way is to use the external ltrace(1) command."
13961 msgstr ""
13962
13963 # type: textblock
13964 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:3787
13965 msgid ""
13966 "Command traces are disabled unless the environment variable "
13967 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13968 msgstr ""
13969
13970 # type: =head2
13971 #: ../src/guestfs-actions.pod:5634
13972 msgid "guestfs_set_verbose"
13973 msgstr ""
13974
13975 # type: verbatim
13976 #: ../src/guestfs-actions.pod:5636
13977 #, no-wrap
13978 msgid ""
13979 " int\n"
13980 " guestfs_set_verbose (guestfs_h *g,\n"
13981 "                      int verbose);\n"
13982 "\n"
13983 msgstr ""
13984
13985 # type: textblock
13986 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:3796
13987 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13988 msgstr ""
13989
13990 # type: textblock
13991 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3798
13992 msgid ""
13993 "Verbose messages are disabled unless the environment variable "
13994 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13995 msgstr ""
13996
13997 # type: =head2
13998 #: ../src/guestfs-actions.pod:5649
13999 msgid "guestfs_setcon"
14000 msgstr ""
14001
14002 # type: verbatim
14003 #: ../src/guestfs-actions.pod:5651
14004 #, no-wrap
14005 msgid ""
14006 " int\n"
14007 " guestfs_setcon (guestfs_h *g,\n"
14008 "                 const char *context);\n"
14009 "\n"
14010 msgstr ""
14011
14012 # type: textblock
14013 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3805
14014 msgid ""
14015 "This sets the SELinux security context of the daemon to the string "
14016 "C<context>."
14017 msgstr ""
14018
14019 # type: textblock
14020 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:3808
14021 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14022 msgstr ""
14023
14024 # type: =head2
14025 #: ../src/guestfs-actions.pod:5664
14026 msgid "guestfs_setxattr"
14027 msgstr ""
14028
14029 # type: verbatim
14030 #: ../src/guestfs-actions.pod:5666
14031 #, no-wrap
14032 msgid ""
14033 " int\n"
14034 " guestfs_setxattr (guestfs_h *g,\n"
14035 "                   const char *xattr,\n"
14036 "                   const char *val,\n"
14037 "                   int vallen,\n"
14038 "                   const char *path);\n"
14039 "\n"
14040 msgstr ""
14041
14042 # type: textblock
14043 #: ../src/guestfs-actions.pod:5673 ../fish/guestfish-actions.pod:3814
14044 msgid ""
14045 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14046 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14047 msgstr ""
14048
14049 # type: textblock
14050 #: ../src/guestfs-actions.pod:5677
14051 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14052 msgstr ""
14053
14054 # type: =head2
14055 #: ../src/guestfs-actions.pod:5683
14056 msgid "guestfs_sfdisk"
14057 msgstr ""
14058
14059 # type: verbatim
14060 #: ../src/guestfs-actions.pod:5685
14061 #, no-wrap
14062 msgid ""
14063 " int\n"
14064 " guestfs_sfdisk (guestfs_h *g,\n"
14065 "                 const char *device,\n"
14066 "                 int cyls,\n"
14067 "                 int heads,\n"
14068 "                 int sectors,\n"
14069 "                 char *const *lines);\n"
14070 "\n"
14071 msgstr ""
14072
14073 # type: textblock
14074 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3824
14075 msgid ""
14076 "This is a direct interface to the L<sfdisk(8)> program for creating "
14077 "partitions on block devices."
14078 msgstr ""
14079
14080 # type: textblock
14081 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:3827
14082 msgid "C<device> should be a block device, for example C</dev/sda>."
14083 msgstr ""
14084
14085 # type: textblock
14086 #: ../src/guestfs-actions.pod:5698 ../fish/guestfish-actions.pod:3829
14087 msgid ""
14088 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14089 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14090 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14091 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14092 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14093 "the kernel) cannot work out the right geometry and you will need to tell it."
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3837
14098 msgid ""
14099 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14100 "refer to the L<sfdisk(8)> manpage."
14101 msgstr ""
14102
14103 # type: textblock
14104 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3840
14105 msgid ""
14106 "To create a single partition occupying the whole disk, you would pass "
14107 "C<lines> as a single element list, when the single element being the string "
14108 "C<,> (comma)."
14109 msgstr ""
14110
14111 # type: textblock
14112 #: ../src/guestfs-actions.pod:5713
14113 msgid ""
14114 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14115 msgstr ""
14116
14117 # type: =head2
14118 #: ../src/guestfs-actions.pod:5723
14119 msgid "guestfs_sfdiskM"
14120 msgstr ""
14121
14122 # type: verbatim
14123 #: ../src/guestfs-actions.pod:5725
14124 #, no-wrap
14125 msgid ""
14126 " int\n"
14127 " guestfs_sfdiskM (guestfs_h *g,\n"
14128 "                  const char *device,\n"
14129 "                  char *const *lines);\n"
14130 "\n"
14131 msgstr ""
14132
14133 # type: textblock
14134 #: ../src/guestfs-actions.pod:5730
14135 msgid ""
14136 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14137 "partition sizes are specified in megabytes only (rounded to the nearest "
14138 "cylinder) and you don't need to specify the cyls, heads and sectors "
14139 "parameters which were rarely if ever used anyway."
14140 msgstr ""
14141
14142 # type: textblock
14143 #: ../src/guestfs-actions.pod:5736
14144 msgid ""
14145 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14146 "C<guestfs_part_disk>"
14147 msgstr ""
14148
14149 # type: =head2
14150 #: ../src/guestfs-actions.pod:5746
14151 msgid "guestfs_sfdisk_N"
14152 msgstr ""
14153
14154 # type: verbatim
14155 #: ../src/guestfs-actions.pod:5748
14156 #, no-wrap
14157 msgid ""
14158 " int\n"
14159 " guestfs_sfdisk_N (guestfs_h *g,\n"
14160 "                   const char *device,\n"
14161 "                   int partnum,\n"
14162 "                   int cyls,\n"
14163 "                   int heads,\n"
14164 "                   int sectors,\n"
14165 "                   const char *line);\n"
14166 "\n"
14167 msgstr ""
14168
14169 # type: textblock
14170 #: ../src/guestfs-actions.pod:5757 ../fish/guestfish-actions.pod:3870
14171 msgid ""
14172 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14173 "(note: C<n> counts from 1)."
14174 msgstr ""
14175
14176 # type: textblock
14177 #: ../src/guestfs-actions.pod:5760
14178 msgid ""
14179 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14180 "for the cyls/heads/sectors parameters."
14181 msgstr ""
14182
14183 # type: textblock
14184 #: ../src/guestfs-actions.pod:5763
14185 msgid "See also: C<guestfs_part_add>"
14186 msgstr ""
14187
14188 # type: =head2
14189 #: ../src/guestfs-actions.pod:5772
14190 msgid "guestfs_sfdisk_disk_geometry"
14191 msgstr ""
14192
14193 # type: verbatim
14194 #: ../src/guestfs-actions.pod:5774
14195 #, no-wrap
14196 msgid ""
14197 " char *\n"
14198 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14199 "                               const char *device);\n"
14200 "\n"
14201 msgstr ""
14202
14203 # type: textblock
14204 #: ../src/guestfs-actions.pod:5778
14205 msgid ""
14206 "This displays the disk geometry of C<device> read from the partition table.  "
14207 "Especially in the case where the underlying block device has been resized, "
14208 "this can be different from the kernel's idea of the geometry (see "
14209 "C<guestfs_sfdisk_kernel_geometry>)."
14210 msgstr ""
14211
14212 # type: textblock
14213 #: ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5799
14214 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14215 msgid "The result is in human-readable format, and not designed to be parsed."
14216 msgstr ""
14217
14218 # type: =head2
14219 #: ../src/guestfs-actions.pod:5791
14220 msgid "guestfs_sfdisk_kernel_geometry"
14221 msgstr ""
14222
14223 # type: verbatim
14224 #: ../src/guestfs-actions.pod:5793
14225 #, no-wrap
14226 msgid ""
14227 " char *\n"
14228 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14229 "                                 const char *device);\n"
14230 "\n"
14231 msgstr ""
14232
14233 # type: textblock
14234 #: ../src/guestfs-actions.pod:5797 ../fish/guestfish-actions.pod:3897
14235 msgid "This displays the kernel's idea of the geometry of C<device>."
14236 msgstr ""
14237
14238 # type: =head2
14239 #: ../src/guestfs-actions.pod:5807
14240 msgid "guestfs_sfdisk_l"
14241 msgstr ""
14242
14243 # type: verbatim
14244 #: ../src/guestfs-actions.pod:5809
14245 #, no-wrap
14246 msgid ""
14247 " char *\n"
14248 " guestfs_sfdisk_l (guestfs_h *g,\n"
14249 "                   const char *device);\n"
14250 "\n"
14251 msgstr ""
14252
14253 # type: textblock
14254 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3906
14255 msgid ""
14256 "This displays the partition table on C<device>, in the human-readable output "
14257 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14258 msgstr ""
14259
14260 # type: textblock
14261 #: ../src/guestfs-actions.pod:5817
14262 msgid "See also: C<guestfs_part_list>"
14263 msgstr ""
14264
14265 # type: =head2
14266 #: ../src/guestfs-actions.pod:5824
14267 msgid "guestfs_sh"
14268 msgstr ""
14269
14270 # type: verbatim
14271 #: ../src/guestfs-actions.pod:5826
14272 #, no-wrap
14273 msgid ""
14274 " char *\n"
14275 " guestfs_sh (guestfs_h *g,\n"
14276 "             const char *command);\n"
14277 "\n"
14278 msgstr ""
14279
14280 # type: textblock
14281 #: ../src/guestfs-actions.pod:5830 ../fish/guestfish-actions.pod:3916
14282 msgid ""
14283 "This call runs a command from the guest filesystem via the guest's C</bin/"
14284 "sh>."
14285 msgstr ""
14286
14287 # type: textblock
14288 #: ../src/guestfs-actions.pod:5833
14289 msgid "This is like C<guestfs_command>, but passes the command to:"
14290 msgstr ""
14291
14292 # type: verbatim
14293 #: ../src/guestfs-actions.pod:5835 ../fish/guestfish-actions.pod:3921
14294 #, no-wrap
14295 msgid ""
14296 " /bin/sh -c \"command\"\n"
14297 "\n"
14298 msgstr ""
14299
14300 # type: textblock
14301 #: ../src/guestfs-actions.pod:5837 ../fish/guestfish-actions.pod:3923
14302 msgid ""
14303 "Depending on the guest's shell, this usually results in wildcards being "
14304 "expanded, shell expressions being interpolated and so on."
14305 msgstr ""
14306
14307 # type: textblock
14308 #: ../src/guestfs-actions.pod:5841
14309 msgid "All the provisos about C<guestfs_command> apply to this call."
14310 msgstr ""
14311
14312 # type: =head2
14313 #: ../src/guestfs-actions.pod:5848
14314 msgid "guestfs_sh_lines"
14315 msgstr ""
14316
14317 # type: verbatim
14318 #: ../src/guestfs-actions.pod:5850
14319 #, no-wrap
14320 msgid ""
14321 " char **\n"
14322 " guestfs_sh_lines (guestfs_h *g,\n"
14323 "                   const char *command);\n"
14324 "\n"
14325 msgstr ""
14326
14327 # type: textblock
14328 #: ../src/guestfs-actions.pod:5854
14329 msgid ""
14330 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14331 "lines."
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:5857
14336 msgid "See also: C<guestfs_command_lines>"
14337 msgstr ""
14338
14339 # type: =head2
14340 #: ../src/guestfs-actions.pod:5865
14341 msgid "guestfs_sleep"
14342 msgstr ""
14343
14344 # type: verbatim
14345 #: ../src/guestfs-actions.pod:5867
14346 #, no-wrap
14347 msgid ""
14348 " int\n"
14349 " guestfs_sleep (guestfs_h *g,\n"
14350 "                int secs);\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: textblock
14355 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3942
14356 msgid "Sleep for C<secs> seconds."
14357 msgstr ""
14358
14359 # type: textblock
14360 #: ../src/guestfs-actions.pod:5875
14361 msgid "(Added in 1.0.41)"
14362 msgstr ""
14363
14364 # type: =head2
14365 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-structs.pod:109
14366 msgid "guestfs_stat"
14367 msgstr ""
14368
14369 # type: verbatim
14370 #: ../src/guestfs-actions.pod:5879
14371 #, no-wrap
14372 msgid ""
14373 " struct guestfs_stat *\n"
14374 " guestfs_stat (guestfs_h *g,\n"
14375 "               const char *path);\n"
14376 "\n"
14377 msgstr ""
14378
14379 # type: textblock
14380 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3950
14381 msgid "This is the same as the C<stat(2)> system call."
14382 msgstr ""
14383
14384 # type: =head2
14385 #: ../src/guestfs-actions.pod:5893 ../src/guestfs-structs.pod:135
14386 msgid "guestfs_statvfs"
14387 msgstr ""
14388
14389 # type: verbatim
14390 #: ../src/guestfs-actions.pod:5895
14391 #, no-wrap
14392 msgid ""
14393 " struct guestfs_statvfs *\n"
14394 " guestfs_statvfs (guestfs_h *g,\n"
14395 "                  const char *path);\n"
14396 "\n"
14397 msgstr ""
14398
14399 # type: textblock
14400 #: ../src/guestfs-actions.pod:5899 ../fish/guestfish-actions.pod:3956
14401 msgid ""
14402 "Returns file system statistics for any mounted file system.  C<path> should "
14403 "be a file or directory in the mounted file system (typically it is the mount "
14404 "point itself, but it doesn't need to be)."
14405 msgstr ""
14406
14407 # type: textblock
14408 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3960
14409 msgid "This is the same as the C<statvfs(2)> system call."
14410 msgstr ""
14411
14412 # type: textblock
14413 #: ../src/guestfs-actions.pod:5905
14414 msgid ""
14415 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14416 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14417 msgstr ""
14418
14419 # type: =head2
14420 #: ../src/guestfs-actions.pod:5911
14421 msgid "guestfs_strings"
14422 msgstr ""
14423
14424 # type: verbatim
14425 #: ../src/guestfs-actions.pod:5913
14426 #, no-wrap
14427 msgid ""
14428 " char **\n"
14429 " guestfs_strings (guestfs_h *g,\n"
14430 "                  const char *path);\n"
14431 "\n"
14432 msgstr ""
14433
14434 # type: textblock
14435 #: ../src/guestfs-actions.pod:5917 ../fish/guestfish-actions.pod:3966
14436 msgid ""
14437 "This runs the L<strings(1)> command on a file and returns the list of "
14438 "printable strings found."
14439 msgstr ""
14440
14441 # type: =head2
14442 #: ../src/guestfs-actions.pod:5929
14443 msgid "guestfs_strings_e"
14444 msgstr ""
14445
14446 # type: verbatim
14447 #: ../src/guestfs-actions.pod:5931
14448 #, no-wrap
14449 msgid ""
14450 " char **\n"
14451 " guestfs_strings_e (guestfs_h *g,\n"
14452 "                    const char *encoding,\n"
14453 "                    const char *path);\n"
14454 "\n"
14455 msgstr ""
14456
14457 # type: textblock
14458 #: ../src/guestfs-actions.pod:5936
14459 msgid ""
14460 "This is like the C<guestfs_strings> command, but allows you to specify the "
14461 "encoding of strings that are looked for in the source file C<path>."
14462 msgstr ""
14463
14464 # type: textblock
14465 #: ../src/guestfs-actions.pod:5940 ../fish/guestfish-actions.pod:3980
14466 msgid "Allowed encodings are:"
14467 msgstr ""
14468
14469 # type: =item
14470 #: ../src/guestfs-actions.pod:5944 ../fish/guestfish-actions.pod:3984
14471 msgid "s"
14472 msgstr ""
14473
14474 # type: textblock
14475 #: ../src/guestfs-actions.pod:5946
14476 msgid ""
14477 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14478 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14479 msgstr ""
14480
14481 # type: =item
14482 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:3989
14483 msgid "S"
14484 msgstr ""
14485
14486 # type: textblock
14487 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3991
14488 msgid "Single 8-bit-byte characters."
14489 msgstr ""
14490
14491 # type: =item
14492 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3993
14493 msgid "b"
14494 msgstr ""
14495
14496 # type: textblock
14497 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:3995
14498 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14499 msgstr ""
14500
14501 # type: =item
14502 #: ../src/guestfs-actions.pod:5958 ../fish/guestfish-actions.pod:3998
14503 msgid "l (lower case letter L)"
14504 msgstr ""
14505
14506 # type: textblock
14507 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:4000
14508 msgid ""
14509 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14510 "examining binaries in Windows guests."
14511 msgstr ""
14512
14513 # type: =item
14514 #: ../src/guestfs-actions.pod:5963 ../fish/guestfish-actions.pod:4003
14515 msgid "B"
14516 msgstr ""
14517
14518 # type: textblock
14519 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:4005
14520 msgid "32-bit big endian such as UCS-4BE."
14521 msgstr ""
14522
14523 # type: =item
14524 #: ../src/guestfs-actions.pod:5967 ../fish/guestfish-actions.pod:4007
14525 msgid "L"
14526 msgstr ""
14527
14528 # type: textblock
14529 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:4009
14530 msgid "32-bit little endian such as UCS-4LE."
14531 msgstr ""
14532
14533 # type: textblock
14534 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:4013
14535 msgid "The returned strings are transcoded to UTF-8."
14536 msgstr ""
14537
14538 # type: =head2
14539 #: ../src/guestfs-actions.pod:5984
14540 msgid "guestfs_swapoff_device"
14541 msgstr ""
14542
14543 # type: verbatim
14544 #: ../src/guestfs-actions.pod:5986
14545 #, no-wrap
14546 msgid ""
14547 " int\n"
14548 " guestfs_swapoff_device (guestfs_h *g,\n"
14549 "                         const char *device);\n"
14550 "\n"
14551 msgstr ""
14552
14553 # type: textblock
14554 #: ../src/guestfs-actions.pod:5990
14555 msgid ""
14556 "This command disables the libguestfs appliance swap device or partition "
14557 "named C<device>.  See C<guestfs_swapon_device>."
14558 msgstr ""
14559
14560 # type: =head2
14561 #: ../src/guestfs-actions.pod:5998
14562 msgid "guestfs_swapoff_file"
14563 msgstr ""
14564
14565 # type: verbatim
14566 #: ../src/guestfs-actions.pod:6000
14567 #, no-wrap
14568 msgid ""
14569 " int\n"
14570 " guestfs_swapoff_file (guestfs_h *g,\n"
14571 "                       const char *file);\n"
14572 "\n"
14573 msgstr ""
14574
14575 # type: textblock
14576 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4030
14577 msgid "This command disables the libguestfs appliance swap on file."
14578 msgstr ""
14579
14580 # type: =head2
14581 #: ../src/guestfs-actions.pod:6010
14582 msgid "guestfs_swapoff_label"
14583 msgstr ""
14584
14585 # type: verbatim
14586 #: ../src/guestfs-actions.pod:6012
14587 #, no-wrap
14588 msgid ""
14589 " int\n"
14590 " guestfs_swapoff_label (guestfs_h *g,\n"
14591 "                        const char *label);\n"
14592 "\n"
14593 msgstr ""
14594
14595 # type: textblock
14596 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4036
14597 msgid ""
14598 "This command disables the libguestfs appliance swap on labeled swap "
14599 "partition."
14600 msgstr ""
14601
14602 # type: =head2
14603 #: ../src/guestfs-actions.pod:6023
14604 msgid "guestfs_swapoff_uuid"
14605 msgstr ""
14606
14607 # type: verbatim
14608 #: ../src/guestfs-actions.pod:6025
14609 #, no-wrap
14610 msgid ""
14611 " int\n"
14612 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14613 "                       const char *uuid);\n"
14614 "\n"
14615 msgstr ""
14616
14617 # type: textblock
14618 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4043
14619 msgid ""
14620 "This command disables the libguestfs appliance swap partition with the given "
14621 "UUID."
14622 msgstr ""
14623
14624 # type: =head2
14625 #: ../src/guestfs-actions.pod:6036
14626 msgid "guestfs_swapon_device"
14627 msgstr ""
14628
14629 # type: verbatim
14630 #: ../src/guestfs-actions.pod:6038
14631 #, no-wrap
14632 msgid ""
14633 " int\n"
14634 " guestfs_swapon_device (guestfs_h *g,\n"
14635 "                        const char *device);\n"
14636 "\n"
14637 msgstr ""
14638
14639 # type: textblock
14640 #: ../src/guestfs-actions.pod:6042
14641 msgid ""
14642 "This command enables the libguestfs appliance to use the swap device or "
14643 "partition named C<device>.  The increased memory is made available for all "
14644 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14645 msgstr ""
14646
14647 # type: textblock
14648 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4055
14649 msgid ""
14650 "Note that you should not swap to existing guest swap partitions unless you "
14651 "know what you are doing.  They may contain hibernation information, or other "
14652 "information that the guest doesn't want you to trash.  You also risk leaking "
14653 "information about the host to the guest this way.  Instead, attach a new "
14654 "host device to the guest and swap on that."
14655 msgstr ""
14656
14657 # type: =head2
14658 #: ../src/guestfs-actions.pod:6058
14659 msgid "guestfs_swapon_file"
14660 msgstr ""
14661
14662 # type: verbatim
14663 #: ../src/guestfs-actions.pod:6060
14664 #, no-wrap
14665 msgid ""
14666 " int\n"
14667 " guestfs_swapon_file (guestfs_h *g,\n"
14668 "                      const char *file);\n"
14669 "\n"
14670 msgstr ""
14671
14672 # type: textblock
14673 #: ../src/guestfs-actions.pod:6064
14674 msgid ""
14675 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14676 "notes."
14677 msgstr ""
14678
14679 # type: =head2
14680 #: ../src/guestfs-actions.pod:6071
14681 msgid "guestfs_swapon_label"
14682 msgstr ""
14683
14684 # type: verbatim
14685 #: ../src/guestfs-actions.pod:6073
14686 #, no-wrap
14687 msgid ""
14688 " int\n"
14689 " guestfs_swapon_label (guestfs_h *g,\n"
14690 "                       const char *label);\n"
14691 "\n"
14692 msgstr ""
14693
14694 # type: textblock
14695 #: ../src/guestfs-actions.pod:6077
14696 msgid ""
14697 "This command enables swap to a labeled swap partition.  See "
14698 "C<guestfs_swapon_device> for other notes."
14699 msgstr ""
14700
14701 # type: =head2
14702 #: ../src/guestfs-actions.pod:6084
14703 msgid "guestfs_swapon_uuid"
14704 msgstr ""
14705
14706 # type: verbatim
14707 #: ../src/guestfs-actions.pod:6086
14708 #, no-wrap
14709 msgid ""
14710 " int\n"
14711 " guestfs_swapon_uuid (guestfs_h *g,\n"
14712 "                      const char *uuid);\n"
14713 "\n"
14714 msgstr ""
14715
14716 # type: textblock
14717 #: ../src/guestfs-actions.pod:6090
14718 msgid ""
14719 "This command enables swap to a swap partition with the given UUID.  See "
14720 "C<guestfs_swapon_device> for other notes."
14721 msgstr ""
14722
14723 # type: =head2
14724 #: ../src/guestfs-actions.pod:6097
14725 msgid "guestfs_sync"
14726 msgstr ""
14727
14728 # type: verbatim
14729 #: ../src/guestfs-actions.pod:6099
14730 #, no-wrap
14731 msgid ""
14732 " int\n"
14733 " guestfs_sync (guestfs_h *g);\n"
14734 "\n"
14735 msgstr ""
14736
14737 # type: textblock
14738 #: ../src/guestfs-actions.pod:6102 ../fish/guestfish-actions.pod:4087
14739 msgid ""
14740 "This syncs the disk, so that any writes are flushed through to the "
14741 "underlying disk image."
14742 msgstr ""
14743
14744 # type: textblock
14745 #: ../src/guestfs-actions.pod:6105 ../fish/guestfish-actions.pod:4090
14746 msgid ""
14747 "You should always call this if you have modified a disk image, before "
14748 "closing the handle."
14749 msgstr ""
14750
14751 # type: =head2
14752 #: ../src/guestfs-actions.pod:6112
14753 msgid "guestfs_tail"
14754 msgstr ""
14755
14756 # type: verbatim
14757 #: ../src/guestfs-actions.pod:6114
14758 #, no-wrap
14759 msgid ""
14760 " char **\n"
14761 " guestfs_tail (guestfs_h *g,\n"
14762 "               const char *path);\n"
14763 "\n"
14764 msgstr ""
14765
14766 # type: textblock
14767 #: ../src/guestfs-actions.pod:6118 ../fish/guestfish-actions.pod:4097
14768 msgid ""
14769 "This command returns up to the last 10 lines of a file as a list of strings."
14770 msgstr ""
14771
14772 # type: =head2
14773 #: ../src/guestfs-actions.pod:6130
14774 msgid "guestfs_tail_n"
14775 msgstr ""
14776
14777 # type: verbatim
14778 #: ../src/guestfs-actions.pod:6132
14779 #, no-wrap
14780 msgid ""
14781 " char **\n"
14782 " guestfs_tail_n (guestfs_h *g,\n"
14783 "                 int nrlines,\n"
14784 "                 const char *path);\n"
14785 "\n"
14786 msgstr ""
14787
14788 # type: textblock
14789 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4107
14790 msgid ""
14791 "If the parameter C<nrlines> is a positive number, this returns the last "
14792 "C<nrlines> lines of the file C<path>."
14793 msgstr ""
14794
14795 # type: textblock
14796 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4110
14797 msgid ""
14798 "If the parameter C<nrlines> is a negative number, this returns lines from "
14799 "the file C<path>, starting with the C<-nrlines>th line."
14800 msgstr ""
14801
14802 # type: =head2
14803 #: ../src/guestfs-actions.pod:6154
14804 msgid "guestfs_tar_in"
14805 msgstr ""
14806
14807 # type: verbatim
14808 #: ../src/guestfs-actions.pod:6156
14809 #, no-wrap
14810 msgid ""
14811 " int\n"
14812 " guestfs_tar_in (guestfs_h *g,\n"
14813 "                 const char *tarfile,\n"
14814 "                 const char *directory);\n"
14815 "\n"
14816 msgstr ""
14817
14818 # type: textblock
14819 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4122
14820 msgid ""
14821 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14822 "tar file) into C<directory>."
14823 msgstr ""
14824
14825 # type: textblock
14826 #: ../src/guestfs-actions.pod:6164
14827 msgid ""
14828 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14829 msgstr ""
14830
14831 # type: textblock
14832 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6186
14833 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6218
14834 msgid "(Added in 1.0.3)"
14835 msgstr ""
14836
14837 # type: =head2
14838 #: ../src/guestfs-actions.pod:6171
14839 msgid "guestfs_tar_out"
14840 msgstr ""
14841
14842 # type: verbatim
14843 #: ../src/guestfs-actions.pod:6173
14844 #, no-wrap
14845 msgid ""
14846 " int\n"
14847 " guestfs_tar_out (guestfs_h *g,\n"
14848 "                  const char *directory,\n"
14849 "                  const char *tarfile);\n"
14850 "\n"
14851 msgstr ""
14852
14853 # type: textblock
14854 #: ../src/guestfs-actions.pod:6178 ../fish/guestfish-actions.pod:4134
14855 msgid ""
14856 "This command packs the contents of C<directory> and downloads it to local "
14857 "file C<tarfile>."
14858 msgstr ""
14859
14860 # type: textblock
14861 #: ../src/guestfs-actions.pod:6181
14862 msgid ""
14863 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14864 "C<guestfs_txz_out>."
14865 msgstr ""
14866
14867 # type: =head2
14868 #: ../src/guestfs-actions.pod:6188
14869 msgid "guestfs_tgz_in"
14870 msgstr ""
14871
14872 # type: verbatim
14873 #: ../src/guestfs-actions.pod:6190
14874 #, no-wrap
14875 msgid ""
14876 " int\n"
14877 " guestfs_tgz_in (guestfs_h *g,\n"
14878 "                 const char *tarball,\n"
14879 "                 const char *directory);\n"
14880 "\n"
14881 msgstr ""
14882
14883 # type: textblock
14884 #: ../src/guestfs-actions.pod:6195 ../fish/guestfish-actions.pod:4146
14885 msgid ""
14886 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14887 "tar file) into C<directory>."
14888 msgstr ""
14889
14890 # type: textblock
14891 #: ../src/guestfs-actions.pod:6198
14892 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14893 msgstr ""
14894
14895 # type: =head2
14896 #: ../src/guestfs-actions.pod:6204
14897 msgid "guestfs_tgz_out"
14898 msgstr ""
14899
14900 # type: verbatim
14901 #: ../src/guestfs-actions.pod:6206
14902 #, no-wrap
14903 msgid ""
14904 " int\n"
14905 " guestfs_tgz_out (guestfs_h *g,\n"
14906 "                  const char *directory,\n"
14907 "                  const char *tarball);\n"
14908 "\n"
14909 msgstr ""
14910
14911 # type: textblock
14912 #: ../src/guestfs-actions.pod:6211 ../fish/guestfish-actions.pod:4157
14913 msgid ""
14914 "This command packs the contents of C<directory> and downloads it to local "
14915 "file C<tarball>."
14916 msgstr ""
14917
14918 # type: textblock
14919 #: ../src/guestfs-actions.pod:6214
14920 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14921 msgstr ""
14922
14923 # type: =head2
14924 #: ../src/guestfs-actions.pod:6220
14925 msgid "guestfs_touch"
14926 msgstr ""
14927
14928 # type: verbatim
14929 #: ../src/guestfs-actions.pod:6222
14930 #, no-wrap
14931 msgid ""
14932 " int\n"
14933 " guestfs_touch (guestfs_h *g,\n"
14934 "                const char *path);\n"
14935 "\n"
14936 msgstr ""
14937
14938 # type: textblock
14939 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4168
14940 msgid ""
14941 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14942 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14943 "length file."
14944 msgstr ""
14945
14946 # type: textblock
14947 #: ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4172
14948 msgid ""
14949 "This command only works on regular files, and will fail on other file types "
14950 "such as directories, symbolic links, block special etc."
14951 msgstr ""
14952
14953 # type: =head2
14954 #: ../src/guestfs-actions.pod:6237
14955 msgid "guestfs_truncate"
14956 msgstr ""
14957
14958 # type: verbatim
14959 #: ../src/guestfs-actions.pod:6239
14960 #, no-wrap
14961 msgid ""
14962 " int\n"
14963 " guestfs_truncate (guestfs_h *g,\n"
14964 "                   const char *path);\n"
14965 "\n"
14966 msgstr ""
14967
14968 # type: textblock
14969 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4179
14970 msgid ""
14971 "This command truncates C<path> to a zero-length file.  The file must exist "
14972 "already."
14973 msgstr ""
14974
14975 # type: =head2
14976 #: ../src/guestfs-actions.pod:6250
14977 msgid "guestfs_truncate_size"
14978 msgstr ""
14979
14980 # type: verbatim
14981 #: ../src/guestfs-actions.pod:6252
14982 #, no-wrap
14983 msgid ""
14984 " int\n"
14985 " guestfs_truncate_size (guestfs_h *g,\n"
14986 "                        const char *path,\n"
14987 "                        int64_t size);\n"
14988 "\n"
14989 msgstr ""
14990
14991 # type: textblock
14992 #: ../src/guestfs-actions.pod:6257 ../fish/guestfish-actions.pod:4186
14993 msgid ""
14994 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14995 "already."
14996 msgstr ""
14997
14998 # type: textblock
14999 #: ../src/guestfs-actions.pod:6260
15000 msgid ""
15001 "If the current file size is less than C<size> then the file is extended to "
15002 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15003 "blocks are not allocated for the file until you write to it).  To create a "
15004 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
15005 msgstr ""
15006
15007 # type: =head2
15008 #: ../src/guestfs-actions.pod:6270
15009 msgid "guestfs_tune2fs_l"
15010 msgstr ""
15011
15012 # type: verbatim
15013 #: ../src/guestfs-actions.pod:6272
15014 #, no-wrap
15015 msgid ""
15016 " char **\n"
15017 " guestfs_tune2fs_l (guestfs_h *g,\n"
15018 "                    const char *device);\n"
15019 "\n"
15020 msgstr ""
15021
15022 # type: textblock
15023 #: ../src/guestfs-actions.pod:6276 ../fish/guestfish-actions.pod:4199
15024 msgid ""
15025 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15026 "C<device>."
15027 msgstr ""
15028
15029 # type: textblock
15030 #: ../src/guestfs-actions.pod:6279 ../fish/guestfish-actions.pod:4202
15031 msgid ""
15032 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15033 "for more details.  The list of fields returned isn't clearly defined, and "
15034 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15035 "and the filesystem itself."
15036 msgstr ""
15037
15038 # type: =head2
15039 #: ../src/guestfs-actions.pod:6292
15040 msgid "guestfs_txz_in"
15041 msgstr ""
15042
15043 # type: verbatim
15044 #: ../src/guestfs-actions.pod:6294
15045 #, no-wrap
15046 msgid ""
15047 " int\n"
15048 " guestfs_txz_in (guestfs_h *g,\n"
15049 "                 const char *tarball,\n"
15050 "                 const char *directory);\n"
15051 "\n"
15052 msgstr ""
15053
15054 # type: textblock
15055 #: ../src/guestfs-actions.pod:6299 ../fish/guestfish-actions.pod:4211
15056 msgid ""
15057 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15058 "tar file) into C<directory>."
15059 msgstr ""
15060
15061 # type: =head2
15062 #: ../src/guestfs-actions.pod:6306
15063 msgid "guestfs_txz_out"
15064 msgstr ""
15065
15066 # type: verbatim
15067 #: ../src/guestfs-actions.pod:6308
15068 #, no-wrap
15069 msgid ""
15070 " int\n"
15071 " guestfs_txz_out (guestfs_h *g,\n"
15072 "                  const char *directory,\n"
15073 "                  const char *tarball);\n"
15074 "\n"
15075 msgstr ""
15076
15077 # type: textblock
15078 #: ../src/guestfs-actions.pod:6313 ../fish/guestfish-actions.pod:4220
15079 msgid ""
15080 "This command packs the contents of C<directory> and downloads it to local "
15081 "file C<tarball> (as an xz compressed tar archive)."
15082 msgstr ""
15083
15084 # type: =head2
15085 #: ../src/guestfs-actions.pod:6320
15086 msgid "guestfs_umask"
15087 msgstr ""
15088
15089 # type: verbatim
15090 #: ../src/guestfs-actions.pod:6322
15091 #, no-wrap
15092 msgid ""
15093 " int\n"
15094 " guestfs_umask (guestfs_h *g,\n"
15095 "                int mask);\n"
15096 "\n"
15097 msgstr ""
15098
15099 # type: textblock
15100 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4229
15101 msgid ""
15102 "This function sets the mask used for creating new files and device nodes to "
15103 "C<mask & 0777>."
15104 msgstr ""
15105
15106 # type: textblock
15107 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4232
15108 msgid ""
15109 "Typical umask values would be C<022> which creates new files with "
15110 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15111 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15112 msgstr ""
15113
15114 # type: textblock
15115 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4237
15116 msgid ""
15117 "The default umask is C<022>.  This is important because it means that "
15118 "directories and device nodes will be created with C<0644> or C<0755> mode "
15119 "even if you specify C<0777>."
15120 msgstr ""
15121
15122 # type: textblock
15123 #: ../src/guestfs-actions.pod:6338
15124 msgid ""
15125 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15126 "C<guestfs_mkdir>."
15127 msgstr ""
15128
15129 # type: textblock
15130 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4244
15131 msgid "This call returns the previous umask."
15132 msgstr ""
15133
15134 # type: =head2
15135 #: ../src/guestfs-actions.pod:6347
15136 msgid "guestfs_umount"
15137 msgstr ""
15138
15139 # type: verbatim
15140 #: ../src/guestfs-actions.pod:6349
15141 #, no-wrap
15142 msgid ""
15143 " int\n"
15144 " guestfs_umount (guestfs_h *g,\n"
15145 "                 const char *pathordevice);\n"
15146 "\n"
15147 msgstr ""
15148
15149 # type: textblock
15150 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4252
15151 msgid ""
15152 "This unmounts the given filesystem.  The filesystem may be specified either "
15153 "by its mountpoint (path) or the device which contains the filesystem."
15154 msgstr ""
15155
15156 # type: =head2
15157 #: ../src/guestfs-actions.pod:6361
15158 msgid "guestfs_umount_all"
15159 msgstr ""
15160
15161 # type: verbatim
15162 #: ../src/guestfs-actions.pod:6363
15163 #, no-wrap
15164 msgid ""
15165 " int\n"
15166 " guestfs_umount_all (guestfs_h *g);\n"
15167 "\n"
15168 msgstr ""
15169
15170 # type: textblock
15171 #: ../src/guestfs-actions.pod:6366 ../fish/guestfish-actions.pod:4262
15172 msgid "This unmounts all mounted filesystems."
15173 msgstr ""
15174
15175 # type: textblock
15176 #: ../src/guestfs-actions.pod:6368 ../fish/guestfish-actions.pod:4264
15177 msgid "Some internal mounts are not unmounted by this call."
15178 msgstr ""
15179
15180 # type: =head2
15181 #: ../src/guestfs-actions.pod:6374
15182 msgid "guestfs_upload"
15183 msgstr ""
15184
15185 # type: verbatim
15186 #: ../src/guestfs-actions.pod:6376
15187 #, no-wrap
15188 msgid ""
15189 " int\n"
15190 " guestfs_upload (guestfs_h *g,\n"
15191 "                 const char *filename,\n"
15192 "                 const char *remotefilename);\n"
15193 "\n"
15194 msgstr ""
15195
15196 # type: textblock
15197 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6405
15198 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15199 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15200 msgstr ""
15201
15202 # type: textblock
15203 #: ../src/guestfs-actions.pod:6386
15204 msgid "See also C<guestfs_download>."
15205 msgstr ""
15206
15207 # type: =head2
15208 #: ../src/guestfs-actions.pod:6397
15209 msgid "guestfs_upload_offset"
15210 msgstr ""
15211
15212 # type: verbatim
15213 #: ../src/guestfs-actions.pod:6399
15214 #, no-wrap
15215 msgid ""
15216 " int\n"
15217 " guestfs_upload_offset (guestfs_h *g,\n"
15218 "                        const char *filename,\n"
15219 "                        const char *remotefilename,\n"
15220 "                        int64_t offset);\n"
15221 "\n"
15222 msgstr ""
15223
15224 # type: textblock
15225 #: ../src/guestfs-actions.pod:6408 ../fish/guestfish-actions.pod:4286
15226 msgid ""
15227 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15228 "The intention is to overwrite parts of existing files or devices, although "
15229 "if a non-existant file is specified then it is created with a \"hole\" "
15230 "before C<offset>.  The size of the data written is implicit in the size of "
15231 "the source C<filename>."
15232 msgstr ""
15233
15234 # type: textblock
15235 #: ../src/guestfs-actions.pod:6415
15236 msgid ""
15237 "Note that there is no limit on the amount of data that can be uploaded with "
15238 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15239 "full amount unless an error occurs."
15240 msgstr ""
15241
15242 # type: textblock
15243 #: ../src/guestfs-actions.pod:6420
15244 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15245 msgstr ""
15246
15247 # type: =head2
15248 #: ../src/guestfs-actions.pod:6431
15249 msgid "guestfs_utimens"
15250 msgstr ""
15251
15252 # type: verbatim
15253 #: ../src/guestfs-actions.pod:6433
15254 #, no-wrap
15255 msgid ""
15256 " int\n"
15257 " guestfs_utimens (guestfs_h *g,\n"
15258 "                  const char *path,\n"
15259 "                  int64_t atsecs,\n"
15260 "                  int64_t atnsecs,\n"
15261 "                  int64_t mtsecs,\n"
15262 "                  int64_t mtnsecs);\n"
15263 "\n"
15264 msgstr ""
15265
15266 # type: textblock
15267 #: ../src/guestfs-actions.pod:6441 ../fish/guestfish-actions.pod:4306
15268 msgid "This command sets the timestamps of a file with nanosecond precision."
15269 msgstr ""
15270
15271 # type: textblock
15272 #: ../src/guestfs-actions.pod:6444 ../fish/guestfish-actions.pod:4309
15273 msgid ""
15274 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15275 "from the epoch."
15276 msgstr ""
15277
15278 # type: textblock
15279 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4312
15280 msgid ""
15281 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15282 "nanoseconds from the epoch."
15283 msgstr ""
15284
15285 # type: textblock
15286 #: ../src/guestfs-actions.pod:6450 ../fish/guestfish-actions.pod:4315
15287 msgid ""
15288 "If the C<*nsecs> field contains the special value C<-1> then the "
15289 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15290 "ignored in this case)."
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../src/guestfs-actions.pod:6454 ../fish/guestfish-actions.pod:4319
15295 msgid ""
15296 "If the C<*nsecs> field contains the special value C<-2> then the "
15297 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15298 "in this case)."
15299 msgstr ""
15300
15301 # type: =head2
15302 #: ../src/guestfs-actions.pod:6462 ../src/guestfs-structs.pod:175
15303 msgid "guestfs_version"
15304 msgstr ""
15305
15306 # type: verbatim
15307 #: ../src/guestfs-actions.pod:6464
15308 #, no-wrap
15309 msgid ""
15310 " struct guestfs_version *\n"
15311 " guestfs_version (guestfs_h *g);\n"
15312 "\n"
15313 msgstr ""
15314
15315 # type: textblock
15316 #: ../src/guestfs-actions.pod:6467 ../fish/guestfish-actions.pod:4327
15317 msgid ""
15318 "Return the libguestfs version number that the program is linked against."
15319 msgstr ""
15320
15321 # type: textblock
15322 #: ../src/guestfs-actions.pod:6470 ../fish/guestfish-actions.pod:4330
15323 msgid ""
15324 "Note that because of dynamic linking this is not necessarily the version of "
15325 "libguestfs that you compiled against.  You can compile the program, and then "
15326 "at runtime dynamically link against a completely different C<libguestfs.so> "
15327 "library."
15328 msgstr ""
15329
15330 # type: textblock
15331 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4335
15332 msgid ""
15333 "This call was added in version C<1.0.58>.  In previous versions of "
15334 "libguestfs there was no way to get the version number.  From C code you can "
15335 "use dynamic linker functions to find out if this symbol exists (if it "
15336 "doesn't, then it's an earlier version)."
15337 msgstr ""
15338
15339 # type: textblock
15340 #: ../src/guestfs-actions.pod:6481 ../fish/guestfish-actions.pod:4341
15341 msgid ""
15342 "The call returns a structure with four elements.  The first three (C<major>, "
15343 "C<minor> and C<release>) are numbers and correspond to the usual version "
15344 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15345 "but may be used for distro-specific information."
15346 msgstr ""
15347
15348 # type: textblock
15349 #: ../src/guestfs-actions.pod:6487 ../fish/guestfish-actions.pod:4347
15350 msgid ""
15351 "To construct the original version string: C<$major.$minor.$release$extra>"
15352 msgstr ""
15353
15354 # type: textblock
15355 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4350
15356 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15357 msgstr ""
15358
15359 # type: textblock
15360 #: ../src/guestfs-actions.pod:6492
15361 msgid ""
15362 "I<Note:> Don't use this call to test for availability of features.  In "
15363 "enterprise distributions we backport features from later versions into "
15364 "earlier versions, making this an unreliable way to test for features.  Use "
15365 "C<guestfs_available> instead."
15366 msgstr ""
15367
15368 # type: textblock
15369 #: ../src/guestfs-actions.pod:6498
15370 msgid ""
15371 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15372 "error.  I<The caller must call C<guestfs_free_version> after use>."
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../src/guestfs-actions.pod:6502
15377 msgid "(Added in 1.0.58)"
15378 msgstr ""
15379
15380 # type: =head2
15381 #: ../src/guestfs-actions.pod:6504
15382 msgid "guestfs_vfs_label"
15383 msgstr ""
15384
15385 # type: verbatim
15386 #: ../src/guestfs-actions.pod:6506
15387 #, no-wrap
15388 msgid ""
15389 " char *\n"
15390 " guestfs_vfs_label (guestfs_h *g,\n"
15391 "                    const char *device);\n"
15392 "\n"
15393 msgstr ""
15394
15395 # type: textblock
15396 #: ../src/guestfs-actions.pod:6510 ../fish/guestfish-actions.pod:4362
15397 msgid "This returns the filesystem label of the filesystem on C<device>."
15398 msgstr ""
15399
15400 # type: textblock
15401 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4365
15402 msgid "If the filesystem is unlabeled, this returns the empty string."
15403 msgstr ""
15404
15405 # type: textblock
15406 #: ../src/guestfs-actions.pod:6515
15407 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15408 msgstr ""
15409
15410 # type: textblock
15411 #: ../src/guestfs-actions.pod:6520 ../src/guestfs-actions.pod:6557
15412 msgid "(Added in 1.3.18)"
15413 msgstr ""
15414
15415 # type: =head2
15416 #: ../src/guestfs-actions.pod:6522
15417 msgid "guestfs_vfs_type"
15418 msgstr ""
15419
15420 # type: verbatim
15421 #: ../src/guestfs-actions.pod:6524
15422 #, no-wrap
15423 msgid ""
15424 " char *\n"
15425 " guestfs_vfs_type (guestfs_h *g,\n"
15426 "                   const char *device);\n"
15427 "\n"
15428 msgstr ""
15429
15430 # type: textblock
15431 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4373
15432 msgid ""
15433 "This command gets the filesystem type corresponding to the filesystem on "
15434 "C<device>."
15435 msgstr ""
15436
15437 # type: textblock
15438 #: ../src/guestfs-actions.pod:6531 ../fish/guestfish-actions.pod:4376
15439 msgid ""
15440 "For most filesystems, the result is the name of the Linux VFS module which "
15441 "would be used to mount this filesystem if you mounted it without specifying "
15442 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15443 msgstr ""
15444
15445 # type: =head2
15446 #: ../src/guestfs-actions.pod:6541
15447 msgid "guestfs_vfs_uuid"
15448 msgstr ""
15449
15450 # type: verbatim
15451 #: ../src/guestfs-actions.pod:6543
15452 #, no-wrap
15453 msgid ""
15454 " char *\n"
15455 " guestfs_vfs_uuid (guestfs_h *g,\n"
15456 "                   const char *device);\n"
15457 "\n"
15458 msgstr ""
15459
15460 # type: textblock
15461 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4385
15462 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15463 msgstr ""
15464
15465 # type: textblock
15466 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4388
15467 msgid "If the filesystem does not have a UUID, this returns the empty string."
15468 msgstr ""
15469
15470 # type: textblock
15471 #: ../src/guestfs-actions.pod:6552
15472 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15473 msgstr ""
15474
15475 # type: =head2
15476 #: ../src/guestfs-actions.pod:6559
15477 msgid "guestfs_vg_activate"
15478 msgstr ""
15479
15480 # type: verbatim
15481 #: ../src/guestfs-actions.pod:6561
15482 #, no-wrap
15483 msgid ""
15484 " int\n"
15485 " guestfs_vg_activate (guestfs_h *g,\n"
15486 "                      int activate,\n"
15487 "                      char *const *volgroups);\n"
15488 "\n"
15489 msgstr ""
15490
15491 # type: textblock
15492 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4396
15493 msgid ""
15494 "This command activates or (if C<activate> is false) deactivates all logical "
15495 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15496 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15497 "deactivated, then those devices disappear."
15498 msgstr ""
15499
15500 # type: textblock
15501 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4402
15502 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15503 msgstr ""
15504
15505 # type: textblock
15506 #: ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:4404
15507 msgid ""
15508 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15509 "activated or deactivated."
15510 msgstr ""
15511
15512 # type: =head2
15513 #: ../src/guestfs-actions.pod:6581
15514 msgid "guestfs_vg_activate_all"
15515 msgstr ""
15516
15517 # type: verbatim
15518 #: ../src/guestfs-actions.pod:6583
15519 #, no-wrap
15520 msgid ""
15521 " int\n"
15522 " guestfs_vg_activate_all (guestfs_h *g,\n"
15523 "                          int activate);\n"
15524 "\n"
15525 msgstr ""
15526
15527 # type: textblock
15528 #: ../src/guestfs-actions.pod:6587 ../fish/guestfish-actions.pod:4411
15529 msgid ""
15530 "This command activates or (if C<activate> is false) deactivates all logical "
15531 "volumes in all volume groups.  If activated, then they are made known to the "
15532 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15533 "those devices disappear."
15534 msgstr ""
15535
15536 # type: textblock
15537 #: ../src/guestfs-actions.pod:6593 ../fish/guestfish-actions.pod:4417
15538 msgid "This command is the same as running C<vgchange -a y|n>"
15539 msgstr ""
15540
15541 # type: =head2
15542 #: ../src/guestfs-actions.pod:6599
15543 msgid "guestfs_vgcreate"
15544 msgstr ""
15545
15546 # type: verbatim
15547 #: ../src/guestfs-actions.pod:6601
15548 #, no-wrap
15549 msgid ""
15550 " int\n"
15551 " guestfs_vgcreate (guestfs_h *g,\n"
15552 "                   const char *volgroup,\n"
15553 "                   char *const *physvols);\n"
15554 "\n"
15555 msgstr ""
15556
15557 # type: textblock
15558 #: ../src/guestfs-actions.pod:6606 ../fish/guestfish-actions.pod:4423
15559 msgid ""
15560 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15561 "of physical volumes C<physvols>."
15562 msgstr ""
15563
15564 # type: =head2
15565 #: ../src/guestfs-actions.pod:6613
15566 msgid "guestfs_vglvuuids"
15567 msgstr ""
15568
15569 # type: verbatim
15570 #: ../src/guestfs-actions.pod:6615
15571 #, no-wrap
15572 msgid ""
15573 " char **\n"
15574 " guestfs_vglvuuids (guestfs_h *g,\n"
15575 "                    const char *vgname);\n"
15576 "\n"
15577 msgstr ""
15578
15579 # type: textblock
15580 #: ../src/guestfs-actions.pod:6619 ../fish/guestfish-actions.pod:4430
15581 msgid ""
15582 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15583 "volumes created in this volume group."
15584 msgstr ""
15585
15586 # type: textblock
15587 #: ../src/guestfs-actions.pod:6622
15588 msgid ""
15589 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15590 "associate logical volumes and volume groups."
15591 msgstr ""
15592
15593 # type: textblock
15594 #: ../src/guestfs-actions.pod:6625
15595 msgid "See also C<guestfs_vgpvuuids>."
15596 msgstr ""
15597
15598 # type: =head2
15599 #: ../src/guestfs-actions.pod:6633
15600 msgid "guestfs_vgpvuuids"
15601 msgstr ""
15602
15603 # type: verbatim
15604 #: ../src/guestfs-actions.pod:6635
15605 #, no-wrap
15606 msgid ""
15607 " char **\n"
15608 " guestfs_vgpvuuids (guestfs_h *g,\n"
15609 "                    const char *vgname);\n"
15610 "\n"
15611 msgstr ""
15612
15613 # type: textblock
15614 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4442
15615 msgid ""
15616 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15617 "volumes that this volume group resides on."
15618 msgstr ""
15619
15620 # type: textblock
15621 #: ../src/guestfs-actions.pod:6642
15622 msgid ""
15623 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15624 "associate physical volumes and volume groups."
15625 msgstr ""
15626
15627 # type: textblock
15628 #: ../src/guestfs-actions.pod:6645
15629 msgid "See also C<guestfs_vglvuuids>."
15630 msgstr ""
15631
15632 # type: =head2
15633 #: ../src/guestfs-actions.pod:6653
15634 msgid "guestfs_vgremove"
15635 msgstr ""
15636
15637 # type: verbatim
15638 #: ../src/guestfs-actions.pod:6655
15639 #, no-wrap
15640 msgid ""
15641 " int\n"
15642 " guestfs_vgremove (guestfs_h *g,\n"
15643 "                   const char *vgname);\n"
15644 "\n"
15645 msgstr ""
15646
15647 # type: textblock
15648 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4454
15649 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15650 msgstr ""
15651
15652 # type: textblock
15653 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4456
15654 msgid ""
15655 "This also forcibly removes all logical volumes in the volume group (if any)."
15656 msgstr ""
15657
15658 # type: =head2
15659 #: ../src/guestfs-actions.pod:6668
15660 msgid "guestfs_vgrename"
15661 msgstr ""
15662
15663 # type: verbatim
15664 #: ../src/guestfs-actions.pod:6670
15665 #, no-wrap
15666 msgid ""
15667 " int\n"
15668 " guestfs_vgrename (guestfs_h *g,\n"
15669 "                   const char *volgroup,\n"
15670 "                   const char *newvolgroup);\n"
15671 "\n"
15672 msgstr ""
15673
15674 # type: textblock
15675 #: ../src/guestfs-actions.pod:6675 ../fish/guestfish-actions.pod:4463
15676 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15677 msgstr ""
15678
15679 # type: =head2
15680 #: ../src/guestfs-actions.pod:6681
15681 msgid "guestfs_vgs"
15682 msgstr ""
15683
15684 # type: verbatim
15685 #: ../src/guestfs-actions.pod:6683
15686 #, no-wrap
15687 msgid ""
15688 " char **\n"
15689 " guestfs_vgs (guestfs_h *g);\n"
15690 "\n"
15691 msgstr ""
15692
15693 # type: textblock
15694 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4469
15695 msgid ""
15696 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15697 "> command."
15698 msgstr ""
15699
15700 # type: textblock
15701 #: ../src/guestfs-actions.pod:6689 ../fish/guestfish-actions.pod:4472
15702 msgid ""
15703 "This returns a list of just the volume group names that were detected (eg. "
15704 "C<VolGroup00>)."
15705 msgstr ""
15706
15707 # type: textblock
15708 #: ../src/guestfs-actions.pod:6692
15709 msgid "See also C<guestfs_vgs_full>."
15710 msgstr ""
15711
15712 # type: =head2
15713 #: ../src/guestfs-actions.pod:6700
15714 msgid "guestfs_vgs_full"
15715 msgstr ""
15716
15717 # type: verbatim
15718 #: ../src/guestfs-actions.pod:6702
15719 #, no-wrap
15720 msgid ""
15721 " struct guestfs_lvm_vg_list *\n"
15722 " guestfs_vgs_full (guestfs_h *g);\n"
15723 "\n"
15724 msgstr ""
15725
15726 # type: textblock
15727 #: ../src/guestfs-actions.pod:6705 ../fish/guestfish-actions.pod:4481
15728 msgid ""
15729 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15730 "> command.  The \"full\" version includes all fields."
15731 msgstr ""
15732
15733 # type: textblock
15734 #: ../src/guestfs-actions.pod:6708
15735 msgid ""
15736 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15737 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15738 msgstr ""
15739
15740 # type: =head2
15741 #: ../src/guestfs-actions.pod:6714
15742 msgid "guestfs_vgscan"
15743 msgstr ""
15744
15745 # type: verbatim
15746 #: ../src/guestfs-actions.pod:6716
15747 #, no-wrap
15748 msgid ""
15749 " int\n"
15750 " guestfs_vgscan (guestfs_h *g);\n"
15751 "\n"
15752 msgstr ""
15753
15754 # type: textblock
15755 #: ../src/guestfs-actions.pod:6719 ../fish/guestfish-actions.pod:4488
15756 msgid ""
15757 "This rescans all block devices and rebuilds the list of LVM physical "
15758 "volumes, volume groups and logical volumes."
15759 msgstr ""
15760
15761 # type: =head2
15762 #: ../src/guestfs-actions.pod:6726
15763 msgid "guestfs_vguuid"
15764 msgstr ""
15765
15766 # type: verbatim
15767 #: ../src/guestfs-actions.pod:6728
15768 #, no-wrap
15769 msgid ""
15770 " char *\n"
15771 " guestfs_vguuid (guestfs_h *g,\n"
15772 "                 const char *vgname);\n"
15773 "\n"
15774 msgstr ""
15775
15776 # type: textblock
15777 #: ../src/guestfs-actions.pod:6732 ../fish/guestfish-actions.pod:4495
15778 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15779 msgstr ""
15780
15781 # type: =head2
15782 #: ../src/guestfs-actions.pod:6739
15783 msgid "guestfs_wait_ready"
15784 msgstr ""
15785
15786 # type: verbatim
15787 #: ../src/guestfs-actions.pod:6741
15788 #, no-wrap
15789 msgid ""
15790 " int\n"
15791 " guestfs_wait_ready (guestfs_h *g);\n"
15792 "\n"
15793 msgstr ""
15794
15795 # type: textblock
15796 #: ../src/guestfs-actions.pod:6744
15797 msgid "This function is a no op."
15798 msgstr ""
15799
15800 # type: textblock
15801 #: ../src/guestfs-actions.pod:6746
15802 msgid ""
15803 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15804 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15805 "is no longer necessary because C<guestfs_launch> now does the waiting."
15806 msgstr ""
15807
15808 # type: textblock
15809 #: ../src/guestfs-actions.pod:6751
15810 msgid ""
15811 "If you see any calls to this function in code then you can just remove them, "
15812 "unless you want to retain compatibility with older versions of the API."
15813 msgstr ""
15814
15815 # type: =head2
15816 #: ../src/guestfs-actions.pod:6759
15817 msgid "guestfs_wc_c"
15818 msgstr ""
15819
15820 # type: verbatim
15821 #: ../src/guestfs-actions.pod:6761
15822 #, no-wrap
15823 msgid ""
15824 " int\n"
15825 " guestfs_wc_c (guestfs_h *g,\n"
15826 "               const char *path);\n"
15827 "\n"
15828 msgstr ""
15829
15830 # type: textblock
15831 #: ../src/guestfs-actions.pod:6765 ../fish/guestfish-actions.pod:4501
15832 msgid ""
15833 "This command counts the characters in a file, using the C<wc -c> external "
15834 "command."
15835 msgstr ""
15836
15837 # type: =head2
15838 #: ../src/guestfs-actions.pod:6772
15839 msgid "guestfs_wc_l"
15840 msgstr ""
15841
15842 # type: verbatim
15843 #: ../src/guestfs-actions.pod:6774
15844 #, no-wrap
15845 msgid ""
15846 " int\n"
15847 " guestfs_wc_l (guestfs_h *g,\n"
15848 "               const char *path);\n"
15849 "\n"
15850 msgstr ""
15851
15852 # type: textblock
15853 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4508
15854 msgid ""
15855 "This command counts the lines in a file, using the C<wc -l> external command."
15856 msgstr ""
15857
15858 # type: =head2
15859 #: ../src/guestfs-actions.pod:6785
15860 msgid "guestfs_wc_w"
15861 msgstr ""
15862
15863 # type: verbatim
15864 #: ../src/guestfs-actions.pod:6787
15865 #, no-wrap
15866 msgid ""
15867 " int\n"
15868 " guestfs_wc_w (guestfs_h *g,\n"
15869 "               const char *path);\n"
15870 "\n"
15871 msgstr ""
15872
15873 # type: textblock
15874 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4515
15875 msgid ""
15876 "This command counts the words in a file, using the C<wc -w> external command."
15877 msgstr ""
15878
15879 # type: =head2
15880 #: ../src/guestfs-actions.pod:6798
15881 msgid "guestfs_write"
15882 msgstr ""
15883
15884 # type: verbatim
15885 #: ../src/guestfs-actions.pod:6800
15886 #, no-wrap
15887 msgid ""
15888 " int\n"
15889 " guestfs_write (guestfs_h *g,\n"
15890 "                const char *path,\n"
15891 "                const char *content,\n"
15892 "                size_t content_size);\n"
15893 "\n"
15894 msgstr ""
15895
15896 # type: textblock
15897 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4522
15898 msgid ""
15899 "This call creates a file called C<path>.  The content of the file is the "
15900 "string C<content> (which can contain any 8 bit data)."
15901 msgstr ""
15902
15903 # type: =head2
15904 #: ../src/guestfs-actions.pod:6816
15905 msgid "guestfs_write_file"
15906 msgstr ""
15907
15908 # type: verbatim
15909 #: ../src/guestfs-actions.pod:6818
15910 #, no-wrap
15911 msgid ""
15912 " int\n"
15913 " guestfs_write_file (guestfs_h *g,\n"
15914 "                     const char *path,\n"
15915 "                     const char *content,\n"
15916 "                     int size);\n"
15917 "\n"
15918 msgstr ""
15919
15920 # type: textblock
15921 #: ../src/guestfs-actions.pod:6824 ../fish/guestfish-actions.pod:4532
15922 msgid ""
15923 "This call creates a file called C<path>.  The contents of the file is the "
15924 "string C<content> (which can contain any 8 bit data), with length C<size>."
15925 msgstr ""
15926
15927 # type: textblock
15928 #: ../src/guestfs-actions.pod:6828 ../fish/guestfish-actions.pod:4536
15929 msgid ""
15930 "As a special case, if C<size> is C<0> then the length is calculated using "
15931 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15932 msgstr ""
15933
15934 # type: textblock
15935 #: ../src/guestfs-actions.pod:6832 ../fish/guestfish-actions.pod:4540
15936 msgid ""
15937 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15938 "I<not> work, even if the length is specified."
15939 msgstr ""
15940
15941 # type: textblock
15942 #: ../src/guestfs-actions.pod:6840 ../fish/guestfish-actions.pod:4546
15943 msgid ""
15944 "This function is deprecated.  In new code, use the C<write> call instead."
15945 msgstr ""
15946
15947 # type: =head2
15948 #: ../src/guestfs-actions.pod:6849
15949 msgid "guestfs_zegrep"
15950 msgstr ""
15951
15952 # type: verbatim
15953 #: ../src/guestfs-actions.pod:6851
15954 #, no-wrap
15955 msgid ""
15956 " char **\n"
15957 " guestfs_zegrep (guestfs_h *g,\n"
15958 "                 const char *regex,\n"
15959 "                 const char *path);\n"
15960 "\n"
15961 msgstr ""
15962
15963 # type: textblock
15964 #: ../src/guestfs-actions.pod:6856 ../fish/guestfish-actions.pod:4557
15965 msgid ""
15966 "This calls the external C<zegrep> program and returns the matching lines."
15967 msgstr ""
15968
15969 # type: =head2
15970 #: ../src/guestfs-actions.pod:6868
15971 msgid "guestfs_zegrepi"
15972 msgstr ""
15973
15974 # type: verbatim
15975 #: ../src/guestfs-actions.pod:6870
15976 #, no-wrap
15977 msgid ""
15978 " char **\n"
15979 " guestfs_zegrepi (guestfs_h *g,\n"
15980 "                  const char *regex,\n"
15981 "                  const char *path);\n"
15982 "\n"
15983 msgstr ""
15984
15985 # type: textblock
15986 #: ../src/guestfs-actions.pod:6875 ../fish/guestfish-actions.pod:4567
15987 msgid ""
15988 "This calls the external C<zegrep -i> program and returns the matching lines."
15989 msgstr ""
15990
15991 # type: =head2
15992 #: ../src/guestfs-actions.pod:6887
15993 msgid "guestfs_zero"
15994 msgstr ""
15995
15996 # type: verbatim
15997 #: ../src/guestfs-actions.pod:6889
15998 #, no-wrap
15999 msgid ""
16000 " int\n"
16001 " guestfs_zero (guestfs_h *g,\n"
16002 "               const char *device);\n"
16003 "\n"
16004 msgstr ""
16005
16006 # type: textblock
16007 #: ../src/guestfs-actions.pod:6893 ../fish/guestfish-actions.pod:4577
16008 msgid "This command writes zeroes over the first few blocks of C<device>."
16009 msgstr ""
16010
16011 # type: textblock
16012 #: ../src/guestfs-actions.pod:6895 ../fish/guestfish-actions.pod:4579
16013 msgid ""
16014 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16015 "securely wipe the device).  It should be sufficient to remove any partition "
16016 "tables, filesystem superblocks and so on."
16017 msgstr ""
16018
16019 # type: textblock
16020 #: ../src/guestfs-actions.pod:6899
16021 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16022 msgstr ""
16023
16024 # type: =head2
16025 #: ../src/guestfs-actions.pod:6910
16026 msgid "guestfs_zero_device"
16027 msgstr ""
16028
16029 # type: verbatim
16030 #: ../src/guestfs-actions.pod:6912
16031 #, no-wrap
16032 msgid ""
16033 " int\n"
16034 " guestfs_zero_device (guestfs_h *g,\n"
16035 "                      const char *device);\n"
16036 "\n"
16037 msgstr ""
16038
16039 # type: textblock
16040 #: ../src/guestfs-actions.pod:6916
16041 msgid ""
16042 "This command writes zeroes over the entire C<device>.  Compare with "
16043 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16044 msgstr ""
16045
16046 # type: textblock
16047 #: ../src/guestfs-actions.pod:6930
16048 msgid "(Added in 1.3.1)"
16049 msgstr ""
16050
16051 # type: =head2
16052 #: ../src/guestfs-actions.pod:6932
16053 msgid "guestfs_zerofree"
16054 msgstr ""
16055
16056 # type: verbatim
16057 #: ../src/guestfs-actions.pod:6934
16058 #, no-wrap
16059 msgid ""
16060 " int\n"
16061 " guestfs_zerofree (guestfs_h *g,\n"
16062 "                   const char *device);\n"
16063 "\n"
16064 msgstr ""
16065
16066 # type: textblock
16067 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4600
16068 msgid ""
16069 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16070 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16071 "possible to compress the filesystem more effectively."
16072 msgstr ""
16073
16074 # type: textblock
16075 #: ../src/guestfs-actions.pod:6943 ../fish/guestfish-actions.pod:4605
16076 msgid "You should B<not> run this program if the filesystem is mounted."
16077 msgstr ""
16078
16079 # type: textblock
16080 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4608
16081 msgid ""
16082 "It is possible that using this program can damage the filesystem or data on "
16083 "the filesystem."
16084 msgstr ""
16085
16086 # type: =head2
16087 #: ../src/guestfs-actions.pod:6953
16088 msgid "guestfs_zfgrep"
16089 msgstr ""
16090
16091 # type: verbatim
16092 #: ../src/guestfs-actions.pod:6955
16093 #, no-wrap
16094 msgid ""
16095 " char **\n"
16096 " guestfs_zfgrep (guestfs_h *g,\n"
16097 "                 const char *pattern,\n"
16098 "                 const char *path);\n"
16099 "\n"
16100 msgstr ""
16101
16102 # type: textblock
16103 #: ../src/guestfs-actions.pod:6960 ../fish/guestfish-actions.pod:4615
16104 msgid ""
16105 "This calls the external C<zfgrep> program and returns the matching lines."
16106 msgstr ""
16107
16108 # type: =head2
16109 #: ../src/guestfs-actions.pod:6972
16110 msgid "guestfs_zfgrepi"
16111 msgstr ""
16112
16113 # type: verbatim
16114 #: ../src/guestfs-actions.pod:6974
16115 #, no-wrap
16116 msgid ""
16117 " char **\n"
16118 " guestfs_zfgrepi (guestfs_h *g,\n"
16119 "                  const char *pattern,\n"
16120 "                  const char *path);\n"
16121 "\n"
16122 msgstr ""
16123
16124 # type: textblock
16125 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4625
16126 msgid ""
16127 "This calls the external C<zfgrep -i> program and returns the matching lines."
16128 msgstr ""
16129
16130 # type: =head2
16131 #: ../src/guestfs-actions.pod:6991
16132 msgid "guestfs_zfile"
16133 msgstr ""
16134
16135 # type: verbatim
16136 #: ../src/guestfs-actions.pod:6993
16137 #, no-wrap
16138 msgid ""
16139 " char *\n"
16140 " guestfs_zfile (guestfs_h *g,\n"
16141 "                const char *meth,\n"
16142 "                const char *path);\n"
16143 "\n"
16144 msgstr ""
16145
16146 # type: textblock
16147 #: ../src/guestfs-actions.pod:6998 ../fish/guestfish-actions.pod:4635
16148 msgid ""
16149 "This command runs C<file> after first decompressing C<path> using C<method>."
16150 msgstr ""
16151
16152 # type: textblock
16153 #: ../src/guestfs-actions.pod:7001 ../fish/guestfish-actions.pod:4638
16154 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16155 msgstr ""
16156
16157 # type: textblock
16158 #: ../src/guestfs-actions.pod:7003
16159 msgid ""
16160 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16161 "files."
16162 msgstr ""
16163
16164 # type: textblock
16165 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4643
16166 msgid ""
16167 "This function is deprecated.  In new code, use the C<file> call instead."
16168 msgstr ""
16169
16170 # type: =head2
16171 #: ../src/guestfs-actions.pod:7018
16172 msgid "guestfs_zgrep"
16173 msgstr ""
16174
16175 # type: verbatim
16176 #: ../src/guestfs-actions.pod:7020
16177 #, no-wrap
16178 msgid ""
16179 " char **\n"
16180 " guestfs_zgrep (guestfs_h *g,\n"
16181 "                const char *regex,\n"
16182 "                const char *path);\n"
16183 "\n"
16184 msgstr ""
16185
16186 # type: textblock
16187 #: ../src/guestfs-actions.pod:7025 ../fish/guestfish-actions.pod:4654
16188 msgid ""
16189 "This calls the external C<zgrep> program and returns the matching lines."
16190 msgstr ""
16191
16192 # type: =head2
16193 #: ../src/guestfs-actions.pod:7037
16194 msgid "guestfs_zgrepi"
16195 msgstr ""
16196
16197 # type: verbatim
16198 #: ../src/guestfs-actions.pod:7039
16199 #, no-wrap
16200 msgid ""
16201 " char **\n"
16202 " guestfs_zgrepi (guestfs_h *g,\n"
16203 "                 const char *regex,\n"
16204 "                 const char *path);\n"
16205 "\n"
16206 msgstr ""
16207
16208 # type: textblock
16209 #: ../src/guestfs-actions.pod:7044 ../fish/guestfish-actions.pod:4664
16210 msgid ""
16211 "This calls the external C<zgrep -i> program and returns the matching lines."
16212 msgstr ""
16213
16214 # type: =item
16215 #: ../src/guestfs-availability.pod:3
16216 msgid "B<augeas>"
16217 msgstr ""
16218
16219 # type: textblock
16220 #: ../src/guestfs-availability.pod:5
16221 msgid ""
16222 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16223 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16224 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16225 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16226 "L</guestfs_aug_save> L</guestfs_aug_set>"
16227 msgstr ""
16228
16229 # type: =item
16230 #: ../src/guestfs-availability.pod:21
16231 msgid "B<inotify>"
16232 msgstr ""
16233
16234 # type: textblock
16235 #: ../src/guestfs-availability.pod:23
16236 msgid ""
16237 "The following functions: L</guestfs_inotify_add_watch> L</"
16238 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16239 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16240 msgstr ""
16241
16242 # type: =item
16243 #: ../src/guestfs-availability.pod:31
16244 msgid "B<linuxfsuuid>"
16245 msgstr ""
16246
16247 # type: textblock
16248 #: ../src/guestfs-availability.pod:33
16249 msgid ""
16250 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16251 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16252 msgstr ""
16253
16254 # type: =item
16255 #: ../src/guestfs-availability.pod:40
16256 msgid "B<linuxmodules>"
16257 msgstr ""
16258
16259 # type: textblock
16260 #: ../src/guestfs-availability.pod:42
16261 msgid "The following functions: L</guestfs_modprobe>"
16262 msgstr ""
16263
16264 # type: =item
16265 #: ../src/guestfs-availability.pod:45
16266 msgid "B<linuxxattrs>"
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../src/guestfs-availability.pod:47
16271 msgid ""
16272 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16273 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16274 "guestfs_removexattr> L</guestfs_setxattr>"
16275 msgstr ""
16276
16277 # type: =item
16278 #: ../src/guestfs-availability.pod:56
16279 msgid "B<luks>"
16280 msgstr ""
16281
16282 # type: textblock
16283 #: ../src/guestfs-availability.pod:58
16284 msgid ""
16285 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16286 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16287 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16288 msgstr ""
16289
16290 # type: =item
16291 #: ../src/guestfs-availability.pod:67
16292 msgid "B<lvm2>"
16293 msgstr ""
16294
16295 # type: textblock
16296 #: ../src/guestfs-availability.pod:69
16297 msgid ""
16298 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16299 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16300 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16301 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16302 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16303 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16304 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16305 msgstr ""
16306
16307 # type: =item
16308 #: ../src/guestfs-availability.pod:92
16309 msgid "B<mknod>"
16310 msgstr ""
16311
16312 # type: textblock
16313 #: ../src/guestfs-availability.pod:94
16314 msgid ""
16315 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16316 "guestfs_mknod_b> L</guestfs_mknod_c>"
16317 msgstr ""
16318
16319 # type: =item
16320 #: ../src/guestfs-availability.pod:100
16321 msgid "B<ntfs3g>"
16322 msgstr ""
16323
16324 # type: textblock
16325 #: ../src/guestfs-availability.pod:102
16326 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16327 msgstr ""
16328
16329 # type: =item
16330 #: ../src/guestfs-availability.pod:105
16331 msgid "B<ntfsprogs>"
16332 msgstr ""
16333
16334 # type: textblock
16335 #: ../src/guestfs-availability.pod:107
16336 msgid ""
16337 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16338 msgstr ""
16339
16340 # type: =item
16341 #: ../src/guestfs-availability.pod:111
16342 msgid "B<realpath>"
16343 msgstr ""
16344
16345 # type: textblock
16346 #: ../src/guestfs-availability.pod:113
16347 msgid "The following functions: L</guestfs_realpath>"
16348 msgstr ""
16349
16350 # type: =item
16351 #: ../src/guestfs-availability.pod:116
16352 msgid "B<scrub>"
16353 msgstr ""
16354
16355 # type: textblock
16356 #: ../src/guestfs-availability.pod:118
16357 msgid ""
16358 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16359 "guestfs_scrub_freespace>"
16360 msgstr ""
16361
16362 # type: =item
16363 #: ../src/guestfs-availability.pod:123
16364 msgid "B<selinux>"
16365 msgstr ""
16366
16367 # type: textblock
16368 #: ../src/guestfs-availability.pod:125
16369 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16370 msgstr ""
16371
16372 # type: =item
16373 #: ../src/guestfs-availability.pod:129
16374 msgid "B<xz>"
16375 msgstr ""
16376
16377 # type: textblock
16378 #: ../src/guestfs-availability.pod:131
16379 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16380 msgstr ""
16381
16382 # type: =item
16383 #: ../src/guestfs-availability.pod:135
16384 msgid "B<zerofree>"
16385 msgstr ""
16386
16387 # type: textblock
16388 #: ../src/guestfs-availability.pod:137
16389 msgid "The following functions: L</guestfs_zerofree>"
16390 msgstr ""
16391
16392 # type: =head2
16393 #: ../src/guestfs-structs.pod:1
16394 msgid "guestfs_int_bool"
16395 msgstr ""
16396
16397 # type: verbatim
16398 #: ../src/guestfs-structs.pod:3
16399 #, no-wrap
16400 msgid ""
16401 " struct guestfs_int_bool {\n"
16402 "   int32_t i;\n"
16403 "   int32_t b;\n"
16404 " };\n"
16405 " \n"
16406 msgstr ""
16407
16408 # type: verbatim
16409 #: ../src/guestfs-structs.pod:8
16410 #, no-wrap
16411 msgid ""
16412 " struct guestfs_int_bool_list {\n"
16413 "   uint32_t len; /* Number of elements in list. */\n"
16414 "   struct guestfs_int_bool *val; /* Elements. */\n"
16415 " };\n"
16416 " \n"
16417 msgstr ""
16418
16419 # type: verbatim
16420 #: ../src/guestfs-structs.pod:13
16421 #, no-wrap
16422 msgid ""
16423 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16424 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16425 "\n"
16426 msgstr ""
16427
16428 # type: =head2
16429 #: ../src/guestfs-structs.pod:16
16430 msgid "guestfs_lvm_pv"
16431 msgstr ""
16432
16433 # type: verbatim
16434 #: ../src/guestfs-structs.pod:18
16435 #, no-wrap
16436 msgid ""
16437 " struct guestfs_lvm_pv {\n"
16438 "   char *pv_name;\n"
16439 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16440 "   char pv_uuid[32];\n"
16441 "   char *pv_fmt;\n"
16442 "   uint64_t pv_size;\n"
16443 "   uint64_t dev_size;\n"
16444 "   uint64_t pv_free;\n"
16445 "   uint64_t pv_used;\n"
16446 "   char *pv_attr;\n"
16447 "   int64_t pv_pe_count;\n"
16448 "   int64_t pv_pe_alloc_count;\n"
16449 "   char *pv_tags;\n"
16450 "   uint64_t pe_start;\n"
16451 "   int64_t pv_mda_count;\n"
16452 "   uint64_t pv_mda_free;\n"
16453 " };\n"
16454 " \n"
16455 msgstr ""
16456
16457 # type: verbatim
16458 #: ../src/guestfs-structs.pod:36
16459 #, no-wrap
16460 msgid ""
16461 " struct guestfs_lvm_pv_list {\n"
16462 "   uint32_t len; /* Number of elements in list. */\n"
16463 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16464 " };\n"
16465 " \n"
16466 msgstr ""
16467
16468 # type: verbatim
16469 #: ../src/guestfs-structs.pod:41
16470 #, no-wrap
16471 msgid ""
16472 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16473 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16474 "\n"
16475 msgstr ""
16476
16477 # type: =head2
16478 #: ../src/guestfs-structs.pod:44
16479 msgid "guestfs_lvm_vg"
16480 msgstr ""
16481
16482 # type: verbatim
16483 #: ../src/guestfs-structs.pod:46
16484 #, no-wrap
16485 msgid ""
16486 " struct guestfs_lvm_vg {\n"
16487 "   char *vg_name;\n"
16488 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16489 "   char vg_uuid[32];\n"
16490 "   char *vg_fmt;\n"
16491 "   char *vg_attr;\n"
16492 "   uint64_t vg_size;\n"
16493 "   uint64_t vg_free;\n"
16494 "   char *vg_sysid;\n"
16495 "   uint64_t vg_extent_size;\n"
16496 "   int64_t vg_extent_count;\n"
16497 "   int64_t vg_free_count;\n"
16498 "   int64_t max_lv;\n"
16499 "   int64_t max_pv;\n"
16500 "   int64_t pv_count;\n"
16501 "   int64_t lv_count;\n"
16502 "   int64_t snap_count;\n"
16503 "   int64_t vg_seqno;\n"
16504 "   char *vg_tags;\n"
16505 "   int64_t vg_mda_count;\n"
16506 "   uint64_t vg_mda_free;\n"
16507 " };\n"
16508 " \n"
16509 msgstr ""
16510
16511 # type: verbatim
16512 #: ../src/guestfs-structs.pod:69
16513 #, no-wrap
16514 msgid ""
16515 " struct guestfs_lvm_vg_list {\n"
16516 "   uint32_t len; /* Number of elements in list. */\n"
16517 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16518 " };\n"
16519 " \n"
16520 msgstr ""
16521
16522 # type: verbatim
16523 #: ../src/guestfs-structs.pod:74
16524 #, no-wrap
16525 msgid ""
16526 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16527 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16528 "\n"
16529 msgstr ""
16530
16531 # type: =head2
16532 #: ../src/guestfs-structs.pod:77
16533 msgid "guestfs_lvm_lv"
16534 msgstr ""
16535
16536 # type: verbatim
16537 #: ../src/guestfs-structs.pod:79
16538 #, no-wrap
16539 msgid ""
16540 " struct guestfs_lvm_lv {\n"
16541 "   char *lv_name;\n"
16542 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16543 "   char lv_uuid[32];\n"
16544 "   char *lv_attr;\n"
16545 "   int64_t lv_major;\n"
16546 "   int64_t lv_minor;\n"
16547 "   int64_t lv_kernel_major;\n"
16548 "   int64_t lv_kernel_minor;\n"
16549 "   uint64_t lv_size;\n"
16550 "   int64_t seg_count;\n"
16551 "   char *origin;\n"
16552 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16553 "   float snap_percent;\n"
16554 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16555 "   float copy_percent;\n"
16556 "   char *move_pv;\n"
16557 "   char *lv_tags;\n"
16558 "   char *mirror_log;\n"
16559 "   char *modules;\n"
16560 " };\n"
16561 " \n"
16562 msgstr ""
16563
16564 # type: verbatim
16565 #: ../src/guestfs-structs.pod:101
16566 #, no-wrap
16567 msgid ""
16568 " struct guestfs_lvm_lv_list {\n"
16569 "   uint32_t len; /* Number of elements in list. */\n"
16570 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16571 " };\n"
16572 " \n"
16573 msgstr ""
16574
16575 # type: verbatim
16576 #: ../src/guestfs-structs.pod:106
16577 #, no-wrap
16578 msgid ""
16579 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16580 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16581 "\n"
16582 msgstr ""
16583
16584 # type: verbatim
16585 #: ../src/guestfs-structs.pod:111
16586 #, no-wrap
16587 msgid ""
16588 " struct guestfs_stat {\n"
16589 "   int64_t dev;\n"
16590 "   int64_t ino;\n"
16591 "   int64_t mode;\n"
16592 "   int64_t nlink;\n"
16593 "   int64_t uid;\n"
16594 "   int64_t gid;\n"
16595 "   int64_t rdev;\n"
16596 "   int64_t size;\n"
16597 "   int64_t blksize;\n"
16598 "   int64_t blocks;\n"
16599 "   int64_t atime;\n"
16600 "   int64_t mtime;\n"
16601 "   int64_t ctime;\n"
16602 " };\n"
16603 " \n"
16604 msgstr ""
16605
16606 # type: verbatim
16607 #: ../src/guestfs-structs.pod:127
16608 #, no-wrap
16609 msgid ""
16610 " struct guestfs_stat_list {\n"
16611 "   uint32_t len; /* Number of elements in list. */\n"
16612 "   struct guestfs_stat *val; /* Elements. */\n"
16613 " };\n"
16614 " \n"
16615 msgstr ""
16616
16617 # type: verbatim
16618 #: ../src/guestfs-structs.pod:132
16619 #, no-wrap
16620 msgid ""
16621 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16622 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16623 "\n"
16624 msgstr ""
16625
16626 # type: verbatim
16627 #: ../src/guestfs-structs.pod:137
16628 #, no-wrap
16629 msgid ""
16630 " struct guestfs_statvfs {\n"
16631 "   int64_t bsize;\n"
16632 "   int64_t frsize;\n"
16633 "   int64_t blocks;\n"
16634 "   int64_t bfree;\n"
16635 "   int64_t bavail;\n"
16636 "   int64_t files;\n"
16637 "   int64_t ffree;\n"
16638 "   int64_t favail;\n"
16639 "   int64_t fsid;\n"
16640 "   int64_t flag;\n"
16641 "   int64_t namemax;\n"
16642 " };\n"
16643 " \n"
16644 msgstr ""
16645
16646 # type: verbatim
16647 #: ../src/guestfs-structs.pod:151
16648 #, no-wrap
16649 msgid ""
16650 " struct guestfs_statvfs_list {\n"
16651 "   uint32_t len; /* Number of elements in list. */\n"
16652 "   struct guestfs_statvfs *val; /* Elements. */\n"
16653 " };\n"
16654 " \n"
16655 msgstr ""
16656
16657 # type: verbatim
16658 #: ../src/guestfs-structs.pod:156
16659 #, no-wrap
16660 msgid ""
16661 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16662 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16663 "\n"
16664 msgstr ""
16665
16666 # type: =head2
16667 #: ../src/guestfs-structs.pod:159
16668 msgid "guestfs_dirent"
16669 msgstr ""
16670
16671 # type: verbatim
16672 #: ../src/guestfs-structs.pod:161
16673 #, no-wrap
16674 msgid ""
16675 " struct guestfs_dirent {\n"
16676 "   int64_t ino;\n"
16677 "   char ftyp;\n"
16678 "   char *name;\n"
16679 " };\n"
16680 " \n"
16681 msgstr ""
16682
16683 # type: verbatim
16684 #: ../src/guestfs-structs.pod:167
16685 #, no-wrap
16686 msgid ""
16687 " struct guestfs_dirent_list {\n"
16688 "   uint32_t len; /* Number of elements in list. */\n"
16689 "   struct guestfs_dirent *val; /* Elements. */\n"
16690 " };\n"
16691 " \n"
16692 msgstr ""
16693
16694 # type: verbatim
16695 #: ../src/guestfs-structs.pod:172
16696 #, no-wrap
16697 msgid ""
16698 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16699 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16700 "\n"
16701 msgstr ""
16702
16703 # type: verbatim
16704 #: ../src/guestfs-structs.pod:177
16705 #, no-wrap
16706 msgid ""
16707 " struct guestfs_version {\n"
16708 "   int64_t major;\n"
16709 "   int64_t minor;\n"
16710 "   int64_t release;\n"
16711 "   char *extra;\n"
16712 " };\n"
16713 " \n"
16714 msgstr ""
16715
16716 # type: verbatim
16717 #: ../src/guestfs-structs.pod:184
16718 #, no-wrap
16719 msgid ""
16720 " struct guestfs_version_list {\n"
16721 "   uint32_t len; /* Number of elements in list. */\n"
16722 "   struct guestfs_version *val; /* Elements. */\n"
16723 " };\n"
16724 " \n"
16725 msgstr ""
16726
16727 # type: verbatim
16728 #: ../src/guestfs-structs.pod:189
16729 #, no-wrap
16730 msgid ""
16731 " void guestfs_free_version (struct guestfs_free_version *);\n"
16732 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16733 "\n"
16734 msgstr ""
16735
16736 # type: =head2
16737 #: ../src/guestfs-structs.pod:192
16738 msgid "guestfs_xattr"
16739 msgstr ""
16740
16741 # type: verbatim
16742 #: ../src/guestfs-structs.pod:194
16743 #, no-wrap
16744 msgid ""
16745 " struct guestfs_xattr {\n"
16746 "   char *attrname;\n"
16747 "   /* The next two fields describe a byte array. */\n"
16748 "   uint32_t attrval_len;\n"
16749 "   char *attrval;\n"
16750 " };\n"
16751 " \n"
16752 msgstr ""
16753
16754 # type: verbatim
16755 #: ../src/guestfs-structs.pod:201
16756 #, no-wrap
16757 msgid ""
16758 " struct guestfs_xattr_list {\n"
16759 "   uint32_t len; /* Number of elements in list. */\n"
16760 "   struct guestfs_xattr *val; /* Elements. */\n"
16761 " };\n"
16762 " \n"
16763 msgstr ""
16764
16765 # type: verbatim
16766 #: ../src/guestfs-structs.pod:206
16767 #, no-wrap
16768 msgid ""
16769 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16770 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16771 "\n"
16772 msgstr ""
16773
16774 # type: =head2
16775 #: ../src/guestfs-structs.pod:209
16776 msgid "guestfs_inotify_event"
16777 msgstr ""
16778
16779 # type: verbatim
16780 #: ../src/guestfs-structs.pod:211
16781 #, no-wrap
16782 msgid ""
16783 " struct guestfs_inotify_event {\n"
16784 "   int64_t in_wd;\n"
16785 "   uint32_t in_mask;\n"
16786 "   uint32_t in_cookie;\n"
16787 "   char *in_name;\n"
16788 " };\n"
16789 " \n"
16790 msgstr ""
16791
16792 # type: verbatim
16793 #: ../src/guestfs-structs.pod:218
16794 #, no-wrap
16795 msgid ""
16796 " struct guestfs_inotify_event_list {\n"
16797 "   uint32_t len; /* Number of elements in list. */\n"
16798 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16799 " };\n"
16800 " \n"
16801 msgstr ""
16802
16803 # type: verbatim
16804 #: ../src/guestfs-structs.pod:223
16805 #, no-wrap
16806 msgid ""
16807 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16808 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16809 "\n"
16810 msgstr ""
16811
16812 # type: =head2
16813 #: ../src/guestfs-structs.pod:226
16814 msgid "guestfs_partition"
16815 msgstr ""
16816
16817 # type: verbatim
16818 #: ../src/guestfs-structs.pod:228
16819 #, no-wrap
16820 msgid ""
16821 " struct guestfs_partition {\n"
16822 "   int32_t part_num;\n"
16823 "   uint64_t part_start;\n"
16824 "   uint64_t part_end;\n"
16825 "   uint64_t part_size;\n"
16826 " };\n"
16827 " \n"
16828 msgstr ""
16829
16830 # type: verbatim
16831 #: ../src/guestfs-structs.pod:235
16832 #, no-wrap
16833 msgid ""
16834 " struct guestfs_partition_list {\n"
16835 "   uint32_t len; /* Number of elements in list. */\n"
16836 "   struct guestfs_partition *val; /* Elements. */\n"
16837 " };\n"
16838 " \n"
16839 msgstr ""
16840
16841 # type: verbatim
16842 #: ../src/guestfs-structs.pod:240
16843 #, no-wrap
16844 msgid ""
16845 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16846 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16847 "\n"
16848 msgstr ""
16849
16850 # type: =head2
16851 #: ../src/guestfs-structs.pod:243
16852 msgid "guestfs_application"
16853 msgstr ""
16854
16855 # type: verbatim
16856 #: ../src/guestfs-structs.pod:245
16857 #, no-wrap
16858 msgid ""
16859 " struct guestfs_application {\n"
16860 "   char *app_name;\n"
16861 "   char *app_display_name;\n"
16862 "   int32_t app_epoch;\n"
16863 "   char *app_version;\n"
16864 "   char *app_release;\n"
16865 "   char *app_install_path;\n"
16866 "   char *app_trans_path;\n"
16867 "   char *app_publisher;\n"
16868 "   char *app_url;\n"
16869 "   char *app_source_package;\n"
16870 "   char *app_summary;\n"
16871 "   char *app_description;\n"
16872 " };\n"
16873 " \n"
16874 msgstr ""
16875
16876 # type: verbatim
16877 #: ../src/guestfs-structs.pod:260
16878 #, no-wrap
16879 msgid ""
16880 " struct guestfs_application_list {\n"
16881 "   uint32_t len; /* Number of elements in list. */\n"
16882 "   struct guestfs_application *val; /* Elements. */\n"
16883 " };\n"
16884 " \n"
16885 msgstr ""
16886
16887 # type: verbatim
16888 #: ../src/guestfs-structs.pod:265
16889 #, no-wrap
16890 msgid ""
16891 " void guestfs_free_application (struct guestfs_free_application *);\n"
16892 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16893 "\n"
16894 msgstr ""
16895
16896 # type: textblock
16897 #: ../fish/guestfish.pod:5
16898 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16899 msgstr ""
16900
16901 # type: verbatim
16902 #: ../fish/guestfish.pod:9
16903 #, no-wrap
16904 msgid ""
16905 " guestfish [--options] [commands]\n"
16906 "\n"
16907 msgstr ""
16908
16909 # type: verbatim
16910 #: ../fish/guestfish.pod:11
16911 #, no-wrap
16912 msgid ""
16913 " guestfish\n"
16914 "\n"
16915 msgstr ""
16916
16917 # type: verbatim
16918 #: ../fish/guestfish.pod:13
16919 #, no-wrap
16920 msgid ""
16921 " guestfish [--ro|--rw] -a disk.img\n"
16922 "\n"
16923 msgstr ""
16924
16925 # type: verbatim
16926 #: ../fish/guestfish.pod:15
16927 #, no-wrap
16928 msgid ""
16929 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16930 "\n"
16931 msgstr ""
16932
16933 # type: verbatim
16934 #: ../fish/guestfish.pod:17
16935 #, no-wrap
16936 msgid ""
16937 " guestfish -d libvirt-domain\n"
16938 "\n"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #: ../fish/guestfish.pod:19
16943 #, no-wrap
16944 msgid ""
16945 " guestfish [--ro|--rw] -a disk.img -i\n"
16946 "\n"
16947 msgstr ""
16948
16949 # type: verbatim
16950 #: ../fish/guestfish.pod:21
16951 #, no-wrap
16952 msgid ""
16953 " guestfish -d libvirt-domain -i\n"
16954 "\n"
16955 msgstr ""
16956
16957 # type: =head1
16958 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16959 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16960 msgid "WARNING"
16961 msgstr ""
16962
16963 # type: textblock
16964 #: ../fish/guestfish.pod:25
16965 msgid ""
16966 "Using guestfish in read/write mode on live virtual machines can be "
16967 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16968 "option to use guestfish safely if the disk image or virtual machine might be "
16969 "live."
16970 msgstr ""
16971
16972 # type: textblock
16973 #: ../fish/guestfish.pod:32
16974 msgid ""
16975 "Guestfish is a shell and command-line tool for examining and modifying "
16976 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16977 "functionality of the guestfs API, see L<guestfs(3)>."
16978 msgstr ""
16979
16980 # type: textblock
16981 #: ../fish/guestfish.pod:36
16982 msgid ""
16983 "Guestfish gives you structured access to the libguestfs API, from shell "
16984 "scripts or the command line or interactively.  If you want to rescue a "
16985 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16986 "command."
16987 msgstr ""
16988
16989 # type: =head1
16990 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847
16991 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16992 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16993 msgid "EXAMPLES"
16994 msgstr ""
16995
16996 # type: =head2
16997 #: ../fish/guestfish.pod:43
16998 msgid "As an interactive shell"
16999 msgstr ""
17000
17001 # type: verbatim
17002 #: ../fish/guestfish.pod:45
17003 #, no-wrap
17004 msgid ""
17005 " $ guestfish\n"
17006 " \n"
17007 msgstr ""
17008
17009 # type: verbatim
17010 #: ../fish/guestfish.pod:47
17011 #, no-wrap
17012 msgid ""
17013 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17014 " editing virtual machine filesystems.\n"
17015 " \n"
17016 msgstr ""
17017
17018 # type: verbatim
17019 #: ../fish/guestfish.pod:50
17020 #, no-wrap
17021 msgid ""
17022 " Type: 'help' for a list of commands\n"
17023 "       'man' to read the manual\n"
17024 "       'quit' to quit the shell\n"
17025 " \n"
17026 msgstr ""
17027
17028 # type: verbatim
17029 #: ../fish/guestfish.pod:54
17030 #, no-wrap
17031 msgid ""
17032 " ><fs> add-ro disk.img\n"
17033 " ><fs> run\n"
17034 " ><fs> list-filesystems\n"
17035 " /dev/sda1: ext4\n"
17036 " /dev/vg_guest/lv_root: ext4\n"
17037 " /dev/vg_guest/lv_swap: swap\n"
17038 " ><fs> mount /dev/vg_guest/lv_root /\n"
17039 " ><fs> cat /etc/fstab\n"
17040 " # /etc/fstab\n"
17041 " # Created by anaconda\n"
17042 " [...]\n"
17043 " ><fs> exit\n"
17044 "\n"
17045 msgstr ""
17046
17047 # type: =head2
17048 #: ../fish/guestfish.pod:67
17049 msgid "From shell scripts"
17050 msgstr ""
17051
17052 # type: textblock
17053 #: ../fish/guestfish.pod:69
17054 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17055 msgstr ""
17056
17057 # type: verbatim
17058 #: ../fish/guestfish.pod:71
17059 #, no-wrap
17060 msgid ""
17061 " guestfish <<_EOF_\n"
17062 " add disk.img\n"
17063 " run\n"
17064 " mount /dev/vg_guest/lv_root /\n"
17065 " write /etc/motd \"Welcome, new users\"\n"
17066 " _EOF_\n"
17067 "\n"
17068 msgstr ""
17069
17070 # type: textblock
17071 #: ../fish/guestfish.pod:78
17072 msgid "List the LVM logical volumes in a disk image:"
17073 msgstr ""
17074
17075 # type: verbatim
17076 #: ../fish/guestfish.pod:80
17077 #, no-wrap
17078 msgid ""
17079 " guestfish -a disk.img --ro <<_EOF_\n"
17080 " run\n"
17081 " lvs\n"
17082 " _EOF_\n"
17083 "\n"
17084 msgstr ""
17085
17086 # type: textblock
17087 #: ../fish/guestfish.pod:85
17088 msgid "List all the filesystems in a disk image:"
17089 msgstr ""
17090
17091 # type: verbatim
17092 #: ../fish/guestfish.pod:87
17093 #, no-wrap
17094 msgid ""
17095 " guestfish -a disk.img --ro <<_EOF_\n"
17096 " run\n"
17097 " list-filesystems\n"
17098 " _EOF_\n"
17099 "\n"
17100 msgstr ""
17101
17102 # type: =head2
17103 #: ../fish/guestfish.pod:92
17104 msgid "On one command line"
17105 msgstr ""
17106
17107 # type: textblock
17108 #: ../fish/guestfish.pod:94
17109 msgid "Update C</etc/resolv.conf> in a guest:"
17110 msgstr ""
17111
17112 # type: verbatim
17113 #: ../fish/guestfish.pod:96
17114 #, no-wrap
17115 msgid ""
17116 " guestfish \\\n"
17117 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17118 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17119 "\n"
17120 msgstr ""
17121
17122 # type: textblock
17123 #: ../fish/guestfish.pod:100
17124 msgid "Edit C</boot/grub/grub.conf> interactively:"
17125 msgstr ""
17126
17127 # type: verbatim
17128 #: ../fish/guestfish.pod:102
17129 #, no-wrap
17130 msgid ""
17131 " guestfish --rw --add disk.img \\\n"
17132 "   --mount /dev/vg_guest/lv_root \\\n"
17133 "   --mount /dev/sda1:/boot \\\n"
17134 "   edit /boot/grub/grub.conf\n"
17135 "\n"
17136 msgstr ""
17137
17138 # type: =head2
17139 #: ../fish/guestfish.pod:107
17140 msgid "Mount disks automatically"
17141 msgstr ""
17142
17143 # type: textblock
17144 #: ../fish/guestfish.pod:109
17145 msgid ""
17146 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17147 msgstr ""
17148
17149 # type: verbatim
17150 #: ../fish/guestfish.pod:112
17151 #, no-wrap
17152 msgid ""
17153 " guestfish --ro -a disk.img -i cat /etc/group\n"
17154 "\n"
17155 msgstr ""
17156
17157 # type: verbatim
17158 #: ../fish/guestfish.pod:114
17159 #, no-wrap
17160 msgid ""
17161 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17162 "\n"
17163 msgstr ""
17164
17165 # type: textblock
17166 #: ../fish/guestfish.pod:116
17167 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17168 msgstr ""
17169
17170 # type: verbatim
17171 #: ../fish/guestfish.pod:118
17172 #, no-wrap
17173 msgid ""
17174 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17175 "\n"
17176 msgstr ""
17177
17178 # type: =head2
17179 #: ../fish/guestfish.pod:120
17180 msgid "As a script interpreter"
17181 msgstr ""
17182
17183 # type: textblock
17184 #: ../fish/guestfish.pod:122
17185 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17186 msgstr ""
17187
17188 # type: verbatim
17189 #: ../fish/guestfish.pod:124
17190 #, no-wrap
17191 msgid ""
17192 " #!/usr/bin/guestfish -f\n"
17193 " sparse test1.img 100M\n"
17194 " run\n"
17195 " part-disk /dev/sda mbr\n"
17196 " mkfs ext2 /dev/sda1\n"
17197 "\n"
17198 msgstr ""
17199
17200 # type: =head2
17201 #: ../fish/guestfish.pod:130
17202 msgid "Start with a prepared disk"
17203 msgstr ""
17204
17205 # type: textblock
17206 #: ../fish/guestfish.pod:132
17207 msgid ""
17208 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17209 "single ext2-formatted partition:"
17210 msgstr ""
17211
17212 # type: verbatim
17213 #: ../fish/guestfish.pod:135
17214 #, no-wrap
17215 msgid ""
17216 " guestfish -N fs\n"
17217 "\n"
17218 msgstr ""
17219
17220 # type: textblock
17221 #: ../fish/guestfish.pod:137
17222 msgid "To list what is available do:"
17223 msgstr ""
17224
17225 # type: verbatim
17226 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
17227 #, no-wrap
17228 msgid ""
17229 " guestfish -N help | less\n"
17230 "\n"
17231 msgstr ""
17232
17233 # type: =head2
17234 #: ../fish/guestfish.pod:141
17235 msgid "Remote control"
17236 msgstr ""
17237
17238 # type: verbatim
17239 #: ../fish/guestfish.pod:143
17240 #, no-wrap
17241 msgid ""
17242 " eval \"`guestfish --listen`\"\n"
17243 " guestfish --remote add-ro disk.img\n"
17244 " guestfish --remote run\n"
17245 " guestfish --remote lvs\n"
17246 "\n"
17247 msgstr ""
17248
17249 # type: =head1
17250 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17251 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17252 #: ../tools/virt-win-reg.pl:171 ../tools/virt-resize.pl:254
17253 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17254 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17255 msgid "OPTIONS"
17256 msgstr ""
17257
17258 # type: =item
17259 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17260 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17261 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
17262 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
17263 #: ../tools/virt-list-partitions.pl:62
17264 msgid "B<--help>"
17265 msgstr ""
17266
17267 # type: textblock
17268 #: ../fish/guestfish.pod:154
17269 msgid "Displays general help on options."
17270 msgstr ""
17271
17272 # type: =item
17273 #: ../fish/guestfish.pod:156
17274 msgid "B<-h> | B<--cmd-help>"
17275 msgstr ""
17276
17277 # type: textblock
17278 #: ../fish/guestfish.pod:158
17279 msgid "Lists all available guestfish commands."
17280 msgstr ""
17281
17282 # type: =item
17283 #: ../fish/guestfish.pod:160
17284 msgid "B<-h cmd> | B<--cmd-help cmd>"
17285 msgstr ""
17286
17287 # type: textblock
17288 #: ../fish/guestfish.pod:162
17289 msgid "Displays detailed help on a single command C<cmd>."
17290 msgstr ""
17291
17292 # type: =item
17293 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17294 msgid "B<-a image> | B<--add image>"
17295 msgstr ""
17296
17297 # type: textblock
17298 #: ../fish/guestfish.pod:166
17299 msgid "Add a block device or virtual machine image to the shell."
17300 msgstr ""
17301
17302 # type: textblock
17303 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17304 msgid ""
17305 "The format of the disk image is auto-detected.  To override this and force a "
17306 "particular format use the I<--format=..> option."
17307 msgstr ""
17308
17309 # type: =item
17310 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17311 msgid "B<-c URI> | B<--connect URI>"
17312 msgstr ""
17313
17314 # type: textblock
17315 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17316 msgid ""
17317 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17318 "URI to use.  The default is to use the default libvirt connection."
17319 msgstr ""
17320
17321 # type: =item
17322 #: ../fish/guestfish.pod:177
17323 msgid "B<--csh>"
17324 msgstr ""
17325
17326 # type: textblock
17327 #: ../fish/guestfish.pod:179
17328 msgid ""
17329 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17330 "section L</REMOTE CONTROL AND CSH> below."
17331 msgstr ""
17332
17333 # type: =item
17334 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17335 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17336 msgstr ""
17337
17338 # type: textblock
17339 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17340 msgid ""
17341 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17342 "used, then any libvirt domain can be used.  However in write mode, only "
17343 "libvirt domains which are shut down can be named here."
17344 msgstr ""
17345
17346 # type: =item
17347 #: ../fish/guestfish.pod:188
17348 msgid "B<-D> | B<--no-dest-paths>"
17349 msgstr ""
17350
17351 # type: textblock
17352 #: ../fish/guestfish.pod:190
17353 msgid ""
17354 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17355 "to hit the tab key to complete paths on the guest filesystem, but this "
17356 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17357 "allow this feature to be disabled."
17358 msgstr ""
17359
17360 # type: =item
17361 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17362 msgid "B<--echo-keys>"
17363 msgstr ""
17364
17365 # type: textblock
17366 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17367 msgid ""
17368 "When prompting for keys and passphrases, guestfish normally turns echoing "
17369 "off so you cannot see what you are typing.  If you are not worried about "
17370 "Tempest attacks and there is no one else in the room you can specify this "
17371 "flag to see what you are typing."
17372 msgstr ""
17373
17374 # type: =item
17375 #: ../fish/guestfish.pod:202
17376 msgid "B<-f file> | B<--file file>"
17377 msgstr ""
17378
17379 # type: textblock
17380 #: ../fish/guestfish.pod:204
17381 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17382 msgstr ""
17383
17384 # type: verbatim
17385 #: ../fish/guestfish.pod:207
17386 #, no-wrap
17387 msgid ""
17388 " #!/usr/bin/guestfish -f\n"
17389 "\n"
17390 msgstr ""
17391
17392 # type: =item
17393 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17394 msgid "B<--format=raw|qcow2|..> | B<--format>"
17395 msgstr ""
17396
17397 # type: textblock
17398 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17399 msgid ""
17400 "The default for the I<-a> option is to auto-detect the format of the disk "
17401 "image.  Using this forces the disk format for I<-a> options which follow on "
17402 "the command line.  Using I<--format> with no argument switches back to auto-"
17403 "detection for subsequent I<-a> options."
17404 msgstr ""
17405
17406 # type: textblock
17407 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17408 msgid "For example:"
17409 msgstr ""
17410
17411 # type: verbatim
17412 #: ../fish/guestfish.pod:218
17413 #, no-wrap
17414 msgid ""
17415 " guestfish --format=raw -a disk.img\n"
17416 "\n"
17417 msgstr ""
17418
17419 # type: textblock
17420 #: ../fish/guestfish.pod:220
17421 msgid "forces raw format (no auto-detection) for C<disk.img>."
17422 msgstr ""
17423
17424 # type: verbatim
17425 #: ../fish/guestfish.pod:222
17426 #, no-wrap
17427 msgid ""
17428 " guestfish --format=raw -a disk.img --format -a another.img\n"
17429 "\n"
17430 msgstr ""
17431
17432 # type: textblock
17433 #: ../fish/guestfish.pod:224
17434 msgid ""
17435 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17436 "detection for C<another.img>."
17437 msgstr ""
17438
17439 # type: textblock
17440 #: ../fish/guestfish.pod:227
17441 msgid ""
17442 "If you have untrusted raw-format guest disk images, you should use this "
17443 "option to specify the disk format.  This avoids a possible security problem "
17444 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17445 msgstr ""
17446
17447 # type: =item
17448 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17449 msgid "B<-i> | B<--inspector>"
17450 msgstr ""
17451
17452 # type: textblock
17453 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17454 msgid ""
17455 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17456 "system and mount filesystems as they would be mounted on the real virtual "
17457 "machine."
17458 msgstr ""
17459
17460 # type: textblock
17461 #: ../fish/guestfish.pod:238
17462 msgid "Typical usage is either:"
17463 msgstr ""
17464
17465 # type: verbatim
17466 #: ../fish/guestfish.pod:240
17467 #, no-wrap
17468 msgid ""
17469 " guestfish -d myguest -i\n"
17470 "\n"
17471 msgstr ""
17472
17473 # type: textblock
17474 #: ../fish/guestfish.pod:242
17475 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17476 msgstr ""
17477
17478 # type: verbatim
17479 #: ../fish/guestfish.pod:244
17480 #, no-wrap
17481 msgid ""
17482 " guestfish --ro -d myguest -i\n"
17483 "\n"
17484 msgstr ""
17485
17486 # type: textblock
17487 #: ../fish/guestfish.pod:246
17488 msgid "(for active domains, readonly), or specify the block device directly:"
17489 msgstr ""
17490
17491 # type: verbatim
17492 #: ../fish/guestfish.pod:248
17493 #, no-wrap
17494 msgid ""
17495 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17496 "\n"
17497 msgstr ""
17498
17499 # type: textblock
17500 #: ../fish/guestfish.pod:250
17501 msgid ""
17502 "Note that the command line syntax changed slightly over older versions of "
17503 "guestfish.  You can still use the old syntax:"
17504 msgstr ""
17505
17506 # type: verbatim
17507 #: ../fish/guestfish.pod:253
17508 #, no-wrap
17509 msgid ""
17510 " guestfish [--ro] -i disk.img\n"
17511 "\n"
17512 msgstr ""
17513
17514 # type: verbatim
17515 #: ../fish/guestfish.pod:255
17516 #, no-wrap
17517 msgid ""
17518 " guestfish [--ro] -i libvirt-domain\n"
17519 "\n"
17520 msgstr ""
17521
17522 # type: =item
17523 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17524 msgid "B<--keys-from-stdin>"
17525 msgstr ""
17526
17527 # type: textblock
17528 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17529 msgid ""
17530 "Read key or passphrase parameters from stdin.  The default is to try to read "
17531 "passphrases from the user by opening C</dev/tty>."
17532 msgstr ""
17533
17534 # type: =item
17535 #: ../fish/guestfish.pod:262
17536 msgid "B<--listen>"
17537 msgstr ""
17538
17539 # type: textblock
17540 #: ../fish/guestfish.pod:264
17541 msgid ""
17542 "Fork into the background and listen for remote commands.  See section L</"
17543 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17544 msgstr ""
17545
17546 # type: =item
17547 #: ../fish/guestfish.pod:267
17548 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17549 msgstr ""
17550
17551 # type: textblock
17552 #: ../fish/guestfish.pod:269
17553 msgid "Mount the named partition or logical volume on the given mountpoint."
17554 msgstr ""
17555
17556 # type: textblock
17557 #: ../fish/guestfish.pod:271
17558 msgid "If the mountpoint is omitted, it defaults to C</>."
17559 msgstr ""
17560
17561 # type: textblock
17562 #: ../fish/guestfish.pod:273
17563 msgid "You have to mount something on C</> before most commands will work."
17564 msgstr ""
17565
17566 # type: textblock
17567 #: ../fish/guestfish.pod:275
17568 msgid ""
17569 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17570 "launched."
17571 msgstr ""
17572
17573 # type: textblock
17574 #: ../fish/guestfish.pod:278
17575 msgid ""
17576 "If you don't know what filesystems a disk image contains, you can either run "
17577 "guestfish without this option, then list the partitions, filesystems and LVs "
17578 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17579 "commands), or you can use the L<virt-filesystems(1)> program."
17580 msgstr ""
17581
17582 # type: =item
17583 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17584 msgid "B<-n> | B<--no-sync>"
17585 msgstr ""
17586
17587 # type: textblock
17588 #: ../fish/guestfish.pod:286
17589 msgid ""
17590 "Disable autosync.  This is enabled by default.  See the discussion of "
17591 "autosync in the L<guestfs(3)> manpage."
17592 msgstr ""
17593
17594 # type: =item
17595 #: ../fish/guestfish.pod:289
17596 msgid "B<-N type> | B<--new type> | B<-N help>"
17597 msgstr ""
17598
17599 # type: textblock
17600 #: ../fish/guestfish.pod:291
17601 msgid ""
17602 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17603 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17604 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17605 "IMAGES> below."
17606 msgstr ""
17607
17608 # type: =item
17609 #: ../fish/guestfish.pod:296
17610 msgid "B<--progress-bars>"
17611 msgstr ""
17612
17613 # type: textblock
17614 #: ../fish/guestfish.pod:298
17615 msgid "Enable progress bars, even when guestfish is used non-interactively."
17616 msgstr ""
17617
17618 # type: textblock
17619 #: ../fish/guestfish.pod:300
17620 msgid ""
17621 "Progress bars are enabled by default when guestfish is used as an "
17622 "interactive shell."
17623 msgstr ""
17624
17625 # type: =item
17626 #: ../fish/guestfish.pod:303
17627 msgid "B<--no-progress-bars>"
17628 msgstr ""
17629
17630 # type: textblock
17631 #: ../fish/guestfish.pod:305
17632 msgid "Disable progress bars."
17633 msgstr ""
17634
17635 # type: =item
17636 #: ../fish/guestfish.pod:307
17637 msgid "B<--remote[=pid]>"
17638 msgstr ""
17639
17640 # type: textblock
17641 #: ../fish/guestfish.pod:309
17642 msgid ""
17643 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17644 "CONTROL GUESTFISH OVER A SOCKET> below."
17645 msgstr ""
17646
17647 # type: =item
17648 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17649 msgid "B<-r> | B<--ro>"
17650 msgstr ""
17651
17652 # type: textblock
17653 #: ../fish/guestfish.pod:314
17654 msgid ""
17655 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17656 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17657 msgstr ""
17658
17659 # type: textblock
17660 #: ../fish/guestfish.pod:317
17661 msgid ""
17662 "The option must always be used if the disk image or virtual machine might be "
17663 "running, and is generally recommended in cases where you don't need write "
17664 "access to the disk."
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish.pod:321
17669 msgid ""
17670 "Note that prepared disk images created with I<-N> are not affected by the "
17671 "I<--ro> option."
17672 msgstr ""
17673
17674 # type: textblock
17675 #: ../fish/guestfish.pod:324
17676 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17677 msgstr ""
17678
17679 # type: =item
17680 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17681 msgid "B<--selinux>"
17682 msgstr ""
17683
17684 # type: textblock
17685 #: ../fish/guestfish.pod:328
17686 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17687 msgstr ""
17688
17689 # type: =item
17690 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17691 msgid "B<-v> | B<--verbose>"
17692 msgstr ""
17693
17694 # type: textblock
17695 #: ../fish/guestfish.pod:332
17696 msgid ""
17697 "Enable very verbose messages.  This is particularly useful if you find a bug."
17698 msgstr ""
17699
17700 # type: =item
17701 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17702 msgid "B<-V> | B<--version>"
17703 msgstr ""
17704
17705 # type: textblock
17706 #: ../fish/guestfish.pod:337
17707 msgid "Display the guestfish / libguestfs version number and exit."
17708 msgstr ""
17709
17710 # type: =item
17711 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17712 msgid "B<-w> | B<--rw>"
17713 msgstr ""
17714
17715 # type: textblock
17716 #: ../fish/guestfish.pod:341
17717 msgid ""
17718 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17719 "WRITE> below."
17720 msgstr ""
17721
17722 # type: =item
17723 #: ../fish/guestfish.pod:344
17724 msgid "B<-x>"
17725 msgstr ""
17726
17727 # type: textblock
17728 #: ../fish/guestfish.pod:346
17729 msgid "Echo each command before executing it."
17730 msgstr ""
17731
17732 # type: =head1
17733 #: ../fish/guestfish.pod:350
17734 msgid "COMMANDS ON COMMAND LINE"
17735 msgstr ""
17736
17737 # type: textblock
17738 #: ../fish/guestfish.pod:352
17739 msgid ""
17740 "Any additional (non-option) arguments are treated as commands to execute."
17741 msgstr ""
17742
17743 # type: textblock
17744 #: ../fish/guestfish.pod:355
17745 msgid ""
17746 "Commands to execute should be separated by a colon (C<:>), where the colon "
17747 "is a separate parameter.  Thus:"
17748 msgstr ""
17749
17750 # type: verbatim
17751 #: ../fish/guestfish.pod:358
17752 #, no-wrap
17753 msgid ""
17754 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17755 "\n"
17756 msgstr ""
17757
17758 # type: textblock
17759 #: ../fish/guestfish.pod:360
17760 msgid ""
17761 "If there are no additional arguments, then we enter a shell, either an "
17762 "interactive shell with a prompt (if the input is a terminal) or a non-"
17763 "interactive shell."
17764 msgstr ""
17765
17766 # type: textblock
17767 #: ../fish/guestfish.pod:364
17768 msgid ""
17769 "In either command line mode or non-interactive shell, the first command that "
17770 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17771 "prompt) if a command fails, you can continue to enter commands."
17772 msgstr ""
17773
17774 # type: =head1
17775 #: ../fish/guestfish.pod:369
17776 msgid "USING launch (OR run)"
17777 msgstr ""
17778
17779 # type: textblock
17780 #: ../fish/guestfish.pod:371
17781 msgid ""
17782 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17783 "then launch it, then mount any disks you need, and finally issue actions/"
17784 "commands.  So the general order of the day is:"
17785 msgstr ""
17786
17787 # type: textblock
17788 #: ../fish/guestfish.pod:379
17789 msgid "add or -a/--add"
17790 msgstr ""
17791
17792 # type: textblock
17793 #: ../fish/guestfish.pod:383
17794 msgid "launch (aka run)"
17795 msgstr ""
17796
17797 # type: textblock
17798 #: ../fish/guestfish.pod:387
17799 msgid "mount or -m/--mount"
17800 msgstr ""
17801
17802 # type: textblock
17803 #: ../fish/guestfish.pod:391
17804 msgid "any other commands"
17805 msgstr ""
17806
17807 # type: textblock
17808 #: ../fish/guestfish.pod:395
17809 msgid ""
17810 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17811 "guest before mounting or performing any other commands."
17812 msgstr ""
17813
17814 # type: textblock
17815 #: ../fish/guestfish.pod:398
17816 msgid ""
17817 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17818 "I<--new> options were given then C<run> is done automatically, simply "
17819 "because guestfish can't perform the action you asked for without doing this."
17820 msgstr ""
17821
17822 # type: =head1
17823 #: ../fish/guestfish.pod:403
17824 msgid "OPENING DISKS FOR READ AND WRITE"
17825 msgstr ""
17826
17827 # type: textblock
17828 #: ../fish/guestfish.pod:405
17829 msgid ""
17830 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17831 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17832 "open disk images read-only or for writing."
17833 msgstr ""
17834
17835 # type: textblock
17836 #: ../fish/guestfish.pod:409
17837 msgid ""
17838 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17839 "disk images supplied on the command line for write.  To open a disk image "
17840 "read-only you have to do I<-a image --ro>."
17841 msgstr ""
17842
17843 # type: textblock
17844 #: ../fish/guestfish.pod:413
17845 msgid ""
17846 "This matters: If you accidentally open a live VM disk image writable then "
17847 "you will cause irreversible disk corruption."
17848 msgstr ""
17849
17850 # type: textblock
17851 #: ../fish/guestfish.pod:416
17852 msgid ""
17853 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17854 "images will be opened read-only.  You will have to either specify "
17855 "I<guestfish --rw> or change a configuration file in order to get write "
17856 "access for disk images specified by those other command line options."
17857 msgstr ""
17858
17859 # type: textblock
17860 #: ../fish/guestfish.pod:421
17861 msgid ""
17862 "This version of guestfish has a I<--rw> option which does nothing (it is "
17863 "already the default).  However it is highly recommended that you use this "
17864 "option to indicate that guestfish needs write access, and to prepare your "
17865 "scripts for the day when this option will be required for write access."
17866 msgstr ""
17867
17868 # type: textblock
17869 #: ../fish/guestfish.pod:427
17870 msgid ""
17871 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17872 "other libguestfs program apart from guestfish and guestmount."
17873 msgstr ""
17874
17875 # type: =head1
17876 #: ../fish/guestfish.pod:430
17877 msgid "QUOTING"
17878 msgstr ""
17879
17880 # type: textblock
17881 #: ../fish/guestfish.pod:432
17882 msgid ""
17883 "You can quote ordinary parameters using either single or double quotes.  For "
17884 "example:"
17885 msgstr ""
17886
17887 # type: verbatim
17888 #: ../fish/guestfish.pod:435
17889 #, no-wrap
17890 msgid ""
17891 " add \"file with a space.img\"\n"
17892 "\n"
17893 msgstr ""
17894
17895 # type: verbatim
17896 #: ../fish/guestfish.pod:437
17897 #, no-wrap
17898 msgid ""
17899 " rm '/file name'\n"
17900 "\n"
17901 msgstr ""
17902
17903 # type: verbatim
17904 #: ../fish/guestfish.pod:439
17905 #, no-wrap
17906 msgid ""
17907 " rm '/\"'\n"
17908 "\n"
17909 msgstr ""
17910
17911 # type: textblock
17912 #: ../fish/guestfish.pod:441
17913 msgid ""
17914 "A few commands require a list of strings to be passed.  For these, use a "
17915 "whitespace-separated list, enclosed in quotes.  Strings containing "
17916 "whitespace to be passed through must be enclosed in single quotes.  A "
17917 "literal single quote must be escaped with a backslash."
17918 msgstr ""
17919
17920 # type: verbatim
17921 #: ../fish/guestfish.pod:446
17922 #, no-wrap
17923 msgid ""
17924 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17925 " command \"/bin/echo 'foo      bar'\"\n"
17926 " command \"/bin/echo \\'foo\\'\"\n"
17927 "\n"
17928 msgstr ""
17929
17930 # type: =head1
17931 #: ../fish/guestfish.pod:450
17932 msgid "OPTIONAL ARGUMENTS"
17933 msgstr ""
17934
17935 # type: textblock
17936 #: ../fish/guestfish.pod:452
17937 msgid ""
17938 "Some commands take optional arguments.  These arguments appear in this "
17939 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17940 msgstr ""
17941
17942 # type: verbatim
17943 #: ../fish/guestfish.pod:456
17944 #, no-wrap
17945 msgid ""
17946 " add-drive-opts filename\n"
17947 "\n"
17948 msgstr ""
17949
17950 # type: verbatim
17951 #: ../fish/guestfish.pod:458
17952 #, no-wrap
17953 msgid ""
17954 " add-drive-opts filename readonly:true\n"
17955 "\n"
17956 msgstr ""
17957
17958 # type: verbatim
17959 #: ../fish/guestfish.pod:460
17960 #, no-wrap
17961 msgid ""
17962 " add-drive-opts filename format:qcow2 readonly:false\n"
17963 "\n"
17964 msgstr ""
17965
17966 # type: textblock
17967 #: ../fish/guestfish.pod:462
17968 msgid ""
17969 "Each optional argument can appear at most once.  All optional arguments must "
17970 "appear after the required ones."
17971 msgstr ""
17972
17973 # type: =head1
17974 #: ../fish/guestfish.pod:465
17975 msgid "NUMBERS"
17976 msgstr ""
17977
17978 # type: textblock
17979 #: ../fish/guestfish.pod:467
17980 msgid ""
17981 "This section applies to all commands which can take integers as parameters."
17982 msgstr ""
17983
17984 # type: =head2
17985 #: ../fish/guestfish.pod:470
17986 msgid "SIZE SUFFIX"
17987 msgstr ""
17988
17989 # type: textblock
17990 #: ../fish/guestfish.pod:472
17991 msgid ""
17992 "When the command takes a parameter measured in bytes, you can use one of the "
17993 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17994 msgstr ""
17995
17996 # type: =item
17997 #: ../fish/guestfish.pod:478
17998 msgid "B<k> or B<K> or B<KiB>"
17999 msgstr ""
18000
18001 # type: textblock
18002 #: ../fish/guestfish.pod:480
18003 msgid "The size in kilobytes (multiplied by 1024)."
18004 msgstr ""
18005
18006 # type: =item
18007 #: ../fish/guestfish.pod:482
18008 msgid "B<KB>"
18009 msgstr ""
18010
18011 # type: textblock
18012 #: ../fish/guestfish.pod:484
18013 msgid "The size in SI 1000 byte units."
18014 msgstr ""
18015
18016 # type: =item
18017 #: ../fish/guestfish.pod:486
18018 msgid "B<M> or B<MiB>"
18019 msgstr ""
18020
18021 # type: textblock
18022 #: ../fish/guestfish.pod:488
18023 msgid "The size in megabytes (multiplied by 1048576)."
18024 msgstr ""
18025
18026 # type: =item
18027 #: ../fish/guestfish.pod:490
18028 msgid "B<MB>"
18029 msgstr ""
18030
18031 # type: textblock
18032 #: ../fish/guestfish.pod:492
18033 msgid "The size in SI 1000000 byte units."
18034 msgstr ""
18035
18036 # type: =item
18037 #: ../fish/guestfish.pod:494
18038 msgid "B<G> or B<GiB>"
18039 msgstr ""
18040
18041 # type: textblock
18042 #: ../fish/guestfish.pod:496
18043 msgid "The size in gigabytes (multiplied by 2**30)."
18044 msgstr ""
18045
18046 # type: =item
18047 #: ../fish/guestfish.pod:498
18048 msgid "B<GB>"
18049 msgstr ""
18050
18051 # type: textblock
18052 #: ../fish/guestfish.pod:500
18053 msgid "The size in SI 10**9 byte units."
18054 msgstr ""
18055
18056 # type: =item
18057 #: ../fish/guestfish.pod:502
18058 msgid "B<T> or B<TiB>"
18059 msgstr ""
18060
18061 # type: textblock
18062 #: ../fish/guestfish.pod:504
18063 msgid "The size in terabytes (multiplied by 2**40)."
18064 msgstr ""
18065
18066 # type: =item
18067 #: ../fish/guestfish.pod:506
18068 msgid "B<TB>"
18069 msgstr ""
18070
18071 # type: textblock
18072 #: ../fish/guestfish.pod:508
18073 msgid "The size in SI 10**12 byte units."
18074 msgstr ""
18075
18076 # type: =item
18077 #: ../fish/guestfish.pod:510
18078 msgid "B<P> or B<PiB>"
18079 msgstr ""
18080
18081 # type: textblock
18082 #: ../fish/guestfish.pod:512
18083 msgid "The size in petabytes (multiplied by 2**50)."
18084 msgstr ""
18085
18086 # type: =item
18087 #: ../fish/guestfish.pod:514
18088 msgid "B<PB>"
18089 msgstr ""
18090
18091 # type: textblock
18092 #: ../fish/guestfish.pod:516
18093 msgid "The size in SI 10**15 byte units."
18094 msgstr ""
18095
18096 # type: =item
18097 #: ../fish/guestfish.pod:518
18098 msgid "B<E> or B<EiB>"
18099 msgstr ""
18100
18101 # type: textblock
18102 #: ../fish/guestfish.pod:520
18103 msgid "The size in exabytes (multiplied by 2**60)."
18104 msgstr ""
18105
18106 # type: =item
18107 #: ../fish/guestfish.pod:522
18108 msgid "B<EB>"
18109 msgstr ""
18110
18111 # type: textblock
18112 #: ../fish/guestfish.pod:524
18113 msgid "The size in SI 10**18 byte units."
18114 msgstr ""
18115
18116 # type: =item
18117 #: ../fish/guestfish.pod:526
18118 msgid "B<Z> or B<ZiB>"
18119 msgstr ""
18120
18121 # type: textblock
18122 #: ../fish/guestfish.pod:528
18123 msgid "The size in zettabytes (multiplied by 2**70)."
18124 msgstr ""
18125
18126 # type: =item
18127 #: ../fish/guestfish.pod:530
18128 msgid "B<ZB>"
18129 msgstr ""
18130
18131 # type: textblock
18132 #: ../fish/guestfish.pod:532
18133 msgid "The size in SI 10**21 byte units."
18134 msgstr ""
18135
18136 # type: =item
18137 #: ../fish/guestfish.pod:534
18138 msgid "B<Y> or B<YiB>"
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish.pod:536
18143 msgid "The size in yottabytes (multiplied by 2**80)."
18144 msgstr ""
18145
18146 # type: =item
18147 #: ../fish/guestfish.pod:538
18148 msgid "B<YB>"
18149 msgstr ""
18150
18151 # type: textblock
18152 #: ../fish/guestfish.pod:540
18153 msgid "The size in SI 10**24 byte units."
18154 msgstr ""
18155
18156 # type: verbatim
18157 #: ../fish/guestfish.pod:546
18158 #, no-wrap
18159 msgid ""
18160 " truncate-size /file 1G\n"
18161 "\n"
18162 msgstr ""
18163
18164 # type: textblock
18165 #: ../fish/guestfish.pod:548
18166 msgid "would truncate the file to 1 gigabyte."
18167 msgstr ""
18168
18169 # type: textblock
18170 #: ../fish/guestfish.pod:550
18171 msgid ""
18172 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18173 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18174 "suffix will probably not do what you expect."
18175 msgstr ""
18176
18177 # type: =head2
18178 #: ../fish/guestfish.pod:554
18179 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18180 msgstr ""
18181
18182 # type: textblock
18183 #: ../fish/guestfish.pod:556
18184 msgid ""
18185 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18186 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18187 msgstr ""
18188
18189 # type: verbatim
18190 #: ../fish/guestfish.pod:559
18191 #, no-wrap
18192 msgid ""
18193 " 1234      decimal number 1234\n"
18194 " 02322     octal number, equivalent to decimal 1234\n"
18195 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18196 "\n"
18197 msgstr ""
18198
18199 # type: textblock
18200 #: ../fish/guestfish.pod:563
18201 msgid ""
18202 "When using the C<chmod> command, you almost always want to specify an octal "
18203 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18204 "L<chmod(1)> program):"
18205 msgstr ""
18206
18207 # type: verbatim
18208 #: ../fish/guestfish.pod:567
18209 #, no-wrap
18210 msgid ""
18211 " chmod 0777 /public  # OK\n"
18212 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18213 "\n"
18214 msgstr ""
18215
18216 # type: textblock
18217 #: ../fish/guestfish.pod:570
18218 msgid ""
18219 "Commands that return numbers usually print them in decimal, but some "
18220 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18221 "octal, preceeded by C<0>)."
18222 msgstr ""
18223
18224 # type: =head1
18225 #: ../fish/guestfish.pod:574
18226 msgid "WILDCARDS AND GLOBBING"
18227 msgstr ""
18228
18229 # type: textblock
18230 #: ../fish/guestfish.pod:576
18231 msgid ""
18232 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18233 "(globbing) by default.  So for example the following will not do what you "
18234 "expect:"
18235 msgstr ""
18236
18237 # type: verbatim
18238 #: ../fish/guestfish.pod:580
18239 #, no-wrap
18240 msgid ""
18241 " rm-rf /home/*\n"
18242 "\n"
18243 msgstr ""
18244
18245 # type: textblock
18246 #: ../fish/guestfish.pod:582
18247 msgid ""
18248 "Assuming you don't have a directory called literally C</home/*> then the "
18249 "above command will return an error."
18250 msgstr ""
18251
18252 # type: textblock
18253 #: ../fish/guestfish.pod:585
18254 msgid "To perform wildcard expansion, use the C<glob> command."
18255 msgstr ""
18256
18257 # type: verbatim
18258 #: ../fish/guestfish.pod:587
18259 #, no-wrap
18260 msgid ""
18261 " glob rm-rf /home/*\n"
18262 "\n"
18263 msgstr ""
18264
18265 # type: textblock
18266 #: ../fish/guestfish.pod:589
18267 msgid ""
18268 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18269 "many times), equivalent to:"
18270 msgstr ""
18271
18272 # type: verbatim
18273 #: ../fish/guestfish.pod:592
18274 #, no-wrap
18275 msgid ""
18276 " rm-rf /home/jim\n"
18277 " rm-rf /home/joe\n"
18278 " rm-rf /home/mary\n"
18279 "\n"
18280 msgstr ""
18281
18282 # type: textblock
18283 #: ../fish/guestfish.pod:596
18284 msgid "C<glob> only works on simple guest paths and not on device names."
18285 msgstr ""
18286
18287 # type: textblock
18288 #: ../fish/guestfish.pod:598
18289 msgid ""
18290 "If you have several parameters, each containing a wildcard, then glob will "
18291 "perform a Cartesian product."
18292 msgstr ""
18293
18294 # type: =head1
18295 #: ../fish/guestfish.pod:601
18296 msgid "COMMENTS"
18297 msgstr ""
18298
18299 # type: textblock
18300 #: ../fish/guestfish.pod:603
18301 msgid ""
18302 "Any line which starts with a I<#> character is treated as a comment and "
18303 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18304 "a command.  For example:"
18305 msgstr ""
18306
18307 # type: verbatim
18308 #: ../fish/guestfish.pod:607
18309 #, no-wrap
18310 msgid ""
18311 " # this is a comment\n"
18312 "         # this is a comment\n"
18313 " foo # NOT a comment\n"
18314 "\n"
18315 msgstr ""
18316
18317 # type: textblock
18318 #: ../fish/guestfish.pod:611
18319 msgid "Blank lines are also ignored."
18320 msgstr ""
18321
18322 # type: =head1
18323 #: ../fish/guestfish.pod:613
18324 msgid "RUNNING COMMANDS LOCALLY"
18325 msgstr ""
18326
18327 # type: textblock
18328 #: ../fish/guestfish.pod:615
18329 msgid ""
18330 "Any line which starts with a I<!> character is treated as a command sent to "
18331 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18332 msgstr ""
18333
18334 # type: verbatim
18335 #: ../fish/guestfish.pod:619
18336 #, no-wrap
18337 msgid ""
18338 " !mkdir local\n"
18339 " tgz-out /remote local/remote-data.tar.gz\n"
18340 "\n"
18341 msgstr ""
18342
18343 # type: textblock
18344 #: ../fish/guestfish.pod:622
18345 msgid ""
18346 "will create a directory C<local> on the host, and then export the contents "
18347 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18348 "(See C<tgz-out>)."
18349 msgstr ""
18350
18351 # type: textblock
18352 #: ../fish/guestfish.pod:626
18353 msgid ""
18354 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18355 "effect, due to the way that subprocesses work in Unix."
18356 msgstr ""
18357
18358 # type: =head1
18359 #: ../fish/guestfish.pod:629
18360 msgid "PIPES"
18361 msgstr ""
18362
18363 # type: textblock
18364 #: ../fish/guestfish.pod:631
18365 msgid ""
18366 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18367 "command (a guestfish command) to the second command (any host command).  For "
18368 "example:"
18369 msgstr ""
18370
18371 # type: verbatim
18372 #: ../fish/guestfish.pod:635
18373 #, no-wrap
18374 msgid ""
18375 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18376 "\n"
18377 msgstr ""
18378
18379 # type: textblock
18380 #: ../fish/guestfish.pod:637
18381 msgid ""
18382 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18383 "program).  The above command would list all accounts in the guest filesystem "
18384 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18385 msgstr ""
18386
18387 # type: verbatim
18388 #: ../fish/guestfish.pod:642
18389 #, no-wrap
18390 msgid ""
18391 " hexdump /bin/ls | head\n"
18392 " list-devices | tail -1\n"
18393 " tgz-out / - | tar ztf -\n"
18394 "\n"
18395 msgstr ""
18396
18397 # type: textblock
18398 #: ../fish/guestfish.pod:646
18399 msgid ""
18400 "The space before the pipe symbol is required, any space after the pipe "
18401 "symbol is optional.  Everything after the pipe symbol is just passed "
18402 "straight to the host shell, so it can contain redirections, globs and "
18403 "anything else that makes sense on the host side."
18404 msgstr ""
18405
18406 # type: textblock
18407 #: ../fish/guestfish.pod:651
18408 msgid ""
18409 "To use a literal argument which begins with a pipe symbol, you have to quote "
18410 "it, eg:"
18411 msgstr ""
18412
18413 # type: verbatim
18414 #: ../fish/guestfish.pod:654
18415 #, no-wrap
18416 msgid ""
18417 " echo \"|\"\n"
18418 "\n"
18419 msgstr ""
18420
18421 # type: =head1
18422 #: ../fish/guestfish.pod:656
18423 msgid "HOME DIRECTORIES"
18424 msgstr ""
18425
18426 # type: textblock
18427 #: ../fish/guestfish.pod:658
18428 msgid ""
18429 "If a parameter starts with the character C<~> then the tilde may be expanded "
18430 "as a home directory path (either C<~> for the current user's home directory, "
18431 "or C<~user> for another user)."
18432 msgstr ""
18433
18434 # type: textblock
18435 #: ../fish/guestfish.pod:662
18436 msgid ""
18437 "Note that home directory expansion happens for users known I<on the host>, "
18438 "not in the guest filesystem."
18439 msgstr ""
18440
18441 # type: textblock
18442 #: ../fish/guestfish.pod:665
18443 msgid ""
18444 "To use a literal argument which begins with a tilde, you have to quote it, "
18445 "eg:"
18446 msgstr ""
18447
18448 # type: verbatim
18449 #: ../fish/guestfish.pod:668
18450 #, no-wrap
18451 msgid ""
18452 " echo \"~\"\n"
18453 "\n"
18454 msgstr ""
18455
18456 # type: textblock
18457 #: ../fish/guestfish.pod:672
18458 msgid ""
18459 "Libguestfs has some support for Linux guests encrypted according to the "
18460 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18461 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18462 "LUKS is supported."
18463 msgstr ""
18464
18465 # type: textblock
18466 #: ../fish/guestfish.pod:677
18467 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18468 msgstr ""
18469
18470 # type: verbatim
18471 #: ../fish/guestfish.pod:679
18472 #, no-wrap
18473 msgid ""
18474 " ><fs> vfs-type /dev/sda2\n"
18475 " crypto_LUKS\n"
18476 "\n"
18477 msgstr ""
18478
18479 # type: textblock
18480 #: ../fish/guestfish.pod:682
18481 msgid ""
18482 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18483 "device called C</dev/mapper/luksdev>."
18484 msgstr ""
18485
18486 # type: verbatim
18487 #: ../fish/guestfish.pod:685
18488 #, no-wrap
18489 msgid ""
18490 " ><fs> luks-open /dev/sda2 luksdev\n"
18491 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18492 "\n"
18493 msgstr ""
18494
18495 # type: textblock
18496 #: ../fish/guestfish.pod:688
18497 msgid ""
18498 "Finally you have to tell LVM to scan for volume groups on the newly created "
18499 "mapper device:"
18500 msgstr ""
18501
18502 # type: verbatim
18503 #: ../fish/guestfish.pod:691
18504 #, no-wrap
18505 msgid ""
18506 " vgscan\n"
18507 " vg-activate-all true\n"
18508 "\n"
18509 msgstr ""
18510
18511 # type: textblock
18512 #: ../fish/guestfish.pod:694
18513 msgid "The logical volume(s) can now be mounted in the usual way."
18514 msgstr ""
18515
18516 # type: textblock
18517 #: ../fish/guestfish.pod:696
18518 msgid ""
18519 "Before closing a LUKS device you must unmount any logical volumes on it and "
18520 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18521 "one.  Then you can close the mapper device:"
18522 msgstr ""
18523
18524 # type: verbatim
18525 #: ../fish/guestfish.pod:700
18526 #, no-wrap
18527 msgid ""
18528 " vg-activate false /dev/VG\n"
18529 " luks-close /dev/mapper/luksdev\n"
18530 "\n"
18531 msgstr ""
18532
18533 # type: =head1
18534 #: ../fish/guestfish.pod:703
18535 msgid "WINDOWS PATHS"
18536 msgstr ""
18537
18538 # type: textblock
18539 #: ../fish/guestfish.pod:705
18540 msgid ""
18541 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18542 "(with some limitations).  The following commands are equivalent:"
18543 msgstr ""
18544
18545 # type: verbatim
18546 #: ../fish/guestfish.pod:708
18547 #, no-wrap
18548 msgid ""
18549 " file /WINDOWS/system32/config/system.LOG\n"
18550 "\n"
18551 msgstr ""
18552
18553 # type: verbatim
18554 #: ../fish/guestfish.pod:710
18555 #, no-wrap
18556 msgid ""
18557 " file win:/windows/system32/config/system.log\n"
18558 "\n"
18559 msgstr ""
18560
18561 # type: verbatim
18562 #: ../fish/guestfish.pod:712
18563 #, no-wrap
18564 msgid ""
18565 " file win:\\windows\\system32\\config\\system.log\n"
18566 "\n"
18567 msgstr ""
18568
18569 # type: verbatim
18570 #: ../fish/guestfish.pod:714
18571 #, no-wrap
18572 msgid ""
18573 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18574 "\n"
18575 msgstr ""
18576
18577 # type: textblock
18578 #: ../fish/guestfish.pod:716
18579 msgid ""
18580 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18581 "handles case insensitivity like Windows would.  This only works in argument "
18582 "positions that expect a path."
18583 msgstr ""
18584
18585 # type: =head1
18586 #: ../fish/guestfish.pod:720
18587 msgid "UPLOADING AND DOWNLOADING FILES"
18588 msgstr ""
18589
18590 # type: textblock
18591 #: ../fish/guestfish.pod:722
18592 msgid ""
18593 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18594 "others which upload from or download to a local file, you can use the "
18595 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18596 msgstr ""
18597
18598 # type: verbatim
18599 #: ../fish/guestfish.pod:726
18600 #, no-wrap
18601 msgid ""
18602 " upload - /foo\n"
18603 "\n"
18604 msgstr ""
18605
18606 # type: textblock
18607 #: ../fish/guestfish.pod:728
18608 msgid ""
18609 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18610 msgstr ""
18611
18612 # type: verbatim
18613 #: ../fish/guestfish.pod:731
18614 #, no-wrap
18615 msgid ""
18616 " tar-out /etc - | tar tf -\n"
18617 "\n"
18618 msgstr ""
18619
18620 # type: textblock
18621 #: ../fish/guestfish.pod:733
18622 msgid ""
18623 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18624 "command (see L</PIPES>)."
18625 msgstr ""
18626
18627 # type: textblock
18628 #: ../fish/guestfish.pod:736
18629 msgid ""
18630 "When using C<-> to read from stdin, the input is read up to the end of "
18631 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18632 "some arbitrary end marker:"
18633 msgstr ""
18634
18635 # type: verbatim
18636 #: ../fish/guestfish.pod:740
18637 #, no-wrap
18638 msgid ""
18639 " upload -<<END /foo\n"
18640 " input line 1\n"
18641 " input line 2\n"
18642 " input line 3\n"
18643 " END\n"
18644 "\n"
18645 msgstr ""
18646
18647 # type: textblock
18648 #: ../fish/guestfish.pod:746
18649 msgid ""
18650 "Any string of characters can be used instead of C<END>.  The end marker must "
18651 "appear on a line of its own, without any preceeding or following characters "
18652 "(not even spaces)."
18653 msgstr ""
18654
18655 # type: textblock
18656 #: ../fish/guestfish.pod:750
18657 msgid ""
18658 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18659 "upload local files (so-called \"FileIn\" parameters in the generator)."
18660 msgstr ""
18661
18662 # type: =head1
18663 #: ../fish/guestfish.pod:753
18664 msgid "EXIT ON ERROR BEHAVIOUR"
18665 msgstr ""
18666
18667 # type: textblock
18668 #: ../fish/guestfish.pod:755
18669 msgid ""
18670 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18671 "taking commands from a human over a tty), and will exit on the first error "
18672 "in non-interactive mode (scripts, commands given on the command line)."
18673 msgstr ""
18674
18675 # type: textblock
18676 #: ../fish/guestfish.pod:760
18677 msgid ""
18678 "If you prefix a command with a I<-> character, then that command will not "
18679 "cause guestfish to exit, even if that (one) command returns an error."
18680 msgstr ""
18681
18682 # type: =head1
18683 #: ../fish/guestfish.pod:764
18684 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18685 msgstr ""
18686
18687 # type: textblock
18688 #: ../fish/guestfish.pod:766
18689 msgid ""
18690 "Guestfish can be remote-controlled over a socket.  This is useful "
18691 "particularly in shell scripts where you want to make several different "
18692 "changes to a filesystem, but you don't want the overhead of starting up a "
18693 "guestfish process each time."
18694 msgstr ""
18695
18696 # type: textblock
18697 #: ../fish/guestfish.pod:771
18698 msgid "Start a guestfish server process using:"
18699 msgstr ""
18700
18701 # type: verbatim
18702 #: ../fish/guestfish.pod:773
18703 #, no-wrap
18704 msgid ""
18705 " eval \"`guestfish --listen`\"\n"
18706 "\n"
18707 msgstr ""
18708
18709 # type: textblock
18710 #: ../fish/guestfish.pod:775
18711 msgid "and then send it commands by doing:"
18712 msgstr ""
18713
18714 # type: verbatim
18715 #: ../fish/guestfish.pod:777
18716 #, no-wrap
18717 msgid ""
18718 " guestfish --remote cmd [...]\n"
18719 "\n"
18720 msgstr ""
18721
18722 # type: textblock
18723 #: ../fish/guestfish.pod:779
18724 msgid "To cause the server to exit, send it the exit command:"
18725 msgstr ""
18726
18727 # type: verbatim
18728 #: ../fish/guestfish.pod:781
18729 #, no-wrap
18730 msgid ""
18731 " guestfish --remote exit\n"
18732 "\n"
18733 msgstr ""
18734
18735 # type: textblock
18736 #: ../fish/guestfish.pod:783
18737 msgid ""
18738 "Note that the server will normally exit if there is an error in a command.  "
18739 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18740 "BEHAVIOUR>."
18741 msgstr ""
18742
18743 # type: =head2
18744 #: ../fish/guestfish.pod:787
18745 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18746 msgstr ""
18747
18748 # type: textblock
18749 #: ../fish/guestfish.pod:789
18750 msgid ""
18751 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18752 "is how the I<--remote> option knows where to send the commands.  You can "
18753 "have several guestfish listener processes running using:"
18754 msgstr ""
18755
18756 # type: verbatim
18757 #: ../fish/guestfish.pod:793
18758 #, no-wrap
18759 msgid ""
18760 " eval \"`guestfish --listen`\"\n"
18761 " pid1=$GUESTFISH_PID\n"
18762 " eval \"`guestfish --listen`\"\n"
18763 " pid2=$GUESTFISH_PID\n"
18764 " ...\n"
18765 " guestfish --remote=$pid1 cmd\n"
18766 " guestfish --remote=$pid2 cmd\n"
18767 "\n"
18768 msgstr ""
18769
18770 # type: =head2
18771 #: ../fish/guestfish.pod:801
18772 msgid "REMOTE CONTROL AND CSH"
18773 msgstr ""
18774
18775 # type: textblock
18776 #: ../fish/guestfish.pod:803
18777 msgid ""
18778 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18779 "option:"
18780 msgstr ""
18781
18782 # type: verbatim
18783 #: ../fish/guestfish.pod:806
18784 #, no-wrap
18785 msgid ""
18786 " eval \"`guestfish --listen --csh`\"\n"
18787 "\n"
18788 msgstr ""
18789
18790 # type: =head2
18791 #: ../fish/guestfish.pod:808
18792 msgid "REMOTE CONTROL DETAILS"
18793 msgstr ""
18794
18795 # type: textblock
18796 #: ../fish/guestfish.pod:810
18797 msgid ""
18798 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18799 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18800 "and C<$PID> is the process ID of the server."
18801 msgstr ""
18802
18803 # type: textblock
18804 #: ../fish/guestfish.pod:814
18805 msgid "Guestfish client and server versions must match exactly."
18806 msgstr ""
18807
18808 # type: =head1
18809 #: ../fish/guestfish.pod:816
18810 msgid "PREPARED DISK IMAGES"
18811 msgstr ""
18812
18813 # type: textblock
18814 #: ../fish/guestfish.pod:818
18815 msgid ""
18816 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18817 "preformatted disk images that guestfish can make for you to save typing.  "
18818 "This is particularly useful for testing purposes.  This option is used "
18819 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18820 "can be mixed with I<-a>)."
18821 msgstr ""
18822
18823 # type: textblock
18824 #: ../fish/guestfish.pod:824
18825 msgid ""
18826 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18827 "the second and so on.  Existing files in the current directory are "
18828 "I<overwritten>."
18829 msgstr ""
18830
18831 # type: textblock
18832 #: ../fish/guestfish.pod:828
18833 msgid ""
18834 "The type briefly describes how the disk should be sized, partitioned, how "
18835 "filesystem(s) should be created, and how content should be added.  "
18836 "Optionally the type can be followed by extra parameters, separated by C<:> "
18837 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18838 "allocated disk, containing a single partition, with the partition formatted "
18839 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18840 "disk instead."
18841 msgstr ""
18842
18843 # type: textblock
18844 #: ../fish/guestfish.pod:836
18845 msgid "To list the available types and any extra parameters they take, run:"
18846 msgstr ""
18847
18848 # type: textblock
18849 #: ../fish/guestfish.pod:840
18850 msgid ""
18851 "Note that the prepared filesystem is not mounted.  You would usually have to "
18852 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18853 msgstr ""
18854
18855 # type: textblock
18856 #: ../fish/guestfish.pod:844
18857 msgid ""
18858 "If any I<-N> or I<--new> options are given, the guest is automatically "
18859 "launched."
18860 msgstr ""
18861
18862 # type: textblock
18863 #: ../fish/guestfish.pod:849
18864 msgid "Create a 100MB disk with an ext4-formatted partition:"
18865 msgstr ""
18866
18867 # type: verbatim
18868 #: ../fish/guestfish.pod:851
18869 #, no-wrap
18870 msgid ""
18871 " guestfish -N fs:ext4\n"
18872 "\n"
18873 msgstr ""
18874
18875 # type: textblock
18876 #: ../fish/guestfish.pod:853
18877 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18878 msgstr ""
18879
18880 # type: verbatim
18881 #: ../fish/guestfish.pod:855
18882 #, no-wrap
18883 msgid ""
18884 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18885 "\n"
18886 msgstr ""
18887
18888 # type: textblock
18889 #: ../fish/guestfish.pod:857
18890 msgid "Create a blank 200MB disk:"
18891 msgstr ""
18892
18893 # type: verbatim
18894 #: ../fish/guestfish.pod:859
18895 #, no-wrap
18896 msgid ""
18897 " guestfish -N disk:200M\n"
18898 "\n"
18899 msgstr ""
18900
18901 # type: =head1
18902 #: ../fish/guestfish.pod:861
18903 msgid "PROGRESS BARS"
18904 msgstr ""
18905
18906 # type: textblock
18907 #: ../fish/guestfish.pod:863
18908 msgid ""
18909 "Some (not all) long-running commands send progress notification messages as "
18910 "they are running.  Guestfish turns these messages into progress bars."
18911 msgstr ""
18912
18913 # type: textblock
18914 #: ../fish/guestfish.pod:867
18915 msgid ""
18916 "When a command that supports progress bars takes longer than two seconds to "
18917 "run, and if progress bars are enabled, then you will see one appearing below "
18918 "the command:"
18919 msgstr ""
18920
18921 # type: verbatim
18922 #: ../fish/guestfish.pod:871
18923 #, no-wrap
18924 msgid ""
18925 " ><fs> copy-size /large-file /another-file 2048M\n"
18926 " / 10% [#####-----------------------------------------] 00:30\n"
18927 "\n"
18928 msgstr ""
18929
18930 # type: textblock
18931 #: ../fish/guestfish.pod:874
18932 msgid ""
18933 "The spinner on the left hand side moves round once for every progress "
18934 "notification received from the backend.  This is a (reasonably) golden "
18935 "assurance that the command is \"doing something\" even if the progress bar "
18936 "is not moving, because the command is able to send the progress "
18937 "notifications.  When the bar reaches 100% and the command finishes, the "
18938 "spinner disappears."
18939 msgstr ""
18940
18941 # type: textblock
18942 #: ../fish/guestfish.pod:881
18943 msgid ""
18944 "Progress bars are enabled by default when guestfish is used interactively.  "
18945 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18946 "and you can disable them completely using I<--no-progress-bars>."
18947 msgstr ""
18948
18949 # type: =head1
18950 #: ../fish/guestfish.pod:886
18951 msgid "GUESTFISH COMMANDS"
18952 msgstr ""
18953
18954 # type: textblock
18955 #: ../fish/guestfish.pod:888
18956 msgid ""
18957 "The commands in this section are guestfish convenience commands, in other "
18958 "words, they are not part of the L<guestfs(3)> API."
18959 msgstr ""
18960
18961 # type: =head2
18962 #: ../fish/guestfish.pod:891
18963 msgid "help"
18964 msgstr ""
18965
18966 # type: verbatim
18967 #: ../fish/guestfish.pod:893
18968 #, no-wrap
18969 msgid ""
18970 " help\n"
18971 " help cmd\n"
18972 "\n"
18973 msgstr ""
18974
18975 # type: textblock
18976 #: ../fish/guestfish.pod:896
18977 msgid "Without any parameter, this provides general help."
18978 msgstr ""
18979
18980 # type: textblock
18981 #: ../fish/guestfish.pod:898
18982 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18983 msgstr ""
18984
18985 # type: =head2
18986 #: ../fish/guestfish.pod:900
18987 msgid "quit | exit"
18988 msgstr ""
18989
18990 # type: textblock
18991 #: ../fish/guestfish.pod:902
18992 msgid "This exits guestfish.  You can also use C<^D> key."
18993 msgstr ""
18994
18995 # type: textblock
18996 #: ../fish/guestfish.pod:904
18997 msgid "@FISH_COMMANDS@"
18998 msgstr ""
18999
19000 # type: =head1
19001 #: ../fish/guestfish.pod:906
19002 msgid "COMMANDS"
19003 msgstr ""
19004
19005 # type: =head1
19006 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
19007 msgid "EXIT CODE"
19008 msgstr ""
19009
19010 # type: textblock
19011 #: ../fish/guestfish.pod:912
19012 msgid ""
19013 "guestfish returns 0 if the commands completed without error, or 1 if there "
19014 "was an error."
19015 msgstr ""
19016
19017 # type: =item
19018 #: ../fish/guestfish.pod:919
19019 msgid "EDITOR"
19020 msgstr ""
19021
19022 # type: textblock
19023 #: ../fish/guestfish.pod:921
19024 msgid ""
19025 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19026 "C<vi>."
19027 msgstr ""
19028
19029 # type: =item
19030 #: ../fish/guestfish.pod:924
19031 msgid "GUESTFISH_PID"
19032 msgstr ""
19033
19034 # type: textblock
19035 #: ../fish/guestfish.pod:926
19036 msgid ""
19037 "Used with the I<--remote> option to specify the remote guestfish process to "
19038 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19039 msgstr ""
19040
19041 # type: =item
19042 #: ../fish/guestfish.pod:930
19043 msgid "HEXEDITOR"
19044 msgstr ""
19045
19046 # type: textblock
19047 #: ../fish/guestfish.pod:932
19048 msgid ""
19049 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19050 "not specified, the external L<hexedit(1)> program is used."
19051 msgstr ""
19052
19053 # type: =item
19054 #: ../fish/guestfish.pod:936
19055 msgid "HOME"
19056 msgstr ""
19057
19058 # type: textblock
19059 #: ../fish/guestfish.pod:938
19060 msgid ""
19061 "If compiled with GNU readline support, various files in the home directory "
19062 "can be used.  See L</FILES>."
19063 msgstr ""
19064
19065 # type: textblock
19066 #: ../fish/guestfish.pod:947
19067 msgid ""
19068 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19069 "effect as using the B<-v> option."
19070 msgstr ""
19071
19072 # type: textblock
19073 #: ../fish/guestfish.pod:959
19074 msgid ""
19075 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19076 "the discussion of paths in L<guestfs(3)>."
19077 msgstr ""
19078
19079 # type: textblock
19080 #: ../fish/guestfish.pod:970
19081 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19082 msgstr ""
19083
19084 # type: =item
19085 #: ../fish/guestfish.pod:972
19086 msgid "PAGER"
19087 msgstr ""
19088
19089 # type: textblock
19090 #: ../fish/guestfish.pod:974
19091 msgid ""
19092 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19093 "C<more>."
19094 msgstr ""
19095
19096 # type: =head1
19097 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
19098 msgid "FILES"
19099 msgstr ""
19100
19101 # type: =item
19102 #: ../fish/guestfish.pod:993
19103 msgid "$HOME/.guestfish"
19104 msgstr ""
19105
19106 # type: textblock
19107 #: ../fish/guestfish.pod:995
19108 msgid ""
19109 "If compiled with GNU readline support, then the command history is saved in "
19110 "this file."
19111 msgstr ""
19112
19113 # type: =item
19114 #: ../fish/guestfish.pod:998
19115 msgid "$HOME/.inputrc"
19116 msgstr ""
19117
19118 # type: =item
19119 #: ../fish/guestfish.pod:1000
19120 msgid "/etc/inputrc"
19121 msgstr ""
19122
19123 # type: textblock
19124 #: ../fish/guestfish.pod:1002
19125 msgid ""
19126 "If compiled with GNU readline support, then these files can be used to "
19127 "configure readline.  For further information, please see L<readline(3)/"
19128 "INITIALIZATION FILE>."
19129 msgstr ""
19130
19131 # type: textblock
19132 #: ../fish/guestfish.pod:1006
19133 msgid "To write rules which only apply to guestfish, use:"
19134 msgstr ""
19135
19136 # type: verbatim
19137 #: ../fish/guestfish.pod:1008
19138 #, no-wrap
19139 msgid ""
19140 " $if guestfish\n"
19141 " ...\n"
19142 " $endif\n"
19143 "\n"
19144 msgstr ""
19145
19146 # type: textblock
19147 #: ../fish/guestfish.pod:1012
19148 msgid ""
19149 "Variables that you can set in inputrc that change the behaviour of guestfish "
19150 "in useful ways include:"
19151 msgstr ""
19152
19153 # type: =item
19154 #: ../fish/guestfish.pod:1017
19155 msgid "completion-ignore-case (default: on)"
19156 msgstr ""
19157
19158 # type: textblock
19159 #: ../fish/guestfish.pod:1019
19160 msgid ""
19161 "By default, guestfish will ignore case when tab-completing paths on the "
19162 "disk.  Use:"
19163 msgstr ""
19164
19165 # type: verbatim
19166 #: ../fish/guestfish.pod:1022
19167 #, no-wrap
19168 msgid ""
19169 " set completion-ignore-case off\n"
19170 "\n"
19171 msgstr ""
19172
19173 # type: textblock
19174 #: ../fish/guestfish.pod:1024
19175 msgid "to make guestfish case sensitive."
19176 msgstr ""
19177
19178 # type: =item
19179 #: ../fish/guestfish.pod:1028
19180 msgid "test1.img"
19181 msgstr ""
19182
19183 # type: =item
19184 #: ../fish/guestfish.pod:1030
19185 msgid "test2.img (etc)"
19186 msgstr ""
19187
19188 # type: textblock
19189 #: ../fish/guestfish.pod:1032
19190 msgid ""
19191 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19192 "will be created in the file C<test1.img> in the current directory.  The "
19193 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19194 "the same name will be overwritten."
19195 msgstr ""
19196
19197 # type: textblock
19198 #: ../fish/guestfish.pod:1041
19199 msgid ""
19200 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19201 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19202 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19203 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19204 "L<hexedit(1)>."
19205 msgstr ""
19206
19207 # type: textblock
19208 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124
19209 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19210 #: ../tools/virt-win-reg.pl:518 ../tools/virt-resize.pl:1512
19211 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19212 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19213 msgid ""
19214 "This program is free software; you can redistribute it and/or modify it "
19215 "under the terms of the GNU General Public License as published by the Free "
19216 "Software Foundation; either version 2 of the License, or (at your option) "
19217 "any later version."
19218 msgstr ""
19219
19220 # type: textblock
19221 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129
19222 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19223 #: ../tools/virt-win-reg.pl:523 ../tools/virt-resize.pl:1517
19224 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19225 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19226 msgid ""
19227 "This program is distributed in the hope that it will be useful, but WITHOUT "
19228 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19229 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19230 "more details."
19231 msgstr ""
19232
19233 # type: textblock
19234 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134
19235 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19236 #: ../tools/virt-win-reg.pl:528 ../tools/virt-resize.pl:1522
19237 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19238 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19239 msgid ""
19240 "You should have received a copy of the GNU General Public License along with "
19241 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19242 "Ave, Cambridge, MA 02139, USA."
19243 msgstr ""
19244
19245 # type: =head2
19246 #: ../fish/guestfish-actions.pod:1
19247 msgid "add-cdrom"
19248 msgstr ""
19249
19250 # type: verbatim
19251 #: ../fish/guestfish-actions.pod:3
19252 #, no-wrap
19253 msgid ""
19254 " add-cdrom filename\n"
19255 "\n"
19256 msgstr ""
19257
19258 # type: textblock
19259 #: ../fish/guestfish-actions.pod:15
19260 msgid ""
19261 "This call checks for the existence of C<filename>.  This stops you from "
19262 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19263 "and C<http:> URLs.  To specify those, use the general L</config> call "
19264 "instead."
19265 msgstr ""
19266
19267 # type: textblock
19268 #: ../fish/guestfish-actions.pod:22
19269 msgid ""
19270 "If you just want to add an ISO file (often you use this as an efficient way "
19271 "to transfer large files into the guest), then you should probably use L</add-"
19272 "drive-ro> instead."
19273 msgstr ""
19274
19275 # type: =head2
19276 #: ../fish/guestfish-actions.pod:35
19277 msgid "add-domain"
19278 msgstr ""
19279
19280 # type: =head2
19281 #: ../fish/guestfish-actions.pod:37
19282 msgid "domain"
19283 msgstr ""
19284
19285 # type: verbatim
19286 #: ../fish/guestfish-actions.pod:39
19287 #, no-wrap
19288 msgid ""
19289 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19290 "\n"
19291 msgstr ""
19292
19293 # type: textblock
19294 #: ../fish/guestfish-actions.pod:41
19295 msgid ""
19296 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19297 "It works by connecting to libvirt, requesting the domain and domain XML from "
19298 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19299 msgstr ""
19300
19301 # type: textblock
19302 #: ../fish/guestfish-actions.pod:58
19303 msgid ""
19304 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19305 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19306 "libvirt URI (or one set through an environment variable, see the libvirt "
19307 "documentation for full details).  If you are using the C API directly then "
19308 "it is more flexible to create the libvirt connection object yourself, get "
19309 "the domain object, and call L</add-libvirt-dom>."
19310 msgstr ""
19311
19312 # type: textblock
19313 #: ../fish/guestfish-actions.pod:66
19314 msgid ""
19315 "The other optional parameters are passed directly through to L</add-drive-"
19316 "opts>."
19317 msgstr ""
19318
19319 # type: textblock
19320 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19321 msgid ""
19322 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19323 msgstr ""
19324
19325 # type: =head2
19326 #: ../fish/guestfish-actions.pod:71
19327 msgid "add-drive"
19328 msgstr ""
19329
19330 # type: verbatim
19331 #: ../fish/guestfish-actions.pod:73
19332 #, no-wrap
19333 msgid ""
19334 " add-drive filename\n"
19335 "\n"
19336 msgstr ""
19337
19338 # type: textblock
19339 #: ../fish/guestfish-actions.pod:75
19340 msgid ""
19341 "This function is the equivalent of calling L</add-drive-opts> with no "
19342 "optional parameters, so the disk is added writable, with the format being "
19343 "detected automatically."
19344 msgstr ""
19345
19346 # type: textblock
19347 #: ../fish/guestfish-actions.pod:79
19348 msgid ""
19349 "Automatic detection of the format opens you up to a potential security hole "
19350 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19351 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19352 "you should think about replacing calls to this function with calls to L</add-"
19353 "drive-opts>, and specifying the format."
19354 msgstr ""
19355
19356 # type: =head2
19357 #: ../fish/guestfish-actions.pod:86
19358 msgid "add-drive-opts"
19359 msgstr ""
19360
19361 # type: =head2
19362 #: ../fish/guestfish-actions.pod:88
19363 msgid "add"
19364 msgstr ""
19365
19366 # type: verbatim
19367 #: ../fish/guestfish-actions.pod:90
19368 #, no-wrap
19369 msgid ""
19370 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19371 "\n"
19372 msgstr ""
19373
19374 # type: textblock
19375 #: ../fish/guestfish-actions.pod:117
19376 msgid ""
19377 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19378 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19379 "include C<raw> and C<qcow2>."
19380 msgstr ""
19381
19382 # type: textblock
19383 #: ../fish/guestfish-actions.pod:128
19384 msgid ""
19385 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19386 "add-drive-with-if> call (q.v.)"
19387 msgstr ""
19388
19389 # type: =head2
19390 #: ../fish/guestfish-actions.pod:135
19391 msgid "add-drive-ro"
19392 msgstr ""
19393
19394 # type: =head2
19395 #: ../fish/guestfish-actions.pod:137
19396 msgid "add-ro"
19397 msgstr ""
19398
19399 # type: verbatim
19400 #: ../fish/guestfish-actions.pod:139
19401 #, no-wrap
19402 msgid ""
19403 " add-drive-ro filename\n"
19404 "\n"
19405 msgstr ""
19406
19407 # type: textblock
19408 #: ../fish/guestfish-actions.pod:141
19409 msgid ""
19410 "This function is the equivalent of calling L</add-drive-opts> with the "
19411 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19412 "is added read-only, with the format being detected automatically."
19413 msgstr ""
19414
19415 # type: =head2
19416 #: ../fish/guestfish-actions.pod:146
19417 msgid "add-drive-ro-with-if"
19418 msgstr ""
19419
19420 # type: verbatim
19421 #: ../fish/guestfish-actions.pod:148
19422 #, no-wrap
19423 msgid ""
19424 " add-drive-ro-with-if filename iface\n"
19425 "\n"
19426 msgstr ""
19427
19428 # type: textblock
19429 #: ../fish/guestfish-actions.pod:150
19430 msgid ""
19431 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19432 "interface emulation to use at run time."
19433 msgstr ""
19434
19435 # type: =head2
19436 #: ../fish/guestfish-actions.pod:160
19437 msgid "add-drive-with-if"
19438 msgstr ""
19439
19440 # type: verbatim
19441 #: ../fish/guestfish-actions.pod:162
19442 #, no-wrap
19443 msgid ""
19444 " add-drive-with-if filename iface\n"
19445 "\n"
19446 msgstr ""
19447
19448 # type: textblock
19449 #: ../fish/guestfish-actions.pod:164
19450 msgid ""
19451 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19452 "interface emulation to use at run time."
19453 msgstr ""
19454
19455 # type: =head2
19456 #: ../fish/guestfish-actions.pod:174
19457 msgid "aug-clear"
19458 msgstr ""
19459
19460 # type: verbatim
19461 #: ../fish/guestfish-actions.pod:176
19462 #, no-wrap
19463 msgid ""
19464 " aug-clear augpath\n"
19465 "\n"
19466 msgstr ""
19467
19468 # type: =head2
19469 #: ../fish/guestfish-actions.pod:181
19470 msgid "aug-close"
19471 msgstr ""
19472
19473 # type: verbatim
19474 #: ../fish/guestfish-actions.pod:183
19475 #, no-wrap
19476 msgid ""
19477 " aug-close\n"
19478 "\n"
19479 msgstr ""
19480
19481 # type: textblock
19482 #: ../fish/guestfish-actions.pod:185
19483 msgid ""
19484 "Close the current Augeas handle and free up any resources used by it.  After "
19485 "calling this, you have to call L</aug-init> again before you can use any "
19486 "other Augeas functions."
19487 msgstr ""
19488
19489 # type: =head2
19490 #: ../fish/guestfish-actions.pod:190
19491 msgid "aug-defnode"
19492 msgstr ""
19493
19494 # type: verbatim
19495 #: ../fish/guestfish-actions.pod:192
19496 #, no-wrap
19497 msgid ""
19498 " aug-defnode name expr val\n"
19499 "\n"
19500 msgstr ""
19501
19502 # type: textblock
19503 #: ../fish/guestfish-actions.pod:197
19504 msgid ""
19505 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19506 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19507 "containing that single node."
19508 msgstr ""
19509
19510 # type: =head2
19511 #: ../fish/guestfish-actions.pod:205
19512 msgid "aug-defvar"
19513 msgstr ""
19514
19515 # type: verbatim
19516 #: ../fish/guestfish-actions.pod:207
19517 #, no-wrap
19518 msgid ""
19519 " aug-defvar name expr\n"
19520 "\n"
19521 msgstr ""
19522
19523 # type: =head2
19524 #: ../fish/guestfish-actions.pod:216
19525 msgid "aug-get"
19526 msgstr ""
19527
19528 # type: verbatim
19529 #: ../fish/guestfish-actions.pod:218
19530 #, no-wrap
19531 msgid ""
19532 " aug-get augpath\n"
19533 "\n"
19534 msgstr ""
19535
19536 # type: =head2
19537 #: ../fish/guestfish-actions.pod:223
19538 msgid "aug-init"
19539 msgstr ""
19540
19541 # type: verbatim
19542 #: ../fish/guestfish-actions.pod:225
19543 #, no-wrap
19544 msgid ""
19545 " aug-init root flags\n"
19546 "\n"
19547 msgstr ""
19548
19549 # type: textblock
19550 #: ../fish/guestfish-actions.pod:231
19551 msgid "You must call this before using any other L</aug-*> commands."
19552 msgstr ""
19553
19554 # type: textblock
19555 #: ../fish/guestfish-actions.pod:266
19556 msgid "Do not load the tree in L</aug-init>."
19557 msgstr ""
19558
19559 # type: textblock
19560 #: ../fish/guestfish-actions.pod:270
19561 msgid "To close the handle, you can call L</aug-close>."
19562 msgstr ""
19563
19564 # type: =head2
19565 #: ../fish/guestfish-actions.pod:274
19566 msgid "aug-insert"
19567 msgstr ""
19568
19569 # type: verbatim
19570 #: ../fish/guestfish-actions.pod:276
19571 #, no-wrap
19572 msgid ""
19573 " aug-insert augpath label true|false\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: =head2
19578 #: ../fish/guestfish-actions.pod:286
19579 msgid "aug-load"
19580 msgstr ""
19581
19582 # type: verbatim
19583 #: ../fish/guestfish-actions.pod:288
19584 #, no-wrap
19585 msgid ""
19586 " aug-load\n"
19587 "\n"
19588 msgstr ""
19589
19590 # type: =head2
19591 #: ../fish/guestfish-actions.pod:295
19592 msgid "aug-ls"
19593 msgstr ""
19594
19595 # type: verbatim
19596 #: ../fish/guestfish-actions.pod:297
19597 #, no-wrap
19598 msgid ""
19599 " aug-ls augpath\n"
19600 "\n"
19601 msgstr ""
19602
19603 # type: textblock
19604 #: ../fish/guestfish-actions.pod:299
19605 msgid ""
19606 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19607 "resulting nodes into alphabetical order."
19608 msgstr ""
19609
19610 # type: =head2
19611 #: ../fish/guestfish-actions.pod:302
19612 msgid "aug-match"
19613 msgstr ""
19614
19615 # type: verbatim
19616 #: ../fish/guestfish-actions.pod:304
19617 #, no-wrap
19618 msgid ""
19619 " aug-match augpath\n"
19620 "\n"
19621 msgstr ""
19622
19623 # type: =head2
19624 #: ../fish/guestfish-actions.pod:310
19625 msgid "aug-mv"
19626 msgstr ""
19627
19628 # type: verbatim
19629 #: ../fish/guestfish-actions.pod:312
19630 #, no-wrap
19631 msgid ""
19632 " aug-mv src dest\n"
19633 "\n"
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:317
19638 msgid "aug-rm"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:319
19643 #, no-wrap
19644 msgid ""
19645 " aug-rm augpath\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: =head2
19650 #: ../fish/guestfish-actions.pod:325
19651 msgid "aug-save"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #: ../fish/guestfish-actions.pod:327
19656 #, no-wrap
19657 msgid ""
19658 " aug-save\n"
19659 "\n"
19660 msgstr ""
19661
19662 # type: textblock
19663 #: ../fish/guestfish-actions.pod:331
19664 msgid ""
19665 "The flags which were passed to L</aug-init> affect exactly how files are "
19666 "saved."
19667 msgstr ""
19668
19669 # type: =head2
19670 #: ../fish/guestfish-actions.pod:334
19671 msgid "aug-set"
19672 msgstr ""
19673
19674 # type: verbatim
19675 #: ../fish/guestfish-actions.pod:336
19676 #, no-wrap
19677 msgid ""
19678 " aug-set augpath val\n"
19679 "\n"
19680 msgstr ""
19681
19682 # type: textblock
19683 #: ../fish/guestfish-actions.pod:340
19684 msgid ""
19685 "In the Augeas API, it is possible to clear a node by setting the value to "
19686 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19687 "this call.  Instead you must use the L</aug-clear> call."
19688 msgstr ""
19689
19690 # type: =head2
19691 #: ../fish/guestfish-actions.pod:345
19692 msgid "available"
19693 msgstr ""
19694
19695 # type: verbatim
19696 #: ../fish/guestfish-actions.pod:347
19697 #, no-wrap
19698 msgid ""
19699 " available 'groups ...'\n"
19700 "\n"
19701 msgstr ""
19702
19703 # type: textblock
19704 #: ../fish/guestfish-actions.pod:353
19705 msgid ""
19706 "The libguestfs groups, and the functions that those groups correspond to, "
19707 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19708 "runtime by calling L</available-all-groups>."
19709 msgstr ""
19710
19711 # type: textblock
19712 #: ../fish/guestfish-actions.pod:377
19713 msgid "You must call L</launch> before calling this function."
19714 msgstr ""
19715
19716 # type: textblock
19717 #: ../fish/guestfish-actions.pod:399
19718 msgid ""
19719 "This call was added in version C<1.0.80>.  In previous versions of "
19720 "libguestfs all you could do would be to speculatively execute a command to "
19721 "find out if the daemon implemented it.  See also L</version>."
19722 msgstr ""
19723
19724 # type: =head2
19725 #: ../fish/guestfish-actions.pod:406
19726 msgid "available-all-groups"
19727 msgstr ""
19728
19729 # type: verbatim
19730 #: ../fish/guestfish-actions.pod:408
19731 #, no-wrap
19732 msgid ""
19733 " available-all-groups\n"
19734 "\n"
19735 msgstr ""
19736
19737 # type: textblock
19738 #: ../fish/guestfish-actions.pod:410
19739 msgid ""
19740 "This command returns a list of all optional groups that this daemon knows "
19741 "about.  Note this returns both supported and unsupported groups.  To find "
19742 "out which ones the daemon can actually support you have to call L</"
19743 "available> on each member of the returned list."
19744 msgstr ""
19745
19746 # type: textblock
19747 #: ../fish/guestfish-actions.pod:416
19748 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19749 msgstr ""
19750
19751 # type: =head2
19752 #: ../fish/guestfish-actions.pod:418
19753 msgid "base64-in"
19754 msgstr ""
19755
19756 # type: verbatim
19757 #: ../fish/guestfish-actions.pod:420
19758 #, no-wrap
19759 msgid ""
19760 " base64-in (base64file|-) filename\n"
19761 "\n"
19762 msgstr ""
19763
19764 # type: textblock
19765 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19766 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19767 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19768 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19769 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19770 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19771 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19772 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19773 msgstr ""
19774
19775 # type: =head2
19776 #: ../fish/guestfish-actions.pod:427
19777 msgid "base64-out"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #: ../fish/guestfish-actions.pod:429
19782 #, no-wrap
19783 msgid ""
19784 " base64-out filename (base64file|-)\n"
19785 "\n"
19786 msgstr ""
19787
19788 # type: =head2
19789 #: ../fish/guestfish-actions.pod:436
19790 msgid "blockdev-flushbufs"
19791 msgstr ""
19792
19793 # type: verbatim
19794 #: ../fish/guestfish-actions.pod:438
19795 #, no-wrap
19796 msgid ""
19797 " blockdev-flushbufs device\n"
19798 "\n"
19799 msgstr ""
19800
19801 # type: =head2
19802 #: ../fish/guestfish-actions.pod:445
19803 msgid "blockdev-getbsz"
19804 msgstr ""
19805
19806 # type: verbatim
19807 #: ../fish/guestfish-actions.pod:447
19808 #, no-wrap
19809 msgid ""
19810 " blockdev-getbsz device\n"
19811 "\n"
19812 msgstr ""
19813
19814 # type: =head2
19815 #: ../fish/guestfish-actions.pod:456
19816 msgid "blockdev-getro"
19817 msgstr ""
19818
19819 # type: verbatim
19820 #: ../fish/guestfish-actions.pod:458
19821 #, no-wrap
19822 msgid ""
19823 " blockdev-getro device\n"
19824 "\n"
19825 msgstr ""
19826
19827 # type: =head2
19828 #: ../fish/guestfish-actions.pod:465
19829 msgid "blockdev-getsize64"
19830 msgstr ""
19831
19832 # type: verbatim
19833 #: ../fish/guestfish-actions.pod:467
19834 #, no-wrap
19835 msgid ""
19836 " blockdev-getsize64 device\n"
19837 "\n"
19838 msgstr ""
19839
19840 # type: textblock
19841 #: ../fish/guestfish-actions.pod:471
19842 msgid "See also L</blockdev-getsz>."
19843 msgstr ""
19844
19845 # type: =head2
19846 #: ../fish/guestfish-actions.pod:475
19847 msgid "blockdev-getss"
19848 msgstr ""
19849
19850 # type: verbatim
19851 #: ../fish/guestfish-actions.pod:477
19852 #, no-wrap
19853 msgid ""
19854 " blockdev-getss device\n"
19855 "\n"
19856 msgstr ""
19857
19858 # type: textblock
19859 #: ../fish/guestfish-actions.pod:482
19860 msgid ""
19861 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19862 msgstr ""
19863
19864 # type: =head2
19865 #: ../fish/guestfish-actions.pod:487
19866 msgid "blockdev-getsz"
19867 msgstr ""
19868
19869 # type: verbatim
19870 #: ../fish/guestfish-actions.pod:489
19871 #, no-wrap
19872 msgid ""
19873 " blockdev-getsz device\n"
19874 "\n"
19875 msgstr ""
19876
19877 # type: textblock
19878 #: ../fish/guestfish-actions.pod:494
19879 msgid ""
19880 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19881 "blockdev-getsize64> for the more useful I<size in bytes>."
19882 msgstr ""
19883
19884 # type: =head2
19885 #: ../fish/guestfish-actions.pod:500
19886 msgid "blockdev-rereadpt"
19887 msgstr ""
19888
19889 # type: verbatim
19890 #: ../fish/guestfish-actions.pod:502
19891 #, no-wrap
19892 msgid ""
19893 " blockdev-rereadpt device\n"
19894 "\n"
19895 msgstr ""
19896
19897 # type: =head2
19898 #: ../fish/guestfish-actions.pod:508
19899 msgid "blockdev-setbsz"
19900 msgstr ""
19901
19902 # type: verbatim
19903 #: ../fish/guestfish-actions.pod:510
19904 #, no-wrap
19905 msgid ""
19906 " blockdev-setbsz device blocksize\n"
19907 "\n"
19908 msgstr ""
19909
19910 # type: =head2
19911 #: ../fish/guestfish-actions.pod:519
19912 msgid "blockdev-setro"
19913 msgstr ""
19914
19915 # type: verbatim
19916 #: ../fish/guestfish-actions.pod:521
19917 #, no-wrap
19918 msgid ""
19919 " blockdev-setro device\n"
19920 "\n"
19921 msgstr ""
19922
19923 # type: =head2
19924 #: ../fish/guestfish-actions.pod:527
19925 msgid "blockdev-setrw"
19926 msgstr ""
19927
19928 # type: verbatim
19929 #: ../fish/guestfish-actions.pod:529
19930 #, no-wrap
19931 msgid ""
19932 " blockdev-setrw device\n"
19933 "\n"
19934 msgstr ""
19935
19936 # type: =head2
19937 #: ../fish/guestfish-actions.pod:535
19938 msgid "case-sensitive-path"
19939 msgstr ""
19940
19941 # type: verbatim
19942 #: ../fish/guestfish-actions.pod:537
19943 #, no-wrap
19944 msgid ""
19945 " case-sensitive-path path\n"
19946 "\n"
19947 msgstr ""
19948
19949 # type: textblock
19950 #: ../fish/guestfish-actions.pod:561
19951 msgid ""
19952 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19953 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19954 "the directories were originally created under Windows)."
19955 msgstr ""
19956
19957 # type: textblock
19958 #: ../fish/guestfish-actions.pod:569
19959 msgid "See also L</realpath>."
19960 msgstr ""
19961
19962 # type: =head2
19963 #: ../fish/guestfish-actions.pod:571
19964 msgid "cat"
19965 msgstr ""
19966
19967 # type: verbatim
19968 #: ../fish/guestfish-actions.pod:573
19969 #, no-wrap
19970 msgid ""
19971 " cat path\n"
19972 "\n"
19973 msgstr ""
19974
19975 # type: textblock
19976 #: ../fish/guestfish-actions.pod:577
19977 msgid ""
19978 "Note that this function cannot correctly handle binary files (specifically, "
19979 "files containing C<\\0> character which is treated as end of string).  For "
19980 "those you need to use the L</read-file> or L</download> functions which have "
19981 "a more complex interface."
19982 msgstr ""
19983
19984 # type: =head2
19985 #: ../fish/guestfish-actions.pod:585
19986 msgid "checksum"
19987 msgstr ""
19988
19989 # type: verbatim
19990 #: ../fish/guestfish-actions.pod:587
19991 #, no-wrap
19992 msgid ""
19993 " checksum csumtype path\n"
19994 "\n"
19995 msgstr ""
19996
19997 # type: textblock
19998 #: ../fish/guestfish-actions.pod:630
19999 msgid "To get the checksum for a device, use L</checksum-device>."
20000 msgstr ""
20001
20002 # type: textblock
20003 #: ../fish/guestfish-actions.pod:632
20004 msgid "To get the checksums for many files, use L</checksums-out>."
20005 msgstr ""
20006
20007 # type: =head2
20008 #: ../fish/guestfish-actions.pod:634
20009 msgid "checksum-device"
20010 msgstr ""
20011
20012 # type: verbatim
20013 #: ../fish/guestfish-actions.pod:636
20014 #, no-wrap
20015 msgid ""
20016 " checksum-device csumtype device\n"
20017 "\n"
20018 msgstr ""
20019
20020 # type: textblock
20021 #: ../fish/guestfish-actions.pod:638
20022 msgid ""
20023 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20024 "device named C<device>.  For the types of checksums supported see the L</"
20025 "checksum> command."
20026 msgstr ""
20027
20028 # type: =head2
20029 #: ../fish/guestfish-actions.pod:642
20030 msgid "checksums-out"
20031 msgstr ""
20032
20033 # type: verbatim
20034 #: ../fish/guestfish-actions.pod:644
20035 #, no-wrap
20036 msgid ""
20037 " checksums-out csumtype directory (sumsfile|-)\n"
20038 "\n"
20039 msgstr ""
20040
20041 # type: =head2
20042 #: ../fish/guestfish-actions.pod:660
20043 msgid "chmod"
20044 msgstr ""
20045
20046 # type: verbatim
20047 #: ../fish/guestfish-actions.pod:662
20048 #, no-wrap
20049 msgid ""
20050 " chmod mode path\n"
20051 "\n"
20052 msgstr ""
20053
20054 # type: =head2
20055 #: ../fish/guestfish-actions.pod:673
20056 msgid "chown"
20057 msgstr ""
20058
20059 # type: verbatim
20060 #: ../fish/guestfish-actions.pod:675
20061 #, no-wrap
20062 msgid ""
20063 " chown owner group path\n"
20064 "\n"
20065 msgstr ""
20066
20067 # type: =head2
20068 #: ../fish/guestfish-actions.pod:683
20069 msgid "command"
20070 msgstr ""
20071
20072 # type: verbatim
20073 #: ../fish/guestfish-actions.pod:685
20074 #, no-wrap
20075 msgid ""
20076 " command 'arguments ...'\n"
20077 "\n"
20078 msgstr ""
20079
20080 # type: textblock
20081 #: ../fish/guestfish-actions.pod:692
20082 msgid ""
20083 "The single parameter is an argv-style list of arguments.  The first element "
20084 "is the name of the program to run.  Subsequent elements are parameters.  The "
20085 "list must be non-empty (ie. must contain a program name).  Note that the "
20086 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20087 msgstr ""
20088
20089 # type: =head2
20090 #: ../fish/guestfish-actions.pod:720
20091 msgid "command-lines"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #: ../fish/guestfish-actions.pod:722
20096 #, no-wrap
20097 msgid ""
20098 " command-lines 'arguments ...'\n"
20099 "\n"
20100 msgstr ""
20101
20102 # type: textblock
20103 #: ../fish/guestfish-actions.pod:724
20104 msgid ""
20105 "This is the same as L</command>, but splits the result into a list of lines."
20106 msgstr ""
20107
20108 # type: textblock
20109 #: ../fish/guestfish-actions.pod:727
20110 msgid "See also: L</sh-lines>"
20111 msgstr ""
20112
20113 # type: =head2
20114 #: ../fish/guestfish-actions.pod:732
20115 msgid "config"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #: ../fish/guestfish-actions.pod:734
20120 #, no-wrap
20121 msgid ""
20122 " config qemuparam qemuvalue\n"
20123 "\n"
20124 msgstr ""
20125
20126 # type: =head2
20127 #: ../fish/guestfish-actions.pod:745
20128 msgid "copy-size"
20129 msgstr ""
20130
20131 # type: verbatim
20132 #: ../fish/guestfish-actions.pod:747
20133 #, no-wrap
20134 msgid ""
20135 " copy-size src dest size\n"
20136 "\n"
20137 msgstr ""
20138
20139 # type: =head2
20140 #: ../fish/guestfish-actions.pod:755
20141 msgid "cp"
20142 msgstr ""
20143
20144 # type: verbatim
20145 #: ../fish/guestfish-actions.pod:757
20146 #, no-wrap
20147 msgid ""
20148 " cp src dest\n"
20149 "\n"
20150 msgstr ""
20151
20152 # type: =head2
20153 #: ../fish/guestfish-actions.pod:762
20154 msgid "cp-a"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #: ../fish/guestfish-actions.pod:764
20159 #, no-wrap
20160 msgid ""
20161 " cp-a src dest\n"
20162 "\n"
20163 msgstr ""
20164
20165 # type: =head2
20166 #: ../fish/guestfish-actions.pod:769
20167 msgid "dd"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #: ../fish/guestfish-actions.pod:771
20172 #, no-wrap
20173 msgid ""
20174 " dd src dest\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: textblock
20179 #: ../fish/guestfish-actions.pod:778
20180 msgid ""
20181 "If the destination is a device, it must be as large or larger than the "
20182 "source file or device, otherwise the copy will fail.  This command cannot do "
20183 "partial copies (see L</copy-size>)."
20184 msgstr ""
20185
20186 # type: =head2
20187 #: ../fish/guestfish-actions.pod:782
20188 msgid "df"
20189 msgstr ""
20190
20191 # type: verbatim
20192 #: ../fish/guestfish-actions.pod:784
20193 #, no-wrap
20194 msgid ""
20195 " df\n"
20196 "\n"
20197 msgstr ""
20198
20199 # type: =head2
20200 #: ../fish/guestfish-actions.pod:792
20201 msgid "df-h"
20202 msgstr ""
20203
20204 # type: verbatim
20205 #: ../fish/guestfish-actions.pod:794
20206 #, no-wrap
20207 msgid ""
20208 " df-h\n"
20209 "\n"
20210 msgstr ""
20211
20212 # type: =head2
20213 #: ../fish/guestfish-actions.pod:803
20214 msgid "dmesg"
20215 msgstr ""
20216
20217 # type: verbatim
20218 #: ../fish/guestfish-actions.pod:805
20219 #, no-wrap
20220 msgid ""
20221 " dmesg\n"
20222 "\n"
20223 msgstr ""
20224
20225 # type: textblock
20226 #: ../fish/guestfish-actions.pod:811
20227 msgid ""
20228 "Another way to get the same information is to enable verbose messages with "
20229 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20230 "before running the program."
20231 msgstr ""
20232
20233 # type: =head2
20234 #: ../fish/guestfish-actions.pod:816
20235 msgid "download"
20236 msgstr ""
20237
20238 # type: verbatim
20239 #: ../fish/guestfish-actions.pod:818
20240 #, no-wrap
20241 msgid ""
20242 " download remotefilename (filename|-)\n"
20243 "\n"
20244 msgstr ""
20245
20246 # type: textblock
20247 #: ../fish/guestfish-actions.pod:825
20248 msgid "See also L</upload>, L</cat>."
20249 msgstr ""
20250
20251 # type: =head2
20252 #: ../fish/guestfish-actions.pod:829
20253 msgid "download-offset"
20254 msgstr ""
20255
20256 # type: verbatim
20257 #: ../fish/guestfish-actions.pod:831
20258 #, no-wrap
20259 msgid ""
20260 " download-offset remotefilename (filename|-) offset size\n"
20261 "\n"
20262 msgstr ""
20263
20264 # type: textblock
20265 #: ../fish/guestfish-actions.pod:839
20266 msgid ""
20267 "Note that there is no limit on the amount of data that can be downloaded "
20268 "with this call, unlike with L</pread>, and this call always reads the full "
20269 "amount unless an error occurs."
20270 msgstr ""
20271
20272 # type: textblock
20273 #: ../fish/guestfish-actions.pod:844
20274 msgid "See also L</download>, L</pread>."
20275 msgstr ""
20276
20277 # type: =head2
20278 #: ../fish/guestfish-actions.pod:848
20279 msgid "drop-caches"
20280 msgstr ""
20281
20282 # type: verbatim
20283 #: ../fish/guestfish-actions.pod:850
20284 #, no-wrap
20285 msgid ""
20286 " drop-caches whattodrop\n"
20287 "\n"
20288 msgstr ""
20289
20290 # type: =head2
20291 #: ../fish/guestfish-actions.pod:862
20292 msgid "du"
20293 msgstr ""
20294
20295 # type: verbatim
20296 #: ../fish/guestfish-actions.pod:864
20297 #, no-wrap
20298 msgid ""
20299 " du path\n"
20300 "\n"
20301 msgstr ""
20302
20303 # type: =head2
20304 #: ../fish/guestfish-actions.pod:876
20305 msgid "e2fsck-f"
20306 msgstr ""
20307
20308 # type: verbatim
20309 #: ../fish/guestfish-actions.pod:878
20310 #, no-wrap
20311 msgid ""
20312 " e2fsck-f device\n"
20313 "\n"
20314 msgstr ""
20315
20316 # type: textblock
20317 #: ../fish/guestfish-actions.pod:884
20318 msgid ""
20319 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20320 "should use L</fsck>."
20321 msgstr ""
20322
20323 # type: =head2
20324 #: ../fish/guestfish-actions.pod:887
20325 msgid "echo-daemon"
20326 msgstr ""
20327
20328 # type: verbatim
20329 #: ../fish/guestfish-actions.pod:889
20330 #, no-wrap
20331 msgid ""
20332 " echo-daemon 'words ...'\n"
20333 "\n"
20334 msgstr ""
20335
20336 # type: textblock
20337 #: ../fish/guestfish-actions.pod:896
20338 msgid "See also L</ping-daemon>."
20339 msgstr ""
20340
20341 # type: =head2
20342 #: ../fish/guestfish-actions.pod:898
20343 msgid "egrep"
20344 msgstr ""
20345
20346 # type: verbatim
20347 #: ../fish/guestfish-actions.pod:900
20348 #, no-wrap
20349 msgid ""
20350 " egrep regex path\n"
20351 "\n"
20352 msgstr ""
20353
20354 # type: =head2
20355 #: ../fish/guestfish-actions.pod:908
20356 msgid "egrepi"
20357 msgstr ""
20358
20359 # type: verbatim
20360 #: ../fish/guestfish-actions.pod:910
20361 #, no-wrap
20362 msgid ""
20363 " egrepi regex path\n"
20364 "\n"
20365 msgstr ""
20366
20367 # type: =head2
20368 #: ../fish/guestfish-actions.pod:918
20369 msgid "equal"
20370 msgstr ""
20371
20372 # type: verbatim
20373 #: ../fish/guestfish-actions.pod:920
20374 #, no-wrap
20375 msgid ""
20376 " equal file1 file2\n"
20377 "\n"
20378 msgstr ""
20379
20380 # type: =head2
20381 #: ../fish/guestfish-actions.pod:927
20382 msgid "exists"
20383 msgstr ""
20384
20385 # type: verbatim
20386 #: ../fish/guestfish-actions.pod:929
20387 #, no-wrap
20388 msgid ""
20389 " exists path\n"
20390 "\n"
20391 msgstr ""
20392
20393 # type: textblock
20394 #: ../fish/guestfish-actions.pod:934
20395 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20396 msgstr ""
20397
20398 # type: =head2
20399 #: ../fish/guestfish-actions.pod:936
20400 msgid "fallocate"
20401 msgstr ""
20402
20403 # type: verbatim
20404 #: ../fish/guestfish-actions.pod:938
20405 #, no-wrap
20406 msgid ""
20407 " fallocate path len\n"
20408 "\n"
20409 msgstr ""
20410
20411 # type: =head2
20412 #: ../fish/guestfish-actions.pod:955
20413 msgid "fallocate64"
20414 msgstr ""
20415
20416 # type: verbatim
20417 #: ../fish/guestfish-actions.pod:957
20418 #, no-wrap
20419 msgid ""
20420 " fallocate64 path len\n"
20421 "\n"
20422 msgstr ""
20423
20424 # type: textblock
20425 #: ../fish/guestfish-actions.pod:963
20426 msgid ""
20427 "Note that this call allocates disk blocks for the file.  To create a sparse "
20428 "file use L</truncate-size> instead."
20429 msgstr ""
20430
20431 # type: textblock
20432 #: ../fish/guestfish-actions.pod:966
20433 msgid ""
20434 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20435 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20436 "maximum size of files created through that call to 1GB."
20437 msgstr ""
20438
20439 # type: =head2
20440 #: ../fish/guestfish-actions.pod:975
20441 msgid "fgrep"
20442 msgstr ""
20443
20444 # type: verbatim
20445 #: ../fish/guestfish-actions.pod:977
20446 #, no-wrap
20447 msgid ""
20448 " fgrep pattern path\n"
20449 "\n"
20450 msgstr ""
20451
20452 # type: =head2
20453 #: ../fish/guestfish-actions.pod:985
20454 msgid "fgrepi"
20455 msgstr ""
20456
20457 # type: verbatim
20458 #: ../fish/guestfish-actions.pod:987
20459 #, no-wrap
20460 msgid ""
20461 " fgrepi pattern path\n"
20462 "\n"
20463 msgstr ""
20464
20465 # type: =head2
20466 #: ../fish/guestfish-actions.pod:995
20467 msgid "file"
20468 msgstr ""
20469
20470 # type: verbatim
20471 #: ../fish/guestfish-actions.pod:997
20472 #, no-wrap
20473 msgid ""
20474 " file path\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: textblock
20479 #: ../fish/guestfish-actions.pod:1009
20480 msgid ""
20481 "This command can also be used on C</dev/> devices (and partitions, LV "
20482 "names).  You can for example use this to determine if a device contains a "
20483 "filesystem, although it's usually better to use L</vfs-type>."
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:1019
20488 msgid "file-architecture"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:1021
20493 #, no-wrap
20494 msgid ""
20495 " file-architecture filename\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:1124
20501 msgid "filesize"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:1126
20506 #, no-wrap
20507 msgid ""
20508 " filesize file\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: textblock
20513 #: ../fish/guestfish-actions.pod:1130
20514 msgid ""
20515 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20516 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20517 msgstr ""
20518
20519 # type: =head2
20520 #: ../fish/guestfish-actions.pod:1134
20521 msgid "fill"
20522 msgstr ""
20523
20524 # type: verbatim
20525 #: ../fish/guestfish-actions.pod:1136
20526 #, no-wrap
20527 msgid ""
20528 " fill c len path\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: textblock
20533 #: ../fish/guestfish-actions.pod:1142
20534 msgid ""
20535 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20536 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20537 "L</fill-pattern>."
20538 msgstr ""
20539
20540 # type: =head2
20541 #: ../fish/guestfish-actions.pod:1147
20542 msgid "fill-pattern"
20543 msgstr ""
20544
20545 # type: verbatim
20546 #: ../fish/guestfish-actions.pod:1149
20547 #, no-wrap
20548 msgid ""
20549 " fill-pattern pattern len path\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: textblock
20554 #: ../fish/guestfish-actions.pod:1151
20555 msgid ""
20556 "This function is like L</fill> except that it creates a new file of length "
20557 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20558 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20559 "bytes."
20560 msgstr ""
20561
20562 # type: =head2
20563 #: ../fish/guestfish-actions.pod:1156
20564 msgid "find"
20565 msgstr ""
20566
20567 # type: verbatim
20568 #: ../fish/guestfish-actions.pod:1158
20569 #, no-wrap
20570 msgid ""
20571 " find directory\n"
20572 "\n"
20573 msgstr ""
20574
20575 # type: textblock
20576 #: ../fish/guestfish-actions.pod:1172
20577 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20578 msgstr ""
20579
20580 # type: textblock
20581 #: ../fish/guestfish-actions.pod:1185
20582 msgid "See also L</find0>."
20583 msgstr ""
20584
20585 # type: =head2
20586 #: ../fish/guestfish-actions.pod:1190
20587 msgid "find0"
20588 msgstr ""
20589
20590 # type: verbatim
20591 #: ../fish/guestfish-actions.pod:1192
20592 #, no-wrap
20593 msgid ""
20594 " find0 directory (files|-)\n"
20595 "\n"
20596 msgstr ""
20597
20598 # type: textblock
20599 #: ../fish/guestfish-actions.pod:1198
20600 msgid ""
20601 "This command works the same way as L</find> with the following exceptions:"
20602 msgstr ""
20603
20604 # type: =head2
20605 #: ../fish/guestfish-actions.pod:1225
20606 msgid "findfs-label"
20607 msgstr ""
20608
20609 # type: verbatim
20610 #: ../fish/guestfish-actions.pod:1227
20611 #, no-wrap
20612 msgid ""
20613 " findfs-label label\n"
20614 "\n"
20615 msgstr ""
20616
20617 # type: textblock
20618 #: ../fish/guestfish-actions.pod:1233
20619 msgid "To find the label of a filesystem, use L</vfs-label>."
20620 msgstr ""
20621
20622 # type: =head2
20623 #: ../fish/guestfish-actions.pod:1235
20624 msgid "findfs-uuid"
20625 msgstr ""
20626
20627 # type: verbatim
20628 #: ../fish/guestfish-actions.pod:1237
20629 #, no-wrap
20630 msgid ""
20631 " findfs-uuid uuid\n"
20632 "\n"
20633 msgstr ""
20634
20635 # type: textblock
20636 #: ../fish/guestfish-actions.pod:1243
20637 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20638 msgstr ""
20639
20640 # type: =head2
20641 #: ../fish/guestfish-actions.pod:1245
20642 msgid "fsck"
20643 msgstr ""
20644
20645 # type: verbatim
20646 #: ../fish/guestfish-actions.pod:1247
20647 #, no-wrap
20648 msgid ""
20649 " fsck fstype device\n"
20650 "\n"
20651 msgstr ""
20652
20653 # type: =head2
20654 #: ../fish/guestfish-actions.pod:1277
20655 msgid "get-append"
20656 msgstr ""
20657
20658 # type: verbatim
20659 #: ../fish/guestfish-actions.pod:1279
20660 #, no-wrap
20661 msgid ""
20662 " get-append\n"
20663 "\n"
20664 msgstr ""
20665
20666 # type: =head2
20667 #: ../fish/guestfish-actions.pod:1286
20668 msgid "get-autosync"
20669 msgstr ""
20670
20671 # type: verbatim
20672 #: ../fish/guestfish-actions.pod:1288
20673 #, no-wrap
20674 msgid ""
20675 " get-autosync\n"
20676 "\n"
20677 msgstr ""
20678
20679 # type: =head2
20680 #: ../fish/guestfish-actions.pod:1292
20681 msgid "get-direct"
20682 msgstr ""
20683
20684 # type: verbatim
20685 #: ../fish/guestfish-actions.pod:1294
20686 #, no-wrap
20687 msgid ""
20688 " get-direct\n"
20689 "\n"
20690 msgstr ""
20691
20692 # type: =head2
20693 #: ../fish/guestfish-actions.pod:1298
20694 msgid "get-e2label"
20695 msgstr ""
20696
20697 # type: verbatim
20698 #: ../fish/guestfish-actions.pod:1300
20699 #, no-wrap
20700 msgid ""
20701 " get-e2label device\n"
20702 "\n"
20703 msgstr ""
20704
20705 # type: =head2
20706 #: ../fish/guestfish-actions.pod:1312
20707 msgid "get-e2uuid"
20708 msgstr ""
20709
20710 # type: verbatim
20711 #: ../fish/guestfish-actions.pod:1314
20712 #, no-wrap
20713 msgid ""
20714 " get-e2uuid device\n"
20715 "\n"
20716 msgstr ""
20717
20718 # type: =head2
20719 #: ../fish/guestfish-actions.pod:1326
20720 msgid "get-memsize"
20721 msgstr ""
20722
20723 # type: verbatim
20724 #: ../fish/guestfish-actions.pod:1328
20725 #, no-wrap
20726 msgid ""
20727 " get-memsize\n"
20728 "\n"
20729 msgstr ""
20730
20731 # type: textblock
20732 #: ../fish/guestfish-actions.pod:1333
20733 msgid ""
20734 "If L</set-memsize> was not called on this handle, and if "
20735 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20736 "value for memsize."
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:1340
20741 msgid "get-network"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:1342
20746 #, no-wrap
20747 msgid ""
20748 " get-network\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:1346
20754 msgid "get-path"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #: ../fish/guestfish-actions.pod:1348
20759 #, no-wrap
20760 msgid ""
20761 " get-path\n"
20762 "\n"
20763 msgstr ""
20764
20765 # type: =head2
20766 #: ../fish/guestfish-actions.pod:1355
20767 msgid "get-pid"
20768 msgstr ""
20769
20770 # type: =head2
20771 #: ../fish/guestfish-actions.pod:1357
20772 msgid "pid"
20773 msgstr ""
20774
20775 # type: verbatim
20776 #: ../fish/guestfish-actions.pod:1359
20777 #, no-wrap
20778 msgid ""
20779 " get-pid\n"
20780 "\n"
20781 msgstr ""
20782
20783 # type: =head2
20784 #: ../fish/guestfish-actions.pod:1366
20785 msgid "get-qemu"
20786 msgstr ""
20787
20788 # type: verbatim
20789 #: ../fish/guestfish-actions.pod:1368
20790 #, no-wrap
20791 msgid ""
20792 " get-qemu\n"
20793 "\n"
20794 msgstr ""
20795
20796 # type: =head2
20797 #: ../fish/guestfish-actions.pod:1375
20798 msgid "get-recovery-proc"
20799 msgstr ""
20800
20801 # type: verbatim
20802 #: ../fish/guestfish-actions.pod:1377
20803 #, no-wrap
20804 msgid ""
20805 " get-recovery-proc\n"
20806 "\n"
20807 msgstr ""
20808
20809 # type: =head2
20810 #: ../fish/guestfish-actions.pod:1381
20811 msgid "get-selinux"
20812 msgstr ""
20813
20814 # type: verbatim
20815 #: ../fish/guestfish-actions.pod:1383
20816 #, no-wrap
20817 msgid ""
20818 " get-selinux\n"
20819 "\n"
20820 msgstr ""
20821
20822 # type: textblock
20823 #: ../fish/guestfish-actions.pod:1385
20824 msgid ""
20825 "This returns the current setting of the selinux flag which is passed to the "
20826 "appliance at boot time.  See L</set-selinux>."
20827 msgstr ""
20828
20829 # type: =head2
20830 #: ../fish/guestfish-actions.pod:1391
20831 msgid "get-state"
20832 msgstr ""
20833
20834 # type: verbatim
20835 #: ../fish/guestfish-actions.pod:1393
20836 #, no-wrap
20837 msgid ""
20838 " get-state\n"
20839 "\n"
20840 msgstr ""
20841
20842 # type: =head2
20843 #: ../fish/guestfish-actions.pod:1400
20844 msgid "get-trace"
20845 msgstr ""
20846
20847 # type: verbatim
20848 #: ../fish/guestfish-actions.pod:1402
20849 #, no-wrap
20850 msgid ""
20851 " get-trace\n"
20852 "\n"
20853 msgstr ""
20854
20855 # type: =head2
20856 #: ../fish/guestfish-actions.pod:1406
20857 msgid "get-umask"
20858 msgstr ""
20859
20860 # type: verbatim
20861 #: ../fish/guestfish-actions.pod:1408
20862 #, no-wrap
20863 msgid ""
20864 " get-umask\n"
20865 "\n"
20866 msgstr ""
20867
20868 # type: textblock
20869 #: ../fish/guestfish-actions.pod:1410
20870 msgid ""
20871 "Return the current umask.  By default the umask is C<022> unless it has been "
20872 "set by calling L</umask>."
20873 msgstr ""
20874
20875 # type: =head2
20876 #: ../fish/guestfish-actions.pod:1413
20877 msgid "get-verbose"
20878 msgstr ""
20879
20880 # type: verbatim
20881 #: ../fish/guestfish-actions.pod:1415
20882 #, no-wrap
20883 msgid ""
20884 " get-verbose\n"
20885 "\n"
20886 msgstr ""
20887
20888 # type: =head2
20889 #: ../fish/guestfish-actions.pod:1419
20890 msgid "getcon"
20891 msgstr ""
20892
20893 # type: verbatim
20894 #: ../fish/guestfish-actions.pod:1421
20895 #, no-wrap
20896 msgid ""
20897 " getcon\n"
20898 "\n"
20899 msgstr ""
20900
20901 # type: textblock
20902 #: ../fish/guestfish-actions.pod:1425
20903 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20904 msgstr ""
20905
20906 # type: =head2
20907 #: ../fish/guestfish-actions.pod:1428
20908 msgid "getxattrs"
20909 msgstr ""
20910
20911 # type: verbatim
20912 #: ../fish/guestfish-actions.pod:1430
20913 #, no-wrap
20914 msgid ""
20915 " getxattrs path\n"
20916 "\n"
20917 msgstr ""
20918
20919 # type: textblock
20920 #: ../fish/guestfish-actions.pod:1438
20921 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20922 msgstr ""
20923
20924 # type: =head2
20925 #: ../fish/guestfish-actions.pod:1440
20926 msgid "glob-expand"
20927 msgstr ""
20928
20929 # type: verbatim
20930 #: ../fish/guestfish-actions.pod:1442
20931 #, no-wrap
20932 msgid ""
20933 " glob-expand pattern\n"
20934 "\n"
20935 msgstr ""
20936
20937 # type: =head2
20938 #: ../fish/guestfish-actions.pod:1455
20939 msgid "grep"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #: ../fish/guestfish-actions.pod:1457
20944 #, no-wrap
20945 msgid ""
20946 " grep regex path\n"
20947 "\n"
20948 msgstr ""
20949
20950 # type: =head2
20951 #: ../fish/guestfish-actions.pod:1465
20952 msgid "grepi"
20953 msgstr ""
20954
20955 # type: verbatim
20956 #: ../fish/guestfish-actions.pod:1467
20957 #, no-wrap
20958 msgid ""
20959 " grepi regex path\n"
20960 "\n"
20961 msgstr ""
20962
20963 # type: =head2
20964 #: ../fish/guestfish-actions.pod:1475
20965 msgid "grub-install"
20966 msgstr ""
20967
20968 # type: verbatim
20969 #: ../fish/guestfish-actions.pod:1477
20970 #, no-wrap
20971 msgid ""
20972 " grub-install root device\n"
20973 "\n"
20974 msgstr ""
20975
20976 # type: =head2
20977 #: ../fish/guestfish-actions.pod:1493
20978 msgid "head"
20979 msgstr ""
20980
20981 # type: verbatim
20982 #: ../fish/guestfish-actions.pod:1495
20983 #, no-wrap
20984 msgid ""
20985 " head path\n"
20986 "\n"
20987 msgstr ""
20988
20989 # type: =head2
20990 #: ../fish/guestfish-actions.pod:1503
20991 msgid "head-n"
20992 msgstr ""
20993
20994 # type: verbatim
20995 #: ../fish/guestfish-actions.pod:1505
20996 #, no-wrap
20997 msgid ""
20998 " head-n nrlines path\n"
20999 "\n"
21000 msgstr ""
21001
21002 # type: =head2
21003 #: ../fish/guestfish-actions.pod:1518
21004 msgid "hexdump"
21005 msgstr ""
21006
21007 # type: verbatim
21008 #: ../fish/guestfish-actions.pod:1520
21009 #, no-wrap
21010 msgid ""
21011 " hexdump path\n"
21012 "\n"
21013 msgstr ""
21014
21015 # type: =head2
21016 #: ../fish/guestfish-actions.pod:1528
21017 msgid "initrd-cat"
21018 msgstr ""
21019
21020 # type: verbatim
21021 #: ../fish/guestfish-actions.pod:1530
21022 #, no-wrap
21023 msgid ""
21024 " initrd-cat initrdpath filename\n"
21025 "\n"
21026 msgstr ""
21027
21028 # type: textblock
21029 #: ../fish/guestfish-actions.pod:1542
21030 msgid "See also L</initrd-list>."
21031 msgstr ""
21032
21033 # type: =head2
21034 #: ../fish/guestfish-actions.pod:1547
21035 msgid "initrd-list"
21036 msgstr ""
21037
21038 # type: verbatim
21039 #: ../fish/guestfish-actions.pod:1549
21040 #, no-wrap
21041 msgid ""
21042 " initrd-list path\n"
21043 "\n"
21044 msgstr ""
21045
21046 # type: =head2
21047 #: ../fish/guestfish-actions.pod:1561
21048 msgid "inotify-add-watch"
21049 msgstr ""
21050
21051 # type: verbatim
21052 #: ../fish/guestfish-actions.pod:1563
21053 #, no-wrap
21054 msgid ""
21055 " inotify-add-watch path mask\n"
21056 "\n"
21057 msgstr ""
21058
21059 # type: =head2
21060 #: ../fish/guestfish-actions.pod:1575
21061 msgid "inotify-close"
21062 msgstr ""
21063
21064 # type: verbatim
21065 #: ../fish/guestfish-actions.pod:1577
21066 #, no-wrap
21067 msgid ""
21068 " inotify-close\n"
21069 "\n"
21070 msgstr ""
21071
21072 # type: =head2
21073 #: ../fish/guestfish-actions.pod:1583
21074 msgid "inotify-files"
21075 msgstr ""
21076
21077 # type: verbatim
21078 #: ../fish/guestfish-actions.pod:1585
21079 #, no-wrap
21080 msgid ""
21081 " inotify-files\n"
21082 "\n"
21083 msgstr ""
21084
21085 # type: textblock
21086 #: ../fish/guestfish-actions.pod:1587
21087 msgid ""
21088 "This function is a helpful wrapper around L</inotify-read> which just "
21089 "returns a list of pathnames of objects that were touched.  The returned "
21090 "pathnames are sorted and deduplicated."
21091 msgstr ""
21092
21093 # type: =head2
21094 #: ../fish/guestfish-actions.pod:1591
21095 msgid "inotify-init"
21096 msgstr ""
21097
21098 # type: verbatim
21099 #: ../fish/guestfish-actions.pod:1593
21100 #, no-wrap
21101 msgid ""
21102 " inotify-init maxevents\n"
21103 "\n"
21104 msgstr ""
21105
21106 # type: textblock
21107 #: ../fish/guestfish-actions.pod:1599
21108 msgid ""
21109 "C<maxevents> is the maximum number of events which will be queued up between "
21110 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21111 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21112 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21113 "but records the fact that it threw them away by setting a flag "
21114 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21115 msgstr ""
21116
21117 # type: textblock
21118 #: ../fish/guestfish-actions.pod:1609
21119 msgid ""
21120 "Before any events are generated, you have to add some watches to the "
21121 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21122 "L</inotify-watch-all>."
21123 msgstr ""
21124
21125 # type: textblock
21126 #: ../fish/guestfish-actions.pod:1615
21127 msgid ""
21128 "Queued up events should be read periodically by calling L</inotify-read> (or "
21129 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21130 "If you don't read the events out often enough then you risk the internal "
21131 "queue overflowing."
21132 msgstr ""
21133
21134 # type: textblock
21135 #: ../fish/guestfish-actions.pod:1622
21136 msgid ""
21137 "The handle should be closed after use by calling L</inotify-close>.  This "
21138 "also removes any watches automatically."
21139 msgstr ""
21140
21141 # type: =head2
21142 #: ../fish/guestfish-actions.pod:1631
21143 msgid "inotify-read"
21144 msgstr ""
21145
21146 # type: verbatim
21147 #: ../fish/guestfish-actions.pod:1633
21148 #, no-wrap
21149 msgid ""
21150 " inotify-read\n"
21151 "\n"
21152 msgstr ""
21153
21154 # type: =head2
21155 #: ../fish/guestfish-actions.pod:1646
21156 msgid "inotify-rm-watch"
21157 msgstr ""
21158
21159 # type: verbatim
21160 #: ../fish/guestfish-actions.pod:1648
21161 #, no-wrap
21162 msgid ""
21163 " inotify-rm-watch wd\n"
21164 "\n"
21165 msgstr ""
21166
21167 # type: textblock
21168 #: ../fish/guestfish-actions.pod:1650
21169 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21170 msgstr ""
21171
21172 # type: =head2
21173 #: ../fish/guestfish-actions.pod:1653
21174 msgid "inspect-get-arch"
21175 msgstr ""
21176
21177 # type: verbatim
21178 #: ../fish/guestfish-actions.pod:1655
21179 #, no-wrap
21180 msgid ""
21181 " inspect-get-arch root\n"
21182 "\n"
21183 msgstr ""
21184
21185 # type: textblock
21186 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21187 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21188 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21189 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21190 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21191 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21192 #: ../fish/guestfish-actions.pod:1966
21193 msgid ""
21194 "This function should only be called with a root device string as returned by "
21195 "L</inspect-os>."
21196 msgstr ""
21197
21198 # type: textblock
21199 #: ../fish/guestfish-actions.pod:1660
21200 msgid ""
21201 "This returns the architecture of the inspected operating system.  The "
21202 "possible return values are listed under L</file-architecture>."
21203 msgstr ""
21204
21205 # type: =head2
21206 #: ../fish/guestfish-actions.pod:1669
21207 msgid "inspect-get-distro"
21208 msgstr ""
21209
21210 # type: verbatim
21211 #: ../fish/guestfish-actions.pod:1671
21212 #, no-wrap
21213 msgid ""
21214 " inspect-get-distro root\n"
21215 "\n"
21216 msgstr ""
21217
21218 # type: =head2
21219 #: ../fish/guestfish-actions.pod:1743
21220 msgid "inspect-get-filesystems"
21221 msgstr ""
21222
21223 # type: verbatim
21224 #: ../fish/guestfish-actions.pod:1745
21225 #, no-wrap
21226 msgid ""
21227 " inspect-get-filesystems root\n"
21228 "\n"
21229 msgstr ""
21230
21231 # type: textblock
21232 #: ../fish/guestfish-actions.pod:1758
21233 msgid ""
21234 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21235 "get-mountpoints>."
21236 msgstr ""
21237
21238 # type: =head2
21239 #: ../fish/guestfish-actions.pod:1761
21240 msgid "inspect-get-hostname"
21241 msgstr ""
21242
21243 # type: verbatim
21244 #: ../fish/guestfish-actions.pod:1763
21245 #, no-wrap
21246 msgid ""
21247 " inspect-get-hostname root\n"
21248 "\n"
21249 msgstr ""
21250
21251 # type: =head2
21252 #: ../fish/guestfish-actions.pod:1776
21253 msgid "inspect-get-major-version"
21254 msgstr ""
21255
21256 # type: verbatim
21257 #: ../fish/guestfish-actions.pod:1778
21258 #, no-wrap
21259 msgid ""
21260 " inspect-get-major-version root\n"
21261 "\n"
21262 msgstr ""
21263
21264 # type: =head2
21265 #: ../fish/guestfish-actions.pod:1797
21266 msgid "inspect-get-minor-version"
21267 msgstr ""
21268
21269 # type: verbatim
21270 #: ../fish/guestfish-actions.pod:1799
21271 #, no-wrap
21272 msgid ""
21273 " inspect-get-minor-version root\n"
21274 "\n"
21275 msgstr ""
21276
21277 # type: textblock
21278 #: ../fish/guestfish-actions.pod:1809
21279 msgid ""
21280 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21281 "get-major-version>."
21282 msgstr ""
21283
21284 # type: =head2
21285 #: ../fish/guestfish-actions.pod:1812
21286 msgid "inspect-get-mountpoints"
21287 msgstr ""
21288
21289 # type: verbatim
21290 #: ../fish/guestfish-actions.pod:1814
21291 #, no-wrap
21292 msgid ""
21293 " inspect-get-mountpoints root\n"
21294 "\n"
21295 msgstr ""
21296
21297 # type: textblock
21298 #: ../fish/guestfish-actions.pod:1832
21299 msgid ""
21300 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21301 "get-filesystems>."
21302 msgstr ""
21303
21304 # type: =head2
21305 #: ../fish/guestfish-actions.pod:1835
21306 msgid "inspect-get-package-format"
21307 msgstr ""
21308
21309 # type: verbatim
21310 #: ../fish/guestfish-actions.pod:1837
21311 #, no-wrap
21312 msgid ""
21313 " inspect-get-package-format root\n"
21314 "\n"
21315 msgstr ""
21316
21317 # type: textblock
21318 #: ../fish/guestfish-actions.pod:1842
21319 msgid ""
21320 "This function and L</inspect-get-package-management> return the package "
21321 "format and package management tool used by the inspected operating system.  "
21322 "For example for Fedora these functions would return C<rpm> (package format) "
21323 "and C<yum> (package management)."
21324 msgstr ""
21325
21326 # type: =head2
21327 #: ../fish/guestfish-actions.pod:1857
21328 msgid "inspect-get-package-management"
21329 msgstr ""
21330
21331 # type: verbatim
21332 #: ../fish/guestfish-actions.pod:1859
21333 #, no-wrap
21334 msgid ""
21335 " inspect-get-package-management root\n"
21336 "\n"
21337 msgstr ""
21338
21339 # type: textblock
21340 #: ../fish/guestfish-actions.pod:1864
21341 msgid ""
21342 "L</inspect-get-package-format> and this function return the package format "
21343 "and package management tool used by the inspected operating system.  For "
21344 "example for Fedora these functions would return C<rpm> (package format) and "
21345 "C<yum> (package management)."
21346 msgstr ""
21347
21348 # type: =head2
21349 #: ../fish/guestfish-actions.pod:1881
21350 msgid "inspect-get-product-name"
21351 msgstr ""
21352
21353 # type: verbatim
21354 #: ../fish/guestfish-actions.pod:1883
21355 #, no-wrap
21356 msgid ""
21357 " inspect-get-product-name root\n"
21358 "\n"
21359 msgstr ""
21360
21361 # type: =head2
21362 #: ../fish/guestfish-actions.pod:1898
21363 msgid "inspect-get-roots"
21364 msgstr ""
21365
21366 # type: verbatim
21367 #: ../fish/guestfish-actions.pod:1900
21368 #, no-wrap
21369 msgid ""
21370 " inspect-get-roots\n"
21371 "\n"
21372 msgstr ""
21373
21374 # type: textblock
21375 #: ../fish/guestfish-actions.pod:1902
21376 msgid ""
21377 "This function is a convenient way to get the list of root devices, as "
21378 "returned from a previous call to L</inspect-os>, but without redoing the "
21379 "whole inspection process."
21380 msgstr ""
21381
21382 # type: textblock
21383 #: ../fish/guestfish-actions.pod:1906
21384 msgid ""
21385 "This returns an empty list if either no root devices were found or the "
21386 "caller has not called L</inspect-os>."
21387 msgstr ""
21388
21389 # type: =head2
21390 #: ../fish/guestfish-actions.pod:1911
21391 msgid "inspect-get-type"
21392 msgstr ""
21393
21394 # type: verbatim
21395 #: ../fish/guestfish-actions.pod:1913
21396 #, no-wrap
21397 msgid ""
21398 " inspect-get-type root\n"
21399 "\n"
21400 msgstr ""
21401
21402 # type: =head2
21403 #: ../fish/guestfish-actions.pod:1946
21404 msgid "inspect-get-windows-systemroot"
21405 msgstr ""
21406
21407 # type: verbatim
21408 #: ../fish/guestfish-actions.pod:1948
21409 #, no-wrap
21410 msgid ""
21411 " inspect-get-windows-systemroot root\n"
21412 "\n"
21413 msgstr ""
21414
21415 # type: =head2
21416 #: ../fish/guestfish-actions.pod:1962
21417 msgid "inspect-list-applications"
21418 msgstr ""
21419
21420 # type: verbatim
21421 #: ../fish/guestfish-actions.pod:1964
21422 #, no-wrap
21423 msgid ""
21424 " inspect-list-applications root\n"
21425 "\n"
21426 msgstr ""
21427
21428 # type: textblock
21429 #: ../fish/guestfish-actions.pod:1971
21430 msgid ""
21431 "I<Note:> This call works differently from other parts of the inspection "
21432 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21433 "then mount up the disks, before calling this.  Listing applications is a "
21434 "significantly more difficult operation which requires access to the full "
21435 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21436 "are just returning data cached in the libguestfs handle, this call actually "
21437 "reads parts of the mounted filesystems during the call."
21438 msgstr ""
21439
21440 # type: =head2
21441 #: ../fish/guestfish-actions.pod:2061
21442 msgid "inspect-os"
21443 msgstr ""
21444
21445 # type: verbatim
21446 #: ../fish/guestfish-actions.pod:2063
21447 #, no-wrap
21448 msgid ""
21449 " inspect-os\n"
21450 "\n"
21451 msgstr ""
21452
21453 # type: textblock
21454 #: ../fish/guestfish-actions.pod:2078
21455 msgid ""
21456 "You can pass the root string(s) returned to other L</inspect-get-*> "
21457 "functions in order to query further information about each operating system, "
21458 "such as the name and version."
21459 msgstr ""
21460
21461 # type: textblock
21462 #: ../fish/guestfish-actions.pod:2083
21463 msgid ""
21464 "This function uses other libguestfs features such as L</mount-ro> and L</"
21465 "umount-all> in order to mount and unmount filesystems and look at the "
21466 "contents.  This should be called with no disks currently mounted.  The "
21467 "function may also use Augeas, so any existing Augeas handle will be closed."
21468 msgstr ""
21469
21470 # type: textblock
21471 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21472 #: ../fish/guestfish-actions.pod:2297
21473 msgid "See also L</list-filesystems>."
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:2097
21478 msgid "is-blockdev"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:2099
21483 #, no-wrap
21484 msgid ""
21485 " is-blockdev path\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: textblock
21490 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21491 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21492 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21493 #: ../fish/guestfish-actions.pod:2203
21494 msgid "See also L</stat>."
21495 msgstr ""
21496
21497 # type: =head2
21498 #: ../fish/guestfish-actions.pod:2106
21499 msgid "is-busy"
21500 msgstr ""
21501
21502 # type: verbatim
21503 #: ../fish/guestfish-actions.pod:2108
21504 #, no-wrap
21505 msgid ""
21506 " is-busy\n"
21507 "\n"
21508 msgstr ""
21509
21510 # type: =head2
21511 #: ../fish/guestfish-actions.pod:2115
21512 msgid "is-chardev"
21513 msgstr ""
21514
21515 # type: verbatim
21516 #: ../fish/guestfish-actions.pod:2117
21517 #, no-wrap
21518 msgid ""
21519 " is-chardev path\n"
21520 "\n"
21521 msgstr ""
21522
21523 # type: =head2
21524 #: ../fish/guestfish-actions.pod:2124
21525 msgid "is-config"
21526 msgstr ""
21527
21528 # type: verbatim
21529 #: ../fish/guestfish-actions.pod:2126
21530 #, no-wrap
21531 msgid ""
21532 " is-config\n"
21533 "\n"
21534 msgstr ""
21535
21536 # type: =head2
21537 #: ../fish/guestfish-actions.pod:2133
21538 msgid "is-dir"
21539 msgstr ""
21540
21541 # type: verbatim
21542 #: ../fish/guestfish-actions.pod:2135
21543 #, no-wrap
21544 msgid ""
21545 " is-dir path\n"
21546 "\n"
21547 msgstr ""
21548
21549 # type: =head2
21550 #: ../fish/guestfish-actions.pod:2143
21551 msgid "is-fifo"
21552 msgstr ""
21553
21554 # type: verbatim
21555 #: ../fish/guestfish-actions.pod:2145
21556 #, no-wrap
21557 msgid ""
21558 " is-fifo path\n"
21559 "\n"
21560 msgstr ""
21561
21562 # type: =head2
21563 #: ../fish/guestfish-actions.pod:2152
21564 msgid "is-file"
21565 msgstr ""
21566
21567 # type: verbatim
21568 #: ../fish/guestfish-actions.pod:2154
21569 #, no-wrap
21570 msgid ""
21571 " is-file path\n"
21572 "\n"
21573 msgstr ""
21574
21575 # type: =head2
21576 #: ../fish/guestfish-actions.pod:2162
21577 msgid "is-launching"
21578 msgstr ""
21579
21580 # type: verbatim
21581 #: ../fish/guestfish-actions.pod:2164
21582 #, no-wrap
21583 msgid ""
21584 " is-launching\n"
21585 "\n"
21586 msgstr ""
21587
21588 # type: =head2
21589 #: ../fish/guestfish-actions.pod:2171
21590 msgid "is-lv"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #: ../fish/guestfish-actions.pod:2173
21595 #, no-wrap
21596 msgid ""
21597 " is-lv device\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: =head2
21602 #: ../fish/guestfish-actions.pod:2178
21603 msgid "is-ready"
21604 msgstr ""
21605
21606 # type: verbatim
21607 #: ../fish/guestfish-actions.pod:2180
21608 #, no-wrap
21609 msgid ""
21610 " is-ready\n"
21611 "\n"
21612 msgstr ""
21613
21614 # type: =head2
21615 #: ../fish/guestfish-actions.pod:2187
21616 msgid "is-socket"
21617 msgstr ""
21618
21619 # type: verbatim
21620 #: ../fish/guestfish-actions.pod:2189
21621 #, no-wrap
21622 msgid ""
21623 " is-socket path\n"
21624 "\n"
21625 msgstr ""
21626
21627 # type: =head2
21628 #: ../fish/guestfish-actions.pod:2196
21629 msgid "is-symlink"
21630 msgstr ""
21631
21632 # type: verbatim
21633 #: ../fish/guestfish-actions.pod:2198
21634 #, no-wrap
21635 msgid ""
21636 " is-symlink path\n"
21637 "\n"
21638 msgstr ""
21639
21640 # type: =head2
21641 #: ../fish/guestfish-actions.pod:2205
21642 msgid "kill-subprocess"
21643 msgstr ""
21644
21645 # type: verbatim
21646 #: ../fish/guestfish-actions.pod:2207
21647 #, no-wrap
21648 msgid ""
21649 " kill-subprocess\n"
21650 "\n"
21651 msgstr ""
21652
21653 # type: =head2
21654 #: ../fish/guestfish-actions.pod:2211
21655 msgid "launch"
21656 msgstr ""
21657
21658 # type: =head2
21659 #: ../fish/guestfish-actions.pod:2213
21660 msgid "run"
21661 msgstr ""
21662
21663 # type: verbatim
21664 #: ../fish/guestfish-actions.pod:2215
21665 #, no-wrap
21666 msgid ""
21667 " launch\n"
21668 "\n"
21669 msgstr ""
21670
21671 # type: =head2
21672 #: ../fish/guestfish-actions.pod:2223
21673 msgid "lchown"
21674 msgstr ""
21675
21676 # type: verbatim
21677 #: ../fish/guestfish-actions.pod:2225
21678 #, no-wrap
21679 msgid ""
21680 " lchown owner group path\n"
21681 "\n"
21682 msgstr ""
21683
21684 # type: textblock
21685 #: ../fish/guestfish-actions.pod:2227
21686 msgid ""
21687 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21688 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21689 "target."
21690 msgstr ""
21691
21692 # type: =head2
21693 #: ../fish/guestfish-actions.pod:2235
21694 msgid "lgetxattrs"
21695 msgstr ""
21696
21697 # type: verbatim
21698 #: ../fish/guestfish-actions.pod:2237
21699 #, no-wrap
21700 msgid ""
21701 " lgetxattrs path\n"
21702 "\n"
21703 msgstr ""
21704
21705 # type: textblock
21706 #: ../fish/guestfish-actions.pod:2239
21707 msgid ""
21708 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21709 "it returns the extended attributes of the link itself."
21710 msgstr ""
21711
21712 # type: =head2
21713 #: ../fish/guestfish-actions.pod:2243
21714 msgid "list-devices"
21715 msgstr ""
21716
21717 # type: verbatim
21718 #: ../fish/guestfish-actions.pod:2245
21719 #, no-wrap
21720 msgid ""
21721 " list-devices\n"
21722 "\n"
21723 msgstr ""
21724
21725 # type: =head2
21726 #: ../fish/guestfish-actions.pod:2253
21727 msgid "list-filesystems"
21728 msgstr ""
21729
21730 # type: verbatim
21731 #: ../fish/guestfish-actions.pod:2255
21732 #, no-wrap
21733 msgid ""
21734 " list-filesystems\n"
21735 "\n"
21736 msgstr ""
21737
21738 # type: textblock
21739 #: ../fish/guestfish-actions.pod:2274
21740 msgid ""
21741 "This command runs other libguestfs commands, which might include L</mount> "
21742 "and L</umount>, and therefore you should use this soon after launch and only "
21743 "when nothing is mounted."
21744 msgstr ""
21745
21746 # type: textblock
21747 #: ../fish/guestfish-actions.pod:2278
21748 msgid ""
21749 "Not all of the filesystems returned will be mountable.  In particular, swap "
21750 "partitions are returned in the list.  Also this command does not check that "
21751 "each filesystem found is valid and mountable, and some filesystems might be "
21752 "mountable but require special options.  Filesystems may not all belong to a "
21753 "single logical operating system (use L</inspect-os> to look for OSes)."
21754 msgstr ""
21755
21756 # type: =head2
21757 #: ../fish/guestfish-actions.pod:2286
21758 msgid "list-partitions"
21759 msgstr ""
21760
21761 # type: verbatim
21762 #: ../fish/guestfish-actions.pod:2288
21763 #, no-wrap
21764 msgid ""
21765 " list-partitions\n"
21766 "\n"
21767 msgstr ""
21768
21769 # type: textblock
21770 #: ../fish/guestfish-actions.pod:2294
21771 msgid ""
21772 "This does not return logical volumes.  For that you will need to call L</"
21773 "lvs>."
21774 msgstr ""
21775
21776 # type: =head2
21777 #: ../fish/guestfish-actions.pod:2299
21778 msgid "ll"
21779 msgstr ""
21780
21781 # type: verbatim
21782 #: ../fish/guestfish-actions.pod:2301
21783 #, no-wrap
21784 msgid ""
21785 " ll directory\n"
21786 "\n"
21787 msgstr ""
21788
21789 # type: =head2
21790 #: ../fish/guestfish-actions.pod:2309
21791 msgid "ln"
21792 msgstr ""
21793
21794 # type: verbatim
21795 #: ../fish/guestfish-actions.pod:2311
21796 #, no-wrap
21797 msgid ""
21798 " ln target linkname\n"
21799 "\n"
21800 msgstr ""
21801
21802 # type: =head2
21803 #: ../fish/guestfish-actions.pod:2315
21804 msgid "ln-f"
21805 msgstr ""
21806
21807 # type: verbatim
21808 #: ../fish/guestfish-actions.pod:2317
21809 #, no-wrap
21810 msgid ""
21811 " ln-f target linkname\n"
21812 "\n"
21813 msgstr ""
21814
21815 # type: =head2
21816 #: ../fish/guestfish-actions.pod:2322
21817 msgid "ln-s"
21818 msgstr ""
21819
21820 # type: verbatim
21821 #: ../fish/guestfish-actions.pod:2324
21822 #, no-wrap
21823 msgid ""
21824 " ln-s target linkname\n"
21825 "\n"
21826 msgstr ""
21827
21828 # type: =head2
21829 #: ../fish/guestfish-actions.pod:2328
21830 msgid "ln-sf"
21831 msgstr ""
21832
21833 # type: verbatim
21834 #: ../fish/guestfish-actions.pod:2330
21835 #, no-wrap
21836 msgid ""
21837 " ln-sf target linkname\n"
21838 "\n"
21839 msgstr ""
21840
21841 # type: =head2
21842 #: ../fish/guestfish-actions.pod:2335
21843 msgid "lremovexattr"
21844 msgstr ""
21845
21846 # type: verbatim
21847 #: ../fish/guestfish-actions.pod:2337
21848 #, no-wrap
21849 msgid ""
21850 " lremovexattr xattr path\n"
21851 "\n"
21852 msgstr ""
21853
21854 # type: textblock
21855 #: ../fish/guestfish-actions.pod:2339
21856 msgid ""
21857 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21858 "it removes an extended attribute of the link itself."
21859 msgstr ""
21860
21861 # type: =head2
21862 #: ../fish/guestfish-actions.pod:2343
21863 msgid "ls"
21864 msgstr ""
21865
21866 # type: verbatim
21867 #: ../fish/guestfish-actions.pod:2345
21868 #, no-wrap
21869 msgid ""
21870 " ls directory\n"
21871 "\n"
21872 msgstr ""
21873
21874 # type: textblock
21875 #: ../fish/guestfish-actions.pod:2351
21876 msgid ""
21877 "This command is mostly useful for interactive sessions.  Programs should "
21878 "probably use L</readdir> instead."
21879 msgstr ""
21880
21881 # type: =head2
21882 #: ../fish/guestfish-actions.pod:2354
21883 msgid "lsetxattr"
21884 msgstr ""
21885
21886 # type: verbatim
21887 #: ../fish/guestfish-actions.pod:2356
21888 #, no-wrap
21889 msgid ""
21890 " lsetxattr xattr val vallen path\n"
21891 "\n"
21892 msgstr ""
21893
21894 # type: textblock
21895 #: ../fish/guestfish-actions.pod:2358
21896 msgid ""
21897 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21898 "sets an extended attribute of the link itself."
21899 msgstr ""
21900
21901 # type: =head2
21902 #: ../fish/guestfish-actions.pod:2362
21903 msgid "lstat"
21904 msgstr ""
21905
21906 # type: verbatim
21907 #: ../fish/guestfish-actions.pod:2364
21908 #, no-wrap
21909 msgid ""
21910 " lstat path\n"
21911 "\n"
21912 msgstr ""
21913
21914 # type: textblock
21915 #: ../fish/guestfish-actions.pod:2368
21916 msgid ""
21917 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21918 "the link is stat-ed, not the file it refers to."
21919 msgstr ""
21920
21921 # type: =head2
21922 #: ../fish/guestfish-actions.pod:2374
21923 msgid "lstatlist"
21924 msgstr ""
21925
21926 # type: verbatim
21927 #: ../fish/guestfish-actions.pod:2376
21928 #, no-wrap
21929 msgid ""
21930 " lstatlist path 'names ...'\n"
21931 "\n"
21932 msgstr ""
21933
21934 # type: textblock
21935 #: ../fish/guestfish-actions.pod:2378
21936 msgid ""
21937 "This call allows you to perform the L</lstat> operation on multiple files, "
21938 "where all files are in the directory C<path>.  C<names> is the list of files "
21939 "from this directory."
21940 msgstr ""
21941
21942 # type: textblock
21943 #: ../fish/guestfish-actions.pod:2387
21944 msgid ""
21945 "This call is intended for programs that want to efficiently list a directory "
21946 "contents without making many round-trips.  See also L</lxattrlist> for a "
21947 "similarly efficient call for getting extended attributes.  Very long "
21948 "directory listings might cause the protocol message size to be exceeded, "
21949 "causing this call to fail.  The caller must split up such requests into "
21950 "smaller groups of names."
21951 msgstr ""
21952
21953 # type: =head2
21954 #: ../fish/guestfish-actions.pod:2395
21955 msgid "luks-add-key"
21956 msgstr ""
21957
21958 # type: verbatim
21959 #: ../fish/guestfish-actions.pod:2397
21960 #, no-wrap
21961 msgid ""
21962 " luks-add-key device keyslot\n"
21963 "\n"
21964 msgstr ""
21965
21966 # type: textblock
21967 #: ../fish/guestfish-actions.pod:2404
21968 msgid ""
21969 "Note that if C<keyslot> already contains a key, then this command will "
21970 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21971 msgstr ""
21972
21973 # type: textblock
21974 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21975 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21976 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21977 msgid ""
21978 "This command has one or more key or passphrase parameters.  Guestfish will "
21979 "prompt for these separately."
21980 msgstr ""
21981
21982 # type: =head2
21983 #: ../fish/guestfish-actions.pod:2411
21984 msgid "luks-close"
21985 msgstr ""
21986
21987 # type: verbatim
21988 #: ../fish/guestfish-actions.pod:2413
21989 #, no-wrap
21990 msgid ""
21991 " luks-close device\n"
21992 "\n"
21993 msgstr ""
21994
21995 # type: textblock
21996 #: ../fish/guestfish-actions.pod:2415
21997 msgid ""
21998 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21999 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
22000 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
22001 "block device."
22002 msgstr ""
22003
22004 # type: =head2
22005 #: ../fish/guestfish-actions.pod:2421
22006 msgid "luks-format"
22007 msgstr ""
22008
22009 # type: verbatim
22010 #: ../fish/guestfish-actions.pod:2423
22011 #, no-wrap
22012 msgid ""
22013 " luks-format device keyslot\n"
22014 "\n"
22015 msgstr ""
22016
22017 # type: =head2
22018 #: ../fish/guestfish-actions.pod:2436
22019 msgid "luks-format-cipher"
22020 msgstr ""
22021
22022 # type: verbatim
22023 #: ../fish/guestfish-actions.pod:2438
22024 #, no-wrap
22025 msgid ""
22026 " luks-format-cipher device keyslot cipher\n"
22027 "\n"
22028 msgstr ""
22029
22030 # type: textblock
22031 #: ../fish/guestfish-actions.pod:2440
22032 msgid ""
22033 "This command is the same as L</luks-format> but it also allows you to set "
22034 "the C<cipher> used."
22035 msgstr ""
22036
22037 # type: =head2
22038 #: ../fish/guestfish-actions.pod:2449
22039 msgid "luks-kill-slot"
22040 msgstr ""
22041
22042 # type: verbatim
22043 #: ../fish/guestfish-actions.pod:2451
22044 #, no-wrap
22045 msgid ""
22046 " luks-kill-slot device keyslot\n"
22047 "\n"
22048 msgstr ""
22049
22050 # type: =head2
22051 #: ../fish/guestfish-actions.pod:2460
22052 msgid "luks-open"
22053 msgstr ""
22054
22055 # type: verbatim
22056 #: ../fish/guestfish-actions.pod:2462
22057 #, no-wrap
22058 msgid ""
22059 " luks-open device mapname\n"
22060 "\n"
22061 msgstr ""
22062
22063 # type: textblock
22064 #: ../fish/guestfish-actions.pod:2476
22065 msgid ""
22066 "If this block device contains LVM volume groups, then calling L</vgscan> "
22067 "followed by L</vg-activate-all> will make them visible."
22068 msgstr ""
22069
22070 # type: =head2
22071 #: ../fish/guestfish-actions.pod:2483
22072 msgid "luks-open-ro"
22073 msgstr ""
22074
22075 # type: verbatim
22076 #: ../fish/guestfish-actions.pod:2485
22077 #, no-wrap
22078 msgid ""
22079 " luks-open-ro device mapname\n"
22080 "\n"
22081 msgstr ""
22082
22083 # type: textblock
22084 #: ../fish/guestfish-actions.pod:2487
22085 msgid ""
22086 "This is the same as L</luks-open> except that a read-only mapping is created."
22087 msgstr ""
22088
22089 # type: =head2
22090 #: ../fish/guestfish-actions.pod:2493
22091 msgid "lvcreate"
22092 msgstr ""
22093
22094 # type: verbatim
22095 #: ../fish/guestfish-actions.pod:2495
22096 #, no-wrap
22097 msgid ""
22098 " lvcreate logvol volgroup mbytes\n"
22099 "\n"
22100 msgstr ""
22101
22102 # type: =head2
22103 #: ../fish/guestfish-actions.pod:2500
22104 msgid "lvm-canonical-lv-name"
22105 msgstr ""
22106
22107 # type: verbatim
22108 #: ../fish/guestfish-actions.pod:2502
22109 #, no-wrap
22110 msgid ""
22111 " lvm-canonical-lv-name lvname\n"
22112 "\n"
22113 msgstr ""
22114
22115 # type: textblock
22116 #: ../fish/guestfish-actions.pod:2511
22117 msgid "See also L</is-lv>."
22118 msgstr ""
22119
22120 # type: =head2
22121 #: ../fish/guestfish-actions.pod:2513
22122 msgid "lvm-clear-filter"
22123 msgstr ""
22124
22125 # type: verbatim
22126 #: ../fish/guestfish-actions.pod:2515
22127 #, no-wrap
22128 msgid ""
22129 " lvm-clear-filter\n"
22130 "\n"
22131 msgstr ""
22132
22133 # type: textblock
22134 #: ../fish/guestfish-actions.pod:2517
22135 msgid ""
22136 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22137 "block device."
22138 msgstr ""
22139
22140 # type: =head2
22141 #: ../fish/guestfish-actions.pod:2523
22142 msgid "lvm-remove-all"
22143 msgstr ""
22144
22145 # type: verbatim
22146 #: ../fish/guestfish-actions.pod:2525
22147 #, no-wrap
22148 msgid ""
22149 " lvm-remove-all\n"
22150 "\n"
22151 msgstr ""
22152
22153 # type: =head2
22154 #: ../fish/guestfish-actions.pod:2533
22155 msgid "lvm-set-filter"
22156 msgstr ""
22157
22158 # type: verbatim
22159 #: ../fish/guestfish-actions.pod:2535
22160 #, no-wrap
22161 msgid ""
22162 " lvm-set-filter 'devices ...'\n"
22163 "\n"
22164 msgstr ""
22165
22166 # type: =head2
22167 #: ../fish/guestfish-actions.pod:2560
22168 msgid "lvremove"
22169 msgstr ""
22170
22171 # type: verbatim
22172 #: ../fish/guestfish-actions.pod:2562
22173 #, no-wrap
22174 msgid ""
22175 " lvremove device\n"
22176 "\n"
22177 msgstr ""
22178
22179 # type: =head2
22180 #: ../fish/guestfish-actions.pod:2570
22181 msgid "lvrename"
22182 msgstr ""
22183
22184 # type: verbatim
22185 #: ../fish/guestfish-actions.pod:2572
22186 #, no-wrap
22187 msgid ""
22188 " lvrename logvol newlogvol\n"
22189 "\n"
22190 msgstr ""
22191
22192 # type: =head2
22193 #: ../fish/guestfish-actions.pod:2576
22194 msgid "lvresize"
22195 msgstr ""
22196
22197 # type: verbatim
22198 #: ../fish/guestfish-actions.pod:2578
22199 #, no-wrap
22200 msgid ""
22201 " lvresize device mbytes\n"
22202 "\n"
22203 msgstr ""
22204
22205 # type: =head2
22206 #: ../fish/guestfish-actions.pod:2584
22207 msgid "lvresize-free"
22208 msgstr ""
22209
22210 # type: verbatim
22211 #: ../fish/guestfish-actions.pod:2586
22212 #, no-wrap
22213 msgid ""
22214 " lvresize-free lv percent\n"
22215 "\n"
22216 msgstr ""
22217
22218 # type: =head2
22219 #: ../fish/guestfish-actions.pod:2594
22220 msgid "lvs"
22221 msgstr ""
22222
22223 # type: verbatim
22224 #: ../fish/guestfish-actions.pod:2596
22225 #, no-wrap
22226 msgid ""
22227 " lvs\n"
22228 "\n"
22229 msgstr ""
22230
22231 # type: textblock
22232 #: ../fish/guestfish-actions.pod:2604
22233 msgid "See also L</lvs-full>, L</list-filesystems>."
22234 msgstr ""
22235
22236 # type: =head2
22237 #: ../fish/guestfish-actions.pod:2606
22238 msgid "lvs-full"
22239 msgstr ""
22240
22241 # type: verbatim
22242 #: ../fish/guestfish-actions.pod:2608
22243 #, no-wrap
22244 msgid ""
22245 " lvs-full\n"
22246 "\n"
22247 msgstr ""
22248
22249 # type: =head2
22250 #: ../fish/guestfish-actions.pod:2613
22251 msgid "lvuuid"
22252 msgstr ""
22253
22254 # type: verbatim
22255 #: ../fish/guestfish-actions.pod:2615
22256 #, no-wrap
22257 msgid ""
22258 " lvuuid device\n"
22259 "\n"
22260 msgstr ""
22261
22262 # type: =head2
22263 #: ../fish/guestfish-actions.pod:2619
22264 msgid "lxattrlist"
22265 msgstr ""
22266
22267 # type: verbatim
22268 #: ../fish/guestfish-actions.pod:2621
22269 #, no-wrap
22270 msgid ""
22271 " lxattrlist path 'names ...'\n"
22272 "\n"
22273 msgstr ""
22274
22275 # type: textblock
22276 #: ../fish/guestfish-actions.pod:2637
22277 msgid ""
22278 "This call is intended for programs that want to efficiently list a directory "
22279 "contents without making many round-trips.  See also L</lstatlist> for a "
22280 "similarly efficient call for getting standard stats.  Very long directory "
22281 "listings might cause the protocol message size to be exceeded, causing this "
22282 "call to fail.  The caller must split up such requests into smaller groups of "
22283 "names."
22284 msgstr ""
22285
22286 # type: =head2
22287 #: ../fish/guestfish-actions.pod:2645
22288 msgid "mkdir"
22289 msgstr ""
22290
22291 # type: verbatim
22292 #: ../fish/guestfish-actions.pod:2647
22293 #, no-wrap
22294 msgid ""
22295 " mkdir path\n"
22296 "\n"
22297 msgstr ""
22298
22299 # type: =head2
22300 #: ../fish/guestfish-actions.pod:2651
22301 msgid "mkdir-mode"
22302 msgstr ""
22303
22304 # type: verbatim
22305 #: ../fish/guestfish-actions.pod:2653
22306 #, no-wrap
22307 msgid ""
22308 " mkdir-mode path mode\n"
22309 "\n"
22310 msgstr ""
22311
22312 # type: textblock
22313 #: ../fish/guestfish-actions.pod:2662
22314 msgid "See also L</mkdir>, L</umask>"
22315 msgstr ""
22316
22317 # type: =head2
22318 #: ../fish/guestfish-actions.pod:2664
22319 msgid "mkdir-p"
22320 msgstr ""
22321
22322 # type: verbatim
22323 #: ../fish/guestfish-actions.pod:2666
22324 #, no-wrap
22325 msgid ""
22326 " mkdir-p path\n"
22327 "\n"
22328 msgstr ""
22329
22330 # type: =head2
22331 #: ../fish/guestfish-actions.pod:2671
22332 msgid "mkdtemp"
22333 msgstr ""
22334
22335 # type: verbatim
22336 #: ../fish/guestfish-actions.pod:2673
22337 #, no-wrap
22338 msgid ""
22339 " mkdtemp template\n"
22340 "\n"
22341 msgstr ""
22342
22343 # type: =head2
22344 #: ../fish/guestfish-actions.pod:2694
22345 msgid "mke2fs-J"
22346 msgstr ""
22347
22348 # type: verbatim
22349 #: ../fish/guestfish-actions.pod:2696
22350 #, no-wrap
22351 msgid ""
22352 " mke2fs-J fstype blocksize device journal\n"
22353 "\n"
22354 msgstr ""
22355
22356 # type: textblock
22357 #: ../fish/guestfish-actions.pod:2704
22358 msgid "See also L</mke2journal>."
22359 msgstr ""
22360
22361 # type: =head2
22362 #: ../fish/guestfish-actions.pod:2706
22363 msgid "mke2fs-JL"
22364 msgstr ""
22365
22366 # type: verbatim
22367 #: ../fish/guestfish-actions.pod:2708
22368 #, no-wrap
22369 msgid ""
22370 " mke2fs-JL fstype blocksize device label\n"
22371 "\n"
22372 msgstr ""
22373
22374 # type: textblock
22375 #: ../fish/guestfish-actions.pod:2713
22376 msgid "See also L</mke2journal-L>."
22377 msgstr ""
22378
22379 # type: =head2
22380 #: ../fish/guestfish-actions.pod:2715
22381 msgid "mke2fs-JU"
22382 msgstr ""
22383
22384 # type: verbatim
22385 #: ../fish/guestfish-actions.pod:2717
22386 #, no-wrap
22387 msgid ""
22388 " mke2fs-JU fstype blocksize device uuid\n"
22389 "\n"
22390 msgstr ""
22391
22392 # type: textblock
22393 #: ../fish/guestfish-actions.pod:2722
22394 msgid "See also L</mke2journal-U>."
22395 msgstr ""
22396
22397 # type: =head2
22398 #: ../fish/guestfish-actions.pod:2724
22399 msgid "mke2journal"
22400 msgstr ""
22401
22402 # type: verbatim
22403 #: ../fish/guestfish-actions.pod:2726
22404 #, no-wrap
22405 msgid ""
22406 " mke2journal blocksize device\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: =head2
22411 #: ../fish/guestfish-actions.pod:2733
22412 msgid "mke2journal-L"
22413 msgstr ""
22414
22415 # type: verbatim
22416 #: ../fish/guestfish-actions.pod:2735
22417 #, no-wrap
22418 msgid ""
22419 " mke2journal-L blocksize label device\n"
22420 "\n"
22421 msgstr ""
22422
22423 # type: =head2
22424 #: ../fish/guestfish-actions.pod:2739
22425 msgid "mke2journal-U"
22426 msgstr ""
22427
22428 # type: verbatim
22429 #: ../fish/guestfish-actions.pod:2741
22430 #, no-wrap
22431 msgid ""
22432 " mke2journal-U blocksize uuid device\n"
22433 "\n"
22434 msgstr ""
22435
22436 # type: =head2
22437 #: ../fish/guestfish-actions.pod:2745
22438 msgid "mkfifo"
22439 msgstr ""
22440
22441 # type: verbatim
22442 #: ../fish/guestfish-actions.pod:2747
22443 #, no-wrap
22444 msgid ""
22445 " mkfifo mode path\n"
22446 "\n"
22447 msgstr ""
22448
22449 # type: textblock
22450 #: ../fish/guestfish-actions.pod:2749
22451 msgid ""
22452 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22453 "is just a convenient wrapper around L</mknod>."
22454 msgstr ""
22455
22456 # type: =head2
22457 #: ../fish/guestfish-actions.pod:2755
22458 msgid "mkfs"
22459 msgstr ""
22460
22461 # type: verbatim
22462 #: ../fish/guestfish-actions.pod:2757
22463 #, no-wrap
22464 msgid ""
22465 " mkfs fstype device\n"
22466 "\n"
22467 msgstr ""
22468
22469 # type: =head2
22470 #: ../fish/guestfish-actions.pod:2763
22471 msgid "mkfs-b"
22472 msgstr ""
22473
22474 # type: verbatim
22475 #: ../fish/guestfish-actions.pod:2765
22476 #, no-wrap
22477 msgid ""
22478 " mkfs-b fstype blocksize device\n"
22479 "\n"
22480 msgstr ""
22481
22482 # type: textblock
22483 #: ../fish/guestfish-actions.pod:2767
22484 msgid ""
22485 "This call is similar to L</mkfs>, but it allows you to control the block "
22486 "size of the resulting filesystem.  Supported block sizes depend on the "
22487 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22488 msgstr ""
22489
22490 # type: =head2
22491 #: ../fish/guestfish-actions.pod:2775
22492 msgid "mkmountpoint"
22493 msgstr ""
22494
22495 # type: verbatim
22496 #: ../fish/guestfish-actions.pod:2777
22497 #, no-wrap
22498 msgid ""
22499 " mkmountpoint exemptpath\n"
22500 "\n"
22501 msgstr ""
22502
22503 # type: textblock
22504 #: ../fish/guestfish-actions.pod:2779
22505 msgid ""
22506 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22507 "to create extra mountpoints before mounting the first filesystem."
22508 msgstr ""
22509
22510 # type: textblock
22511 #: ../fish/guestfish-actions.pod:2803
22512 msgid ""
22513 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22514 "unexpected errors if you try to mix these calls.  It is safest to manually "
22515 "unmount filesystems and remove mountpoints after use."
22516 msgstr ""
22517
22518 # type: textblock
22519 #: ../fish/guestfish-actions.pod:2807
22520 msgid ""
22521 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22522 "for this to work for manual mountpoints, you must ensure that the innermost "
22523 "mountpoints have the longest pathnames, as in the example code above."
22524 msgstr ""
22525
22526 # type: textblock
22527 #: ../fish/guestfish-actions.pod:2814
22528 msgid ""
22529 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22530 "that L</umount-all> is called when the handle is closed which can also "
22531 "trigger these issues."
22532 msgstr ""
22533
22534 # type: =head2
22535 #: ../fish/guestfish-actions.pod:2818
22536 msgid "mknod"
22537 msgstr ""
22538
22539 # type: verbatim
22540 #: ../fish/guestfish-actions.pod:2820
22541 #, no-wrap
22542 msgid ""
22543 " mknod mode devmajor devminor path\n"
22544 "\n"
22545 msgstr ""
22546
22547 # type: textblock
22548 #: ../fish/guestfish-actions.pod:2830
22549 msgid ""
22550 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22551 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22552 "regular file).  These constants are available in the standard Linux header "
22553 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22554 "wrappers around this command which bitwise OR in the appropriate constant "
22555 "for you."
22556 msgstr ""
22557
22558 # type: =head2
22559 #: ../fish/guestfish-actions.pod:2840
22560 msgid "mknod-b"
22561 msgstr ""
22562
22563 # type: verbatim
22564 #: ../fish/guestfish-actions.pod:2842
22565 #, no-wrap
22566 msgid ""
22567 " mknod-b mode devmajor devminor path\n"
22568 "\n"
22569 msgstr ""
22570
22571 # type: textblock
22572 #: ../fish/guestfish-actions.pod:2844
22573 msgid ""
22574 "This call creates a block device node called C<path> with mode C<mode> and "
22575 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22576 "wrapper around L</mknod>."
22577 msgstr ""
22578
22579 # type: =head2
22580 #: ../fish/guestfish-actions.pod:2850
22581 msgid "mknod-c"
22582 msgstr ""
22583
22584 # type: verbatim
22585 #: ../fish/guestfish-actions.pod:2852
22586 #, no-wrap
22587 msgid ""
22588 " mknod-c mode devmajor devminor path\n"
22589 "\n"
22590 msgstr ""
22591
22592 # type: textblock
22593 #: ../fish/guestfish-actions.pod:2854
22594 msgid ""
22595 "This call creates a char device node called C<path> with mode C<mode> and "
22596 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22597 "wrapper around L</mknod>."
22598 msgstr ""
22599
22600 # type: =head2
22601 #: ../fish/guestfish-actions.pod:2860
22602 msgid "mkswap"
22603 msgstr ""
22604
22605 # type: verbatim
22606 #: ../fish/guestfish-actions.pod:2862
22607 #, no-wrap
22608 msgid ""
22609 " mkswap device\n"
22610 "\n"
22611 msgstr ""
22612
22613 # type: =head2
22614 #: ../fish/guestfish-actions.pod:2866
22615 msgid "mkswap-L"
22616 msgstr ""
22617
22618 # type: verbatim
22619 #: ../fish/guestfish-actions.pod:2868
22620 #, no-wrap
22621 msgid ""
22622 " mkswap-L label device\n"
22623 "\n"
22624 msgstr ""
22625
22626 # type: =head2
22627 #: ../fish/guestfish-actions.pod:2876
22628 msgid "mkswap-U"
22629 msgstr ""
22630
22631 # type: verbatim
22632 #: ../fish/guestfish-actions.pod:2878
22633 #, no-wrap
22634 msgid ""
22635 " mkswap-U uuid device\n"
22636 "\n"
22637 msgstr ""
22638
22639 # type: =head2
22640 #: ../fish/guestfish-actions.pod:2882
22641 msgid "mkswap-file"
22642 msgstr ""
22643
22644 # type: verbatim
22645 #: ../fish/guestfish-actions.pod:2884
22646 #, no-wrap
22647 msgid ""
22648 " mkswap-file path\n"
22649 "\n"
22650 msgstr ""
22651
22652 # type: textblock
22653 #: ../fish/guestfish-actions.pod:2888
22654 msgid ""
22655 "This command just writes a swap file signature to an existing file.  To "
22656 "create the file itself, use something like L</fallocate>."
22657 msgstr ""
22658
22659 # type: =head2
22660 #: ../fish/guestfish-actions.pod:2891
22661 msgid "modprobe"
22662 msgstr ""
22663
22664 # type: verbatim
22665 #: ../fish/guestfish-actions.pod:2893
22666 #, no-wrap
22667 msgid ""
22668 " modprobe modulename\n"
22669 "\n"
22670 msgstr ""
22671
22672 # type: =head2
22673 #: ../fish/guestfish-actions.pod:2900
22674 msgid "mount"
22675 msgstr ""
22676
22677 # type: verbatim
22678 #: ../fish/guestfish-actions.pod:2902
22679 #, no-wrap
22680 msgid ""
22681 " mount device mountpoint\n"
22682 "\n"
22683 msgstr ""
22684
22685 # type: textblock
22686 #: ../fish/guestfish-actions.pod:2918
22687 msgid ""
22688 "B<Important note:> When you use this call, the filesystem options C<sync> "
22689 "and C<noatime> are set implicitly.  This was originally done because we "
22690 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22691 "very large negative performance impact and negligible effect on "
22692 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22693 "code that needs performance, and instead use L</mount-options> (use an empty "
22694 "string for the first parameter if you don't want any options)."
22695 msgstr ""
22696
22697 # type: =head2
22698 #: ../fish/guestfish-actions.pod:2928
22699 msgid "mount-loop"
22700 msgstr ""
22701
22702 # type: verbatim
22703 #: ../fish/guestfish-actions.pod:2930
22704 #, no-wrap
22705 msgid ""
22706 " mount-loop file mountpoint\n"
22707 "\n"
22708 msgstr ""
22709
22710 # type: =head2
22711 #: ../fish/guestfish-actions.pod:2936
22712 msgid "mount-options"
22713 msgstr ""
22714
22715 # type: verbatim
22716 #: ../fish/guestfish-actions.pod:2938
22717 #, no-wrap
22718 msgid ""
22719 " mount-options options device mountpoint\n"
22720 "\n"
22721 msgstr ""
22722
22723 # type: textblock
22724 #: ../fish/guestfish-actions.pod:2940
22725 msgid ""
22726 "This is the same as the L</mount> command, but it allows you to set the "
22727 "mount options as for the L<mount(8)> I<-o> flag."
22728 msgstr ""
22729
22730 # type: =head2
22731 #: ../fish/guestfish-actions.pod:2948
22732 msgid "mount-ro"
22733 msgstr ""
22734
22735 # type: verbatim
22736 #: ../fish/guestfish-actions.pod:2950
22737 #, no-wrap
22738 msgid ""
22739 " mount-ro device mountpoint\n"
22740 "\n"
22741 msgstr ""
22742
22743 # type: textblock
22744 #: ../fish/guestfish-actions.pod:2952
22745 msgid ""
22746 "This is the same as the L</mount> command, but it mounts the filesystem with "
22747 "the read-only (I<-o ro>) flag."
22748 msgstr ""
22749
22750 # type: =head2
22751 #: ../fish/guestfish-actions.pod:2955
22752 msgid "mount-vfs"
22753 msgstr ""
22754
22755 # type: verbatim
22756 #: ../fish/guestfish-actions.pod:2957
22757 #, no-wrap
22758 msgid ""
22759 " mount-vfs options vfstype device mountpoint\n"
22760 "\n"
22761 msgstr ""
22762
22763 # type: textblock
22764 #: ../fish/guestfish-actions.pod:2959
22765 msgid ""
22766 "This is the same as the L</mount> command, but it allows you to set both the "
22767 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22768 msgstr ""
22769
22770 # type: =head2
22771 #: ../fish/guestfish-actions.pod:2963
22772 msgid "mountpoints"
22773 msgstr ""
22774
22775 # type: verbatim
22776 #: ../fish/guestfish-actions.pod:2965
22777 #, no-wrap
22778 msgid ""
22779 " mountpoints\n"
22780 "\n"
22781 msgstr ""
22782
22783 # type: textblock
22784 #: ../fish/guestfish-actions.pod:2967
22785 msgid ""
22786 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22787 "This one returns a hash table (map) of device name to directory where the "
22788 "device is mounted."
22789 msgstr ""
22790
22791 # type: =head2
22792 #: ../fish/guestfish-actions.pod:2971
22793 msgid "mounts"
22794 msgstr ""
22795
22796 # type: verbatim
22797 #: ../fish/guestfish-actions.pod:2973
22798 #, no-wrap
22799 msgid ""
22800 " mounts\n"
22801 "\n"
22802 msgstr ""
22803
22804 # type: textblock
22805 #: ../fish/guestfish-actions.pod:2980
22806 msgid "See also: L</mountpoints>"
22807 msgstr ""
22808
22809 # type: =head2
22810 #: ../fish/guestfish-actions.pod:2982
22811 msgid "mv"
22812 msgstr ""
22813
22814 # type: verbatim
22815 #: ../fish/guestfish-actions.pod:2984
22816 #, no-wrap
22817 msgid ""
22818 " mv src dest\n"
22819 "\n"
22820 msgstr ""
22821
22822 # type: =head2
22823 #: ../fish/guestfish-actions.pod:2989
22824 msgid "ntfs-3g-probe"
22825 msgstr ""
22826
22827 # type: verbatim
22828 #: ../fish/guestfish-actions.pod:2991
22829 #, no-wrap
22830 msgid ""
22831 " ntfs-3g-probe true|false device\n"
22832 "\n"
22833 msgstr ""
22834
22835 # type: =head2
22836 #: ../fish/guestfish-actions.pod:3005
22837 msgid "ntfsresize"
22838 msgstr ""
22839
22840 # type: verbatim
22841 #: ../fish/guestfish-actions.pod:3007
22842 #, no-wrap
22843 msgid ""
22844 " ntfsresize device\n"
22845 "\n"
22846 msgstr ""
22847
22848 # type: =head2
22849 #: ../fish/guestfish-actions.pod:3013
22850 msgid "ntfsresize-size"
22851 msgstr ""
22852
22853 # type: verbatim
22854 #: ../fish/guestfish-actions.pod:3015
22855 #, no-wrap
22856 msgid ""
22857 " ntfsresize-size device size\n"
22858 "\n"
22859 msgstr ""
22860
22861 # type: textblock
22862 #: ../fish/guestfish-actions.pod:3017
22863 msgid ""
22864 "This command is the same as L</ntfsresize> except that it allows you to "
22865 "specify the new size (in bytes) explicitly."
22866 msgstr ""
22867
22868 # type: =head2
22869 #: ../fish/guestfish-actions.pod:3020
22870 msgid "part-add"
22871 msgstr ""
22872
22873 # type: verbatim
22874 #: ../fish/guestfish-actions.pod:3022
22875 #, no-wrap
22876 msgid ""
22877 " part-add device prlogex startsect endsect\n"
22878 "\n"
22879 msgstr ""
22880
22881 # type: textblock
22882 #: ../fish/guestfish-actions.pod:3024
22883 msgid ""
22884 "This command adds a partition to C<device>.  If there is no partition table "
22885 "on the device, call L</part-init> first."
22886 msgstr ""
22887
22888 # type: textblock
22889 #: ../fish/guestfish-actions.pod:3036
22890 msgid ""
22891 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22892 "part-disk> to do that."
22893 msgstr ""
22894
22895 # type: =head2
22896 #: ../fish/guestfish-actions.pod:3039
22897 msgid "part-del"
22898 msgstr ""
22899
22900 # type: verbatim
22901 #: ../fish/guestfish-actions.pod:3041
22902 #, no-wrap
22903 msgid ""
22904 " part-del device partnum\n"
22905 "\n"
22906 msgstr ""
22907
22908 # type: =head2
22909 #: ../fish/guestfish-actions.pod:3049
22910 msgid "part-disk"
22911 msgstr ""
22912
22913 # type: verbatim
22914 #: ../fish/guestfish-actions.pod:3051
22915 #, no-wrap
22916 msgid ""
22917 " part-disk device parttype\n"
22918 "\n"
22919 msgstr ""
22920
22921 # type: textblock
22922 #: ../fish/guestfish-actions.pod:3053
22923 msgid ""
22924 "This command is simply a combination of L</part-init> followed by L</part-"
22925 "add> to create a single primary partition covering the whole disk."
22926 msgstr ""
22927
22928 # type: textblock
22929 #: ../fish/guestfish-actions.pod:3057
22930 msgid ""
22931 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22932 "possible values are described in L</part-init>."
22933 msgstr ""
22934
22935 # type: =head2
22936 #: ../fish/guestfish-actions.pod:3063
22937 msgid "part-get-bootable"
22938 msgstr ""
22939
22940 # type: verbatim
22941 #: ../fish/guestfish-actions.pod:3065
22942 #, no-wrap
22943 msgid ""
22944 " part-get-bootable device partnum\n"
22945 "\n"
22946 msgstr ""
22947
22948 # type: textblock
22949 #: ../fish/guestfish-actions.pod:3070
22950 msgid "See also L</part-set-bootable>."
22951 msgstr ""
22952
22953 # type: =head2
22954 #: ../fish/guestfish-actions.pod:3072
22955 msgid "part-get-mbr-id"
22956 msgstr ""
22957
22958 # type: verbatim
22959 #: ../fish/guestfish-actions.pod:3074
22960 #, no-wrap
22961 msgid ""
22962 " part-get-mbr-id device partnum\n"
22963 "\n"
22964 msgstr ""
22965
22966 # type: textblock
22967 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22968 msgid ""
22969 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22970 "undefined results for other partition table types (see L</part-get-"
22971 "parttype>)."
22972 msgstr ""
22973
22974 # type: =head2
22975 #: ../fish/guestfish-actions.pod:3083
22976 msgid "part-get-parttype"
22977 msgstr ""
22978
22979 # type: verbatim
22980 #: ../fish/guestfish-actions.pod:3085
22981 #, no-wrap
22982 msgid ""
22983 " part-get-parttype device\n"
22984 "\n"
22985 msgstr ""
22986
22987 # type: textblock
22988 #: ../fish/guestfish-actions.pod:3090
22989 msgid ""
22990 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22991 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22992 "possible, although unusual.  See L</part-init> for a full list."
22993 msgstr ""
22994
22995 # type: =head2
22996 #: ../fish/guestfish-actions.pod:3095
22997 msgid "part-init"
22998 msgstr ""
22999
23000 # type: verbatim
23001 #: ../fish/guestfish-actions.pod:3097
23002 #, no-wrap
23003 msgid ""
23004 " part-init device parttype\n"
23005 "\n"
23006 msgstr ""
23007
23008 # type: textblock
23009 #: ../fish/guestfish-actions.pod:3103
23010 msgid ""
23011 "Initially there are no partitions.  Following this, you should call L</part-"
23012 "add> for each partition required."
23013 msgstr ""
23014
23015 # type: =head2
23016 #: ../fish/guestfish-actions.pod:3166
23017 msgid "part-list"
23018 msgstr ""
23019
23020 # type: verbatim
23021 #: ../fish/guestfish-actions.pod:3168
23022 #, no-wrap
23023 msgid ""
23024 " part-list device\n"
23025 "\n"
23026 msgstr ""
23027
23028 # type: textblock
23029 #: ../fish/guestfish-actions.pod:3183
23030 msgid ""
23031 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23032 "the device's sector size, see L</blockdev-getss>."
23033 msgstr ""
23034
23035 # type: =head2
23036 #: ../fish/guestfish-actions.pod:3196
23037 msgid "part-set-bootable"
23038 msgstr ""
23039
23040 # type: verbatim
23041 #: ../fish/guestfish-actions.pod:3198
23042 #, no-wrap
23043 msgid ""
23044 " part-set-bootable device partnum true|false\n"
23045 "\n"
23046 msgstr ""
23047
23048 # type: =head2
23049 #: ../fish/guestfish-actions.pod:3207
23050 msgid "part-set-mbr-id"
23051 msgstr ""
23052
23053 # type: verbatim
23054 #: ../fish/guestfish-actions.pod:3209
23055 #, no-wrap
23056 msgid ""
23057 " part-set-mbr-id device partnum idbyte\n"
23058 "\n"
23059 msgstr ""
23060
23061 # type: =head2
23062 #: ../fish/guestfish-actions.pod:3221
23063 msgid "part-set-name"
23064 msgstr ""
23065
23066 # type: verbatim
23067 #: ../fish/guestfish-actions.pod:3223
23068 #, no-wrap
23069 msgid ""
23070 " part-set-name device partnum name\n"
23071 "\n"
23072 msgstr ""
23073
23074 # type: =head2
23075 #: ../fish/guestfish-actions.pod:3231
23076 msgid "part-to-dev"
23077 msgstr ""
23078
23079 # type: verbatim
23080 #: ../fish/guestfish-actions.pod:3233
23081 #, no-wrap
23082 msgid ""
23083 " part-to-dev partition\n"
23084 "\n"
23085 msgstr ""
23086
23087 # type: textblock
23088 #: ../fish/guestfish-actions.pod:3239
23089 msgid ""
23090 "The named partition must exist, for example as a string returned from L</"
23091 "list-partitions>."
23092 msgstr ""
23093
23094 # type: =head2
23095 #: ../fish/guestfish-actions.pod:3242
23096 msgid "ping-daemon"
23097 msgstr ""
23098
23099 # type: verbatim
23100 #: ../fish/guestfish-actions.pod:3244
23101 #, no-wrap
23102 msgid ""
23103 " ping-daemon\n"
23104 "\n"
23105 msgstr ""
23106
23107 # type: =head2
23108 #: ../fish/guestfish-actions.pod:3251
23109 msgid "pread"
23110 msgstr ""
23111
23112 # type: verbatim
23113 #: ../fish/guestfish-actions.pod:3253
23114 #, no-wrap
23115 msgid ""
23116 " pread path count offset\n"
23117 "\n"
23118 msgstr ""
23119
23120 # type: textblock
23121 #: ../fish/guestfish-actions.pod:3261
23122 msgid "See also L</pwrite>, L</pread-device>."
23123 msgstr ""
23124
23125 # type: =head2
23126 #: ../fish/guestfish-actions.pod:3266
23127 msgid "pread-device"
23128 msgstr ""
23129
23130 # type: verbatim
23131 #: ../fish/guestfish-actions.pod:3268
23132 #, no-wrap
23133 msgid ""
23134 " pread-device device count offset\n"
23135 "\n"
23136 msgstr ""
23137
23138 # type: textblock
23139 #: ../fish/guestfish-actions.pod:3276
23140 msgid "See also L</pread>."
23141 msgstr ""
23142
23143 # type: =head2
23144 #: ../fish/guestfish-actions.pod:3281
23145 msgid "pvcreate"
23146 msgstr ""
23147
23148 # type: verbatim
23149 #: ../fish/guestfish-actions.pod:3283
23150 #, no-wrap
23151 msgid ""
23152 " pvcreate device\n"
23153 "\n"
23154 msgstr ""
23155
23156 # type: =head2
23157 #: ../fish/guestfish-actions.pod:3289
23158 msgid "pvremove"
23159 msgstr ""
23160
23161 # type: verbatim
23162 #: ../fish/guestfish-actions.pod:3291
23163 #, no-wrap
23164 msgid ""
23165 " pvremove device\n"
23166 "\n"
23167 msgstr ""
23168
23169 # type: =head2
23170 #: ../fish/guestfish-actions.pod:3300
23171 msgid "pvresize"
23172 msgstr ""
23173
23174 # type: verbatim
23175 #: ../fish/guestfish-actions.pod:3302
23176 #, no-wrap
23177 msgid ""
23178 " pvresize device\n"
23179 "\n"
23180 msgstr ""
23181
23182 # type: =head2
23183 #: ../fish/guestfish-actions.pod:3307
23184 msgid "pvresize-size"
23185 msgstr ""
23186
23187 # type: verbatim
23188 #: ../fish/guestfish-actions.pod:3309
23189 #, no-wrap
23190 msgid ""
23191 " pvresize-size device size\n"
23192 "\n"
23193 msgstr ""
23194
23195 # type: textblock
23196 #: ../fish/guestfish-actions.pod:3311
23197 msgid ""
23198 "This command is the same as L</pvresize> except that it allows you to "
23199 "specify the new size (in bytes) explicitly."
23200 msgstr ""
23201
23202 # type: =head2
23203 #: ../fish/guestfish-actions.pod:3314
23204 msgid "pvs"
23205 msgstr ""
23206
23207 # type: verbatim
23208 #: ../fish/guestfish-actions.pod:3316
23209 #, no-wrap
23210 msgid ""
23211 " pvs\n"
23212 "\n"
23213 msgstr ""
23214
23215 # type: textblock
23216 #: ../fish/guestfish-actions.pod:3324
23217 msgid "See also L</pvs-full>."
23218 msgstr ""
23219
23220 # type: =head2
23221 #: ../fish/guestfish-actions.pod:3326
23222 msgid "pvs-full"
23223 msgstr ""
23224
23225 # type: verbatim
23226 #: ../fish/guestfish-actions.pod:3328
23227 #, no-wrap
23228 msgid ""
23229 " pvs-full\n"
23230 "\n"
23231 msgstr ""
23232
23233 # type: =head2
23234 #: ../fish/guestfish-actions.pod:3333
23235 msgid "pvuuid"
23236 msgstr ""
23237
23238 # type: verbatim
23239 #: ../fish/guestfish-actions.pod:3335
23240 #, no-wrap
23241 msgid ""
23242 " pvuuid device\n"
23243 "\n"
23244 msgstr ""
23245
23246 # type: =head2
23247 #: ../fish/guestfish-actions.pod:3339
23248 msgid "pwrite"
23249 msgstr ""
23250
23251 # type: verbatim
23252 #: ../fish/guestfish-actions.pod:3341
23253 #, no-wrap
23254 msgid ""
23255 " pwrite path content offset\n"
23256 "\n"
23257 msgstr ""
23258
23259 # type: textblock
23260 #: ../fish/guestfish-actions.pod:3352
23261 msgid "See also L</pread>, L</pwrite-device>."
23262 msgstr ""
23263
23264 # type: =head2
23265 #: ../fish/guestfish-actions.pod:3357
23266 msgid "pwrite-device"
23267 msgstr ""
23268
23269 # type: verbatim
23270 #: ../fish/guestfish-actions.pod:3359
23271 #, no-wrap
23272 msgid ""
23273 " pwrite-device device content offset\n"
23274 "\n"
23275 msgstr ""
23276
23277 # type: textblock
23278 #: ../fish/guestfish-actions.pod:3369
23279 msgid "See also L</pwrite>."
23280 msgstr ""
23281
23282 # type: =head2
23283 #: ../fish/guestfish-actions.pod:3374
23284 msgid "read-file"
23285 msgstr ""
23286
23287 # type: verbatim
23288 #: ../fish/guestfish-actions.pod:3376
23289 #, no-wrap
23290 msgid ""
23291 " read-file path\n"
23292 "\n"
23293 msgstr ""
23294
23295 # type: textblock
23296 #: ../fish/guestfish-actions.pod:3381
23297 msgid ""
23298 "Unlike L</cat>, this function can correctly handle files that contain "
23299 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23300 "is limited in the total size of file that can be handled."
23301 msgstr ""
23302
23303 # type: =head2
23304 #: ../fish/guestfish-actions.pod:3389
23305 msgid "read-lines"
23306 msgstr ""
23307
23308 # type: verbatim
23309 #: ../fish/guestfish-actions.pod:3391
23310 #, no-wrap
23311 msgid ""
23312 " read-lines path\n"
23313 "\n"
23314 msgstr ""
23315
23316 # type: textblock
23317 #: ../fish/guestfish-actions.pod:3398
23318 msgid ""
23319 "Note that this function cannot correctly handle binary files (specifically, "
23320 "files containing C<\\0> character which is treated as end of line).  For "
23321 "those you need to use the L</read-file> function which has a more complex "
23322 "interface."
23323 msgstr ""
23324
23325 # type: =head2
23326 #: ../fish/guestfish-actions.pod:3403
23327 msgid "readdir"
23328 msgstr ""
23329
23330 # type: verbatim
23331 #: ../fish/guestfish-actions.pod:3405
23332 #, no-wrap
23333 msgid ""
23334 " readdir dir\n"
23335 "\n"
23336 msgstr ""
23337
23338 # type: textblock
23339 #: ../fish/guestfish-actions.pod:3457
23340 msgid ""
23341 "This function is primarily intended for use by programs.  To get a simple "
23342 "list of names, use L</ls>.  To get a printable directory for human "
23343 "consumption, use L</ll>."
23344 msgstr ""
23345
23346 # type: =head2
23347 #: ../fish/guestfish-actions.pod:3461
23348 msgid "readlink"
23349 msgstr ""
23350
23351 # type: verbatim
23352 #: ../fish/guestfish-actions.pod:3463
23353 #, no-wrap
23354 msgid ""
23355 " readlink path\n"
23356 "\n"
23357 msgstr ""
23358
23359 # type: =head2
23360 #: ../fish/guestfish-actions.pod:3467
23361 msgid "readlinklist"
23362 msgstr ""
23363
23364 # type: verbatim
23365 #: ../fish/guestfish-actions.pod:3469
23366 #, no-wrap
23367 msgid ""
23368 " readlinklist path 'names ...'\n"
23369 "\n"
23370 msgstr ""
23371
23372 # type: =head2
23373 #: ../fish/guestfish-actions.pod:3493
23374 msgid "realpath"
23375 msgstr ""
23376
23377 # type: verbatim
23378 #: ../fish/guestfish-actions.pod:3495
23379 #, no-wrap
23380 msgid ""
23381 " realpath path\n"
23382 "\n"
23383 msgstr ""
23384
23385 # type: =head2
23386 #: ../fish/guestfish-actions.pod:3500
23387 msgid "removexattr"
23388 msgstr ""
23389
23390 # type: verbatim
23391 #: ../fish/guestfish-actions.pod:3502
23392 #, no-wrap
23393 msgid ""
23394 " removexattr xattr path\n"
23395 "\n"
23396 msgstr ""
23397
23398 # type: textblock
23399 #: ../fish/guestfish-actions.pod:3507
23400 msgid "See also: L</lremovexattr>, L<attr(5)>."
23401 msgstr ""
23402
23403 # type: =head2
23404 #: ../fish/guestfish-actions.pod:3509
23405 msgid "resize2fs"
23406 msgstr ""
23407
23408 # type: verbatim
23409 #: ../fish/guestfish-actions.pod:3511
23410 #, no-wrap
23411 msgid ""
23412 " resize2fs device\n"
23413 "\n"
23414 msgstr ""
23415
23416 # type: textblock
23417 #: ../fish/guestfish-actions.pod:3516
23418 msgid ""
23419 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23420 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23421 "gives an error about this and sometimes not.  In any case, it is always safe "
23422 "to call L</e2fsck-f> before calling this function."
23423 msgstr ""
23424
23425 # type: =head2
23426 #: ../fish/guestfish-actions.pod:3522
23427 msgid "resize2fs-size"
23428 msgstr ""
23429
23430 # type: verbatim
23431 #: ../fish/guestfish-actions.pod:3524
23432 #, no-wrap
23433 msgid ""
23434 " resize2fs-size device size\n"
23435 "\n"
23436 msgstr ""
23437
23438 # type: textblock
23439 #: ../fish/guestfish-actions.pod:3526
23440 msgid ""
23441 "This command is the same as L</resize2fs> except that it allows you to "
23442 "specify the new size (in bytes) explicitly."
23443 msgstr ""
23444
23445 # type: =head2
23446 #: ../fish/guestfish-actions.pod:3529
23447 msgid "rm"
23448 msgstr ""
23449
23450 # type: verbatim
23451 #: ../fish/guestfish-actions.pod:3531
23452 #, no-wrap
23453 msgid ""
23454 " rm path\n"
23455 "\n"
23456 msgstr ""
23457
23458 # type: =head2
23459 #: ../fish/guestfish-actions.pod:3535
23460 msgid "rm-rf"
23461 msgstr ""
23462
23463 # type: verbatim
23464 #: ../fish/guestfish-actions.pod:3537
23465 #, no-wrap
23466 msgid ""
23467 " rm-rf path\n"
23468 "\n"
23469 msgstr ""
23470
23471 # type: =head2
23472 #: ../fish/guestfish-actions.pod:3543
23473 msgid "rmdir"
23474 msgstr ""
23475
23476 # type: verbatim
23477 #: ../fish/guestfish-actions.pod:3545
23478 #, no-wrap
23479 msgid ""
23480 " rmdir path\n"
23481 "\n"
23482 msgstr ""
23483
23484 # type: =head2
23485 #: ../fish/guestfish-actions.pod:3549
23486 msgid "rmmountpoint"
23487 msgstr ""
23488
23489 # type: verbatim
23490 #: ../fish/guestfish-actions.pod:3551
23491 #, no-wrap
23492 msgid ""
23493 " rmmountpoint exemptpath\n"
23494 "\n"
23495 msgstr ""
23496
23497 # type: textblock
23498 #: ../fish/guestfish-actions.pod:3553
23499 msgid ""
23500 "This calls removes a mountpoint that was previously created with L</"
23501 "mkmountpoint>.  See L</mkmountpoint> for full details."
23502 msgstr ""
23503
23504 # type: =head2
23505 #: ../fish/guestfish-actions.pod:3557
23506 msgid "scrub-device"
23507 msgstr ""
23508
23509 # type: verbatim
23510 #: ../fish/guestfish-actions.pod:3559
23511 #, no-wrap
23512 msgid ""
23513 " scrub-device device\n"
23514 "\n"
23515 msgstr ""
23516
23517 # type: =head2
23518 #: ../fish/guestfish-actions.pod:3570
23519 msgid "scrub-file"
23520 msgstr ""
23521
23522 # type: verbatim
23523 #: ../fish/guestfish-actions.pod:3572
23524 #, no-wrap
23525 msgid ""
23526 " scrub-file file\n"
23527 "\n"
23528 msgstr ""
23529
23530 # type: =head2
23531 #: ../fish/guestfish-actions.pod:3582
23532 msgid "scrub-freespace"
23533 msgstr ""
23534
23535 # type: verbatim
23536 #: ../fish/guestfish-actions.pod:3584
23537 #, no-wrap
23538 msgid ""
23539 " scrub-freespace dir\n"
23540 "\n"
23541 msgstr ""
23542
23543 # type: textblock
23544 #: ../fish/guestfish-actions.pod:3586
23545 msgid ""
23546 "This command creates the directory C<dir> and then fills it with files until "
23547 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23548 "deletes them.  The intention is to scrub any free space on the partition "
23549 "containing C<dir>."
23550 msgstr ""
23551
23552 # type: =head2
23553 #: ../fish/guestfish-actions.pod:3595
23554 msgid "set-append"
23555 msgstr ""
23556
23557 # type: =head2
23558 #: ../fish/guestfish-actions.pod:3597
23559 msgid "append"
23560 msgstr ""
23561
23562 # type: verbatim
23563 #: ../fish/guestfish-actions.pod:3599
23564 #, no-wrap
23565 msgid ""
23566 " set-append append\n"
23567 "\n"
23568 msgstr ""
23569
23570 # type: =head2
23571 #: ../fish/guestfish-actions.pod:3610
23572 msgid "set-autosync"
23573 msgstr ""
23574
23575 # type: =head2
23576 #: ../fish/guestfish-actions.pod:3612
23577 msgid "autosync"
23578 msgstr ""
23579
23580 # type: verbatim
23581 #: ../fish/guestfish-actions.pod:3614
23582 #, no-wrap
23583 msgid ""
23584 " set-autosync true|false\n"
23585 "\n"
23586 msgstr ""
23587
23588 # type: textblock
23589 #: ../fish/guestfish-actions.pod:3616
23590 msgid ""
23591 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23592 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23593 "closed (also if the program exits without closing handles)."
23594 msgstr ""
23595
23596 # type: =head2
23597 #: ../fish/guestfish-actions.pod:3624
23598 msgid "set-direct"
23599 msgstr ""
23600
23601 # type: =head2
23602 #: ../fish/guestfish-actions.pod:3626
23603 msgid "direct"
23604 msgstr ""
23605
23606 # type: verbatim
23607 #: ../fish/guestfish-actions.pod:3628
23608 #, no-wrap
23609 msgid ""
23610 " set-direct true|false\n"
23611 "\n"
23612 msgstr ""
23613
23614 # type: textblock
23615 #: ../fish/guestfish-actions.pod:3634
23616 msgid ""
23617 "One consequence of this is that log messages aren't caught by the library "
23618 "and handled by L</set-log-message-callback>, but go straight to stdout."
23619 msgstr ""
23620
23621 # type: =head2
23622 #: ../fish/guestfish-actions.pod:3643
23623 msgid "set-e2label"
23624 msgstr ""
23625
23626 # type: verbatim
23627 #: ../fish/guestfish-actions.pod:3645
23628 #, no-wrap
23629 msgid ""
23630 " set-e2label device label\n"
23631 "\n"
23632 msgstr ""
23633
23634 # type: textblock
23635 #: ../fish/guestfish-actions.pod:3651
23636 msgid ""
23637 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23638 "label on a filesystem."
23639 msgstr ""
23640
23641 # type: =head2
23642 #: ../fish/guestfish-actions.pod:3654
23643 msgid "set-e2uuid"
23644 msgstr ""
23645
23646 # type: verbatim
23647 #: ../fish/guestfish-actions.pod:3656
23648 #, no-wrap
23649 msgid ""
23650 " set-e2uuid device uuid\n"
23651 "\n"
23652 msgstr ""
23653
23654 # type: textblock
23655 #: ../fish/guestfish-actions.pod:3663
23656 msgid ""
23657 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23658 "UUID of a filesystem."
23659 msgstr ""
23660
23661 # type: =head2
23662 #: ../fish/guestfish-actions.pod:3666
23663 msgid "set-memsize"
23664 msgstr ""
23665
23666 # type: =head2
23667 #: ../fish/guestfish-actions.pod:3668
23668 msgid "memsize"
23669 msgstr ""
23670
23671 # type: verbatim
23672 #: ../fish/guestfish-actions.pod:3670
23673 #, no-wrap
23674 msgid ""
23675 " set-memsize memsize\n"
23676 "\n"
23677 msgstr ""
23678
23679 # type: textblock
23680 #: ../fish/guestfish-actions.pod:3672
23681 msgid ""
23682 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23683 "This only has any effect if called before L</launch>."
23684 msgstr ""
23685
23686 # type: =head2
23687 #: ../fish/guestfish-actions.pod:3683
23688 msgid "set-network"
23689 msgstr ""
23690
23691 # type: =head2
23692 #: ../fish/guestfish-actions.pod:3685
23693 msgid "network"
23694 msgstr ""
23695
23696 # type: verbatim
23697 #: ../fish/guestfish-actions.pod:3687
23698 #, no-wrap
23699 msgid ""
23700 " set-network true|false\n"
23701 "\n"
23702 msgstr ""
23703
23704 # type: textblock
23705 #: ../fish/guestfish-actions.pod:3695
23706 msgid ""
23707 "You must call this before calling L</launch>, otherwise it has no effect."
23708 msgstr ""
23709
23710 # type: =head2
23711 #: ../fish/guestfish-actions.pod:3698
23712 msgid "set-path"
23713 msgstr ""
23714
23715 # type: =head2
23716 #: ../fish/guestfish-actions.pod:3700
23717 msgid "path"
23718 msgstr ""
23719
23720 # type: verbatim
23721 #: ../fish/guestfish-actions.pod:3702
23722 #, no-wrap
23723 msgid ""
23724 " set-path searchpath\n"
23725 "\n"
23726 msgstr ""
23727
23728 # type: =head2
23729 #: ../fish/guestfish-actions.pod:3711
23730 msgid "set-qemu"
23731 msgstr ""
23732
23733 # type: =head2
23734 #: ../fish/guestfish-actions.pod:3713
23735 msgid "qemu"
23736 msgstr ""
23737
23738 # type: verbatim
23739 #: ../fish/guestfish-actions.pod:3715
23740 #, no-wrap
23741 msgid ""
23742 " set-qemu qemu\n"
23743 "\n"
23744 msgstr ""
23745
23746 # type: =head2
23747 #: ../fish/guestfish-actions.pod:3735
23748 msgid "set-recovery-proc"
23749 msgstr ""
23750
23751 # type: =head2
23752 #: ../fish/guestfish-actions.pod:3737
23753 msgid "recovery-proc"
23754 msgstr ""
23755
23756 # type: verbatim
23757 #: ../fish/guestfish-actions.pod:3739
23758 #, no-wrap
23759 msgid ""
23760 " set-recovery-proc true|false\n"
23761 "\n"
23762 msgstr ""
23763
23764 # type: textblock
23765 #: ../fish/guestfish-actions.pod:3741
23766 msgid ""
23767 "If this is called with the parameter C<false> then L</launch> does not "
23768 "create a recovery process.  The purpose of the recovery process is to stop "
23769 "runaway qemu processes in the case where the main program aborts abruptly."
23770 msgstr ""
23771
23772 # type: textblock
23773 #: ../fish/guestfish-actions.pod:3746
23774 msgid ""
23775 "This only has any effect if called before L</launch>, and the default is "
23776 "true."
23777 msgstr ""
23778
23779 # type: =head2
23780 #: ../fish/guestfish-actions.pod:3755
23781 msgid "set-selinux"
23782 msgstr ""
23783
23784 # type: =head2
23785 #: ../fish/guestfish-actions.pod:3757
23786 msgid "selinux"
23787 msgstr ""
23788
23789 # type: verbatim
23790 #: ../fish/guestfish-actions.pod:3759
23791 #, no-wrap
23792 msgid ""
23793 " set-selinux true|false\n"
23794 "\n"
23795 msgstr ""
23796
23797 # type: =head2
23798 #: ../fish/guestfish-actions.pod:3770
23799 msgid "set-trace"
23800 msgstr ""
23801
23802 # type: =head2
23803 #: ../fish/guestfish-actions.pod:3772
23804 msgid "trace"
23805 msgstr ""
23806
23807 # type: verbatim
23808 #: ../fish/guestfish-actions.pod:3774
23809 #, no-wrap
23810 msgid ""
23811 " set-trace true|false\n"
23812 "\n"
23813 msgstr ""
23814
23815 # type: =head2
23816 #: ../fish/guestfish-actions.pod:3790
23817 msgid "set-verbose"
23818 msgstr ""
23819
23820 # type: =head2
23821 #: ../fish/guestfish-actions.pod:3792
23822 msgid "verbose"
23823 msgstr ""
23824
23825 # type: verbatim
23826 #: ../fish/guestfish-actions.pod:3794
23827 #, no-wrap
23828 msgid ""
23829 " set-verbose true|false\n"
23830 "\n"
23831 msgstr ""
23832
23833 # type: =head2
23834 #: ../fish/guestfish-actions.pod:3801
23835 msgid "setcon"
23836 msgstr ""
23837
23838 # type: verbatim
23839 #: ../fish/guestfish-actions.pod:3803
23840 #, no-wrap
23841 msgid ""
23842 " setcon context\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: =head2
23847 #: ../fish/guestfish-actions.pod:3810
23848 msgid "setxattr"
23849 msgstr ""
23850
23851 # type: verbatim
23852 #: ../fish/guestfish-actions.pod:3812
23853 #, no-wrap
23854 msgid ""
23855 " setxattr xattr val vallen path\n"
23856 "\n"
23857 msgstr ""
23858
23859 # type: textblock
23860 #: ../fish/guestfish-actions.pod:3818
23861 msgid "See also: L</lsetxattr>, L<attr(5)>."
23862 msgstr ""
23863
23864 # type: =head2
23865 #: ../fish/guestfish-actions.pod:3820
23866 msgid "sfdisk"
23867 msgstr ""
23868
23869 # type: verbatim
23870 #: ../fish/guestfish-actions.pod:3822
23871 #, no-wrap
23872 msgid ""
23873 " sfdisk device cyls heads sectors 'lines ...'\n"
23874 "\n"
23875 msgstr ""
23876
23877 # type: textblock
23878 #: ../fish/guestfish-actions.pod:3844
23879 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23880 msgstr ""
23881
23882 # type: =head2
23883 #: ../fish/guestfish-actions.pod:3850
23884 msgid "sfdiskM"
23885 msgstr ""
23886
23887 # type: verbatim
23888 #: ../fish/guestfish-actions.pod:3852
23889 #, no-wrap
23890 msgid ""
23891 " sfdiskM device 'lines ...'\n"
23892 "\n"
23893 msgstr ""
23894
23895 # type: textblock
23896 #: ../fish/guestfish-actions.pod:3854
23897 msgid ""
23898 "This is a simplified interface to the L</sfdisk> command, where partition "
23899 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23900 "you don't need to specify the cyls, heads and sectors parameters which were "
23901 "rarely if ever used anyway."
23902 msgstr ""
23903
23904 # type: textblock
23905 #: ../fish/guestfish-actions.pod:3860
23906 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23907 msgstr ""
23908
23909 # type: =head2
23910 #: ../fish/guestfish-actions.pod:3866
23911 msgid "sfdisk-N"
23912 msgstr ""
23913
23914 # type: verbatim
23915 #: ../fish/guestfish-actions.pod:3868
23916 #, no-wrap
23917 msgid ""
23918 " sfdisk-N device partnum cyls heads sectors line\n"
23919 "\n"
23920 msgstr ""
23921
23922 # type: textblock
23923 #: ../fish/guestfish-actions.pod:3873
23924 msgid ""
23925 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23926 "cyls/heads/sectors parameters."
23927 msgstr ""
23928
23929 # type: textblock
23930 #: ../fish/guestfish-actions.pod:3876
23931 msgid "See also: L</part-add>"
23932 msgstr ""
23933
23934 # type: =head2
23935 #: ../fish/guestfish-actions.pod:3881
23936 msgid "sfdisk-disk-geometry"
23937 msgstr ""
23938
23939 # type: verbatim
23940 #: ../fish/guestfish-actions.pod:3883
23941 #, no-wrap
23942 msgid ""
23943 " sfdisk-disk-geometry device\n"
23944 "\n"
23945 msgstr ""
23946
23947 # type: textblock
23948 #: ../fish/guestfish-actions.pod:3885
23949 msgid ""
23950 "This displays the disk geometry of C<device> read from the partition table.  "
23951 "Especially in the case where the underlying block device has been resized, "
23952 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23953 "kernel-geometry>)."
23954 msgstr ""
23955
23956 # type: =head2
23957 #: ../fish/guestfish-actions.pod:3893
23958 msgid "sfdisk-kernel-geometry"
23959 msgstr ""
23960
23961 # type: verbatim
23962 #: ../fish/guestfish-actions.pod:3895
23963 #, no-wrap
23964 msgid ""
23965 " sfdisk-kernel-geometry device\n"
23966 "\n"
23967 msgstr ""
23968
23969 # type: =head2
23970 #: ../fish/guestfish-actions.pod:3902
23971 msgid "sfdisk-l"
23972 msgstr ""
23973
23974 # type: verbatim
23975 #: ../fish/guestfish-actions.pod:3904
23976 #, no-wrap
23977 msgid ""
23978 " sfdisk-l device\n"
23979 "\n"
23980 msgstr ""
23981
23982 # type: textblock
23983 #: ../fish/guestfish-actions.pod:3910
23984 msgid "See also: L</part-list>"
23985 msgstr ""
23986
23987 # type: =head2
23988 #: ../fish/guestfish-actions.pod:3912
23989 msgid "sh"
23990 msgstr ""
23991
23992 # type: verbatim
23993 #: ../fish/guestfish-actions.pod:3914
23994 #, no-wrap
23995 msgid ""
23996 " sh command\n"
23997 "\n"
23998 msgstr ""
23999
24000 # type: textblock
24001 #: ../fish/guestfish-actions.pod:3919
24002 msgid "This is like L</command>, but passes the command to:"
24003 msgstr ""
24004
24005 # type: textblock
24006 #: ../fish/guestfish-actions.pod:3927
24007 msgid "All the provisos about L</command> apply to this call."
24008 msgstr ""
24009
24010 # type: =head2
24011 #: ../fish/guestfish-actions.pod:3929
24012 msgid "sh-lines"
24013 msgstr ""
24014
24015 # type: verbatim
24016 #: ../fish/guestfish-actions.pod:3931
24017 #, no-wrap
24018 msgid ""
24019 " sh-lines command\n"
24020 "\n"
24021 msgstr ""
24022
24023 # type: textblock
24024 #: ../fish/guestfish-actions.pod:3933
24025 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24026 msgstr ""
24027
24028 # type: textblock
24029 #: ../fish/guestfish-actions.pod:3936
24030 msgid "See also: L</command-lines>"
24031 msgstr ""
24032
24033 # type: =head2
24034 #: ../fish/guestfish-actions.pod:3938
24035 msgid "sleep"
24036 msgstr ""
24037
24038 # type: verbatim
24039 #: ../fish/guestfish-actions.pod:3940
24040 #, no-wrap
24041 msgid ""
24042 " sleep secs\n"
24043 "\n"
24044 msgstr ""
24045
24046 # type: =head2
24047 #: ../fish/guestfish-actions.pod:3944
24048 msgid "stat"
24049 msgstr ""
24050
24051 # type: verbatim
24052 #: ../fish/guestfish-actions.pod:3946
24053 #, no-wrap
24054 msgid ""
24055 " stat path\n"
24056 "\n"
24057 msgstr ""
24058
24059 # type: =head2
24060 #: ../fish/guestfish-actions.pod:3952
24061 msgid "statvfs"
24062 msgstr ""
24063
24064 # type: verbatim
24065 #: ../fish/guestfish-actions.pod:3954
24066 #, no-wrap
24067 msgid ""
24068 " statvfs path\n"
24069 "\n"
24070 msgstr ""
24071
24072 # type: =head2
24073 #: ../fish/guestfish-actions.pod:3962
24074 msgid "strings"
24075 msgstr ""
24076
24077 # type: verbatim
24078 #: ../fish/guestfish-actions.pod:3964
24079 #, no-wrap
24080 msgid ""
24081 " strings path\n"
24082 "\n"
24083 msgstr ""
24084
24085 # type: =head2
24086 #: ../fish/guestfish-actions.pod:3972
24087 msgid "strings-e"
24088 msgstr ""
24089
24090 # type: verbatim
24091 #: ../fish/guestfish-actions.pod:3974
24092 #, no-wrap
24093 msgid ""
24094 " strings-e encoding path\n"
24095 "\n"
24096 msgstr ""
24097
24098 # type: textblock
24099 #: ../fish/guestfish-actions.pod:3976
24100 msgid ""
24101 "This is like the L</strings> command, but allows you to specify the encoding "
24102 "of strings that are looked for in the source file C<path>."
24103 msgstr ""
24104
24105 # type: textblock
24106 #: ../fish/guestfish-actions.pod:3986
24107 msgid ""
24108 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24109 "ISO-8859-X (this is what L</strings> uses)."
24110 msgstr ""
24111
24112 # type: =head2
24113 #: ../fish/guestfish-actions.pod:4018
24114 msgid "swapoff-device"
24115 msgstr ""
24116
24117 # type: verbatim
24118 #: ../fish/guestfish-actions.pod:4020
24119 #, no-wrap
24120 msgid ""
24121 " swapoff-device device\n"
24122 "\n"
24123 msgstr ""
24124
24125 # type: textblock
24126 #: ../fish/guestfish-actions.pod:4022
24127 msgid ""
24128 "This command disables the libguestfs appliance swap device or partition "
24129 "named C<device>.  See L</swapon-device>."
24130 msgstr ""
24131
24132 # type: =head2
24133 #: ../fish/guestfish-actions.pod:4026
24134 msgid "swapoff-file"
24135 msgstr ""
24136
24137 # type: verbatim
24138 #: ../fish/guestfish-actions.pod:4028
24139 #, no-wrap
24140 msgid ""
24141 " swapoff-file file\n"
24142 "\n"
24143 msgstr ""
24144
24145 # type: =head2
24146 #: ../fish/guestfish-actions.pod:4032
24147 msgid "swapoff-label"
24148 msgstr ""
24149
24150 # type: verbatim
24151 #: ../fish/guestfish-actions.pod:4034
24152 #, no-wrap
24153 msgid ""
24154 " swapoff-label label\n"
24155 "\n"
24156 msgstr ""
24157
24158 # type: =head2
24159 #: ../fish/guestfish-actions.pod:4039
24160 msgid "swapoff-uuid"
24161 msgstr ""
24162
24163 # type: verbatim
24164 #: ../fish/guestfish-actions.pod:4041
24165 #, no-wrap
24166 msgid ""
24167 " swapoff-uuid uuid\n"
24168 "\n"
24169 msgstr ""
24170
24171 # type: =head2
24172 #: ../fish/guestfish-actions.pod:4046
24173 msgid "swapon-device"
24174 msgstr ""
24175
24176 # type: verbatim
24177 #: ../fish/guestfish-actions.pod:4048
24178 #, no-wrap
24179 msgid ""
24180 " swapon-device device\n"
24181 "\n"
24182 msgstr ""
24183
24184 # type: textblock
24185 #: ../fish/guestfish-actions.pod:4050
24186 msgid ""
24187 "This command enables the libguestfs appliance to use the swap device or "
24188 "partition named C<device>.  The increased memory is made available for all "
24189 "commands, for example those run using L</command> or L</sh>."
24190 msgstr ""
24191
24192 # type: =head2
24193 #: ../fish/guestfish-actions.pod:4062
24194 msgid "swapon-file"
24195 msgstr ""
24196
24197 # type: verbatim
24198 #: ../fish/guestfish-actions.pod:4064
24199 #, no-wrap
24200 msgid ""
24201 " swapon-file file\n"
24202 "\n"
24203 msgstr ""
24204
24205 # type: textblock
24206 #: ../fish/guestfish-actions.pod:4066
24207 msgid ""
24208 "This command enables swap to a file.  See L</swapon-device> for other notes."
24209 msgstr ""
24210
24211 # type: =head2
24212 #: ../fish/guestfish-actions.pod:4069
24213 msgid "swapon-label"
24214 msgstr ""
24215
24216 # type: verbatim
24217 #: ../fish/guestfish-actions.pod:4071
24218 #, no-wrap
24219 msgid ""
24220 " swapon-label label\n"
24221 "\n"
24222 msgstr ""
24223
24224 # type: textblock
24225 #: ../fish/guestfish-actions.pod:4073
24226 msgid ""
24227 "This command enables swap to a labeled swap partition.  See L</swapon-"
24228 "device> for other notes."
24229 msgstr ""
24230
24231 # type: =head2
24232 #: ../fish/guestfish-actions.pod:4076
24233 msgid "swapon-uuid"
24234 msgstr ""
24235
24236 # type: verbatim
24237 #: ../fish/guestfish-actions.pod:4078
24238 #, no-wrap
24239 msgid ""
24240 " swapon-uuid uuid\n"
24241 "\n"
24242 msgstr ""
24243
24244 # type: textblock
24245 #: ../fish/guestfish-actions.pod:4080
24246 msgid ""
24247 "This command enables swap to a swap partition with the given UUID.  See L</"
24248 "swapon-device> for other notes."
24249 msgstr ""
24250
24251 # type: =head2
24252 #: ../fish/guestfish-actions.pod:4083
24253 msgid "sync"
24254 msgstr ""
24255
24256 # type: verbatim
24257 #: ../fish/guestfish-actions.pod:4085
24258 #, no-wrap
24259 msgid ""
24260 " sync\n"
24261 "\n"
24262 msgstr ""
24263
24264 # type: =head2
24265 #: ../fish/guestfish-actions.pod:4093
24266 msgid "tail"
24267 msgstr ""
24268
24269 # type: verbatim
24270 #: ../fish/guestfish-actions.pod:4095
24271 #, no-wrap
24272 msgid ""
24273 " tail path\n"
24274 "\n"
24275 msgstr ""
24276
24277 # type: =head2
24278 #: ../fish/guestfish-actions.pod:4103
24279 msgid "tail-n"
24280 msgstr ""
24281
24282 # type: verbatim
24283 #: ../fish/guestfish-actions.pod:4105
24284 #, no-wrap
24285 msgid ""
24286 " tail-n nrlines path\n"
24287 "\n"
24288 msgstr ""
24289
24290 # type: =head2
24291 #: ../fish/guestfish-actions.pod:4118
24292 msgid "tar-in"
24293 msgstr ""
24294
24295 # type: verbatim
24296 #: ../fish/guestfish-actions.pod:4120
24297 #, no-wrap
24298 msgid ""
24299 " tar-in (tarfile|-) directory\n"
24300 "\n"
24301 msgstr ""
24302
24303 # type: textblock
24304 #: ../fish/guestfish-actions.pod:4125
24305 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24306 msgstr ""
24307
24308 # type: =head2
24309 #: ../fish/guestfish-actions.pod:4130
24310 msgid "tar-out"
24311 msgstr ""
24312
24313 # type: verbatim
24314 #: ../fish/guestfish-actions.pod:4132
24315 #, no-wrap
24316 msgid ""
24317 " tar-out directory (tarfile|-)\n"
24318 "\n"
24319 msgstr ""
24320
24321 # type: textblock
24322 #: ../fish/guestfish-actions.pod:4137
24323 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24324 msgstr ""
24325
24326 # type: =head2
24327 #: ../fish/guestfish-actions.pod:4142
24328 msgid "tgz-in"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../fish/guestfish-actions.pod:4144
24333 #, no-wrap
24334 msgid ""
24335 " tgz-in (tarball|-) directory\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: textblock
24340 #: ../fish/guestfish-actions.pod:4149
24341 msgid "To upload an uncompressed tarball, use L</tar-in>."
24342 msgstr ""
24343
24344 # type: =head2
24345 #: ../fish/guestfish-actions.pod:4153
24346 msgid "tgz-out"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #: ../fish/guestfish-actions.pod:4155
24351 #, no-wrap
24352 msgid ""
24353 " tgz-out directory (tarball|-)\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: textblock
24358 #: ../fish/guestfish-actions.pod:4160
24359 msgid "To download an uncompressed tarball, use L</tar-out>."
24360 msgstr ""
24361
24362 # type: =head2
24363 #: ../fish/guestfish-actions.pod:4164
24364 msgid "touch"
24365 msgstr ""
24366
24367 # type: verbatim
24368 #: ../fish/guestfish-actions.pod:4166
24369 #, no-wrap
24370 msgid ""
24371 " touch path\n"
24372 "\n"
24373 msgstr ""
24374
24375 # type: =head2
24376 #: ../fish/guestfish-actions.pod:4175
24377 msgid "truncate"
24378 msgstr ""
24379
24380 # type: verbatim
24381 #: ../fish/guestfish-actions.pod:4177
24382 #, no-wrap
24383 msgid ""
24384 " truncate path\n"
24385 "\n"
24386 msgstr ""
24387
24388 # type: =head2
24389 #: ../fish/guestfish-actions.pod:4182
24390 msgid "truncate-size"
24391 msgstr ""
24392
24393 # type: verbatim
24394 #: ../fish/guestfish-actions.pod:4184
24395 #, no-wrap
24396 msgid ""
24397 " truncate-size path size\n"
24398 "\n"
24399 msgstr ""
24400
24401 # type: textblock
24402 #: ../fish/guestfish-actions.pod:4189
24403 msgid ""
24404 "If the current file size is less than C<size> then the file is extended to "
24405 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24406 "blocks are not allocated for the file until you write to it).  To create a "
24407 "non-sparse file of zeroes, use L</fallocate64> instead."
24408 msgstr ""
24409
24410 # type: =head2
24411 #: ../fish/guestfish-actions.pod:4195
24412 msgid "tune2fs-l"
24413 msgstr ""
24414
24415 # type: verbatim
24416 #: ../fish/guestfish-actions.pod:4197
24417 #, no-wrap
24418 msgid ""
24419 " tune2fs-l device\n"
24420 "\n"
24421 msgstr ""
24422
24423 # type: =head2
24424 #: ../fish/guestfish-actions.pod:4207
24425 msgid "txz-in"
24426 msgstr ""
24427
24428 # type: verbatim
24429 #: ../fish/guestfish-actions.pod:4209
24430 #, no-wrap
24431 msgid ""
24432 " txz-in (tarball|-) directory\n"
24433 "\n"
24434 msgstr ""
24435
24436 # type: =head2
24437 #: ../fish/guestfish-actions.pod:4216
24438 msgid "txz-out"
24439 msgstr ""
24440
24441 # type: verbatim
24442 #: ../fish/guestfish-actions.pod:4218
24443 #, no-wrap
24444 msgid ""
24445 " txz-out directory (tarball|-)\n"
24446 "\n"
24447 msgstr ""
24448
24449 # type: =head2
24450 #: ../fish/guestfish-actions.pod:4225
24451 msgid "umask"
24452 msgstr ""
24453
24454 # type: verbatim
24455 #: ../fish/guestfish-actions.pod:4227
24456 #, no-wrap
24457 msgid ""
24458 " umask mask\n"
24459 "\n"
24460 msgstr ""
24461
24462 # type: textblock
24463 #: ../fish/guestfish-actions.pod:4241
24464 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24465 msgstr ""
24466
24467 # type: =head2
24468 #: ../fish/guestfish-actions.pod:4246
24469 msgid "umount"
24470 msgstr ""
24471
24472 # type: =head2
24473 #: ../fish/guestfish-actions.pod:4248
24474 msgid "unmount"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #: ../fish/guestfish-actions.pod:4250
24479 #, no-wrap
24480 msgid ""
24481 " umount pathordevice\n"
24482 "\n"
24483 msgstr ""
24484
24485 # type: =head2
24486 #: ../fish/guestfish-actions.pod:4256
24487 msgid "umount-all"
24488 msgstr ""
24489
24490 # type: =head2
24491 #: ../fish/guestfish-actions.pod:4258
24492 msgid "unmount-all"
24493 msgstr ""
24494
24495 # type: verbatim
24496 #: ../fish/guestfish-actions.pod:4260
24497 #, no-wrap
24498 msgid ""
24499 " umount-all\n"
24500 "\n"
24501 msgstr ""
24502
24503 # type: =head2
24504 #: ../fish/guestfish-actions.pod:4266
24505 msgid "upload"
24506 msgstr ""
24507
24508 # type: verbatim
24509 #: ../fish/guestfish-actions.pod:4268
24510 #, no-wrap
24511 msgid ""
24512 " upload (filename|-) remotefilename\n"
24513 "\n"
24514 msgstr ""
24515
24516 # type: textblock
24517 #: ../fish/guestfish-actions.pod:4275
24518 msgid "See also L</download>."
24519 msgstr ""
24520
24521 # type: =head2
24522 #: ../fish/guestfish-actions.pod:4279
24523 msgid "upload-offset"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #: ../fish/guestfish-actions.pod:4281
24528 #, no-wrap
24529 msgid ""
24530 " upload-offset (filename|-) remotefilename offset\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../fish/guestfish-actions.pod:4293
24536 msgid ""
24537 "Note that there is no limit on the amount of data that can be uploaded with "
24538 "this call, unlike with L</pwrite>, and this call always writes the full "
24539 "amount unless an error occurs."
24540 msgstr ""
24541
24542 # type: textblock
24543 #: ../fish/guestfish-actions.pod:4298
24544 msgid "See also L</upload>, L</pwrite>."
24545 msgstr ""
24546
24547 # type: =head2
24548 #: ../fish/guestfish-actions.pod:4302
24549 msgid "utimens"
24550 msgstr ""
24551
24552 # type: verbatim
24553 #: ../fish/guestfish-actions.pod:4304
24554 #, no-wrap
24555 msgid ""
24556 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24557 "\n"
24558 msgstr ""
24559
24560 # type: =head2
24561 #: ../fish/guestfish-actions.pod:4323
24562 msgid "version"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #: ../fish/guestfish-actions.pod:4325
24567 #, no-wrap
24568 msgid ""
24569 " version\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: textblock
24574 #: ../fish/guestfish-actions.pod:4352
24575 msgid ""
24576 "I<Note:> Don't use this call to test for availability of features.  In "
24577 "enterprise distributions we backport features from later versions into "
24578 "earlier versions, making this an unreliable way to test for features.  Use "
24579 "L</available> instead."
24580 msgstr ""
24581
24582 # type: =head2
24583 #: ../fish/guestfish-actions.pod:4358
24584 msgid "vfs-label"
24585 msgstr ""
24586
24587 # type: verbatim
24588 #: ../fish/guestfish-actions.pod:4360
24589 #, no-wrap
24590 msgid ""
24591 " vfs-label device\n"
24592 "\n"
24593 msgstr ""
24594
24595 # type: textblock
24596 #: ../fish/guestfish-actions.pod:4367
24597 msgid "To find a filesystem from the label, use L</findfs-label>."
24598 msgstr ""
24599
24600 # type: =head2
24601 #: ../fish/guestfish-actions.pod:4369
24602 msgid "vfs-type"
24603 msgstr ""
24604
24605 # type: verbatim
24606 #: ../fish/guestfish-actions.pod:4371
24607 #, no-wrap
24608 msgid ""
24609 " vfs-type device\n"
24610 "\n"
24611 msgstr ""
24612
24613 # type: =head2
24614 #: ../fish/guestfish-actions.pod:4381
24615 msgid "vfs-uuid"
24616 msgstr ""
24617
24618 # type: verbatim
24619 #: ../fish/guestfish-actions.pod:4383
24620 #, no-wrap
24621 msgid ""
24622 " vfs-uuid device\n"
24623 "\n"
24624 msgstr ""
24625
24626 # type: textblock
24627 #: ../fish/guestfish-actions.pod:4390
24628 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24629 msgstr ""
24630
24631 # type: =head2
24632 #: ../fish/guestfish-actions.pod:4392
24633 msgid "vg-activate"
24634 msgstr ""
24635
24636 # type: verbatim
24637 #: ../fish/guestfish-actions.pod:4394
24638 #, no-wrap
24639 msgid ""
24640 " vg-activate true|false 'volgroups ...'\n"
24641 "\n"
24642 msgstr ""
24643
24644 # type: =head2
24645 #: ../fish/guestfish-actions.pod:4407
24646 msgid "vg-activate-all"
24647 msgstr ""
24648
24649 # type: verbatim
24650 #: ../fish/guestfish-actions.pod:4409
24651 #, no-wrap
24652 msgid ""
24653 " vg-activate-all true|false\n"
24654 "\n"
24655 msgstr ""
24656
24657 # type: =head2
24658 #: ../fish/guestfish-actions.pod:4419
24659 msgid "vgcreate"
24660 msgstr ""
24661
24662 # type: verbatim
24663 #: ../fish/guestfish-actions.pod:4421
24664 #, no-wrap
24665 msgid ""
24666 " vgcreate volgroup 'physvols ...'\n"
24667 "\n"
24668 msgstr ""
24669
24670 # type: =head2
24671 #: ../fish/guestfish-actions.pod:4426
24672 msgid "vglvuuids"
24673 msgstr ""
24674
24675 # type: verbatim
24676 #: ../fish/guestfish-actions.pod:4428
24677 #, no-wrap
24678 msgid ""
24679 " vglvuuids vgname\n"
24680 "\n"
24681 msgstr ""
24682
24683 # type: textblock
24684 #: ../fish/guestfish-actions.pod:4433
24685 msgid ""
24686 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24687 "logical volumes and volume groups."
24688 msgstr ""
24689
24690 # type: textblock
24691 #: ../fish/guestfish-actions.pod:4436
24692 msgid "See also L</vgpvuuids>."
24693 msgstr ""
24694
24695 # type: =head2
24696 #: ../fish/guestfish-actions.pod:4438
24697 msgid "vgpvuuids"
24698 msgstr ""
24699
24700 # type: verbatim
24701 #: ../fish/guestfish-actions.pod:4440
24702 #, no-wrap
24703 msgid ""
24704 " vgpvuuids vgname\n"
24705 "\n"
24706 msgstr ""
24707
24708 # type: textblock
24709 #: ../fish/guestfish-actions.pod:4445
24710 msgid ""
24711 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24712 "physical volumes and volume groups."
24713 msgstr ""
24714
24715 # type: textblock
24716 #: ../fish/guestfish-actions.pod:4448
24717 msgid "See also L</vglvuuids>."
24718 msgstr ""
24719
24720 # type: =head2
24721 #: ../fish/guestfish-actions.pod:4450
24722 msgid "vgremove"
24723 msgstr ""
24724
24725 # type: verbatim
24726 #: ../fish/guestfish-actions.pod:4452
24727 #, no-wrap
24728 msgid ""
24729 " vgremove vgname\n"
24730 "\n"
24731 msgstr ""
24732
24733 # type: =head2
24734 #: ../fish/guestfish-actions.pod:4459
24735 msgid "vgrename"
24736 msgstr ""
24737
24738 # type: verbatim
24739 #: ../fish/guestfish-actions.pod:4461
24740 #, no-wrap
24741 msgid ""
24742 " vgrename volgroup newvolgroup\n"
24743 "\n"
24744 msgstr ""
24745
24746 # type: =head2
24747 #: ../fish/guestfish-actions.pod:4465
24748 msgid "vgs"
24749 msgstr ""
24750
24751 # type: verbatim
24752 #: ../fish/guestfish-actions.pod:4467
24753 #, no-wrap
24754 msgid ""
24755 " vgs\n"
24756 "\n"
24757 msgstr ""
24758
24759 # type: textblock
24760 #: ../fish/guestfish-actions.pod:4475
24761 msgid "See also L</vgs-full>."
24762 msgstr ""
24763
24764 # type: =head2
24765 #: ../fish/guestfish-actions.pod:4477
24766 msgid "vgs-full"
24767 msgstr ""
24768
24769 # type: verbatim
24770 #: ../fish/guestfish-actions.pod:4479
24771 #, no-wrap
24772 msgid ""
24773 " vgs-full\n"
24774 "\n"
24775 msgstr ""
24776
24777 # type: =head2
24778 #: ../fish/guestfish-actions.pod:4484
24779 msgid "vgscan"
24780 msgstr ""
24781
24782 # type: verbatim
24783 #: ../fish/guestfish-actions.pod:4486
24784 #, no-wrap
24785 msgid ""
24786 " vgscan\n"
24787 "\n"
24788 msgstr ""
24789
24790 # type: =head2
24791 #: ../fish/guestfish-actions.pod:4491
24792 msgid "vguuid"
24793 msgstr ""
24794
24795 # type: verbatim
24796 #: ../fish/guestfish-actions.pod:4493
24797 #, no-wrap
24798 msgid ""
24799 " vguuid vgname\n"
24800 "\n"
24801 msgstr ""
24802
24803 # type: =head2
24804 #: ../fish/guestfish-actions.pod:4497
24805 msgid "wc-c"
24806 msgstr ""
24807
24808 # type: verbatim
24809 #: ../fish/guestfish-actions.pod:4499
24810 #, no-wrap
24811 msgid ""
24812 " wc-c path\n"
24813 "\n"
24814 msgstr ""
24815
24816 # type: =head2
24817 #: ../fish/guestfish-actions.pod:4504
24818 msgid "wc-l"
24819 msgstr ""
24820
24821 # type: verbatim
24822 #: ../fish/guestfish-actions.pod:4506
24823 #, no-wrap
24824 msgid ""
24825 " wc-l path\n"
24826 "\n"
24827 msgstr ""
24828
24829 # type: =head2
24830 #: ../fish/guestfish-actions.pod:4511
24831 msgid "wc-w"
24832 msgstr ""
24833
24834 # type: verbatim
24835 #: ../fish/guestfish-actions.pod:4513
24836 #, no-wrap
24837 msgid ""
24838 " wc-w path\n"
24839 "\n"
24840 msgstr ""
24841
24842 # type: =head2
24843 #: ../fish/guestfish-actions.pod:4518
24844 msgid "write"
24845 msgstr ""
24846
24847 # type: verbatim
24848 #: ../fish/guestfish-actions.pod:4520
24849 #, no-wrap
24850 msgid ""
24851 " write path content\n"
24852 "\n"
24853 msgstr ""
24854
24855 # type: =head2
24856 #: ../fish/guestfish-actions.pod:4528
24857 msgid "write-file"
24858 msgstr ""
24859
24860 # type: verbatim
24861 #: ../fish/guestfish-actions.pod:4530
24862 #, no-wrap
24863 msgid ""
24864 " write-file path content size\n"
24865 "\n"
24866 msgstr ""
24867
24868 # type: =head2
24869 #: ../fish/guestfish-actions.pod:4553
24870 msgid "zegrep"
24871 msgstr ""
24872
24873 # type: verbatim
24874 #: ../fish/guestfish-actions.pod:4555
24875 #, no-wrap
24876 msgid ""
24877 " zegrep regex path\n"
24878 "\n"
24879 msgstr ""
24880
24881 # type: =head2
24882 #: ../fish/guestfish-actions.pod:4563
24883 msgid "zegrepi"
24884 msgstr ""
24885
24886 # type: verbatim
24887 #: ../fish/guestfish-actions.pod:4565
24888 #, no-wrap
24889 msgid ""
24890 " zegrepi regex path\n"
24891 "\n"
24892 msgstr ""
24893
24894 # type: =head2
24895 #: ../fish/guestfish-actions.pod:4573
24896 msgid "zero"
24897 msgstr ""
24898
24899 # type: verbatim
24900 #: ../fish/guestfish-actions.pod:4575
24901 #, no-wrap
24902 msgid ""
24903 " zero device\n"
24904 "\n"
24905 msgstr ""
24906
24907 # type: textblock
24908 #: ../fish/guestfish-actions.pod:4583
24909 msgid "See also: L</zero-device>, L</scrub-device>."
24910 msgstr ""
24911
24912 # type: =head2
24913 #: ../fish/guestfish-actions.pod:4585
24914 msgid "zero-device"
24915 msgstr ""
24916
24917 # type: verbatim
24918 #: ../fish/guestfish-actions.pod:4587
24919 #, no-wrap
24920 msgid ""
24921 " zero-device device\n"
24922 "\n"
24923 msgstr ""
24924
24925 # type: textblock
24926 #: ../fish/guestfish-actions.pod:4589
24927 msgid ""
24928 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24929 "which just zeroes the first few blocks of a device."
24930 msgstr ""
24931
24932 # type: =head2
24933 #: ../fish/guestfish-actions.pod:4596
24934 msgid "zerofree"
24935 msgstr ""
24936
24937 # type: verbatim
24938 #: ../fish/guestfish-actions.pod:4598
24939 #, no-wrap
24940 msgid ""
24941 " zerofree device\n"
24942 "\n"
24943 msgstr ""
24944
24945 # type: =head2
24946 #: ../fish/guestfish-actions.pod:4611
24947 msgid "zfgrep"
24948 msgstr ""
24949
24950 # type: verbatim
24951 #: ../fish/guestfish-actions.pod:4613
24952 #, no-wrap
24953 msgid ""
24954 " zfgrep pattern path\n"
24955 "\n"
24956 msgstr ""
24957
24958 # type: =head2
24959 #: ../fish/guestfish-actions.pod:4621
24960 msgid "zfgrepi"
24961 msgstr ""
24962
24963 # type: verbatim
24964 #: ../fish/guestfish-actions.pod:4623
24965 #, no-wrap
24966 msgid ""
24967 " zfgrepi pattern path\n"
24968 "\n"
24969 msgstr ""
24970
24971 # type: =head2
24972 #: ../fish/guestfish-actions.pod:4631
24973 msgid "zfile"
24974 msgstr ""
24975
24976 # type: verbatim
24977 #: ../fish/guestfish-actions.pod:4633
24978 #, no-wrap
24979 msgid ""
24980 " zfile meth path\n"
24981 "\n"
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../fish/guestfish-actions.pod:4640
24986 msgid ""
24987 "Since 1.0.63, use L</file> instead which can now process compressed files."
24988 msgstr ""
24989
24990 # type: =head2
24991 #: ../fish/guestfish-actions.pod:4650
24992 msgid "zgrep"
24993 msgstr ""
24994
24995 # type: verbatim
24996 #: ../fish/guestfish-actions.pod:4652
24997 #, no-wrap
24998 msgid ""
24999 " zgrep regex path\n"
25000 "\n"
25001 msgstr ""
25002
25003 # type: =head2
25004 #: ../fish/guestfish-actions.pod:4660
25005 msgid "zgrepi"
25006 msgstr ""
25007
25008 # type: verbatim
25009 #: ../fish/guestfish-actions.pod:4662
25010 #, no-wrap
25011 msgid ""
25012 " zgrepi regex path\n"
25013 "\n"
25014 msgstr ""
25015
25016 # type: =head2
25017 #: ../fish/guestfish-commands.pod:1
25018 msgid "alloc"
25019 msgstr ""
25020
25021 # type: =head2
25022 #: ../fish/guestfish-commands.pod:3
25023 msgid "allocate"
25024 msgstr ""
25025
25026 # type: verbatim
25027 #: ../fish/guestfish-commands.pod:5
25028 #, no-wrap
25029 msgid ""
25030 " alloc filename size\n"
25031 "\n"
25032 msgstr ""
25033
25034 # type: textblock
25035 #: ../fish/guestfish-commands.pod:7
25036 msgid ""
25037 "This creates an empty (zeroed) file of the given size, and then adds so it "
25038 "can be further examined."
25039 msgstr ""
25040
25041 # type: textblock
25042 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25043 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25044 msgstr ""
25045
25046 # type: textblock
25047 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25048 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25049 msgstr ""
25050
25051 # type: textblock
25052 #: ../fish/guestfish-commands.pod:14
25053 msgid ""
25054 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25055 "image, see L</PREPARED DISK IMAGES>."
25056 msgstr ""
25057
25058 # type: =head2
25059 #: ../fish/guestfish-commands.pod:17
25060 msgid "copy-in"
25061 msgstr ""
25062
25063 # type: verbatim
25064 #: ../fish/guestfish-commands.pod:19
25065 #, no-wrap
25066 msgid ""
25067 " copy-in local [local ...] /remotedir\n"
25068 "\n"
25069 msgstr ""
25070
25071 # type: textblock
25072 #: ../fish/guestfish-commands.pod:21
25073 msgid ""
25074 "C<copy-in> copies local files or directories recursively into the disk "
25075 "image, placing them in the directory called C</remotedir> (which must "
25076 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25077 "other commands as necessary."
25078 msgstr ""
25079
25080 # type: textblock
25081 #: ../fish/guestfish-commands.pod:26
25082 msgid ""
25083 "Multiple local files and directories can be specified, but the last "
25084 "parameter must always be a remote directory.  Wildcards cannot be used."
25085 msgstr ""
25086
25087 # type: =head2
25088 #: ../fish/guestfish-commands.pod:30
25089 msgid "copy-out"
25090 msgstr ""
25091
25092 # type: verbatim
25093 #: ../fish/guestfish-commands.pod:32
25094 #, no-wrap
25095 msgid ""
25096 " copy-out remote [remote ...] localdir\n"
25097 "\n"
25098 msgstr ""
25099
25100 # type: textblock
25101 #: ../fish/guestfish-commands.pod:34
25102 msgid ""
25103 "C<copy-out> copies remote files or directories recursively out of the disk "
25104 "image, placing them on the host disk in a local directory called C<localdir> "
25105 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25106 "download>, L</tar-out> and other commands as necessary."
25107 msgstr ""
25108
25109 # type: textblock
25110 #: ../fish/guestfish-commands.pod:40
25111 msgid ""
25112 "Multiple remote files and directories can be specified, but the last "
25113 "parameter must always be a local directory.  To download to the current "
25114 "directory, use C<.> as in:"
25115 msgstr ""
25116
25117 # type: verbatim
25118 #: ../fish/guestfish-commands.pod:44
25119 #, no-wrap
25120 msgid ""
25121 " copy-out /home .\n"
25122 "\n"
25123 msgstr ""
25124
25125 # type: textblock
25126 #: ../fish/guestfish-commands.pod:46
25127 msgid ""
25128 "Wildcards cannot be used in the ordinary command, but you can use them with "
25129 "the help of L</glob> like this:"
25130 msgstr ""
25131
25132 # type: verbatim
25133 #: ../fish/guestfish-commands.pod:49
25134 #, no-wrap
25135 msgid ""
25136 " glob copy-out /home/* .\n"
25137 "\n"
25138 msgstr ""
25139
25140 # type: =head2
25141 #: ../fish/guestfish-commands.pod:51
25142 msgid "echo"
25143 msgstr ""
25144
25145 # type: verbatim
25146 #: ../fish/guestfish-commands.pod:53
25147 #, no-wrap
25148 msgid ""
25149 " echo [params ...]\n"
25150 "\n"
25151 msgstr ""
25152
25153 # type: textblock
25154 #: ../fish/guestfish-commands.pod:55
25155 msgid "This echos the parameters to the terminal."
25156 msgstr ""
25157
25158 # type: =head2
25159 #: ../fish/guestfish-commands.pod:57
25160 msgid "edit"
25161 msgstr ""
25162
25163 # type: =head2
25164 #: ../fish/guestfish-commands.pod:59
25165 msgid "vi"
25166 msgstr ""
25167
25168 # type: =head2
25169 #: ../fish/guestfish-commands.pod:61
25170 msgid "emacs"
25171 msgstr ""
25172
25173 # type: verbatim
25174 #: ../fish/guestfish-commands.pod:63
25175 #, no-wrap
25176 msgid ""
25177 " edit filename\n"
25178 "\n"
25179 msgstr ""
25180
25181 # type: textblock
25182 #: ../fish/guestfish-commands.pod:65
25183 msgid ""
25184 "This is used to edit a file.  It downloads the file, edits it locally using "
25185 "your editor, then uploads the result."
25186 msgstr ""
25187
25188 # type: textblock
25189 #: ../fish/guestfish-commands.pod:68
25190 msgid ""
25191 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25192 "or C<emacs> you will get those corresponding editors."
25193 msgstr ""
25194
25195 # type: =head2
25196 #: ../fish/guestfish-commands.pod:72
25197 msgid "glob"
25198 msgstr ""
25199
25200 # type: verbatim
25201 #: ../fish/guestfish-commands.pod:74
25202 #, no-wrap
25203 msgid ""
25204 " glob command args...\n"
25205 "\n"
25206 msgstr ""
25207
25208 # type: textblock
25209 #: ../fish/guestfish-commands.pod:76
25210 msgid ""
25211 "Expand wildcards in any paths in the args list, and run C<command> "
25212 "repeatedly on each matching path."
25213 msgstr ""
25214
25215 # type: textblock
25216 #: ../fish/guestfish-commands.pod:79
25217 msgid "See L</WILDCARDS AND GLOBBING>."
25218 msgstr ""
25219
25220 # type: =head2
25221 #: ../fish/guestfish-commands.pod:81
25222 msgid "hexedit"
25223 msgstr ""
25224
25225 # type: verbatim
25226 #: ../fish/guestfish-commands.pod:83
25227 #, no-wrap
25228 msgid ""
25229 " hexedit <filename|device>\n"
25230 " hexedit <filename|device> <max>\n"
25231 " hexedit <filename|device> <start> <max>\n"
25232 "\n"
25233 msgstr ""
25234
25235 # type: textblock
25236 #: ../fish/guestfish-commands.pod:87
25237 msgid ""
25238 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25239 "device."
25240 msgstr ""
25241
25242 # type: textblock
25243 #: ../fish/guestfish-commands.pod:90
25244 msgid ""
25245 "This command works by downloading potentially the whole file or device, "
25246 "editing it locally, then uploading it.  If the file or device is large, you "
25247 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25248 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25249 "usual modifiers allowed such as C<1M> (1 megabyte)."
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../fish/guestfish-commands.pod:97
25254 msgid "For example to edit the first few sectors of a disk you might do:"
25255 msgstr ""
25256
25257 # type: verbatim
25258 #: ../fish/guestfish-commands.pod:100
25259 #, no-wrap
25260 msgid ""
25261 " hexedit /dev/sda 1M\n"
25262 "\n"
25263 msgstr ""
25264
25265 # type: textblock
25266 #: ../fish/guestfish-commands.pod:102
25267 msgid ""
25268 "which would allow you to edit anywhere within the first megabyte of the disk."
25269 msgstr ""
25270
25271 # type: textblock
25272 #: ../fish/guestfish-commands.pod:105
25273 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25274 msgstr ""
25275
25276 # type: verbatim
25277 #: ../fish/guestfish-commands.pod:107
25278 #, no-wrap
25279 msgid ""
25280 " hexedit /dev/sda1 0x400 0x400\n"
25281 "\n"
25282 msgstr ""
25283
25284 # type: textblock
25285 #: ../fish/guestfish-commands.pod:109
25286 msgid "(assuming the superblock is in the standard location)."
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../fish/guestfish-commands.pod:111
25291 msgid ""
25292 "This command requires the external L<hexedit(1)> program.  You can specify "
25293 "another program to use by setting the C<HEXEDITOR> environment variable."
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../fish/guestfish-commands.pod:115
25298 msgid "See also L</hexdump>."
25299 msgstr ""
25300
25301 # type: =head2
25302 #: ../fish/guestfish-commands.pod:117
25303 msgid "lcd"
25304 msgstr ""
25305
25306 # type: verbatim
25307 #: ../fish/guestfish-commands.pod:119
25308 #, no-wrap
25309 msgid ""
25310 " lcd directory\n"
25311 "\n"
25312 msgstr ""
25313
25314 # type: textblock
25315 #: ../fish/guestfish-commands.pod:121
25316 msgid ""
25317 "Change the local directory, ie. the current directory of guestfish itself."
25318 msgstr ""
25319
25320 # type: textblock
25321 #: ../fish/guestfish-commands.pod:124
25322 msgid "Note that C<!cd> won't do what you might expect."
25323 msgstr ""
25324
25325 # type: =head2
25326 #: ../fish/guestfish-commands.pod:126
25327 msgid "man"
25328 msgstr ""
25329
25330 # type: =head2
25331 #: ../fish/guestfish-commands.pod:128
25332 msgid "manual"
25333 msgstr ""
25334
25335 # type: verbatim
25336 #: ../fish/guestfish-commands.pod:130
25337 #, no-wrap
25338 msgid ""
25339 "  man\n"
25340 "\n"
25341 msgstr ""
25342
25343 # type: textblock
25344 #: ../fish/guestfish-commands.pod:132
25345 msgid "Opens the manual page for guestfish."
25346 msgstr ""
25347
25348 # type: =head2
25349 #: ../fish/guestfish-commands.pod:134
25350 msgid "more"
25351 msgstr ""
25352
25353 # type: =head2
25354 #: ../fish/guestfish-commands.pod:136
25355 msgid "less"
25356 msgstr ""
25357
25358 # type: verbatim
25359 #: ../fish/guestfish-commands.pod:138
25360 #, no-wrap
25361 msgid ""
25362 " more filename\n"
25363 "\n"
25364 msgstr ""
25365
25366 # type: verbatim
25367 #: ../fish/guestfish-commands.pod:140
25368 #, no-wrap
25369 msgid ""
25370 " less filename\n"
25371 "\n"
25372 msgstr ""
25373
25374 # type: textblock
25375 #: ../fish/guestfish-commands.pod:142
25376 msgid "This is used to view a file."
25377 msgstr ""
25378
25379 # type: textblock
25380 #: ../fish/guestfish-commands.pod:144
25381 msgid ""
25382 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25383 "C<less> you will get the C<less> command specifically."
25384 msgstr ""
25385
25386 # type: =head2
25387 #: ../fish/guestfish-commands.pod:147
25388 msgid "reopen"
25389 msgstr ""
25390
25391 # type: verbatim
25392 #: ../fish/guestfish-commands.pod:149
25393 #, no-wrap
25394 msgid ""
25395 "  reopen\n"
25396 "\n"
25397 msgstr ""
25398
25399 # type: textblock
25400 #: ../fish/guestfish-commands.pod:151
25401 msgid ""
25402 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25403 "normally, because the handle is closed properly when guestfish exits.  "
25404 "However this is occasionally useful for testing."
25405 msgstr ""
25406
25407 # type: =head2
25408 #: ../fish/guestfish-commands.pod:155
25409 msgid "sparse"
25410 msgstr ""
25411
25412 # type: verbatim
25413 #: ../fish/guestfish-commands.pod:157
25414 #, no-wrap
25415 msgid ""
25416 " sparse filename size\n"
25417 "\n"
25418 msgstr ""
25419
25420 # type: textblock
25421 #: ../fish/guestfish-commands.pod:159
25422 msgid ""
25423 "This creates an empty sparse file of the given size, and then adds so it can "
25424 "be further examined."
25425 msgstr ""
25426
25427 # type: textblock
25428 #: ../fish/guestfish-commands.pod:162
25429 msgid ""
25430 "In all respects it works the same as the L</alloc> command, except that the "
25431 "image file is allocated sparsely, which means that disk blocks are not "
25432 "assigned to the file until they are needed.  Sparse disk files only use "
25433 "space when written to, but they are slower and there is a danger you could "
25434 "run out of real disk space during a write operation."
25435 msgstr ""
25436
25437 # type: =head2
25438 #: ../fish/guestfish-commands.pod:172
25439 msgid "supported"
25440 msgstr ""
25441
25442 # type: verbatim
25443 #: ../fish/guestfish-commands.pod:174
25444 #, no-wrap
25445 msgid ""
25446 " supported\n"
25447 "\n"
25448 msgstr ""
25449
25450 # type: textblock
25451 #: ../fish/guestfish-commands.pod:176
25452 msgid ""
25453 "This command returns a list of the optional groups known to the daemon, and "
25454 "indicates which ones are supported by this build of the libguestfs appliance."
25455 msgstr ""
25456
25457 # type: textblock
25458 #: ../fish/guestfish-commands.pod:180
25459 msgid "See also L<guestfs(3)/AVAILABILITY>."
25460 msgstr ""
25461
25462 # type: =head2
25463 #: ../fish/guestfish-commands.pod:182
25464 msgid "time"
25465 msgstr ""
25466
25467 # type: verbatim
25468 #: ../fish/guestfish-commands.pod:184
25469 #, no-wrap
25470 msgid ""
25471 " time command args...\n"
25472 "\n"
25473 msgstr ""
25474
25475 # type: textblock
25476 #: ../fish/guestfish-commands.pod:186
25477 msgid ""
25478 "Run the command as usual, but print the elapsed time afterwards.  This can "
25479 "be useful for benchmarking operations."
25480 msgstr ""
25481
25482 # type: textblock
25483 #: ../test-tool/libguestfs-test-tool.pod:5
25484 msgid "libguestfs-test-tool - End user tests for libguestfs"
25485 msgstr ""
25486
25487 # type: verbatim
25488 #: ../test-tool/libguestfs-test-tool.pod:9
25489 #, no-wrap
25490 msgid ""
25491 " libguestfs-test-tool [--options]\n"
25492 "\n"
25493 msgstr ""
25494
25495 # type: textblock
25496 #: ../test-tool/libguestfs-test-tool.pod:13
25497 msgid ""
25498 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25499 "and developers, to allow them to check basic libguestfs functionality is "
25500 "working.  This is needed because libguestfs occasionally breaks for reasons "
25501 "beyond our control: usually because of changes in the underlying qemu or "
25502 "kernel packages, or the host environment."
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../test-tool/libguestfs-test-tool.pod:20
25507 msgid "If you suspect a problem in libguestfs, then just run:"
25508 msgstr ""
25509
25510 # type: verbatim
25511 #: ../test-tool/libguestfs-test-tool.pod:22
25512 #, no-wrap
25513 msgid ""
25514 " libguestfs-test-tool\n"
25515 "\n"
25516 msgstr ""
25517
25518 # type: textblock
25519 #: ../test-tool/libguestfs-test-tool.pod:24
25520 msgid "It will print lots of diagnostic messages."
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../test-tool/libguestfs-test-tool.pod:26
25525 msgid "If it runs to completion successfully, you will see this near the end:"
25526 msgstr ""
25527
25528 # type: verbatim
25529 #: ../test-tool/libguestfs-test-tool.pod:28
25530 #, no-wrap
25531 msgid ""
25532 " ===== TEST FINISHED OK =====\n"
25533 "\n"
25534 msgstr ""
25535
25536 # type: textblock
25537 #: ../test-tool/libguestfs-test-tool.pod:30
25538 msgid "and the test tool will exit with code 0."
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../test-tool/libguestfs-test-tool.pod:32
25543 msgid ""
25544 "If it fails (and/or exits with non-zero error code), please paste the "
25545 "B<complete, unedited> output of the test tool into a bug report.  More "
25546 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25547 "> website."
25548 msgstr ""
25549
25550 # type: =item
25551 #: ../test-tool/libguestfs-test-tool.pod:41
25552 msgid "I<--help>"
25553 msgstr ""
25554
25555 # type: textblock
25556 #: ../test-tool/libguestfs-test-tool.pod:43
25557 msgid "Display short usage information and exit."
25558 msgstr ""
25559
25560 # type: =item
25561 #: ../test-tool/libguestfs-test-tool.pod:45
25562 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25563 msgstr ""
25564
25565 # type: textblock
25566 #: ../test-tool/libguestfs-test-tool.pod:47
25567 msgid ""
25568 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25569 "normally look in the C<$libexec> directory that was configured when the tool "
25570 "was built."
25571 msgstr ""
25572
25573 # type: =item
25574 #: ../test-tool/libguestfs-test-tool.pod:51
25575 msgid "I<--qemu qemu_binary>"
25576 msgstr ""
25577
25578 # type: textblock
25579 #: ../test-tool/libguestfs-test-tool.pod:53
25580 msgid ""
25581 "If you have downloaded another qemu binary, point this option at the full "
25582 "path of the binary to try it."
25583 msgstr ""
25584
25585 # type: =item
25586 #: ../test-tool/libguestfs-test-tool.pod:56
25587 msgid "I<--qemudir qemu_source_dir>"
25588 msgstr ""
25589
25590 # type: textblock
25591 #: ../test-tool/libguestfs-test-tool.pod:58
25592 msgid ""
25593 "If you have compiled qemu from source, point this option at the source "
25594 "directory to try it."
25595 msgstr ""
25596
25597 # type: =item
25598 #: ../test-tool/libguestfs-test-tool.pod:61
25599 msgid "I<--timeout N>"
25600 msgstr ""
25601
25602 # type: textblock
25603 #: ../test-tool/libguestfs-test-tool.pod:63
25604 msgid ""
25605 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25606 "does not usually need to be adjusted unless your machine is very slow."
25607 msgstr ""
25608
25609 # type: =head1
25610 #: ../test-tool/libguestfs-test-tool.pod:69
25611 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25612 msgstr ""
25613
25614 # type: textblock
25615 #: ../test-tool/libguestfs-test-tool.pod:71
25616 msgid ""
25617 "If you have compiled another version of qemu from source and would like to "
25618 "try that, then you can use the I<--qemudir> option to point to the qemu "
25619 "source directory."
25620 msgstr ""
25621
25622 # type: textblock
25623 #: ../test-tool/libguestfs-test-tool.pod:75
25624 msgid ""
25625 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25626 "option to point to the binary."
25627 msgstr ""
25628
25629 # type: textblock
25630 #: ../test-tool/libguestfs-test-tool.pod:78
25631 msgid ""
25632 "When using an alternate qemu with libguestfs, usually you would need to "
25633 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25634 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25635 "use either of the I<--qemudir> or I<--qemu> options."
25636 msgstr ""
25637
25638 # type: textblock
25639 #: ../test-tool/libguestfs-test-tool.pod:85
25640 msgid ""
25641 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25642 "I<1> if there was an error."
25643 msgstr ""
25644
25645 # type: =item
25646 #: ../test-tool/libguestfs-test-tool.pod:92
25647 msgid "/usr/libexec/libguestfs-test-tool-helper"
25648 msgstr ""
25649
25650 # type: textblock
25651 #: ../test-tool/libguestfs-test-tool.pod:94
25652 msgid ""
25653 "This helper program is run inside the appliance and provides additional "
25654 "tests."
25655 msgstr ""
25656
25657 # type: =item
25658 #: ../test-tool/libguestfs-test-tool.pod:97
25659 msgid "/usr/bin/mkisofs"
25660 msgstr ""
25661
25662 # type: textblock
25663 #: ../test-tool/libguestfs-test-tool.pod:99
25664 msgid ""
25665 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25666 "which is used as part of the tests."
25667 msgstr ""
25668
25669 # type: textblock
25670 #: ../test-tool/libguestfs-test-tool.pod:106
25671 msgid ""
25672 "For the full list of environment variables which may affect libguestfs, "
25673 "please see the L<guestfs(3)> manual page."
25674 msgstr ""
25675
25676 # type: textblock
25677 #: ../test-tool/libguestfs-test-tool.pod:111
25678 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25679 msgstr ""
25680
25681 # type: textblock
25682 #: ../test-tool/libguestfs-test-tool.pod:121
25683 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25684 msgstr ""
25685
25686 # type: textblock
25687 #: ../fuse/guestmount.pod:5
25688 msgid ""
25689 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25690 msgstr ""
25691
25692 # type: verbatim
25693 #: ../fuse/guestmount.pod:9
25694 #, no-wrap
25695 msgid ""
25696 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25697 "\n"
25698 msgstr ""
25699
25700 # type: verbatim
25701 #: ../fuse/guestmount.pod:11
25702 #, no-wrap
25703 msgid ""
25704 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25705 "\n"
25706 msgstr ""
25707
25708 # type: verbatim
25709 #: ../fuse/guestmount.pod:13
25710 #, no-wrap
25711 msgid ""
25712 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25713 "\n"
25714 msgstr ""
25715
25716 # type: textblock
25717 #: ../fuse/guestmount.pod:17
25718 msgid ""
25719 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25720 "machines.  If you do this, you risk disk corruption in the VM."
25721 msgstr ""
25722
25723 # type: textblock
25724 #: ../fuse/guestmount.pod:22
25725 msgid ""
25726 "The guestmount program can be used to mount virtual machine filesystems and "
25727 "other disk images on the host.  It uses libguestfs for access to the guest "
25728 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25729 "a mountable device."
25730 msgstr ""
25731
25732 # type: textblock
25733 #: ../fuse/guestmount.pod:27
25734 msgid ""
25735 "Along with other options, you have to give at least one device (I<-a> "
25736 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25737 "option) or use the I<-i> inspection option.  How this works is better "
25738 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25739 "below."
25740 msgstr ""
25741
25742 # type: textblock
25743 #: ../fuse/guestmount.pod:33
25744 msgid ""
25745 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25746 "by you, and the filesystem will not be visible to any other users unless you "
25747 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25748 "the filesystem, use the C<fusermount -u> command."
25749 msgstr ""
25750
25751 # type: textblock
25752 #: ../fuse/guestmount.pod:41
25753 msgid ""
25754 "For a typical Windows guest which has its main filesystem on the first "
25755 "partition:"
25756 msgstr ""
25757
25758 # type: verbatim
25759 #: ../fuse/guestmount.pod:44
25760 #, no-wrap
25761 msgid ""
25762 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25763 "\n"
25764 msgstr ""
25765
25766 # type: textblock
25767 #: ../fuse/guestmount.pod:46
25768 msgid ""
25769 "For a typical Linux guest which has a /boot filesystem on the first "
25770 "partition, and the root filesystem on a logical volume:"
25771 msgstr ""
25772
25773 # type: verbatim
25774 #: ../fuse/guestmount.pod:49
25775 #, no-wrap
25776 msgid ""
25777 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25778 "\n"
25779 msgstr ""
25780
25781 # type: textblock
25782 #: ../fuse/guestmount.pod:51
25783 msgid "To get libguestfs to detect guest mountpoints for you:"
25784 msgstr ""
25785
25786 # type: verbatim
25787 #: ../fuse/guestmount.pod:53
25788 #, no-wrap
25789 msgid ""
25790 " guestmount -a guest.img -i --ro /mnt\n"
25791 "\n"
25792 msgstr ""
25793
25794 # type: textblock
25795 #: ../fuse/guestmount.pod:55
25796 msgid "For a libvirt guest called \"Guest\" you could do:"
25797 msgstr ""
25798
25799 # type: verbatim
25800 #: ../fuse/guestmount.pod:57
25801 #, no-wrap
25802 msgid ""
25803 " guestmount -d Guest -i --ro /mnt\n"
25804 "\n"
25805 msgstr ""
25806
25807 # type: textblock
25808 #: ../fuse/guestmount.pod:59
25809 msgid ""
25810 "If you don't know what filesystems are contained in a guest or disk image, "
25811 "use L<virt-filesystems(1)> first:"
25812 msgstr ""
25813
25814 # type: verbatim
25815 #: ../fuse/guestmount.pod:62
25816 #, no-wrap
25817 msgid ""
25818 " virt-filesystems MyGuest\n"
25819 "\n"
25820 msgstr ""
25821
25822 # type: textblock
25823 #: ../fuse/guestmount.pod:64
25824 msgid ""
25825 "If you want to trace the libguestfs calls but without excessive debugging "
25826 "information, we recommend:"
25827 msgstr ""
25828
25829 # type: verbatim
25830 #: ../fuse/guestmount.pod:67
25831 #, no-wrap
25832 msgid ""
25833 " guestmount [...] --trace /mnt\n"
25834 "\n"
25835 msgstr ""
25836
25837 # type: textblock
25838 #: ../fuse/guestmount.pod:69
25839 msgid "If you want to debug the program, we recommend:"
25840 msgstr ""
25841
25842 # type: verbatim
25843 #: ../fuse/guestmount.pod:71
25844 #, no-wrap
25845 msgid ""
25846 " guestmount [...] --trace --verbose /mnt\n"
25847 "\n"
25848 msgstr ""
25849
25850 # type: textblock
25851 #: ../fuse/guestmount.pod:79
25852 msgid "Add a block device or virtual machine image."
25853 msgstr ""
25854
25855 # type: =item
25856 #: ../fuse/guestmount.pod:96
25857 msgid "B<--dir-cache-timeout N>"
25858 msgstr ""
25859
25860 # type: textblock
25861 #: ../fuse/guestmount.pod:98
25862 msgid ""
25863 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25864 "seconds.  The readdir cache [actually, there are several semi-independent "
25865 "caches] is populated after a readdir(2) call with the stat and extended "
25866 "attributes of the files in the directory, in anticipation that they will be "
25867 "requested soon after."
25868 msgstr ""
25869
25870 # type: textblock
25871 #: ../fuse/guestmount.pod:104
25872 msgid ""
25873 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25874 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25875 "requests, only cache existing ones."
25876 msgstr ""
25877
25878 # type: textblock
25879 #: ../fuse/guestmount.pod:122
25880 msgid ""
25881 "If you have untrusted raw-format guest disk images, you should use this "
25882 "option to specify the disk format.  This avoids a possible security problem "
25883 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25884 "guestfs_add_drive_opts>."
25885 msgstr ""
25886
25887 # type: =item
25888 #: ../fuse/guestmount.pod:127
25889 msgid "B<--fuse-help>"
25890 msgstr ""
25891
25892 # type: textblock
25893 #: ../fuse/guestmount.pod:129
25894 msgid "Display help on special FUSE options (see I<-o> below)."
25895 msgstr ""
25896
25897 # type: textblock
25898 #: ../fuse/guestmount.pod:133
25899 msgid "Display brief help and exit."
25900 msgstr ""
25901
25902 # type: =item
25903 #: ../fuse/guestmount.pod:146
25904 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25905 msgstr ""
25906
25907 # type: textblock
25908 #: ../fuse/guestmount.pod:148
25909 msgid ""
25910 "Mount the named partition or logical volume on the given mountpoint B<in the "
25911 "guest> (this has nothing to do with mountpoints in the host)."
25912 msgstr ""
25913
25914 # type: textblock
25915 #: ../fuse/guestmount.pod:151
25916 msgid ""
25917 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25918 "something on C</>."
25919 msgstr ""
25920
25921 # type: textblock
25922 #: ../fuse/guestmount.pod:156
25923 msgid ""
25924 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25925 "unmounted.  If you specify this option, then we don't attempt to sync the "
25926 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25927 msgstr ""
25928
25929 # type: =item
25930 #: ../fuse/guestmount.pod:161
25931 msgid "B<-o option> | B<--option option>"
25932 msgstr ""
25933
25934 # type: textblock
25935 #: ../fuse/guestmount.pod:163
25936 msgid "Pass extra options to FUSE."
25937 msgstr ""
25938
25939 # type: textblock
25940 #: ../fuse/guestmount.pod:165
25941 msgid ""
25942 "To get a list of all the extra options supported by FUSE, use the command "
25943 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25944 "of them are a good idea."
25945 msgstr ""
25946
25947 # type: verbatim
25948 #: ../fuse/guestmount.pod:169
25949 #, no-wrap
25950 msgid ""
25951 " guestmount --fuse-help\n"
25952 "\n"
25953 msgstr ""
25954
25955 # type: textblock
25956 #: ../fuse/guestmount.pod:171
25957 msgid "Some potentially useful FUSE options:"
25958 msgstr ""
25959
25960 # type: =item
25961 #: ../fuse/guestmount.pod:175
25962 msgid "B<-o allow_other>"
25963 msgstr ""
25964
25965 # type: textblock
25966 #: ../fuse/guestmount.pod:177
25967 msgid "Allow other users to see the filesystem."
25968 msgstr ""
25969
25970 # type: =item
25971 #: ../fuse/guestmount.pod:179
25972 msgid "B<-o attr_timeout=N>"
25973 msgstr ""
25974
25975 # type: textblock
25976 #: ../fuse/guestmount.pod:181
25977 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25978 msgstr ""
25979
25980 # type: =item
25981 #: ../fuse/guestmount.pod:183
25982 msgid "B<-o kernel_cache>"
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../fuse/guestmount.pod:185
25987 msgid ""
25988 "Allow the kernel to cache files (reduces the number of reads that have to go "
25989 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25990 "afford the extra memory usage."
25991 msgstr ""
25992
25993 # type: =item
25994 #: ../fuse/guestmount.pod:189
25995 msgid "B<-o uid=N> B<-o gid=N>"
25996 msgstr ""
25997
25998 # type: textblock
25999 #: ../fuse/guestmount.pod:191
26000 msgid ""
26001 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
26002 "the chosen values."
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../fuse/guestmount.pod:198
26007 msgid ""
26008 "Add devices and mount everything read-only.  Also disallow writes and make "
26009 "the disk appear read-only to FUSE."
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../fuse/guestmount.pod:201
26014 msgid ""
26015 "This is highly recommended if you are not going to edit the guest disk.  If "
26016 "the guest is running and this option is I<not> supplied, then there is a "
26017 "strong risk of disk corruption in the guest.  We try to prevent this from "
26018 "happening, but it is not always possible."
26019 msgstr ""
26020
26021 # type: textblock
26022 #: ../fuse/guestmount.pod:206
26023 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26024 msgstr ""
26025
26026 # type: textblock
26027 #: ../fuse/guestmount.pod:210
26028 msgid "Enable SELinux support for the guest."
26029 msgstr ""
26030
26031 # type: textblock
26032 #: ../fuse/guestmount.pod:214
26033 msgid "Enable verbose messages from underlying libguestfs."
26034 msgstr ""
26035
26036 # type: textblock
26037 #: ../fuse/guestmount.pod:218
26038 msgid "Display the program version and exit."
26039 msgstr ""
26040
26041 # type: textblock
26042 #: ../fuse/guestmount.pod:222
26043 msgid ""
26044 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26045 "FOR READ AND WRITE>."
26046 msgstr ""
26047
26048 # type: =item
26049 #: ../fuse/guestmount.pod:225
26050 msgid "B<-x> | B<--trace>"
26051 msgstr ""
26052
26053 # type: textblock
26054 #: ../fuse/guestmount.pod:227
26055 msgid "Trace libguestfs calls."
26056 msgstr ""
26057
26058 # type: textblock
26059 #: ../fuse/guestmount.pod:229
26060 msgid "This also stops the daemon from forking into the background."
26061 msgstr ""
26062
26063 # type: textblock
26064 #: ../fuse/guestmount.pod:235
26065 msgid ""
26066 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26067 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26068 "net/>."
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../tools/virt-edit.pl:34
26073 msgid "virt-edit - Edit a file in a virtual machine"
26074 msgstr ""
26075
26076 # type: verbatim
26077 #: ../tools/virt-edit.pl:38
26078 #, no-wrap
26079 msgid ""
26080 " virt-edit [--options] domname file\n"
26081 "\n"
26082 msgstr ""
26083
26084 # type: verbatim
26085 #: ../tools/virt-edit.pl:40
26086 #, no-wrap
26087 msgid ""
26088 " virt-edit [--options] disk.img [disk.img ...] file\n"
26089 "\n"
26090 msgstr ""
26091
26092 # type: verbatim
26093 #: ../tools/virt-edit.pl:42
26094 #, no-wrap
26095 msgid ""
26096 " virt-edit [domname|disk.img] file -e 'expr'\n"
26097 "\n"
26098 msgstr ""
26099
26100 # type: textblock
26101 #: ../tools/virt-edit.pl:46
26102 msgid ""
26103 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26104 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26105 "doing this, but doesn't catch all cases."
26106 msgstr ""
26107
26108 # type: textblock
26109 #: ../tools/virt-edit.pl:52
26110 msgid ""
26111 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26112 "the named virtual machine (or disk image)."
26113 msgstr ""
26114
26115 # type: textblock
26116 #: ../tools/virt-edit.pl:55
26117 msgid ""
26118 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26119 "you should look at the L<guestfish(1)> tool."
26120 msgstr ""
26121
26122 # type: textblock
26123 #: ../tools/virt-edit.pl:60
26124 msgid "Edit the named files interactively:"
26125 msgstr ""
26126
26127 # type: verbatim
26128 #: ../tools/virt-edit.pl:62
26129 #, no-wrap
26130 msgid ""
26131 " virt-edit mydomain /boot/grub/grub.conf\n"
26132 "\n"
26133 msgstr ""
26134
26135 # type: verbatim
26136 #: ../tools/virt-edit.pl:64
26137 #, no-wrap
26138 msgid ""
26139 " virt-edit mydomain /etc/passwd\n"
26140 "\n"
26141 msgstr ""
26142
26143 # type: textblock
26144 #: ../tools/virt-edit.pl:66
26145 msgid ""
26146 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26147 "below).  To change the init default level to 5:"
26148 msgstr ""
26149
26150 # type: verbatim
26151 #: ../tools/virt-edit.pl:70
26152 #, no-wrap
26153 msgid ""
26154 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26155 "\n"
26156 msgstr ""
26157
26158 # type: textblock
26159 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26160 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26161 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26162 msgid "Display brief help."
26163 msgstr ""
26164
26165 # type: =item
26166 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26167 #: ../tools/virt-resize.pl:270 ../tools/virt-list-filesystems.pl:69
26168 #: ../tools/virt-tar.pl:114 ../tools/virt-make-fs.pl:169
26169 #: ../tools/virt-list-partitions.pl:70
26170 msgid "B<--version>"
26171 msgstr ""
26172
26173 # type: textblock
26174 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26175 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
26176 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
26177 #: ../tools/virt-list-partitions.pl:72
26178 msgid "Display version number and exit."
26179 msgstr ""
26180
26181 # type: =item
26182 #: ../tools/virt-edit.pl:96
26183 msgid "B<--backup extension> | B<-b extension>"
26184 msgstr ""
26185
26186 # type: textblock
26187 #: ../tools/virt-edit.pl:98
26188 msgid ""
26189 "Create a backup of the original file I<in the guest disk image>.  The backup "
26190 "has the original filename with C<extension> added."
26191 msgstr ""
26192
26193 # type: textblock
26194 #: ../tools/virt-edit.pl:101
26195 msgid ""
26196 "Usually the first character of C<extension> would be a dot C<.> so you would "
26197 "write:"
26198 msgstr ""
26199
26200 # type: verbatim
26201 #: ../tools/virt-edit.pl:104
26202 #, no-wrap
26203 msgid ""
26204 " virt-edit -b .orig [etc]\n"
26205 "\n"
26206 msgstr ""
26207
26208 # type: textblock
26209 #: ../tools/virt-edit.pl:106
26210 msgid "By default, no backup file is made."
26211 msgstr ""
26212
26213 # type: =item
26214 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26215 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26216 #: ../tools/virt-list-partitions.pl:78
26217 msgid "B<--connect URI> | B<-c URI>"
26218 msgstr ""
26219
26220 # type: textblock
26221 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26222 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26223 #: ../tools/virt-list-partitions.pl:80
26224 msgid ""
26225 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26226 "to the default libvirt hypervisor."
26227 msgstr ""
26228
26229 # type: textblock
26230 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26231 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26232 #: ../tools/virt-list-partitions.pl:83
26233 msgid ""
26234 "If you specify guest block devices directly, then libvirt is not used at all."
26235 msgstr ""
26236
26237 # type: =item
26238 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26239 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
26240 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
26241 msgid "B<--format> raw"
26242 msgstr ""
26243
26244 # type: textblock
26245 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26246 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26247 #: ../tools/virt-list-partitions.pl:92
26248 msgid ""
26249 "Specify the format of disk images given on the command line.  If this is "
26250 "omitted then the format is autodetected from the content of the disk image."
26251 msgstr ""
26252
26253 # type: textblock
26254 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26255 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26256 #: ../tools/virt-list-partitions.pl:96
26257 msgid ""
26258 "If disk images are requested from libvirt, then this program asks libvirt "
26259 "for this information.  In this case, the value of the format parameter is "
26260 "ignored."
26261 msgstr ""
26262
26263 # type: textblock
26264 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26265 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
26266 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26267 #: ../tools/virt-list-partitions.pl:100
26268 msgid ""
26269 "If working with untrusted raw-format guest disk images, you should ensure "
26270 "the format is always specified."
26271 msgstr ""
26272
26273 # type: =item
26274 #: ../tools/virt-edit.pl:141
26275 msgid "B<--expr EXPR> | B<-e EXPR>"
26276 msgstr ""
26277
26278 # type: textblock
26279 #: ../tools/virt-edit.pl:143
26280 msgid ""
26281 "Instead of launching the external editor, non-interactively apply the Perl "
26282 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26283 "EDITING> below."
26284 msgstr ""
26285
26286 # type: textblock
26287 #: ../tools/virt-edit.pl:147
26288 msgid ""
26289 "Be careful to properly quote the expression to prevent it from being altered "
26290 "by the shell."
26291 msgstr ""
26292
26293 # type: =head1
26294 #: ../tools/virt-edit.pl:268
26295 msgid "NON-INTERACTIVE EDITING"
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-edit.pl:270
26300 msgid ""
26301 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26302 "administrator can interactively edit the file."
26303 msgstr ""
26304
26305 # type: textblock
26306 #: ../tools/virt-edit.pl:273
26307 msgid ""
26308 "There are two ways also to use C<virt-edit> from scripts in order to make "
26309 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26310 "like this, it's less error-prone to write scripts directly using the "
26311 "libguestfs API and Augeas for configuration file editing.)"
26312 msgstr ""
26313
26314 # type: textblock
26315 #: ../tools/virt-edit.pl:279
26316 msgid ""
26317 "The first method is to temporarily set C<$EDITOR> to any script or program "
26318 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26319 "update C<tmpfile> in place however it likes."
26320 msgstr ""
26321
26322 # type: textblock
26323 #: ../tools/virt-edit.pl:283
26324 msgid ""
26325 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26326 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26327 "instances of C<foo> with C<bar> in a file:"
26328 msgstr ""
26329
26330 # type: verbatim
26331 #: ../tools/virt-edit.pl:287
26332 #, no-wrap
26333 msgid ""
26334 " virt-edit domname filename -e 's/foo/bar/'\n"
26335 "\n"
26336 msgstr ""
26337
26338 # type: textblock
26339 #: ../tools/virt-edit.pl:289
26340 msgid ""
26341 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26342 "For example to delete root's password you could do:"
26343 msgstr ""
26344
26345 # type: verbatim
26346 #: ../tools/virt-edit.pl:292
26347 #, no-wrap
26348 msgid ""
26349 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26350 "\n"
26351 msgstr ""
26352
26353 # type: textblock
26354 #: ../tools/virt-edit.pl:294
26355 msgid ""
26356 "What really happens is that the snippet is evaluated as a Perl expression "
26357 "for each line of the file.  The line, including the final C<\\n>, is passed "
26358 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26359 msgstr ""
26360
26361 # type: textblock
26362 #: ../tools/virt-edit.pl:299
26363 msgid ""
26364 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26365 "C<apache> user account from the password file you can do:"
26366 msgstr ""
26367
26368 # type: verbatim
26369 #: ../tools/virt-edit.pl:302
26370 #, no-wrap
26371 msgid ""
26372 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26373 "\n"
26374 msgstr ""
26375
26376 # type: textblock
26377 #: ../tools/virt-edit.pl:304
26378 msgid ""
26379 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26380 "the end of the file is rather difficult this way since there is no concept "
26381 "of \"last line of the file\" - your expression just doesn't get called "
26382 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26383 "want to do this."
26384 msgstr ""
26385
26386 # type: textblock
26387 #: ../tools/virt-edit.pl:310
26388 msgid ""
26389 "The variable C<$lineno> contains the current line number.  As is "
26390 "traditional, the first line in the file is number C<1>."
26391 msgstr ""
26392
26393 # type: textblock
26394 #: ../tools/virt-edit.pl:313
26395 msgid ""
26396 "The return value from the expression is ignored, but the expression may call "
26397 "C<die> in order to abort the whole program, leaving the original file "
26398 "untouched."
26399 msgstr ""
26400
26401 # type: textblock
26402 #: ../tools/virt-edit.pl:317
26403 msgid ""
26404 "Remember when matching the end of a line that C<$_> may contain the final C<"
26405 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26406 "newline then neither of these.  Thus to match or substitute some text at the "
26407 "end of a line, use this regular expression:"
26408 msgstr ""
26409
26410 # type: verbatim
26411 #: ../tools/virt-edit.pl:322
26412 #, no-wrap
26413 msgid ""
26414 " /some text(\\r?\\n)?$/\n"
26415 "\n"
26416 msgstr ""
26417
26418 # type: textblock
26419 #: ../tools/virt-edit.pl:324
26420 msgid ""
26421 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26422 "$_> itself (since that would remove all newlines from the file):"
26423 msgstr ""
26424
26425 # type: verbatim
26426 #: ../tools/virt-edit.pl:328
26427 #, no-wrap
26428 msgid ""
26429 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26430 "\n"
26431 msgstr ""
26432
26433 # type: =item
26434 #: ../tools/virt-edit.pl:334
26435 msgid "C<EDITOR>"
26436 msgstr ""
26437
26438 # type: textblock
26439 #: ../tools/virt-edit.pl:336
26440 msgid ""
26441 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26442 "\"emacs -nw\">"
26443 msgstr ""
26444
26445 # type: textblock
26446 #: ../tools/virt-edit.pl:339
26447 msgid "If not set, C<vi> is used."
26448 msgstr ""
26449
26450 # type: =head2
26451 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26452 #: ../tools/virt-win-reg.pl:477 ../tools/virt-resize.pl:1476
26453 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274
26454 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
26455 msgid "SHELL QUOTING"
26456 msgstr ""
26457
26458 # type: textblock
26459 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26460 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
26461 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
26462 #: ../tools/virt-list-partitions.pl:252
26463 msgid ""
26464 "Libvirt guest names can contain arbitrary characters, some of which have "
26465 "meaning to the shell such as C<#> and space.  You may need to quote or "
26466 "escape these characters on the command line.  See the shell manual page L<sh"
26467 "(1)> for details."
26468 msgstr ""
26469
26470 # type: textblock
26471 #: ../tools/virt-edit.pl:352
26472 msgid ""
26473 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26474 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26475 "L<perlre(1)>."
26476 msgstr ""
26477
26478 # type: =head1
26479 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26480 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
26481 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
26482 #: ../tools/virt-list-partitions.pl:269
26483 msgid "AUTHOR"
26484 msgstr ""
26485
26486 # type: textblock
26487 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26488 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
26489 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
26490 #: ../tools/virt-list-partitions.pl:271
26491 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26492 msgstr ""
26493
26494 # type: textblock
26495 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26496 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26497 msgstr ""
26498
26499 # type: textblock
26500 #: ../tools/virt-win-reg.pl:37
26501 msgid ""
26502 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26503 msgstr ""
26504
26505 # type: verbatim
26506 #: ../tools/virt-win-reg.pl:41
26507 #, no-wrap
26508 msgid ""
26509 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26510 "\n"
26511 msgstr ""
26512
26513 # type: verbatim
26514 #: ../tools/virt-win-reg.pl:43
26515 #, no-wrap
26516 msgid ""
26517 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26518 "\n"
26519 msgstr ""
26520
26521 # type: verbatim
26522 #: ../tools/virt-win-reg.pl:45
26523 #, no-wrap
26524 msgid ""
26525 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26526 "\n"
26527 msgstr ""
26528
26529 # type: verbatim
26530 #: ../tools/virt-win-reg.pl:47
26531 #, no-wrap
26532 msgid ""
26533 " virt-win-reg --merge domname [input.reg ...]\n"
26534 "\n"
26535 msgstr ""
26536
26537 # type: verbatim
26538 #: ../tools/virt-win-reg.pl:49
26539 #, no-wrap
26540 msgid ""
26541 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26542 "\n"
26543 msgstr ""
26544
26545 # type: textblock
26546 #: ../tools/virt-win-reg.pl:53
26547 msgid ""
26548 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26549 "virtual machines.  If you do this, you I<will> get irreversible disk "
26550 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26551 "but doesn't catch all cases."
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-win-reg.pl:58
26556 msgid ""
26557 "Modifying the Windows Registry is an inherently risky operation.  The format "
26558 "is deliberately obscure and undocumented, and Registry changes can leave the "
26559 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26560 "you have a reliable backup first."
26561 msgstr ""
26562
26563 # type: textblock
26564 #: ../tools/virt-win-reg.pl:65
26565 msgid ""
26566 "This program can export and merge Windows Registry entries from a Windows "
26567 "guest."
26568 msgstr ""
26569
26570 # type: textblock
26571 #: ../tools/virt-win-reg.pl:68
26572 msgid ""
26573 "The first parameter is the libvirt guest name or the raw disk image of a "
26574 "Windows guest."
26575 msgstr ""
26576
26577 # type: textblock
26578 #: ../tools/virt-win-reg.pl:71
26579 msgid ""
26580 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26581 "exported (recursively).  For example:"
26582 msgstr ""
26583
26584 # type: verbatim
26585 #: ../tools/virt-win-reg.pl:74
26586 #, no-wrap
26587 msgid ""
26588 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26589 "\n"
26590 msgstr ""
26591
26592 # type: textblock
26593 #: ../tools/virt-win-reg.pl:76
26594 msgid ""
26595 "You can also display single values from within registry keys, for example:"
26596 msgstr ""
26597
26598 # type: verbatim
26599 #: ../tools/virt-win-reg.pl:79
26600 #, no-wrap
26601 msgid ""
26602 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26603 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26604 " Windows 7 Enterprise\n"
26605 "\n"
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-win-reg.pl:83
26610 msgid ""
26611 "With C<--merge>, you can merge a textual regedit file into the Windows "
26612 "Registry:"
26613 msgstr ""
26614
26615 # type: verbatim
26616 #: ../tools/virt-win-reg.pl:86
26617 #, no-wrap
26618 msgid ""
26619 " $ virt-win-reg --merge Windows7 changes.reg\n"
26620 "\n"
26621 msgstr ""
26622
26623 # type: =head2
26624 #: ../tools/virt-win-reg.pl:88
26625 msgid "SUPPORTED SYSTEMS"
26626 msgstr ""
26627
26628 # type: textblock
26629 #: ../tools/virt-win-reg.pl:90
26630 msgid ""
26631 "The program currently supports Windows NT-derived guests starting with "
26632 "Windows XP through to at least Windows 7."
26633 msgstr ""
26634
26635 # type: textblock
26636 #: ../tools/virt-win-reg.pl:93
26637 msgid ""
26638 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26639 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26640 "and C<HKEY_USERS\\.DEFAULT>."
26641 msgstr ""
26642
26643 # type: textblock
26644 #: ../tools/virt-win-reg.pl:97
26645 msgid ""
26646 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26647 "C<HKEY_USERS>."
26648 msgstr ""
26649
26650 # type: textblock
26651 #: ../tools/virt-win-reg.pl:100
26652 msgid ""
26653 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26654 "time."
26655 msgstr ""
26656
26657 # type: =head2
26658 #: ../tools/virt-win-reg.pl:103
26659 msgid "NOTE"
26660 msgstr ""
26661
26662 # type: textblock
26663 #: ../tools/virt-win-reg.pl:105
26664 msgid ""
26665 "This program is only meant for simple access to the registry.  If you want "
26666 "to do complicated things with the registry, we suggest you download the "
26667 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26668 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26669 "L<hivexregedit(1)>."
26670 msgstr ""
26671
26672 # type: =head2
26673 #: ../tools/virt-win-reg.pl:111
26674 msgid "ENCODING"
26675 msgstr ""
26676
26677 # type: textblock
26678 #: ../tools/virt-win-reg.pl:113
26679 msgid ""
26680 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26681 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26682 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26683 "Windows-style line endings, you may need to reencode the whole file before "
26684 "or after processing."
26685 msgstr ""
26686
26687 # type: textblock
26688 #: ../tools/virt-win-reg.pl:119
26689 msgid ""
26690 "To reencode a file from Windows format to Linux (before processing it with "
26691 "the C<--merge> option), you would do something like this:"
26692 msgstr ""
26693
26694 # type: verbatim
26695 #: ../tools/virt-win-reg.pl:122
26696 #, no-wrap
26697 msgid ""
26698 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26699 "\n"
26700 msgstr ""
26701
26702 # type: textblock
26703 #: ../tools/virt-win-reg.pl:124
26704 msgid ""
26705 "To go in the opposite direction, after exporting and before sending the file "
26706 "to a Windows user, do something like this:"
26707 msgstr ""
26708
26709 # type: verbatim
26710 #: ../tools/virt-win-reg.pl:127
26711 #, no-wrap
26712 msgid ""
26713 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26714 "\n"
26715 msgstr ""
26716
26717 # type: textblock
26718 #: ../tools/virt-win-reg.pl:129
26719 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26720 msgstr ""
26721
26722 # type: textblock
26723 #: ../tools/virt-win-reg.pl:131
26724 msgid ""
26725 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26726 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26727 "style (CRLF) line endings, like this:"
26728 msgstr ""
26729
26730 # type: verbatim
26731 #: ../tools/virt-win-reg.pl:135
26732 #, no-wrap
26733 msgid ""
26734 " $ file software.reg\n"
26735 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26736 " with CRLF line terminators\n"
26737 "\n"
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-win-reg.pl:139
26742 msgid "This file would need conversion before you could C<--merge> it."
26743 msgstr ""
26744
26745 # type: textblock
26746 #: ../tools/virt-win-reg.pl:143
26747 msgid ""
26748 "Be careful when passing parameters containing C<\\> (backslash) in the "
26749 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26750 "(but not both) to protect them from the shell."
26751 msgstr ""
26752
26753 # type: textblock
26754 #: ../tools/virt-win-reg.pl:147
26755 msgid "Paths and value names are case-insensitive."
26756 msgstr ""
26757
26758 # type: =head2
26759 #: ../tools/virt-win-reg.pl:149
26760 msgid "CurrentControlSet etc."
26761 msgstr ""
26762
26763 # type: textblock
26764 #: ../tools/virt-win-reg.pl:151
26765 msgid ""
26766 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26767 "Registry at the level of the hive file, and therefore you cannot modify "
26768 "these."
26769 msgstr ""
26770
26771 # type: textblock
26772 #: ../tools/virt-win-reg.pl:155
26773 msgid ""
26774 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26775 "circumstances it might refer to another control set.  The way to find out is "
26776 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26777 msgstr ""
26778
26779 # type: verbatim
26780 #: ../tools/virt-win-reg.pl:159
26781 #, no-wrap
26782 msgid ""
26783 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26784 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26785 " \"Current\"=dword:00000001\n"
26786 " \"Default\"=dword:00000001\n"
26787 " \"Failed\"=dword:00000000\n"
26788 " \"LastKnownGood\"=dword:00000002\n"
26789 "\n"
26790 msgstr ""
26791
26792 # type: textblock
26793 #: ../tools/virt-win-reg.pl:166
26794 msgid "\"Current\" is the one which Windows will choose when it boots."
26795 msgstr ""
26796
26797 # type: textblock
26798 #: ../tools/virt-win-reg.pl:168
26799 msgid ""
26800 "Similarly, other C<Current...> keys in the path may need to be replaced."
26801 msgstr ""
26802
26803 # type: =item
26804 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26805 msgid "B<--debug>"
26806 msgstr ""
26807
26808 # type: textblock
26809 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:498
26810 msgid "Enable debugging messages."
26811 msgstr ""
26812
26813 # type: =item
26814 #: ../tools/virt-win-reg.pl:232
26815 msgid "B<--merge>"
26816 msgstr ""
26817
26818 # type: textblock
26819 #: ../tools/virt-win-reg.pl:234
26820 msgid ""
26821 "In merge mode, this merges a textual regedit file into the Windows Registry "
26822 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26823 "displays or exports Registry entries instead."
26824 msgstr ""
26825
26826 # type: textblock
26827 #: ../tools/virt-win-reg.pl:238
26828 msgid ""
26829 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26830 "result in disk corruption.  However exporting (without this flag)  is always "
26831 "safe."
26832 msgstr ""
26833
26834 # type: =item
26835 #: ../tools/virt-win-reg.pl:246
26836 msgid "B<--encoding> UTF-16LE|ASCII"
26837 msgstr ""
26838
26839 # type: textblock
26840 #: ../tools/virt-win-reg.pl:248
26841 msgid ""
26842 "When merging (only), you may need to specify the encoding for strings to be "
26843 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26844 "(3)/ENCODING STRINGS>."
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-win-reg.pl:252
26849 msgid ""
26850 "The default is to use UTF-16LE, which should work with recent versions of "
26851 "Windows."
26852 msgstr ""
26853
26854 # type: textblock
26855 #: ../tools/virt-win-reg.pl:486
26856 msgid ""
26857 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26858 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26859 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26860 msgstr ""
26861
26862 # type: textblock
26863 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26864 msgid ""
26865 "When reporting bugs, please enable debugging and capture the I<complete> "
26866 "output:"
26867 msgstr ""
26868
26869 # type: verbatim
26870 #: ../tools/virt-win-reg.pl:504
26871 #, no-wrap
26872 msgid ""
26873 " export LIBGUESTFS_DEBUG=1\n"
26874 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26875 "\n"
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-win-reg.pl:507
26880 msgid ""
26881 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26882 "redhat.com/>"
26883 msgstr ""
26884
26885 # type: textblock
26886 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1510
26887 #: ../tools/virt-make-fs.pl:565
26888 msgid "Copyright (C) 2010 Red Hat Inc."
26889 msgstr ""
26890
26891 # type: textblock
26892 #: ../tools/virt-resize.pl:42
26893 msgid "virt-resize - Resize a virtual machine disk"
26894 msgstr ""
26895
26896 # type: verbatim
26897 #: ../tools/virt-resize.pl:46
26898 #, no-wrap
26899 msgid ""
26900 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26901 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26902 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26903 "\n"
26904 msgstr ""
26905
26906 # type: textblock
26907 #: ../tools/virt-resize.pl:52
26908 msgid ""
26909 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26910 "larger or smaller overall, and resizing or deleting any partitions contained "
26911 "within."
26912 msgstr ""
26913
26914 # type: textblock
26915 #: ../tools/virt-resize.pl:56
26916 msgid ""
26917 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26918 "not> be used on live virtual machines - for consistent results, shut the "
26919 "virtual machine down before resizing it."
26920 msgstr ""
26921
26922 # type: textblock
26923 #: ../tools/virt-resize.pl:60
26924 msgid ""
26925 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26926 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26927 msgstr ""
26928
26929 # type: textblock
26930 #: ../tools/virt-resize.pl:66
26931 msgid ""
26932 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26933 "fill the extra 5GB of space."
26934 msgstr ""
26935
26936 # type: verbatim
26937 #: ../tools/virt-resize.pl:69
26938 #, no-wrap
26939 msgid ""
26940 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26941 " virt-filesystems --long --h --all -a olddisk\n"
26942 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26943 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26944 "\n"
26945 msgstr ""
26946
26947 # type: textblock
26948 #: ../tools/virt-resize.pl:74
26949 msgid ""
26950 "As above, but make the /boot partition 200MB bigger, while giving the "
26951 "remaining space to /dev/sda2:"
26952 msgstr ""
26953
26954 # type: verbatim
26955 #: ../tools/virt-resize.pl:77
26956 #, no-wrap
26957 msgid ""
26958 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26959 "\n"
26960 msgstr ""
26961
26962 # type: textblock
26963 #: ../tools/virt-resize.pl:79
26964 msgid "As above, but the output format will be uncompressed qcow2:"
26965 msgstr ""
26966
26967 # type: verbatim
26968 #: ../tools/virt-resize.pl:81
26969 #, no-wrap
26970 msgid ""
26971 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26972 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26973 "\n"
26974 msgstr ""
26975
26976 # type: =head1
26977 #: ../tools/virt-resize.pl:84
26978 msgid "DETAILED USAGE"
26979 msgstr ""
26980
26981 # type: =head2
26982 #: ../tools/virt-resize.pl:86
26983 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26984 msgstr ""
26985
26986 # type: =item
26987 #: ../tools/virt-resize.pl:90
26988 msgid "1. Shut down the virtual machine"
26989 msgstr ""
26990
26991 # type: =item
26992 #: ../tools/virt-resize.pl:92
26993 msgid "2. Locate input disk image"
26994 msgstr ""
26995
26996 # type: textblock
26997 #: ../tools/virt-resize.pl:94
26998 msgid ""
26999 "Locate the input disk image (ie. the file or device on the host containing "
27000 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27001 "dumpxml> like this to find the disk image name:"
27002 msgstr ""
27003
27004 # type: verbatim
27005 #: ../tools/virt-resize.pl:98
27006 #, no-wrap
27007 msgid ""
27008 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27009 " Found 1 nodes:\n"
27010 " -- NODE --\n"
27011 " <source dev=\"/dev/vg/lv_guest\" />\n"
27012 "\n"
27013 msgstr ""
27014
27015 # type: =item
27016 #: ../tools/virt-resize.pl:103
27017 msgid "3. Look at current sizing"
27018 msgstr ""
27019
27020 # type: textblock
27021 #: ../tools/virt-resize.pl:105
27022 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27023 msgstr ""
27024
27025 # type: verbatim
27026 #: ../tools/virt-resize.pl:108
27027 #, no-wrap
27028 msgid ""
27029 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27030 " Name       Type       Size  Parent\n"
27031 " /dev/sda1  partition  101M  /dev/sda\n"
27032 " /dev/sda2  partition  7.9G  /dev/sda\n"
27033 " /dev/sda   device     8.0G  -\n"
27034 "\n"
27035 msgstr ""
27036
27037 # type: textblock
27038 #: ../tools/virt-resize.pl:114
27039 msgid ""
27040 "(This example is a virtual machine with an 8 GB disk which we would like to "
27041 "expand up to 10 GB)."
27042 msgstr ""
27043
27044 # type: =item
27045 #: ../tools/virt-resize.pl:117
27046 msgid "4. Create output disk"
27047 msgstr ""
27048
27049 # type: textblock
27050 #: ../tools/virt-resize.pl:119
27051 msgid ""
27052 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27053 "to store the resized output disk."
27054 msgstr ""
27055
27056 # type: textblock
27057 #: ../tools/virt-resize.pl:122
27058 msgid ""
27059 "To store the resized disk image in a file, create a file of a suitable size:"
27060 msgstr ""
27061
27062 # type: verbatim
27063 #: ../tools/virt-resize.pl:125
27064 #, no-wrap
27065 msgid ""
27066 " # rm -f outdisk\n"
27067 " # truncate -s 10G outdisk\n"
27068 "\n"
27069 msgstr ""
27070
27071 # type: textblock
27072 #: ../tools/virt-resize.pl:128
27073 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27074 msgstr ""
27075
27076 # type: verbatim
27077 #: ../tools/virt-resize.pl:130
27078 #, no-wrap
27079 msgid ""
27080 " # lvcreate -L 10G -n lv_name vg_name\n"
27081 "\n"
27082 msgstr ""
27083
27084 # type: textblock
27085 #: ../tools/virt-resize.pl:132
27086 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27087 msgstr ""
27088
27089 # type: verbatim
27090 #: ../tools/virt-resize.pl:134
27091 #, no-wrap
27092 msgid ""
27093 " # virsh pool-list\n"
27094 " # virsh vol-create-as poolname newvol 10G\n"
27095 "\n"
27096 msgstr ""
27097
27098 # type: =item
27099 #: ../tools/virt-resize.pl:137
27100 msgid "5. Resize"
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-resize.pl:139
27105 msgid ""
27106 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27107 "file) and the output disk.  The output disk is the one created in the "
27108 "previous step."
27109 msgstr ""
27110
27111 # type: verbatim
27112 #: ../tools/virt-resize.pl:143
27113 #, no-wrap
27114 msgid ""
27115 " # virt-resize indisk outdisk\n"
27116 "\n"
27117 msgstr ""
27118
27119 # type: textblock
27120 #: ../tools/virt-resize.pl:145
27121 msgid ""
27122 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27123 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27124 "larger, then an extra, empty partition is created at the end of the disk "
27125 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27126 "error."
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:151
27131 msgid ""
27132 "More realistically you'd want to expand existing partitions in the disk "
27133 "image by passing extra options (for the full list see the L</OPTIONS> "
27134 "section below)."
27135 msgstr ""
27136
27137 # type: textblock
27138 #: ../tools/virt-resize.pl:155
27139 msgid ""
27140 "L</--expand> is the most useful option.  It expands the named partition "
27141 "within the disk to fill any extra space:"
27142 msgstr ""
27143
27144 # type: verbatim
27145 #: ../tools/virt-resize.pl:158
27146 #, no-wrap
27147 msgid ""
27148 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27149 "\n"
27150 msgstr ""
27151
27152 # type: textblock
27153 #: ../tools/virt-resize.pl:160
27154 msgid ""
27155 "(In this case, an extra partition is I<not> created at the end of the disk, "
27156 "because there will be no unused space)."
27157 msgstr ""
27158
27159 # type: textblock
27160 #: ../tools/virt-resize.pl:163
27161 msgid ""
27162 "L</--resize> is the other commonly used option.  The following would "
27163 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27164 "rest of the available space:"
27165 msgstr ""
27166
27167 # type: verbatim
27168 #: ../tools/virt-resize.pl:167
27169 #, no-wrap
27170 msgid ""
27171 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27172 "     indisk outdisk\n"
27173 "\n"
27174 msgstr ""
27175
27176 # type: textblock
27177 #: ../tools/virt-resize.pl:170
27178 msgid ""
27179 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27180 "if virt-resize knows how, it will resize the contents, the equivalent of "
27181 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27182 ">.  However virt-resize does not know how to resize some filesystems, so you "
27183 "would have to online resize them after booting the guest."
27184 msgstr ""
27185
27186 # type: textblock
27187 #: ../tools/virt-resize.pl:177
27188 msgid "Other options are covered below."
27189 msgstr ""
27190
27191 # type: =item
27192 #: ../tools/virt-resize.pl:179
27193 msgid "6. Test"
27194 msgstr ""
27195
27196 # type: textblock
27197 #: ../tools/virt-resize.pl:181
27198 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27199 msgstr ""
27200
27201 # type: textblock
27202 #: ../tools/virt-resize.pl:183
27203 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27204 msgstr ""
27205
27206 # type: verbatim
27207 #: ../tools/virt-resize.pl:185
27208 #, no-wrap
27209 msgid ""
27210 " # virsh edit guestname\n"
27211 "\n"
27212 msgstr ""
27213
27214 # type: textblock
27215 #: ../tools/virt-resize.pl:187
27216 msgid ""
27217 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27218 "html#elementsDisks>"
27219 msgstr ""
27220
27221 # type: textblock
27222 #: ../tools/virt-resize.pl:190
27223 msgid "Then start up the domain with the new, resized disk:"
27224 msgstr ""
27225
27226 # type: verbatim
27227 #: ../tools/virt-resize.pl:192
27228 #, no-wrap
27229 msgid ""
27230 " # virsh start guestname\n"
27231 "\n"
27232 msgstr ""
27233
27234 # type: textblock
27235 #: ../tools/virt-resize.pl:194
27236 msgid ""
27237 "and check that it still works.  See also the L</NOTES> section below for "
27238 "additional information."
27239 msgstr ""
27240
27241 # type: =item
27242 #: ../tools/virt-resize.pl:197
27243 msgid "7. Resize LVs etc inside the guest"
27244 msgstr ""
27245
27246 # type: textblock
27247 #: ../tools/virt-resize.pl:199
27248 msgid "(This can also be done offline using L<guestfish(1)>)"
27249 msgstr ""
27250
27251 # type: textblock
27252 #: ../tools/virt-resize.pl:201
27253 msgid ""
27254 "Once the guest has booted you should see the new space available, at least "
27255 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27256 "may need to resize LVs inside PVs, and also resize filesystem types that "
27257 "virt-resize does not know how to expand."
27258 msgstr ""
27259
27260 # type: =head2
27261 #: ../tools/virt-resize.pl:208
27262 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27263 msgstr ""
27264
27265 # type: textblock
27266 #: ../tools/virt-resize.pl:210
27267 msgid ""
27268 "Shrinking is somewhat more complex than expanding, and only an overview is "
27269 "given here."
27270 msgstr ""
27271
27272 # type: textblock
27273 #: ../tools/virt-resize.pl:213
27274 msgid ""
27275 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27276 "filesystems).  The user has to shrink content before passing the disk image "
27277 "to virt-resize, and virt-resize will check that the content has been shrunk "
27278 "properly."
27279 msgstr ""
27280
27281 # type: textblock
27282 #: ../tools/virt-resize.pl:218
27283 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27284 msgstr ""
27285
27286 # type: textblock
27287 #: ../tools/virt-resize.pl:220
27288 msgid ""
27289 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27290 "steps 3 and 4 above to allocate a new disk image."
27291 msgstr ""
27292
27293 # type: textblock
27294 #: ../tools/virt-resize.pl:223
27295 msgid ""
27296 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27297 msgstr ""
27298
27299 # type: =head2
27300 #: ../tools/virt-resize.pl:226
27301 msgid "IGNORING OR DELETING PARTITIONS"
27302 msgstr ""
27303
27304 # type: textblock
27305 #: ../tools/virt-resize.pl:228
27306 msgid ""
27307 "virt-resize also gives a convenient way to ignore or delete partitions when "
27308 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27309 "up the copy where you don't care about the existing contents of a "
27310 "partition.  Deleting a partition removes it completely, but note that it "
27311 "also renumbers any partitions after the one which is deleted, which can "
27312 "leave some guests unbootable."
27313 msgstr ""
27314
27315 # type: =head2
27316 #: ../tools/virt-resize.pl:235
27317 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27318 msgstr ""
27319
27320 # type: textblock
27321 #: ../tools/virt-resize.pl:237
27322 msgid ""
27323 "If the input disk is in qcow2 format, then you may prefer that the output is "
27324 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27325 "the fly.  The output format is simply determined by the format of the empty "
27326 "output container that you provide.  Thus to create qcow2 output, use:"
27327 msgstr ""
27328
27329 # type: verbatim
27330 #: ../tools/virt-resize.pl:243
27331 #, no-wrap
27332 msgid ""
27333 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27334 "\n"
27335 msgstr ""
27336
27337 # type: textblock
27338 #: ../tools/virt-resize.pl:245
27339 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27340 msgstr ""
27341
27342 # type: textblock
27343 #: ../tools/virt-resize.pl:247
27344 msgid "Similarly, to get non-sparse raw output use:"
27345 msgstr ""
27346
27347 # type: verbatim
27348 #: ../tools/virt-resize.pl:249
27349 #, no-wrap
27350 msgid ""
27351 " fallocate -l size outdisk\n"
27352 "\n"
27353 msgstr ""
27354
27355 # type: textblock
27356 #: ../tools/virt-resize.pl:251
27357 msgid ""
27358 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27359 "dev/zero of=outdisk bs=1M count=..>)"
27360 msgstr ""
27361
27362 # type: textblock
27363 #: ../tools/virt-resize.pl:264
27364 msgid "Display help."
27365 msgstr ""
27366
27367 # type: =item
27368 #: ../tools/virt-resize.pl:278
27369 msgid "B<--resize part=size>"
27370 msgstr ""
27371
27372 # type: textblock
27373 #: ../tools/virt-resize.pl:280
27374 msgid ""
27375 "Resize the named partition (expanding or shrinking it) so that it has the "
27376 "given size."
27377 msgstr ""
27378
27379 # type: textblock
27380 #: ../tools/virt-resize.pl:283
27381 msgid ""
27382 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27383 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27384 "Exabytes; or as a percentage of the current size; or as a relative number or "
27385 "percentage.  For example:"
27386 msgstr ""
27387
27388 # type: verbatim
27389 #: ../tools/virt-resize.pl:288
27390 #, no-wrap
27391 msgid ""
27392 " --resize /dev/sda2=10G\n"
27393 "\n"
27394 msgstr ""
27395
27396 # type: verbatim
27397 #: ../tools/virt-resize.pl:290
27398 #, no-wrap
27399 msgid ""
27400 " --resize /dev/sda4=90%\n"
27401 "\n"
27402 msgstr ""
27403
27404 # type: verbatim
27405 #: ../tools/virt-resize.pl:292
27406 #, no-wrap
27407 msgid ""
27408 " --resize /dev/sda2=+1G\n"
27409 "\n"
27410 msgstr ""
27411
27412 # type: verbatim
27413 #: ../tools/virt-resize.pl:294
27414 #, no-wrap
27415 msgid ""
27416 " --resize /dev/sda2=-200M\n"
27417 "\n"
27418 msgstr ""
27419
27420 # type: verbatim
27421 #: ../tools/virt-resize.pl:296
27422 #, no-wrap
27423 msgid ""
27424 " --resize /dev/sda1=+128K\n"
27425 "\n"
27426 msgstr ""
27427
27428 # type: verbatim
27429 #: ../tools/virt-resize.pl:298
27430 #, no-wrap
27431 msgid ""
27432 " --resize /dev/sda1=+10%\n"
27433 "\n"
27434 msgstr ""
27435
27436 # type: verbatim
27437 #: ../tools/virt-resize.pl:300
27438 #, no-wrap
27439 msgid ""
27440 " --resize /dev/sda1=-10%\n"
27441 "\n"
27442 msgstr ""
27443
27444 # type: textblock
27445 #: ../tools/virt-resize.pl:302
27446 msgid ""
27447 "You can increase the size of any partition.  Virt-resize will expand the "
27448 "direct content of the partition if it knows how (see C<--expand> below)."
27449 msgstr ""
27450
27451 # type: textblock
27452 #: ../tools/virt-resize.pl:306
27453 msgid ""
27454 "You can only I<decrease> the size of partitions that contain filesystems or "
27455 "PVs which have already been shrunk.  Virt-resize will check this has been "
27456 "done before proceeding, or else will print an error (see also C<--resize-"
27457 "force>)."
27458 msgstr ""
27459
27460 # type: textblock
27461 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
27462 #: ../tools/virt-resize.pl:420
27463 msgid "You can give this option multiple times."
27464 msgstr ""
27465
27466 # type: =item
27467 #: ../tools/virt-resize.pl:317
27468 msgid "B<--resize-force part=size>"
27469 msgstr ""
27470
27471 # type: textblock
27472 #: ../tools/virt-resize.pl:319
27473 msgid ""
27474 "This is the same as C<--resize> except that it will let you decrease the "
27475 "size of any partition.  Generally this means you will lose any data which "
27476 "was at the end of the partition you shrink, but you may not care about that "
27477 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27478 "as a swap partition)."
27479 msgstr ""
27480
27481 # type: textblock
27482 #: ../tools/virt-resize.pl:325
27483 msgid "See also the C<--ignore> option."
27484 msgstr ""
27485
27486 # type: =item
27487 #: ../tools/virt-resize.pl:331
27488 msgid "B<--expand part>"
27489 msgstr ""
27490
27491 # type: textblock
27492 #: ../tools/virt-resize.pl:333
27493 msgid ""
27494 "Expand the named partition so it uses up all extra space (space left over "
27495 "after any other resize changes that you request have been done)."
27496 msgstr ""
27497
27498 # type: textblock
27499 #: ../tools/virt-resize.pl:336
27500 msgid ""
27501 "If virt-resize knows how, it will expand the direct content of the "
27502 "partition.  For example, if the partition is an LVM PV, it will expand the "
27503 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27504 "content it doesn't know about alone."
27505 msgstr ""
27506
27507 # type: textblock
27508 #: ../tools/virt-resize.pl:341
27509 msgid "Currently virt-resize can resize:"
27510 msgstr ""
27511
27512 # type: textblock
27513 #: ../tools/virt-resize.pl:347
27514 msgid ""
27515 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27516 "partition."
27517 msgstr ""
27518
27519 # type: textblock
27520 #: ../tools/virt-resize.pl:352
27521 msgid ""
27522 "NTFS filesystems contained directly in a partition, if libguestfs was "
27523 "compiled with support for NTFS."
27524 msgstr ""
27525
27526 # type: textblock
27527 #: ../tools/virt-resize.pl:355
27528 msgid ""
27529 "The filesystem must have been shut down consistently last time it was used.  "
27530 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27531 "consistency check, so at the first boot after resizing Windows will check "
27532 "the disk."
27533 msgstr ""
27534
27535 # type: textblock
27536 #: ../tools/virt-resize.pl:362
27537 msgid ""
27538 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27539 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27540 "resize LVs as desired after boot."
27541 msgstr ""
27542
27543 # type: textblock
27544 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27545 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27546 msgstr ""
27547
27548 # type: =item
27549 #: ../tools/virt-resize.pl:374
27550 msgid "B<--shrink part>"
27551 msgstr ""
27552
27553 # type: textblock
27554 #: ../tools/virt-resize.pl:376
27555 msgid ""
27556 "Shrink the named partition until the overall disk image fits in the "
27557 "destination.  The named partition B<must> contain a filesystem or PV which "
27558 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27559 "online tools).  Virt-resize will check this and give an error if it has not "
27560 "been done."
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-resize.pl:382
27565 msgid ""
27566 "The amount by which the overall disk must be shrunk (after carrying out all "
27567 "other operations requested by the user) is called the \"deficit\".  For "
27568 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27569 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27570 "would give an error unless the user specified a partition to shrink and that "
27571 "partition had more than a gigabyte of free space."
27572 msgstr ""
27573
27574 # type: =item
27575 #: ../tools/virt-resize.pl:396
27576 msgid "B<--ignore part>"
27577 msgstr ""
27578
27579 # type: textblock
27580 #: ../tools/virt-resize.pl:398
27581 msgid ""
27582 "Ignore the named partition.  Effectively this means the partition is "
27583 "allocated on the destination disk, but the content is not copied across from "
27584 "the source disk.  The content of the partition will be blank (all zero "
27585 "bytes)."
27586 msgstr ""
27587
27588 # type: =item
27589 #: ../tools/virt-resize.pl:409
27590 msgid "B<--delete part>"
27591 msgstr ""
27592
27593 # type: textblock
27594 #: ../tools/virt-resize.pl:411
27595 msgid ""
27596 "Delete the named partition.  It would be more accurate to describe this as "
27597 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27598 "the original disk image is left intact."
27599 msgstr ""
27600
27601 # type: textblock
27602 #: ../tools/virt-resize.pl:415
27603 msgid ""
27604 "Note that when you delete a partition, then anything contained in the "
27605 "partition is also deleted.  Furthermore, this causes any partitions that "
27606 "come after to be I<renumbered>, which can easily make your guest unbootable."
27607 msgstr ""
27608
27609 # type: =item
27610 #: ../tools/virt-resize.pl:426
27611 msgid "B<--LV-expand logvol>"
27612 msgstr ""
27613
27614 # type: textblock
27615 #: ../tools/virt-resize.pl:428
27616 msgid ""
27617 "This takes the logical volume and, as a final step, expands it to fill all "
27618 "the space available in its volume group.  A typical usage, assuming a Linux "
27619 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27620 "lv_root> would be:"
27621 msgstr ""
27622
27623 # type: verbatim
27624 #: ../tools/virt-resize.pl:433
27625 #, no-wrap
27626 msgid ""
27627 " virt-resize indisk outdisk \\\n"
27628 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27629 "\n"
27630 msgstr ""
27631
27632 # type: textblock
27633 #: ../tools/virt-resize.pl:436
27634 msgid ""
27635 "This would first expand the partition (and PV), and then expand the root "
27636 "device to fill the extra space in the PV."
27637 msgstr ""
27638
27639 # type: textblock
27640 #: ../tools/virt-resize.pl:439
27641 msgid ""
27642 "The contents of the LV are also resized if virt-resize knows how to do "
27643 "that.  You can stop virt-resize from trying to expand the content by using "
27644 "the option C<--no-expand-content>."
27645 msgstr ""
27646
27647 # type: textblock
27648 #: ../tools/virt-resize.pl:443
27649 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27650 msgstr ""
27651
27652 # type: textblock
27653 #: ../tools/virt-resize.pl:446
27654 msgid ""
27655 "You can give this option multiple times, I<but> it doesn't make sense to do "
27656 "this unless the logical volumes you specify are all in different volume "
27657 "groups."
27658 msgstr ""
27659
27660 # type: =item
27661 #: ../tools/virt-resize.pl:454
27662 msgid "B<--no-copy-boot-loader>"
27663 msgstr ""
27664
27665 # type: textblock
27666 #: ../tools/virt-resize.pl:456
27667 msgid ""
27668 "By default, virt-resize copies over some sectors at the start of the disk "
27669 "(up to the beginning of the first partition).  Commonly these sectors "
27670 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27671 "in order for the guest to boot correctly."
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-resize.pl:461
27676 msgid ""
27677 "If you specify this flag, then this initial copy is not done.  You may need "
27678 "to reinstall the boot loader in this case."
27679 msgstr ""
27680
27681 # type: =item
27682 #: ../tools/virt-resize.pl:469
27683 msgid "B<--no-extra-partition>"
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-resize.pl:471
27688 msgid ""
27689 "By default, virt-resize creates an extra partition if there is any extra, "
27690 "unused space after all resizing has happened.  Use this option to prevent "
27691 "the extra partition from being created.  If you do this then the extra space "
27692 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27693 "tool in the guest."
27694 msgstr ""
27695
27696 # type: textblock
27697 #: ../tools/virt-resize.pl:477
27698 msgid ""
27699 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27700 "will be created."
27701 msgstr ""
27702
27703 # type: =item
27704 #: ../tools/virt-resize.pl:484
27705 msgid "B<--no-expand-content>"
27706 msgstr ""
27707
27708 # type: textblock
27709 #: ../tools/virt-resize.pl:486
27710 msgid ""
27711 "By default, virt-resize will try to expand the direct contents of "
27712 "partitions, if it knows how (see C<--expand> option above)."
27713 msgstr ""
27714
27715 # type: textblock
27716 #: ../tools/virt-resize.pl:489
27717 msgid ""
27718 "If you give the C<--no-expand-content> option then virt-resize will not "
27719 "attempt this."
27720 msgstr ""
27721
27722 # type: =item
27723 #: ../tools/virt-resize.pl:496
27724 msgid "B<-d> | B<--debug>"
27725 msgstr ""
27726
27727 # type: =item
27728 #: ../tools/virt-resize.pl:504
27729 msgid "B<-n> | B<--dryrun>"
27730 msgstr ""
27731
27732 # type: textblock
27733 #: ../tools/virt-resize.pl:506
27734 msgid "Print a summary of what would be done, but don't do anything."
27735 msgstr ""
27736
27737 # type: =item
27738 #: ../tools/virt-resize.pl:512
27739 msgid "B<-q> | B<--quiet>"
27740 msgstr ""
27741
27742 # type: textblock
27743 #: ../tools/virt-resize.pl:514
27744 msgid "Don't print the summary."
27745 msgstr ""
27746
27747 # type: textblock
27748 #: ../tools/virt-resize.pl:522
27749 msgid ""
27750 "Specify the format of the input disk image.  If this flag is not given then "
27751 "it is auto-detected from the image itself."
27752 msgstr ""
27753
27754 # type: textblock
27755 #: ../tools/virt-resize.pl:528
27756 msgid ""
27757 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27758 "AND NON-SPARSE RAW FORMATS>."
27759 msgstr ""
27760
27761 # type: =item
27762 #: ../tools/virt-resize.pl:535
27763 msgid "B<--output-format> raw"
27764 msgstr ""
27765
27766 # type: textblock
27767 #: ../tools/virt-resize.pl:537
27768 msgid ""
27769 "Specify the format of the output disk image.  If this flag is not given then "
27770 "it is auto-detected from the image itself."
27771 msgstr ""
27772
27773 # type: textblock
27774 #: ../tools/virt-resize.pl:543
27775 msgid ""
27776 "Note that you still need to create the output disk with the right format.  "
27777 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27778 msgstr ""
27779
27780 # type: =head1
27781 #: ../tools/virt-resize.pl:1419
27782 msgid "NOTES"
27783 msgstr ""
27784
27785 # type: =head2
27786 #: ../tools/virt-resize.pl:1421
27787 msgid "\"Partition 1 does not end on cylinder boundary.\""
27788 msgstr ""
27789
27790 # type: textblock
27791 #: ../tools/virt-resize.pl:1423
27792 msgid ""
27793 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27794 "means the partitions will not be aligned to the ancient CHS geometry.  "
27795 "However CHS geometry is meaningless for disks manufactured since the early "
27796 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27797 "cylinders is not required by any modern operating system."
27798 msgstr ""
27799
27800 # type: =head2
27801 #: ../tools/virt-resize.pl:1430
27802 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27803 msgstr ""
27804
27805 # type: textblock
27806 #: ../tools/virt-resize.pl:1432
27807 msgid ""
27808 "In Windows Vista and later versions, Microsoft switched to using a separate "
27809 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27810 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27811 "the boot partition.  Doing so seems to break the guest completely.  However "
27812 "expanding the second partition (ie. C: drive) should work."
27813 msgstr ""
27814
27815 # type: textblock
27816 #: ../tools/virt-resize.pl:1439
27817 msgid ""
27818 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27819 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27820 "it find errors) is nothing to worry about."
27821 msgstr ""
27822
27823 # type: =head2
27824 #: ../tools/virt-resize.pl:1443
27825 msgid "GUEST BOOT STUCK AT \"GRUB\""
27826 msgstr ""
27827
27828 # type: textblock
27829 #: ../tools/virt-resize.pl:1445
27830 msgid ""
27831 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27832 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27833 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27834 "although we think is to do with partition alignment."
27835 msgstr ""
27836
27837 # type: verbatim
27838 #: ../tools/virt-resize.pl:1450
27839 #, no-wrap
27840 msgid ""
27841 " guestfish -i -a newdisk\n"
27842 " ><fs> cat /boot/grub/device.map\n"
27843 " # check the contents of this file are sensible or\n"
27844 " # edit the file if necessary\n"
27845 " ><fs> grub-install / /dev/vda\n"
27846 " ><fs> exit\n"
27847 "\n"
27848 msgstr ""
27849
27850 # type: textblock
27851 #: ../tools/virt-resize.pl:1457
27852 msgid ""
27853 "For more flexible guest reconfiguration, including if you need to specify "
27854 "other parameters to grub-install, use L<virt-rescue(1)>."
27855 msgstr ""
27856
27857 # type: =head1
27858 #: ../tools/virt-resize.pl:1460
27859 msgid "ALTERNATIVE TOOLS"
27860 msgstr ""
27861
27862 # type: textblock
27863 #: ../tools/virt-resize.pl:1462
27864 msgid ""
27865 "There are several proprietary tools for resizing partitions.  We won't "
27866 "mention any here."
27867 msgstr ""
27868
27869 # type: textblock
27870 #: ../tools/virt-resize.pl:1465
27871 msgid ""
27872 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27873 "operations on disk images.  They can resize and move partitions, but I don't "
27874 "think they can do anything with the contents, and they certainly don't "
27875 "understand LVM."
27876 msgstr ""
27877
27878 # type: textblock
27879 #: ../tools/virt-resize.pl:1470
27880 msgid ""
27881 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27882 "but at a much lower level.  You will probably end up hand-calculating sector "
27883 "offsets, which is something that virt-resize was designed to avoid.  If you "
27884 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27885 "C<--debug> flag."
27886 msgstr ""
27887
27888 # type: textblock
27889 #: ../tools/virt-resize.pl:1485
27890 msgid ""
27891 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
27892 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
27893 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
27894 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
27895 "libguestfs.org/>."
27896 msgstr ""
27897
27898 # type: textblock
27899 #: ../tools/virt-list-filesystems.pl:32
27900 msgid ""
27901 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27902 msgstr ""
27903
27904 # type: verbatim
27905 #: ../tools/virt-list-filesystems.pl:36
27906 #, no-wrap
27907 msgid ""
27908 " virt-list-filesystems [--options] domname\n"
27909 "\n"
27910 msgstr ""
27911
27912 # type: verbatim
27913 #: ../tools/virt-list-filesystems.pl:38
27914 #, no-wrap
27915 msgid ""
27916 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27917 "\n"
27918 msgstr ""
27919
27920 # type: textblock
27921 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27922 msgid ""
27923 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27924 "replacement."
27925 msgstr ""
27926
27927 # type: textblock
27928 #: ../tools/virt-list-filesystems.pl:45
27929 msgid ""
27930 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27931 "are contained in a virtual machine or disk image."
27932 msgstr ""
27933
27934 # type: textblock
27935 #: ../tools/virt-list-filesystems.pl:49
27936 msgid ""
27937 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27938 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27939 "> tool."
27940 msgstr ""
27941
27942 # type: =item
27943 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27944 msgid "B<-l> | B<--long>"
27945 msgstr ""
27946
27947 # type: textblock
27948 #: ../tools/virt-list-filesystems.pl:108
27949 msgid ""
27950 "With this option, C<virt-list-filesystems> displays the type of each "
27951 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27952 msgstr ""
27953
27954 # type: =item
27955 #: ../tools/virt-list-filesystems.pl:115
27956 msgid "B<-a> | B<--all>"
27957 msgstr ""
27958
27959 # type: textblock
27960 #: ../tools/virt-list-filesystems.pl:117
27961 msgid ""
27962 "Normally we only show mountable filesystems.  If this option is given then "
27963 "swap devices are shown too."
27964 msgstr ""
27965
27966 # type: textblock
27967 #: ../tools/virt-list-filesystems.pl:191
27968 msgid ""
27969 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
27970 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27971 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27972 msgstr ""
27973
27974 # type: textblock
27975 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27976 msgid "Copyright (C) 2009 Red Hat Inc."
27977 msgstr ""
27978
27979 # type: textblock
27980 #: ../tools/virt-tar.pl:33
27981 msgid "virt-tar - Extract or upload files to a virtual machine"
27982 msgstr ""
27983
27984 # type: verbatim
27985 #: ../tools/virt-tar.pl:37
27986 #, no-wrap
27987 msgid ""
27988 " virt-tar [--options] -x domname directory tarball\n"
27989 "\n"
27990 msgstr ""
27991
27992 # type: verbatim
27993 #: ../tools/virt-tar.pl:39
27994 #, no-wrap
27995 msgid ""
27996 " virt-tar [--options] -u domname tarball directory\n"
27997 "\n"
27998 msgstr ""
27999
28000 # type: verbatim
28001 #: ../tools/virt-tar.pl:41
28002 #, no-wrap
28003 msgid ""
28004 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28005 "\n"
28006 msgstr ""
28007
28008 # type: verbatim
28009 #: ../tools/virt-tar.pl:43
28010 #, no-wrap
28011 msgid ""
28012 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28013 "\n"
28014 msgstr ""
28015
28016 # type: textblock
28017 #: ../tools/virt-tar.pl:47
28018 msgid "Download C</home> from the VM into a local tarball:"
28019 msgstr ""
28020
28021 # type: verbatim
28022 #: ../tools/virt-tar.pl:49
28023 #, no-wrap
28024 msgid ""
28025 " virt-tar -x domname /home home.tar\n"
28026 "\n"
28027 msgstr ""
28028
28029 # type: verbatim
28030 #: ../tools/virt-tar.pl:51
28031 #, no-wrap
28032 msgid ""
28033 " virt-tar -zx domname /home home.tar.gz\n"
28034 "\n"
28035 msgstr ""
28036
28037 # type: textblock
28038 #: ../tools/virt-tar.pl:53
28039 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28040 msgstr ""
28041
28042 # type: verbatim
28043 #: ../tools/virt-tar.pl:55
28044 #, no-wrap
28045 msgid ""
28046 " virt-tar -u domname uploadstuff.tar /tmp\n"
28047 "\n"
28048 msgstr ""
28049
28050 # type: verbatim
28051 #: ../tools/virt-tar.pl:57
28052 #, no-wrap
28053 msgid ""
28054 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28055 "\n"
28056 msgstr ""
28057
28058 # type: textblock
28059 #: ../tools/virt-tar.pl:61
28060 msgid ""
28061 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28062 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28063 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28064 msgstr ""
28065
28066 # type: textblock
28067 #: ../tools/virt-tar.pl:66
28068 msgid ""
28069 "You can use C<-x> (extract) on live virtual machines, but you might get "
28070 "inconsistent results or errors if there is filesystem activity inside the "
28071 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28072 "work, but the only way to guarantee consistent results is if the virtual "
28073 "machine is shut down."
28074 msgstr ""
28075
28076 # type: textblock
28077 #: ../tools/virt-tar.pl:74
28078 msgid ""
28079 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28080 "parts of a guest filesystem.  There are many possibilities: making backups, "
28081 "uploading data files, snooping on guest activity, fixing or customizing "
28082 "guests, etc."
28083 msgstr ""
28084
28085 # type: textblock
28086 #: ../tools/virt-tar.pl:79
28087 msgid ""
28088 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28089 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28090 "should look at the L<guestfish(1)> tool."
28091 msgstr ""
28092
28093 # type: textblock
28094 #: ../tools/virt-tar.pl:83
28095 msgid ""
28096 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28097 "its contents (recursively) from the virtual machine into a local tarball.  "
28098 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28099 "virtual machine.  You cannot use these two options together."
28100 msgstr ""
28101
28102 # type: textblock
28103 #: ../tools/virt-tar.pl:89
28104 msgid ""
28105 "In addition, you may need to use the C<-z> (gZip) option to enable "
28106 "compression.  When uploading, you have to specify C<-z> if the upload file "
28107 "is compressed because virt-tar won't detect this on its own."
28108 msgstr ""
28109
28110 # type: textblock
28111 #: ../tools/virt-tar.pl:93
28112 msgid ""
28113 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28114 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28115 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28116 "the L<libguestfs(3)> API)."
28117 msgstr ""
28118
28119 # type: =item
28120 #: ../tools/virt-tar.pl:151
28121 msgid "B<-x> | B<--extract> | B<--download>"
28122 msgstr ""
28123
28124 # type: =item
28125 #: ../tools/virt-tar.pl:153
28126 msgid "B<-u> | B<--upload>"
28127 msgstr ""
28128
28129 # type: textblock
28130 #: ../tools/virt-tar.pl:155
28131 msgid ""
28132 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28133 "local tarball."
28134 msgstr ""
28135
28136 # type: textblock
28137 #: ../tools/virt-tar.pl:158
28138 msgid ""
28139 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28140 "Please read the L</WARNING> section above before using this option."
28141 msgstr ""
28142
28143 # type: textblock
28144 #: ../tools/virt-tar.pl:162
28145 msgid "You must specify exactly one of these options."
28146 msgstr ""
28147
28148 # type: =item
28149 #: ../tools/virt-tar.pl:168
28150 msgid "B<-z> | B<--gzip>"
28151 msgstr ""
28152
28153 # type: textblock
28154 #: ../tools/virt-tar.pl:170
28155 msgid "Specify that the input or output tarball is gzip-compressed."
28156 msgstr ""
28157
28158 # type: textblock
28159 #: ../tools/virt-tar.pl:283
28160 msgid ""
28161 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28162 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28163 "org/>."
28164 msgstr ""
28165
28166 # type: textblock
28167 #: ../tools/virt-make-fs.pl:37
28168 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28169 msgstr ""
28170
28171 # type: verbatim
28172 #: ../tools/virt-make-fs.pl:41
28173 #, no-wrap
28174 msgid ""
28175 " virt-make-fs [--options] input.tar output.img\n"
28176 "\n"
28177 msgstr ""
28178
28179 # type: verbatim
28180 #: ../tools/virt-make-fs.pl:43
28181 #, no-wrap
28182 msgid ""
28183 " virt-make-fs [--options] input.tar.gz output.img\n"
28184 "\n"
28185 msgstr ""
28186
28187 # type: verbatim
28188 #: ../tools/virt-make-fs.pl:45
28189 #, no-wrap
28190 msgid ""
28191 " virt-make-fs [--options] directory output.img\n"
28192 "\n"
28193 msgstr ""
28194
28195 # type: textblock
28196 #: ../tools/virt-make-fs.pl:49
28197 msgid ""
28198 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28199 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28200 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28201 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28202 "you want to attach these filesystems to existing virtual machines (eg. to "
28203 "import large amounts of read-only data to a VM)."
28204 msgstr ""
28205
28206 # type: textblock
28207 #: ../tools/virt-make-fs.pl:57
28208 msgid "Basic usage is:"
28209 msgstr ""
28210
28211 # type: verbatim
28212 #: ../tools/virt-make-fs.pl:59
28213 #, no-wrap
28214 msgid ""
28215 " virt-make-fs input output\n"
28216 "\n"
28217 msgstr ""
28218
28219 # type: textblock
28220 #: ../tools/virt-make-fs.pl:61
28221 msgid ""
28222 "where C<input> is either a directory containing files that you want to add, "
28223 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28224 "C<output> is a disk image.  The input type is detected automatically.  The "
28225 "output disk image defaults to a raw ext2 image unless you specify extra "
28226 "flags (see L</OPTIONS> below)."
28227 msgstr ""
28228
28229 # type: =head2
28230 #: ../tools/virt-make-fs.pl:67
28231 msgid "EXTRA SPACE"
28232 msgstr ""
28233
28234 # type: textblock
28235 #: ../tools/virt-make-fs.pl:69
28236 msgid ""
28237 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28238 "the files that it contains, but might have extra space.  Depending on how "
28239 "you are going to use the output, you might think this extra space is wasted "
28240 "and want to minimize it, or you might want to leave space so that more files "
28241 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28242 "but you can use the C<--size> flag to leave space in the filesystem if you "
28243 "want it."
28244 msgstr ""
28245
28246 # type: textblock
28247 #: ../tools/virt-make-fs.pl:77
28248 msgid ""
28249 "An alternative way to leave extra space but not make the output image any "
28250 "bigger is to use an alternative disk image format (instead of the default "
28251 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28252 "image format (check your hypervisor supports this before using it).  This "
28253 "allows you to choose a large C<--size> but the extra space won't actually be "
28254 "allocated in the image until you try to store something in it."
28255 msgstr ""
28256
28257 # type: textblock
28258 #: ../tools/virt-make-fs.pl:85
28259 msgid ""
28260 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28261 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28262 "resize to build another image from scratch."
28263 msgstr ""
28264
28265 # type: =head3
28266 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28267 #: ../tools/virt-make-fs.pl:142
28268 msgid "EXAMPLE"
28269 msgstr ""
28270
28271 # type: verbatim
28272 #: ../tools/virt-make-fs.pl:91
28273 #, no-wrap
28274 msgid ""
28275 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28276 "\n"
28277 msgstr ""
28278
28279 # type: =head2
28280 #: ../tools/virt-make-fs.pl:93
28281 msgid "FILESYSTEM TYPE"
28282 msgstr ""
28283
28284 # type: textblock
28285 #: ../tools/virt-make-fs.pl:95
28286 msgid ""
28287 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28288 "libguestfs supports can be used (but I<not> read-only formats like "
28289 "ISO9660).  Here are some of the more common choices:"
28290 msgstr ""
28291
28292 # type: =item
28293 #: ../tools/virt-make-fs.pl:101
28294 msgid "I<ext3>"
28295 msgstr ""
28296
28297 # type: textblock
28298 #: ../tools/virt-make-fs.pl:103
28299 msgid ""
28300 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28301 "you are not going to use the filesystem in a way that requires the journal, "
28302 "then this is just wasted overhead."
28303 msgstr ""
28304
28305 # type: =item
28306 #: ../tools/virt-make-fs.pl:107
28307 msgid "I<ntfs> or I<vfat>"
28308 msgstr ""
28309
28310 # type: textblock
28311 #: ../tools/virt-make-fs.pl:109
28312 msgid "Useful if exporting data to a Windows guest."
28313 msgstr ""
28314
28315 # type: textblock
28316 #: ../tools/virt-make-fs.pl:111
28317 msgid ""
28318 "I<Note for vfat>: The tar archive or local directory must only contain files "
28319 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28320 "program running within libguestfs is unable to change the ownership of non-"
28321 "root files, since vfat itself does not support this."
28322 msgstr ""
28323
28324 # type: =item
28325 #: ../tools/virt-make-fs.pl:116
28326 msgid "I<minix>"
28327 msgstr ""
28328
28329 # type: textblock
28330 #: ../tools/virt-make-fs.pl:118
28331 msgid ""
28332 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28333 "total filesystem size."
28334 msgstr ""
28335
28336 # type: verbatim
28337 #: ../tools/virt-make-fs.pl:125
28338 #, no-wrap
28339 msgid ""
28340 " virt-make-fs --type=minix input minixfs.img\n"
28341 "\n"
28342 msgstr ""
28343
28344 # type: =head2
28345 #: ../tools/virt-make-fs.pl:127
28346 msgid "TO PARTITION OR NOT TO PARTITION"
28347 msgstr ""
28348
28349 # type: textblock
28350 #: ../tools/virt-make-fs.pl:129
28351 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28352 msgstr ""
28353
28354 # type: textblock
28355 #: ../tools/virt-make-fs.pl:131
28356 msgid ""
28357 "Adding a partition can make the disk image more compatible with certain "
28358 "virtualized operating systems which don't expect to see a filesystem "
28359 "directly located on a block device (Linux doesn't care and will happily "
28360 "handle both types)."
28361 msgstr ""
28362
28363 # type: textblock
28364 #: ../tools/virt-make-fs.pl:136
28365 msgid ""
28366 "On the other hand, if you have a partition table then the output image is no "
28367 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28368 "directly on a partitioned disk image.  (However libguestfs tools such as "
28369 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28370 msgstr ""
28371
28372 # type: textblock
28373 #: ../tools/virt-make-fs.pl:144
28374 msgid "Add an MBR partition:"
28375 msgstr ""
28376
28377 # type: verbatim
28378 #: ../tools/virt-make-fs.pl:146
28379 #, no-wrap
28380 msgid ""
28381 " virt-make-fs --partition -- input disk.img\n"
28382 "\n"
28383 msgstr ""
28384
28385 # type: textblock
28386 #: ../tools/virt-make-fs.pl:148
28387 msgid ""
28388 "If the output disk image could be terabyte-sized or larger, it's better to "
28389 "use an EFI/GPT-compatible partition table:"
28390 msgstr ""
28391
28392 # type: verbatim
28393 #: ../tools/virt-make-fs.pl:151
28394 #, no-wrap
28395 msgid ""
28396 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28397 "\n"
28398 msgstr ""
28399
28400 # type: textblock
28401 #: ../tools/virt-make-fs.pl:179
28402 msgid "Enable debugging information."
28403 msgstr ""
28404
28405 # type: =item
28406 #: ../tools/virt-make-fs.pl:185
28407 msgid "B<--size=E<lt>NE<gt>>"
28408 msgstr ""
28409
28410 # type: =item
28411 #: ../tools/virt-make-fs.pl:187
28412 msgid "B<--size=+E<lt>NE<gt>>"
28413 msgstr ""
28414
28415 # type: =item
28416 #: ../tools/virt-make-fs.pl:189
28417 msgid "B<-s E<lt>NE<gt>>"
28418 msgstr ""
28419
28420 # type: =item
28421 #: ../tools/virt-make-fs.pl:191
28422 msgid "B<-s +E<lt>NE<gt>>"
28423 msgstr ""
28424
28425 # type: textblock
28426 #: ../tools/virt-make-fs.pl:193
28427 msgid ""
28428 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28429 msgstr ""
28430
28431 # type: textblock
28432 #: ../tools/virt-make-fs.pl:196
28433 msgid ""
28434 "If this option is I<not> given, then the output image will be just large "
28435 "enough to contain all the files, with not much wasted space."
28436 msgstr ""
28437
28438 # type: textblock
28439 #: ../tools/virt-make-fs.pl:199
28440 msgid ""
28441 "To choose a fixed size output disk, specify an absolute number followed by b/"
28442 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28443 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28444 "files, else you will get an error."
28445 msgstr ""
28446
28447 # type: textblock
28448 #: ../tools/virt-make-fs.pl:204
28449 msgid ""
28450 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28451 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28452 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28453 "the input files, and (approximately) an extra 200 MB free space."
28454 msgstr ""
28455
28456 # type: textblock
28457 #: ../tools/virt-make-fs.pl:210
28458 msgid ""
28459 "Note that virt-make-fs estimates free space, and therefore will not produce "
28460 "filesystems containing precisely the free space requested.  (It is much more "
28461 "expensive and time-consuming to produce a filesystem which has precisely the "
28462 "desired free space)."
28463 msgstr ""
28464
28465 # type: =item
28466 #: ../tools/virt-make-fs.pl:219
28467 msgid "B<--format=E<lt>fmtE<gt>>"
28468 msgstr ""
28469
28470 # type: =item
28471 #: ../tools/virt-make-fs.pl:221
28472 msgid "B<-F E<lt>fmtE<gt>>"
28473 msgstr ""
28474
28475 # type: textblock
28476 #: ../tools/virt-make-fs.pl:223
28477 msgid "Choose the output disk image format."
28478 msgstr ""
28479
28480 # type: textblock
28481 #: ../tools/virt-make-fs.pl:225
28482 msgid "The default is C<raw> (raw disk image)."
28483 msgstr ""
28484
28485 # type: textblock
28486 #: ../tools/virt-make-fs.pl:227
28487 msgid ""
28488 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28489 "that would really make sense here is C<qcow2>."
28490 msgstr ""
28491
28492 # type: =item
28493 #: ../tools/virt-make-fs.pl:234
28494 msgid "B<--type=E<lt>fsE<gt>>"
28495 msgstr ""
28496
28497 # type: =item
28498 #: ../tools/virt-make-fs.pl:236
28499 msgid "B<-t E<lt>fsE<gt>>"
28500 msgstr ""
28501
28502 # type: textblock
28503 #: ../tools/virt-make-fs.pl:238
28504 msgid "Choose the output filesystem type."
28505 msgstr ""
28506
28507 # type: textblock
28508 #: ../tools/virt-make-fs.pl:240
28509 msgid "The default is C<ext2>."
28510 msgstr ""
28511
28512 # type: textblock
28513 #: ../tools/virt-make-fs.pl:242
28514 msgid ""
28515 "Any filesystem which is supported read-write by libguestfs can be used here."
28516 msgstr ""
28517
28518 # type: =item
28519 #: ../tools/virt-make-fs.pl:249
28520 msgid "B<--partition>"
28521 msgstr ""
28522
28523 # type: =item
28524 #: ../tools/virt-make-fs.pl:251
28525 msgid "B<--partition=E<lt>parttypeE<gt>>"
28526 msgstr ""
28527
28528 # type: textblock
28529 #: ../tools/virt-make-fs.pl:253
28530 msgid ""
28531 "If specified, this flag adds an MBR partition table to the output disk image."
28532 msgstr ""
28533
28534 # type: textblock
28535 #: ../tools/virt-make-fs.pl:256
28536 msgid ""
28537 "You can change the partition table type, eg. C<--partition=gpt> for large "
28538 "disks."
28539 msgstr ""
28540
28541 # type: textblock
28542 #: ../tools/virt-make-fs.pl:259
28543 msgid ""
28544 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28545 "might consider the next parameter to be the partition type.  For example:"
28546 msgstr ""
28547
28548 # type: verbatim
28549 #: ../tools/virt-make-fs.pl:263
28550 #, no-wrap
28551 msgid ""
28552 " virt-make-fs --partition input.tar ...\n"
28553 "\n"
28554 msgstr ""
28555
28556 # type: textblock
28557 #: ../tools/virt-make-fs.pl:265
28558 msgid ""
28559 "would cause virt-make-fs to think you wanted to use a partition type of "
28560 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28561 "dash) between options and the input file argument:"
28562 msgstr ""
28563
28564 # type: verbatim
28565 #: ../tools/virt-make-fs.pl:269
28566 #, no-wrap
28567 msgid ""
28568 " virt-make-fs --partition -- input.tar ...\n"
28569 "\n"
28570 msgstr ""
28571
28572 # type: textblock
28573 #: ../tools/virt-make-fs.pl:536
28574 msgid ""
28575 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28576 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28577 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28578 msgstr ""
28579
28580 # type: verbatim
28581 #: ../tools/virt-make-fs.pl:553
28582 #, no-wrap
28583 msgid ""
28584 " export LIBGUESTFS_DEBUG=1\n"
28585 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28586 "\n"
28587 msgstr ""
28588
28589 # type: textblock
28590 #: ../tools/virt-make-fs.pl:556
28591 msgid ""
28592 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28593 "redhat.com/>"
28594 msgstr ""
28595
28596 # type: textblock
28597 #: ../tools/virt-list-partitions.pl:32
28598 msgid ""
28599 "virt-list-partitions - List partitions in a virtual machine or disk image"
28600 msgstr ""
28601
28602 # type: verbatim
28603 #: ../tools/virt-list-partitions.pl:36
28604 #, no-wrap
28605 msgid ""
28606 " virt-list-partitions [--options] domname\n"
28607 "\n"
28608 msgstr ""
28609
28610 # type: verbatim
28611 #: ../tools/virt-list-partitions.pl:38
28612 #, no-wrap
28613 msgid ""
28614 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28615 "\n"
28616 msgstr ""
28617
28618 # type: textblock
28619 #: ../tools/virt-list-partitions.pl:45
28620 msgid ""
28621 "C<virt-list-partitions> is a command line tool to list the partitions that "
28622 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28623 "first step to using L<virt-resize(1)>."
28624 msgstr ""
28625
28626 # type: textblock
28627 #: ../tools/virt-list-partitions.pl:50
28628 msgid ""
28629 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28630 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28631 "> tool."
28632 msgstr ""
28633
28634 # type: =item
28635 #: ../tools/virt-list-partitions.pl:107
28636 msgid "B<-h> | B<--human-readable>"
28637 msgstr ""
28638
28639 # type: textblock
28640 #: ../tools/virt-list-partitions.pl:109
28641 msgid "Show sizes in human-readable form (eg. \"1G\")."
28642 msgstr ""
28643
28644 # type: textblock
28645 #: ../tools/virt-list-partitions.pl:117
28646 msgid ""
28647 "With this option, C<virt-list-partitions> displays the type and size of each "
28648 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28649 msgstr ""
28650
28651 # type: =item
28652 #: ../tools/virt-list-partitions.pl:124
28653 msgid "B<-t> | B<--total>"
28654 msgstr ""
28655
28656 # type: textblock
28657 #: ../tools/virt-list-partitions.pl:126
28658 msgid ""
28659 "Display the total size of each block device (as a separate row or rows)."
28660 msgstr ""
28661
28662 # type: textblock
28663 #: ../tools/virt-list-partitions.pl:259
28664 msgid ""
28665 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
28666 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
28667 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28668 msgstr ""