Version 1.7.12.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-11-23 10:39+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 ../tools/virt-df.pl:32
23 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
24 #: ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29
25 #: ../tools/virt-make-fs.pl:33 ../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 ../tools/virt-df.pl:34
33 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
34 #: ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31
35 #: ../tools/virt-make-fs.pl: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 ../tools/virt-df.pl:38
48 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
49 #: ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35
50 #: ../tools/virt-make-fs.pl:39 ../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 ../tools/virt-df.pl:46
91 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
92 #: ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51
93 #: ../tools/virt-make-fs.pl:47 ../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: =head1
149 #: ../src/guestfs.pod:55
150 msgid "API OVERVIEW"
151 msgstr ""
152
153 # type: textblock
154 #: ../src/guestfs.pod:57
155 msgid ""
156 "This section provides a gentler overview of the libguestfs API.  We also try "
157 "to group API calls together, where that may not be obvious from reading "
158 "about the individual calls in the main section of this manual."
159 msgstr ""
160
161 # type: =head2
162 #: ../src/guestfs.pod:62
163 msgid "HANDLES"
164 msgstr ""
165
166 # type: textblock
167 #: ../src/guestfs.pod:64
168 msgid ""
169 "Before you can use libguestfs calls, you have to create a handle.  Then you "
170 "must add at least one disk image to the handle, followed by launching the "
171 "handle, then performing whatever operations you want, and finally closing "
172 "the handle.  By convention we use the single letter C<g> for the name of the "
173 "handle variable, although of course you can use any name you want."
174 msgstr ""
175
176 # type: textblock
177 #: ../src/guestfs.pod:71
178 msgid "The general structure of all libguestfs-using programs looks like this:"
179 msgstr ""
180
181 # type: verbatim
182 #: ../src/guestfs.pod:74
183 #, no-wrap
184 msgid ""
185 " guestfs_h *g = guestfs_create ();\n"
186 " \n"
187 msgstr ""
188
189 # type: verbatim
190 #: ../src/guestfs.pod:76
191 #, no-wrap
192 msgid ""
193 " /* Call guestfs_add_drive additional times if there are\n"
194 "  * multiple disk images.\n"
195 "  */\n"
196 " guestfs_add_drive (g, \"guest.img\");\n"
197 " \n"
198 msgstr ""
199
200 # type: verbatim
201 #: ../src/guestfs.pod:81
202 #, no-wrap
203 msgid ""
204 " /* Most manipulation calls won't work until you've launched\n"
205 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
206 "  * and _before_ other commands.\n"
207 "  */\n"
208 " guestfs_launch (g);\n"
209 " \n"
210 msgstr ""
211
212 # type: verbatim
213 #: ../src/guestfs.pod:87
214 #, no-wrap
215 msgid ""
216 " /* Now you can examine what partitions, LVs etc are available.\n"
217 "  */\n"
218 " char **partitions = guestfs_list_partitions (g);\n"
219 " char **logvols = guestfs_lvs (g);\n"
220 " \n"
221 msgstr ""
222
223 # type: verbatim
224 #: ../src/guestfs.pod:92
225 #, no-wrap
226 msgid ""
227 " /* To access a filesystem in the image, you must mount it.\n"
228 "  */\n"
229 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
230 " \n"
231 msgstr ""
232
233 # type: verbatim
234 #: ../src/guestfs.pod:96
235 #, no-wrap
236 msgid ""
237 " /* Now you can perform filesystem actions on the guest\n"
238 "  * disk image.\n"
239 "  */\n"
240 " guestfs_touch (g, \"/hello\");\n"
241 " \n"
242 msgstr ""
243
244 # type: verbatim
245 #: ../src/guestfs.pod:101
246 #, no-wrap
247 msgid ""
248 " /* You only need to call guestfs_sync if you have made\n"
249 "  * changes to the guest image.  (But if you've made changes\n"
250 "  * then you *must* sync).  See also: guestfs_umount and\n"
251 "  * guestfs_umount_all calls.\n"
252 "  */\n"
253 " guestfs_sync (g);\n"
254 " \n"
255 msgstr ""
256
257 # type: verbatim
258 #: ../src/guestfs.pod:108
259 #, no-wrap
260 msgid ""
261 " /* Close the handle 'g'. */\n"
262 " guestfs_close (g);\n"
263 "\n"
264 msgstr ""
265
266 # type: textblock
267 #: ../src/guestfs.pod:111
268 msgid ""
269 "The code above doesn't include any error checking.  In real code you should "
270 "check return values carefully for errors.  In general all functions that "
271 "return integers return C<-1> on error, and all functions that return "
272 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
273 "how to handle errors, and consult the documentation for each function call "
274 "below to see precisely how they return error indications."
275 msgstr ""
276
277 # type: =head2
278 #: ../src/guestfs.pod:119
279 msgid "DISK IMAGES"
280 msgstr ""
281
282 # type: textblock
283 #: ../src/guestfs.pod:121
284 msgid ""
285 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
286 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
287 "actual block device, or simply an empty file of zeroes that you have created "
288 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
289 "of these."
290 msgstr ""
291
292 # type: textblock
293 #: ../src/guestfs.pod:127
294 msgid ""
295 "The call you should use in modern code for adding drives is L</"
296 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
297 "specifying that the format is raw, do:"
298 msgstr ""
299
300 # type: verbatim
301 #: ../src/guestfs.pod:131
302 #, no-wrap
303 msgid ""
304 " guestfs_add_drive_opts (g, filename,\n"
305 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
306 "                         -1);\n"
307 "\n"
308 msgstr ""
309
310 # type: textblock
311 #: ../src/guestfs.pod:135
312 msgid "You can add a disk read-only using:"
313 msgstr ""
314
315 # type: verbatim
316 #: ../src/guestfs.pod:137
317 #, no-wrap
318 msgid ""
319 " guestfs_add_drive_opts (g, filename,\n"
320 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
321 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
322 "                         -1);\n"
323 "\n"
324 msgstr ""
325
326 # type: textblock
327 #: ../src/guestfs.pod:142
328 msgid ""
329 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
330 "libguestfs won't modify the file."
331 msgstr ""
332
333 # type: textblock
334 #: ../src/guestfs.pod:145
335 msgid ""
336 "Be extremely cautious if the disk image is in use, eg. if it is being used "
337 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
338 "corruption, but adding it read-only is safe."
339 msgstr ""
340
341 # type: textblock
342 #: ../src/guestfs.pod:149
343 msgid ""
344 "You must add at least one disk image, and you may add multiple disk images.  "
345 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
346 "first one you added), C</dev/sdb> (for the second one you added), etc."
347 msgstr ""
348
349 # type: textblock
350 #: ../src/guestfs.pod:154
351 msgid ""
352 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
353 "can call L</guestfs_list_devices> to get a list of the device names, in the "
354 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
355 msgstr ""
356
357 # type: =head2
358 #: ../src/guestfs.pod:159
359 msgid "MOUNTING"
360 msgstr ""
361
362 # type: textblock
363 #: ../src/guestfs.pod:161
364 msgid ""
365 "Before you can read or write files, create directories and so on in a disk "
366 "image that contains filesystems, you have to mount those filesystems using "
367 "L</guestfs_mount>.  If you already know that a disk image contains (for "
368 "example) one partition with a filesystem on that partition, then you can "
369 "mount it directly:"
370 msgstr ""
371
372 # type: verbatim
373 #: ../src/guestfs.pod:167
374 #, no-wrap
375 msgid ""
376 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
377 "\n"
378 msgstr ""
379
380 # type: textblock
381 #: ../src/guestfs.pod:169
382 msgid ""
383 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
384 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
385 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
386 msgstr ""
387
388 # type: textblock
389 #: ../src/guestfs.pod:173
390 msgid ""
391 "If you are given a disk image and you don't know what it contains then you "
392 "have to find out.  Libguestfs can do that too: use L</"
393 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
394 "LVs, and either try mounting each to see what is mountable, or else examine "
395 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
396 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
397 "you might find it easier to look at higher level programs built on top of "
398 "libguestfs, in particular L<virt-inspector(1)>."
399 msgstr ""
400
401 # type: textblock
402 #: ../src/guestfs.pod:183
403 msgid ""
404 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
405 "several other variations of the C<guestfs_mount_*> call."
406 msgstr ""
407
408 # type: =head2
409 #: ../src/guestfs.pod:186
410 msgid "FILESYSTEM ACCESS AND MODIFICATION"
411 msgstr ""
412
413 # type: textblock
414 #: ../src/guestfs.pod:188
415 msgid ""
416 "The majority of the libguestfs API consists of fairly low-level calls for "
417 "accessing and modifying the files, directories, symlinks etc on mounted "
418 "filesystems.  There are over a hundred such calls which you can find listed "
419 "in detail below in this man page, and we don't even pretend to cover them "
420 "all in this overview."
421 msgstr ""
422
423 # type: textblock
424 #: ../src/guestfs.pod:194
425 msgid ""
426 "Specify filenames as full paths, starting with C<\"/\"> and including the "
427 "mount point."
428 msgstr ""
429
430 # type: textblock
431 #: ../src/guestfs.pod:197
432 msgid ""
433 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
434 "the file called C<\"etc/passwd\"> then you could do:"
435 msgstr ""
436
437 # type: verbatim
438 #: ../src/guestfs.pod:200
439 #, no-wrap
440 msgid ""
441 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
442 "\n"
443 msgstr ""
444
445 # type: textblock
446 #: ../src/guestfs.pod:202
447 msgid ""
448 "This would return C<data> as a newly allocated buffer containing the full "
449 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
450 "or C<NULL> if there was an error."
451 msgstr ""
452
453 # type: textblock
454 #: ../src/guestfs.pod:206
455 msgid ""
456 "As another example, to create a top-level directory on that filesystem "
457 "called C<\"var\"> you would do:"
458 msgstr ""
459
460 # type: verbatim
461 #: ../src/guestfs.pod:209
462 #, no-wrap
463 msgid ""
464 " guestfs_mkdir (g, \"/var\");\n"
465 "\n"
466 msgstr ""
467
468 # type: textblock
469 #: ../src/guestfs.pod:211
470 msgid "To create a symlink you could do:"
471 msgstr ""
472
473 # type: verbatim
474 #: ../src/guestfs.pod:213
475 #, no-wrap
476 msgid ""
477 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
478 "               \"/etc/rc3.d/S30portmap\");\n"
479 "\n"
480 msgstr ""
481
482 # type: textblock
483 #: ../src/guestfs.pod:216
484 msgid ""
485 "Libguestfs will reject attempts to use relative paths and there is no "
486 "concept of a current working directory."
487 msgstr ""
488
489 # type: textblock
490 #: ../src/guestfs.pod:219
491 msgid ""
492 "Libguestfs can return errors in many situations: for example if the "
493 "filesystem isn't writable, or if a file or directory that you requested "
494 "doesn't exist.  If you are using the C API (documented here)  you have to "
495 "check for those error conditions after each call.  (Other language bindings "
496 "turn these errors into exceptions)."
497 msgstr ""
498
499 # type: textblock
500 #: ../src/guestfs.pod:225
501 msgid ""
502 "File writes are affected by the per-handle umask, set by calling L</"
503 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
504 msgstr ""
505
506 # type: =head2
507 #: ../src/guestfs.pod:228
508 msgid "PARTITIONING"
509 msgstr ""
510
511 # type: textblock
512 #: ../src/guestfs.pod:230
513 msgid ""
514 "Libguestfs contains API calls to read, create and modify partition tables on "
515 "disk images."
516 msgstr ""
517
518 # type: textblock
519 #: ../src/guestfs.pod:233
520 msgid ""
521 "In the common case where you want to create a single partition covering the "
522 "whole disk, you should use the L</guestfs_part_disk> call:"
523 msgstr ""
524
525 # type: verbatim
526 #: ../src/guestfs.pod:237
527 #, no-wrap
528 msgid ""
529 " const char *parttype = \"mbr\";\n"
530 " if (disk_is_larger_than_2TB)\n"
531 "   parttype = \"gpt\";\n"
532 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
533 "\n"
534 msgstr ""
535
536 # type: textblock
537 #: ../src/guestfs.pod:242
538 msgid ""
539 "Obviously this effectively wipes anything that was on that disk image before."
540 msgstr ""
541
542 # type: =head2
543 #: ../src/guestfs.pod:245
544 msgid "LVM2"
545 msgstr ""
546
547 # type: textblock
548 #: ../src/guestfs.pod:247
549 msgid ""
550 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
551 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
552 "you familiarize yourself with the concepts of physical volumes, volume "
553 "groups and logical volumes."
554 msgstr ""
555
556 # type: textblock
557 #: ../src/guestfs.pod:252
558 msgid ""
559 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
560 "tldp.org/HOWTO/LVM-HOWTO/>."
561 msgstr ""
562
563 # type: =head2
564 #: ../src/guestfs.pod:255
565 msgid "DOWNLOADING"
566 msgstr ""
567
568 # type: textblock
569 #: ../src/guestfs.pod:257
570 msgid ""
571 "Use L</guestfs_cat> to download small, text only files.  This call is "
572 "limited to files which are less than 2 MB and which cannot contain any ASCII "
573 "NUL (C<\\0>) characters.  However it has a very simple to use API."
574 msgstr ""
575
576 # type: textblock
577 #: ../src/guestfs.pod:262
578 msgid ""
579 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
580 "bit data, since it returns a (pointer, size) pair.  However it is still "
581 "limited to \"small\" files, less than 2 MB."
582 msgstr ""
583
584 # type: textblock
585 #: ../src/guestfs.pod:266
586 msgid ""
587 "L</guestfs_download> can be used to download any file, with no limits on "
588 "content or size (even files larger than 4 GB)."
589 msgstr ""
590
591 # type: textblock
592 #: ../src/guestfs.pod:269
593 msgid ""
594 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
595 msgstr ""
596
597 # type: =head2
598 #: ../src/guestfs.pod:272
599 msgid "UPLOADING"
600 msgstr ""
601
602 # type: textblock
603 #: ../src/guestfs.pod:274
604 msgid ""
605 "It's often the case that you want to write a file or files to the disk image."
606 msgstr ""
607
608 # type: textblock
609 #: ../src/guestfs.pod:277
610 msgid ""
611 "To write a small file with fixed content, use L</guestfs_write>.  To create "
612 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
613 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
614 "of other functions for creating test files, for example L</guestfs_fill> and "
615 "L</guestfs_fill_pattern>."
616 msgstr ""
617
618 # type: textblock
619 #: ../src/guestfs.pod:283
620 msgid ""
621 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
622 "file content or size (even files larger than 4 GB)."
623 msgstr ""
624
625 # type: textblock
626 #: ../src/guestfs.pod:286
627 msgid ""
628 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
629 msgstr ""
630
631 # type: textblock
632 #: ../src/guestfs.pod:288
633 msgid ""
634 "However the fastest way to upload I<large numbers of arbitrary files> is to "
635 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
636 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
637 "in a predictable way (eg. adding it last after all other drives) then you "
638 "can get the device name from L</guestfs_list_devices> and mount it directly "
639 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
640 "portable between kernel versions, and they don't support labels or UUIDs.  "
641 "If you want to pre-build an image or you need to mount it using a label or "
642 "UUID, use an ISO image instead."
643 msgstr ""
644
645 # type: =head2
646 #: ../src/guestfs.pod:299
647 msgid "COPYING"
648 msgstr ""
649
650 # type: textblock
651 #: ../src/guestfs.pod:301
652 msgid ""
653 "There are various different commands for copying between files and devices "
654 "and in and out of the guest filesystem.  These are summarised in the table "
655 "below."
656 msgstr ""
657
658 # type: =item
659 #: ../src/guestfs.pod:307
660 msgid "B<file> to B<file>"
661 msgstr ""
662
663 # type: textblock
664 #: ../src/guestfs.pod:309
665 msgid ""
666 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
667 "directories recursively."
668 msgstr ""
669
670 # type: =item
671 #: ../src/guestfs.pod:312
672 msgid "B<file or device> to B<file or device>"
673 msgstr ""
674
675 # type: textblock
676 #: ../src/guestfs.pod:314
677 msgid ""
678 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
679 "devices in the guest."
680 msgstr ""
681
682 # type: textblock
683 #: ../src/guestfs.pod:317
684 msgid "Example: duplicate the contents of an LV:"
685 msgstr ""
686
687 # type: verbatim
688 #: ../src/guestfs.pod:319
689 #, no-wrap
690 msgid ""
691 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
692 "\n"
693 msgstr ""
694
695 # type: textblock
696 #: ../src/guestfs.pod:321
697 msgid ""
698 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
699 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
700 "guestfs_copy_size>."
701 msgstr ""
702
703 # type: =item
704 #: ../src/guestfs.pod:325
705 msgid "B<file on the host> to B<file or device>"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:327
710 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
711 msgstr ""
712
713 # type: =item
714 #: ../src/guestfs.pod:329
715 msgid "B<file or device> to B<file on the host>"
716 msgstr ""
717
718 # type: textblock
719 #: ../src/guestfs.pod:331
720 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
721 msgstr ""
722
723 # type: =head2
724 #: ../src/guestfs.pod:335
725 msgid "LISTING FILES"
726 msgstr ""
727
728 # type: textblock
729 #: ../src/guestfs.pod:337
730 msgid ""
731 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
732 "L<guestfish(1)>-equivalent command C<ll>)."
733 msgstr ""
734
735 # type: textblock
736 #: ../src/guestfs.pod:340
737 msgid ""
738 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
739 "programs, as a flat list of strings."
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:343
744 msgid ""
745 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
746 "directory, plus additional information about each one.  It is more "
747 "equivalent to using the L<readdir(3)> call on a local filesystem."
748 msgstr ""
749
750 # type: textblock
751 #: ../src/guestfs.pod:347
752 msgid ""
753 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
754 msgstr ""
755
756 # type: =head2
757 #: ../src/guestfs.pod:350
758 msgid "RUNNING COMMANDS"
759 msgstr ""
760
761 # type: textblock
762 #: ../src/guestfs.pod:352
763 msgid ""
764 "Although libguestfs is primarily an API for manipulating files inside guest "
765 "images, we also provide some limited facilities for running commands inside "
766 "guests."
767 msgstr ""
768
769 # type: textblock
770 #: ../src/guestfs.pod:356
771 msgid "There are many limitations to this:"
772 msgstr ""
773
774 # type: =item
775 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
776 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
777 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:957
778 #: ../src/guestfs.pod:961 ../src/guestfs.pod:965 ../src/guestfs.pod:970
779 #: ../src/guestfs.pod:978 ../src/guestfs.pod:997 ../src/guestfs.pod:1005
780 #: ../src/guestfs.pod:1027 ../src/guestfs.pod:1031 ../src/guestfs.pod:1035
781 #: ../src/guestfs.pod:1039 ../src/guestfs.pod:1043 ../src/guestfs.pod:1047
782 #: ../src/guestfs.pod:1529 ../src/guestfs.pod:1534 ../src/guestfs.pod:1538
783 #: ../src/guestfs.pod:1648 ../src/guestfs.pod:1653 ../src/guestfs.pod:1657
784 #: ../src/guestfs.pod:2001 ../src/guestfs.pod:2007 ../src/guestfs.pod:2012
785 #: ../src/guestfs.pod:2018 ../src/guestfs.pod:2126 ../src/guestfs.pod:2130
786 #: ../src/guestfs.pod:2134 ../src/guestfs.pod:2138
787 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
788 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
789 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
790 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
791 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
792 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
793 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
794 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
795 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
796 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
797 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
798 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:377
799 #: ../fish/guestfish.pod:381 ../fish/guestfish.pod:385
800 #: ../fish/guestfish.pod:389 ../fish/guestfish-actions.pod:13
801 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
802 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
803 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
804 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
805 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
806 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
807 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
808 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
809 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
810 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
811 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
812 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:347
813 #: ../tools/virt-resize.pl:352 ../tools/virt-resize.pl:362
814 msgid "*"
815 msgstr ""
816
817 # type: textblock
818 #: ../src/guestfs.pod:362
819 msgid ""
820 "The kernel version that the command runs under will be different from what "
821 "it expects."
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:367
826 msgid ""
827 "If the command needs to communicate with daemons, then most likely they "
828 "won't be running."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:372
833 msgid "The command will be running in limited memory."
834 msgstr ""
835
836 # type: textblock
837 #: ../src/guestfs.pod:376
838 msgid ""
839 "The network may not be available unless you enable it (see L</"
840 "guestfs_set_network>)."
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:381
845 msgid "Only supports Linux guests (not Windows, BSD, etc)."
846 msgstr ""
847
848 # type: textblock
849 #: ../src/guestfs.pod:385
850 msgid ""
851 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
852 msgstr ""
853
854 # type: textblock
855 #: ../src/guestfs.pod:390
856 msgid ""
857 "For SELinux guests, you may need to enable SELinux and load policy first.  "
858 "See L</SELINUX> in this manpage."
859 msgstr ""
860
861 # type: textblock
862 #: ../src/guestfs.pod:395
863 msgid ""
864 "I<Security:> It is not safe to run commands from untrusted, possibly "
865 "malicious guests.  These commands may attempt to exploit your program by "
866 "sending unexpected output.  They could also try to exploit the Linux kernel "
867 "or qemu provided by the libguestfs appliance.  They could use the network "
868 "provided by the libguestfs appliance to bypass ordinary network partitions "
869 "and firewalls.  They could use the elevated privileges or different SELinux "
870 "context of your program to their advantage."
871 msgstr ""
872
873 # type: textblock
874 #: ../src/guestfs.pod:404
875 msgid ""
876 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
877 "(a script which runs when the guest next boots normally), and to have this "
878 "script run the commands you want in the normal context of the running guest, "
879 "network security and so on.  For information about other security issues, "
880 "see L</SECURITY>."
881 msgstr ""
882
883 # type: textblock
884 #: ../src/guestfs.pod:412
885 msgid ""
886 "The two main API calls to run commands are L</guestfs_command> and L</"
887 "guestfs_sh> (there are also variations)."
888 msgstr ""
889
890 # type: textblock
891 #: ../src/guestfs.pod:415
892 msgid ""
893 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
894 "shell globs, redirections, etc will work."
895 msgstr ""
896
897 # type: =head2
898 #: ../src/guestfs.pod:418
899 msgid "CONFIGURATION FILES"
900 msgstr ""
901
902 # type: textblock
903 #: ../src/guestfs.pod:420
904 msgid ""
905 "To read and write configuration files in Linux guest filesystems, we "
906 "strongly recommend using Augeas.  For example, Augeas understands how to "
907 "read and write, say, a Linux shadow password file or X.org configuration "
908 "file, and so avoids you having to write that code."
909 msgstr ""
910
911 # type: textblock
912 #: ../src/guestfs.pod:425
913 msgid ""
914 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
915 "document Augeas itself here because there is excellent documentation on the "
916 "L<http://augeas.net/> website."
917 msgstr ""
918
919 # type: textblock
920 #: ../src/guestfs.pod:429
921 msgid ""
922 "If you don't want to use Augeas (you fool!) then try calling L</"
923 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
924 "over."
925 msgstr ""
926
927 # type: =head2
928 #: ../src/guestfs.pod:433
929 msgid "SELINUX"
930 msgstr ""
931
932 # type: textblock
933 #: ../src/guestfs.pod:435
934 msgid ""
935 "We support SELinux guests.  To ensure that labeling happens correctly in "
936 "SELinux guests, you need to enable SELinux and load the guest's policy:"
937 msgstr ""
938
939 # type: =item
940 #: ../src/guestfs.pod:441 ../src/guestfs.pod:1150 ../src/guestfs.pod:1281
941 msgid "1."
942 msgstr ""
943
944 # type: textblock
945 #: ../src/guestfs.pod:443
946 msgid "Before launching, do:"
947 msgstr ""
948
949 # type: verbatim
950 #: ../src/guestfs.pod:445
951 #, no-wrap
952 msgid ""
953 " guestfs_set_selinux (g, 1);\n"
954 "\n"
955 msgstr ""
956
957 # type: =item
958 #: ../src/guestfs.pod:447 ../src/guestfs.pod:1154 ../src/guestfs.pod:1285
959 msgid "2."
960 msgstr ""
961
962 # type: textblock
963 #: ../src/guestfs.pod:449
964 msgid ""
965 "After mounting the guest's filesystem(s), load the policy.  This is best "
966 "done by running the L<load_policy(8)> command in the guest itself:"
967 msgstr ""
968
969 # type: verbatim
970 #: ../src/guestfs.pod:453
971 #, no-wrap
972 msgid ""
973 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
974 "\n"
975 msgstr ""
976
977 # type: textblock
978 #: ../src/guestfs.pod:455
979 msgid ""
980 "(Older versions of C<load_policy> require you to specify the name of the "
981 "policy file)."
982 msgstr ""
983
984 # type: =item
985 #: ../src/guestfs.pod:458 ../src/guestfs.pod:1291
986 msgid "3."
987 msgstr ""
988
989 # type: textblock
990 #: ../src/guestfs.pod:460
991 msgid ""
992 "Optionally, set the security context for the API.  The correct security "
993 "context to use can only be known by inspecting the guest.  As an example:"
994 msgstr ""
995
996 # type: verbatim
997 #: ../src/guestfs.pod:464
998 #, no-wrap
999 msgid ""
1000 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1001 "\n"
1002 msgstr ""
1003
1004 # type: textblock
1005 #: ../src/guestfs.pod:468
1006 msgid "This will work for running commands and editing existing files."
1007 msgstr ""
1008
1009 # type: textblock
1010 #: ../src/guestfs.pod:470
1011 msgid ""
1012 "When new files are created, you may need to label them explicitly, for "
1013 "example by running the external command C<restorecon pathname>."
1014 msgstr ""
1015
1016 # type: =head2
1017 #: ../src/guestfs.pod:474
1018 msgid "UMASK"
1019 msgstr ""
1020
1021 # type: textblock
1022 #: ../src/guestfs.pod:476
1023 msgid ""
1024 "Certain calls are affected by the current file mode creation mask (the "
1025 "\"umask\").  In particular ones which create files or directories, such as "
1026 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1027 "either the default mode that the file is created with or modifies the mode "
1028 "that you supply."
1029 msgstr ""
1030
1031 # type: textblock
1032 #: ../src/guestfs.pod:482
1033 msgid ""
1034 "The default umask is C<022>, so files are created with modes such as C<0644> "
1035 "and directories with C<0755>."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:485
1040 msgid ""
1041 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1042 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1043 "guestfs_chmod> after creating each file or directory."
1044 msgstr ""
1045
1046 # type: textblock
1047 #: ../src/guestfs.pod:489
1048 msgid "For more information about umask, see L<umask(2)>."
1049 msgstr ""
1050
1051 # type: =head1
1052 #: ../src/guestfs.pod:491 ../fish/guestfish.pod:670
1053 msgid "ENCRYPTED DISKS"
1054 msgstr ""
1055
1056 # type: textblock
1057 #: ../src/guestfs.pod:493
1058 msgid ""
1059 "Libguestfs allows you to access Linux guests which have been encrypted using "
1060 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1061 "standard.  This includes nearly all whole disk encryption systems used by "
1062 "modern Linux guests."
1063 msgstr ""
1064
1065 # type: textblock
1066 #: ../src/guestfs.pod:499
1067 msgid ""
1068 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1069 "returns the string C<crypto_LUKS>)."
1070 msgstr ""
1071
1072 # type: textblock
1073 #: ../src/guestfs.pod:502
1074 msgid ""
1075 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1076 "will require the passphrase!"
1077 msgstr ""
1078
1079 # type: textblock
1080 #: ../src/guestfs.pod:505
1081 msgid ""
1082 "Opening a LUKS device creates a new device mapper device called C</dev/"
1083 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1084 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1085 "from and encrypted to the underlying block device respectively."
1086 msgstr ""
1087
1088 # type: textblock
1089 #: ../src/guestfs.pod:511
1090 msgid ""
1091 "LVM volume groups on the device can be made visible by calling L</"
1092 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1093 "(s) can now be mounted in the usual way."
1094 msgstr ""
1095
1096 # type: textblock
1097 #: ../src/guestfs.pod:515
1098 msgid ""
1099 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1100 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1101 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1102 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1103 "underlying encrypted block device)."
1104 msgstr ""
1105
1106 # type: =head2
1107 #: ../src/guestfs.pod:522
1108 msgid "INSPECTION"
1109 msgstr ""
1110
1111 # type: textblock
1112 #: ../src/guestfs.pod:524
1113 msgid ""
1114 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1115 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1116 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1117 "frequently used part of this library has been rewritten in C and moved into "
1118 "the core code)."
1119 msgstr ""
1120
1121 # type: textblock
1122 #: ../src/guestfs.pod:530
1123 msgid ""
1124 "Add all disks belonging to the unknown virtual machine and call L</"
1125 "guestfs_launch> in the usual way."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:533
1130 msgid ""
1131 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1132 "and certain heuristics, and returns a list of operating systems that were "
1133 "found.  An empty list means none were found.  A single element is the root "
1134 "filesystem of the operating system.  For dual- or multi-boot guests, "
1135 "multiple roots can be returned, each one corresponding to a separate "
1136 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1137 "world of virtualization, but since this scenario can happen, we have built "
1138 "libguestfs to deal with it.)"
1139 msgstr ""
1140
1141 # type: textblock
1142 #: ../src/guestfs.pod:542
1143 msgid ""
1144 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1145 "to get additional details about that operating system.  For example, call L</"
1146 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1147 "Windows and Linux-based operating systems respectively."
1148 msgstr ""
1149
1150 # type: textblock
1151 #: ../src/guestfs.pod:548
1152 msgid ""
1153 "Un*x-like and Linux-based operating systems usually consist of several "
1154 "filesystems which are mounted at boot time (for example, a separate boot "
1155 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1156 "filesystems correspond to mount points.  Call "
1157 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1158 "hash table like this example:"
1159 msgstr ""
1160
1161 # type: verbatim
1162 #: ../src/guestfs.pod:555
1163 #, no-wrap
1164 msgid ""
1165 " /boot => /dev/sda1\n"
1166 " /     => /dev/vg_guest/lv_root\n"
1167 " /usr  => /dev/vg_guest/lv_usr\n"
1168 "\n"
1169 msgstr ""
1170
1171 # type: textblock
1172 #: ../src/guestfs.pod:559
1173 msgid ""
1174 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1175 "filesystems as suggested."
1176 msgstr ""
1177
1178 # type: textblock
1179 #: ../src/guestfs.pod:562
1180 msgid ""
1181 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1182 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1183 msgstr ""
1184
1185 # type: textblock
1186 #: ../src/guestfs.pod:566
1187 msgid ""
1188 "Inspection currently only works for some common operating systems.  "
1189 "Contributors are welcome to send patches for other operating systems that we "
1190 "currently cannot detect."
1191 msgstr ""
1192
1193 # type: textblock
1194 #: ../src/guestfs.pod:570
1195 msgid ""
1196 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1197 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1198 "encrypted devices."
1199 msgstr ""
1200
1201 # type: textblock
1202 #: ../src/guestfs.pod:574
1203 msgid ""
1204 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1205 "inspection and caches the results in the guest handle.  Subsequent calls to "
1206 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1207 "read the disks.  If you change the content of the guest disks, you can redo "
1208 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1209 "guestfs_inspect_list_applications> works a little differently from the other "
1210 "calls and does read the disks.  See documentation for that function for "
1211 "details)."
1212 msgstr ""
1213
1214 # type: =head2
1215 #: ../src/guestfs.pod:583
1216 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1217 msgstr ""
1218
1219 # type: textblock
1220 #: ../src/guestfs.pod:585
1221 msgid ""
1222 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1223 "ntfs-3g.org/> driver."
1224 msgstr ""
1225
1226 # type: textblock
1227 #: ../src/guestfs.pod:588
1228 msgid ""
1229 "DOS and Windows still use drive letters, and the filesystems are always "
1230 "treated as case insensitive by Windows itself, and therefore you might find "
1231 "a Windows configuration file referring to a path like C<c:\\windows"
1232 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1233 "might be referred to as C</WINDOWS/System32>."
1234 msgstr ""
1235
1236 # type: textblock
1237 #: ../src/guestfs.pod:594
1238 msgid ""
1239 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1240 "libguestfs to read the appropriate Windows Registry and configuration files, "
1241 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1242 "inspector(1)>)."
1243 msgstr ""
1244
1245 # type: textblock
1246 #: ../src/guestfs.pod:599
1247 msgid ""
1248 "Replacing backslash characters with forward slash characters is also outside "
1249 "the scope of libguestfs, but something that you can easily do."
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:602
1254 msgid ""
1255 "Where we can help is in resolving the case insensitivity of paths.  For "
1256 "this, call L</guestfs_case_sensitive_path>."
1257 msgstr ""
1258
1259 # type: textblock
1260 #: ../src/guestfs.pod:605
1261 msgid ""
1262 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1263 "files, through the library C<hivex> which is part of the libguestfs project "
1264 "although ships as a separate tarball.  You have to locate and download the "
1265 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1266 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1267 "reg(1)> for more help on this issue."
1268 msgstr ""
1269
1270 # type: =head2
1271 #: ../src/guestfs.pod:613
1272 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1273 msgstr ""
1274
1275 # type: textblock
1276 #: ../src/guestfs.pod:615
1277 msgid ""
1278 "Although we don't want to discourage you from using the C API, we will "
1279 "mention here that the same API is also available in other languages."
1280 msgstr ""
1281
1282 # type: textblock
1283 #: ../src/guestfs.pod:618
1284 msgid ""
1285 "The API is broadly identical in all supported languages.  This means that "
1286 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1287 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1288 "words, a straightforward, predictable isomorphism between each language."
1289 msgstr ""
1290
1291 # type: textblock
1292 #: ../src/guestfs.pod:624
1293 msgid ""
1294 "Error messages are automatically transformed into exceptions if the language "
1295 "supports it."
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:627
1300 msgid ""
1301 "We don't try to \"object orientify\" parts of the API in OO languages, "
1302 "although contributors are welcome to write higher level APIs above what we "
1303 "provide in their favourite languages if they wish."
1304 msgstr ""
1305
1306 # type: =item
1307 #: ../src/guestfs.pod:633
1308 msgid "B<C++>"
1309 msgstr ""
1310
1311 # type: textblock
1312 #: ../src/guestfs.pod:635
1313 msgid ""
1314 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1315 "identical to the C API.  C++ classes and exceptions are not used."
1316 msgstr ""
1317
1318 # type: =item
1319 #: ../src/guestfs.pod:639
1320 msgid "B<C#>"
1321 msgstr ""
1322
1323 # type: textblock
1324 #: ../src/guestfs.pod:641
1325 msgid ""
1326 "The C# bindings are highly experimental.  Please read the warnings at the "
1327 "top of C<csharp/Libguestfs.cs>."
1328 msgstr ""
1329
1330 # type: =item
1331 #: ../src/guestfs.pod:644
1332 msgid "B<Haskell>"
1333 msgstr ""
1334
1335 # type: textblock
1336 #: ../src/guestfs.pod:646
1337 msgid ""
1338 "This is the only language binding that is working but incomplete.  Only "
1339 "calls which return simple integers have been bound in Haskell, and we are "
1340 "looking for help to complete this binding."
1341 msgstr ""
1342
1343 # type: =item
1344 #: ../src/guestfs.pod:650
1345 msgid "B<Java>"
1346 msgstr ""
1347
1348 # type: textblock
1349 #: ../src/guestfs.pod:652
1350 msgid ""
1351 "Full documentation is contained in the Javadoc which is distributed with "
1352 "libguestfs."
1353 msgstr ""
1354
1355 # type: =item
1356 #: ../src/guestfs.pod:655
1357 msgid "B<OCaml>"
1358 msgstr ""
1359
1360 # type: textblock
1361 #: ../src/guestfs.pod:657
1362 msgid "For documentation see the file C<guestfs.mli>."
1363 msgstr ""
1364
1365 # type: =item
1366 #: ../src/guestfs.pod:659
1367 msgid "B<Perl>"
1368 msgstr ""
1369
1370 # type: textblock
1371 #: ../src/guestfs.pod:661
1372 msgid "For documentation see L<Sys::Guestfs(3)>."
1373 msgstr ""
1374
1375 # type: =item
1376 #: ../src/guestfs.pod:663
1377 msgid "B<PHP>"
1378 msgstr ""
1379
1380 # type: textblock
1381 #: ../src/guestfs.pod:665
1382 msgid ""
1383 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1384 "the php-libguestfs package for your distribution."
1385 msgstr ""
1386
1387 # type: textblock
1388 #: ../src/guestfs.pod:668
1389 msgid "The PHP binding only works correctly on 64 bit machines."
1390 msgstr ""
1391
1392 # type: =item
1393 #: ../src/guestfs.pod:670
1394 msgid "B<Python>"
1395 msgstr ""
1396
1397 # type: textblock
1398 #: ../src/guestfs.pod:672
1399 msgid "For documentation do:"
1400 msgstr ""
1401
1402 # type: verbatim
1403 #: ../src/guestfs.pod:674
1404 #, no-wrap
1405 msgid ""
1406 " $ python\n"
1407 " >>> import guestfs\n"
1408 " >>> help (guestfs)\n"
1409 "\n"
1410 msgstr ""
1411
1412 # type: =item
1413 #: ../src/guestfs.pod:678
1414 msgid "B<Ruby>"
1415 msgstr ""
1416
1417 # type: textblock
1418 #: ../src/guestfs.pod:680
1419 msgid ""
1420 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1421 "can find examples written in Ruby in the libguestfs source."
1422 msgstr ""
1423
1424 # type: =item
1425 #: ../src/guestfs.pod:683
1426 msgid "B<shell scripts>"
1427 msgstr ""
1428
1429 # type: textblock
1430 #: ../src/guestfs.pod:685
1431 msgid "For documentation see L<guestfish(1)>."
1432 msgstr ""
1433
1434 # type: =head2
1435 #: ../src/guestfs.pod:689
1436 msgid "LIBGUESTFS GOTCHAS"
1437 msgstr ""
1438
1439 # type: textblock
1440 #: ../src/guestfs.pod:691
1441 msgid ""
1442 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1443 "system [...] that works in the way it is documented but is counterintuitive "
1444 "and almost invites mistakes.\""
1445 msgstr ""
1446
1447 # type: textblock
1448 #: ../src/guestfs.pod:695
1449 msgid ""
1450 "Since we developed libguestfs and the associated tools, there are several "
1451 "things we would have designed differently, but are now stuck with for "
1452 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1453 "release, you can expect these to change.  Beware of them."
1454 msgstr ""
1455
1456 # type: =item
1457 #: ../src/guestfs.pod:703
1458 msgid "Autosync / forgetting to sync."
1459 msgstr ""
1460
1461 # type: textblock
1462 #: ../src/guestfs.pod:705
1463 msgid ""
1464 "When modifying a filesystem from C or another language, you B<must> unmount "
1465 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1466 "libguestfs handle.  You can also call:"
1467 msgstr ""
1468
1469 # type: verbatim
1470 #: ../src/guestfs.pod:709
1471 #, no-wrap
1472 msgid ""
1473 " guestfs_set_autosync (g, 1);\n"
1474 "\n"
1475 msgstr ""
1476
1477 # type: textblock
1478 #: ../src/guestfs.pod:711
1479 msgid ""
1480 "to have the unmount/sync done automatically for you when the handle 'g' is "
1481 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1482 msgstr ""
1483
1484 # type: textblock
1485 #: ../src/guestfs.pod:715
1486 msgid ""
1487 "If you forget to do this, then it is entirely possible that your changes "
1488 "won't be written out, or will be partially written, or (very rarely) that "
1489 "you'll get disk corruption."
1490 msgstr ""
1491
1492 # type: textblock
1493 #: ../src/guestfs.pod:719
1494 msgid ""
1495 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1496 "guestfish scripts that forget to sync will work just fine, which can make "
1497 "this very puzzling if you are trying to debug a problem."
1498 msgstr ""
1499
1500 # type: textblock
1501 #: ../src/guestfs.pod:723
1502 msgid ""
1503 "Update: Autosync is enabled by default for all API users starting from "
1504 "libguestfs 1.5.24."
1505 msgstr ""
1506
1507 # type: =item
1508 #: ../src/guestfs.pod:726
1509 msgid "Mount option C<-o sync> should not be the default."
1510 msgstr ""
1511
1512 # type: textblock
1513 #: ../src/guestfs.pod:728
1514 msgid ""
1515 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1516 "However C<-o sync> does not add any reliability benefit, but does have a "
1517 "very large performance impact."
1518 msgstr ""
1519
1520 # type: textblock
1521 #: ../src/guestfs.pod:732
1522 msgid ""
1523 "The work around is to use L</guestfs_mount_options> and set the mount "
1524 "options that you actually want to use."
1525 msgstr ""
1526
1527 # type: =item
1528 #: ../src/guestfs.pod:735
1529 msgid "Read-only should be the default."
1530 msgstr ""
1531
1532 # type: textblock
1533 #: ../src/guestfs.pod:737
1534 msgid ""
1535 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1536 "specify I<--rw> if you want to make changes to the image."
1537 msgstr ""
1538
1539 # type: textblock
1540 #: ../src/guestfs.pod:740
1541 msgid "This would reduce the potential to corrupt live VM images."
1542 msgstr ""
1543
1544 # type: textblock
1545 #: ../src/guestfs.pod:742
1546 msgid ""
1547 "Note that many filesystems change the disk when you just mount and unmount, "
1548 "even if you didn't perform any writes.  You need to use L</"
1549 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1550 msgstr ""
1551
1552 # type: =item
1553 #: ../src/guestfs.pod:746
1554 msgid "guestfish command line is hard to use."
1555 msgstr ""
1556
1557 # type: textblock
1558 #: ../src/guestfs.pod:748
1559 msgid ""
1560 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1561 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1562 "exist, so it fails.  In earlier versions of guestfish the error message was "
1563 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1564 "we should have used C<guestfish -c command> to run commands."
1565 msgstr ""
1566
1567 # type: =item
1568 #: ../src/guestfs.pod:755
1569 msgid "guestfish megabyte modifiers don't work right on all commands"
1570 msgstr ""
1571
1572 # type: textblock
1573 #: ../src/guestfs.pod:757
1574 msgid ""
1575 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1576 "other modifiers).  What guestfish actually does is to multiply the number "
1577 "part by the modifier part and pass the result to the C API.  However this "
1578 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1579 "expecting some other unit (eg. megabytes)."
1580 msgstr ""
1581
1582 # type: textblock
1583 #: ../src/guestfs.pod:764
1584 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1585 msgstr ""
1586
1587 # type: verbatim
1588 #: ../src/guestfs.pod:766
1589 #, no-wrap
1590 msgid ""
1591 " lvcreate LV VG 100M\n"
1592 "\n"
1593 msgstr ""
1594
1595 # type: textblock
1596 #: ../src/guestfs.pod:768
1597 msgid ""
1598 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1599 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1600 "megabytes * megabytes) logical volume.  The error message you get from this "
1601 "is also a little obscure."
1602 msgstr ""
1603
1604 # type: textblock
1605 #: ../src/guestfs.pod:773
1606 msgid ""
1607 "This could be fixed in the generator by specially marking parameters and "
1608 "return values which take bytes or other units."
1609 msgstr ""
1610
1611 # type: =item
1612 #: ../src/guestfs.pod:776
1613 msgid "Ambiguity between devices and paths"
1614 msgstr ""
1615
1616 # type: textblock
1617 #: ../src/guestfs.pod:778
1618 msgid ""
1619 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1620 "sdb2>) and a similar pathname.  A file might just happen to be called "
1621 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1622 msgstr ""
1623
1624 # type: textblock
1625 #: ../src/guestfs.pod:783
1626 msgid ""
1627 "In the current API we usually resolve this ambiguity by having two separate "
1628 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1629 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1630 "detecting if the path supplied begins with C</dev/>."
1631 msgstr ""
1632
1633 # type: textblock
1634 #: ../src/guestfs.pod:789
1635 msgid ""
1636 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1637 "make paths/devices into structured names.  One way to do this would be to "
1638 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1639 "aspect of grub.  Another way would be to use a structured type, equivalent "
1640 "to this OCaml type:"
1641 msgstr ""
1642
1643 # type: verbatim
1644 #: ../src/guestfs.pod:795
1645 #, no-wrap
1646 msgid ""
1647 " type path = Path of string | Device of int | Partition of int * int\n"
1648 "\n"
1649 msgstr ""
1650
1651 # type: textblock
1652 #: ../src/guestfs.pod:797
1653 msgid "which would allow you to pass arguments like:"
1654 msgstr ""
1655
1656 # type: verbatim
1657 #: ../src/guestfs.pod:799
1658 #, no-wrap
1659 msgid ""
1660 " Path \"/foo/bar\"\n"
1661 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1662 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1663 " Path \"/dev/sdb2\"    (* not a device *)\n"
1664 "\n"
1665 msgstr ""
1666
1667 # type: textblock
1668 #: ../src/guestfs.pod:804
1669 msgid ""
1670 "As you can see there are still problems to resolve even with this "
1671 "representation.  Also consider how it might work in guestfish."
1672 msgstr ""
1673
1674 # type: =head2
1675 #: ../src/guestfs.pod:809
1676 msgid "PROTOCOL LIMITS"
1677 msgstr ""
1678
1679 # type: textblock
1680 #: ../src/guestfs.pod:811
1681 msgid ""
1682 "Internally libguestfs uses a message-based protocol to pass API calls and "
1683 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1684 "plenty more detail about this).  The maximum message size used by the "
1685 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1686 "aware of this limit.  The API calls which may be affected are individually "
1687 "documented, with a link back to this section of the documentation."
1688 msgstr ""
1689
1690 # type: textblock
1691 #: ../src/guestfs.pod:819
1692 msgid ""
1693 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1694 "a simple string.  Because this string is at some point internally encoded as "
1695 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1696 "the requested file is larger than this then you will get an error."
1697 msgstr ""
1698
1699 # type: textblock
1700 #: ../src/guestfs.pod:825
1701 msgid ""
1702 "In order to transfer large files into and out of the guest filesystem, you "
1703 "need to use particular calls that support this.  The sections L</UPLOADING> "
1704 "and L</DOWNLOADING> document how to do this."
1705 msgstr ""
1706
1707 # type: textblock
1708 #: ../src/guestfs.pod:829
1709 msgid ""
1710 "You might also consider mounting the disk image using our FUSE filesystem "
1711 "support (L<guestmount(1)>)."
1712 msgstr ""
1713
1714 # type: =head2
1715 #: ../src/guestfs.pod:832
1716 msgid "KEYS AND PASSPHRASES"
1717 msgstr ""
1718
1719 # type: textblock
1720 #: ../src/guestfs.pod:834
1721 msgid ""
1722 "Certain libguestfs calls take a parameter that contains sensitive key "
1723 "material, passed in as a C string."
1724 msgstr ""
1725
1726 # type: textblock
1727 #: ../src/guestfs.pod:837
1728 msgid ""
1729 "In the future we would hope to change the libguestfs implementation so that "
1730 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1731 "swap.  However this is I<not> done at the moment, because of the complexity "
1732 "of such an implementation."
1733 msgstr ""
1734
1735 # type: textblock
1736 #: ../src/guestfs.pod:842
1737 msgid ""
1738 "Therefore you should be aware that any key parameter you pass to libguestfs "
1739 "might end up being written out to the swap partition.  If this is a concern, "
1740 "scrub the swap partition or don't use libguestfs on encrypted devices."
1741 msgstr ""
1742
1743 # type: =head1
1744 #: ../src/guestfs.pod:847
1745 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1746 msgstr ""
1747
1748 # type: textblock
1749 #: ../src/guestfs.pod:849
1750 msgid ""
1751 "All high-level libguestfs actions are synchronous.  If you want to use "
1752 "libguestfs asynchronously then you must create a thread."
1753 msgstr ""
1754
1755 # type: textblock
1756 #: ../src/guestfs.pod:852
1757 msgid ""
1758 "Only use the handle from a single thread.  Either use the handle exclusively "
1759 "from one thread, or provide your own mutex so that two threads cannot issue "
1760 "calls on the same handle at the same time."
1761 msgstr ""
1762
1763 # type: textblock
1764 #: ../src/guestfs.pod:856
1765 msgid ""
1766 "See the graphical program guestfs-browser for one possible architecture for "
1767 "multithreaded programs using libvirt and libguestfs."
1768 msgstr ""
1769
1770 # type: =head1
1771 #: ../src/guestfs.pod:859
1772 msgid "PATH"
1773 msgstr ""
1774
1775 # type: textblock
1776 #: ../src/guestfs.pod:861
1777 msgid ""
1778 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1779 "internal path."
1780 msgstr ""
1781
1782 # type: textblock
1783 #: ../src/guestfs.pod:864
1784 msgid ""
1785 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1786 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1787 msgstr ""
1788
1789 # type: textblock
1790 #: ../src/guestfs.pod:867
1791 msgid ""
1792 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1793 "to change the directories that libguestfs will search in.  The value is a "
1794 "colon-separated list of paths.  The current directory is I<not> searched "
1795 "unless the path contains an empty element or C<.>.  For example "
1796 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1797 "then C</usr/lib/guestfs>."
1798 msgstr ""
1799
1800 # type: =head1
1801 #: ../src/guestfs.pod:874
1802 msgid "QEMU WRAPPERS"
1803 msgstr ""
1804
1805 # type: textblock
1806 #: ../src/guestfs.pod:876
1807 msgid ""
1808 "If you want to compile your own qemu, run qemu from a non-standard location, "
1809 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1810 "around qemu."
1811 msgstr ""
1812
1813 # type: textblock
1814 #: ../src/guestfs.pod:880
1815 msgid ""
1816 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1817 "last command in the shell script (so that qemu replaces the shell and "
1818 "becomes the direct child of the libguestfs-using program).  If you don't do "
1819 "this, then the qemu process won't be cleaned up correctly."
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:885
1824 msgid ""
1825 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1826 "source:"
1827 msgstr ""
1828
1829 # type: verbatim
1830 #: ../src/guestfs.pod:888
1831 #, no-wrap
1832 msgid ""
1833 " #!/bin/sh -\n"
1834 " qemudir=/home/rjones/d/qemu\n"
1835 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1836 "\n"
1837 msgstr ""
1838
1839 # type: textblock
1840 #: ../src/guestfs.pod:892
1841 msgid ""
1842 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1843 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1844 "example:"
1845 msgstr ""
1846
1847 # type: verbatim
1848 #: ../src/guestfs.pod:896
1849 #, no-wrap
1850 msgid ""
1851 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1852 "\n"
1853 msgstr ""
1854
1855 # type: textblock
1856 #: ../src/guestfs.pod:898
1857 msgid ""
1858 "Note that libguestfs also calls qemu with the -help and -version options in "
1859 "order to determine features."
1860 msgstr ""
1861
1862 # type: =head2
1863 #: ../src/guestfs.pod:901
1864 msgid "ABI GUARANTEE"
1865 msgstr ""
1866
1867 # type: textblock
1868 #: ../src/guestfs.pod:903
1869 msgid ""
1870 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1871 "actions as outlined in this section.  Although we will deprecate some "
1872 "actions, for example if they get replaced by newer calls, we will keep the "
1873 "old actions forever.  This allows you the developer to program in confidence "
1874 "against the libguestfs API."
1875 msgstr ""
1876
1877 # type: =head1
1878 #: ../src/guestfs.pod:909
1879 msgid "BLOCK DEVICE NAMING"
1880 msgstr ""
1881
1882 # type: textblock
1883 #: ../src/guestfs.pod:911
1884 msgid ""
1885 "In the kernel there is now quite a profusion of schemata for naming block "
1886 "devices (in this context, by I<block device> I mean a physical or virtual "
1887 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1888 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1889 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1890 "for the old IDE driver (particularly for SATA devices) those devices also "
1891 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1892 "paravirtualized drivers.  This has created several different naming systems, "
1893 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1894 msgstr ""
1895
1896 # type: textblock
1897 #: ../src/guestfs.pod:923
1898 msgid ""
1899 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1900 "Linux kernel to access block devices.  We can run a variety of appliances "
1901 "based on a variety of Linux kernels."
1902 msgstr ""
1903
1904 # type: textblock
1905 #: ../src/guestfs.pod:927
1906 msgid ""
1907 "This causes a problem for libguestfs because many API calls use device or "
1908 "partition names.  Working scripts and the recipe (example) scripts that we "
1909 "make available over the internet could fail if the naming scheme changes."
1910 msgstr ""
1911
1912 # type: textblock
1913 #: ../src/guestfs.pod:932
1914 msgid ""
1915 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1916 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1917 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1918 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1919 msgstr ""
1920
1921 # type: textblock
1922 #: ../src/guestfs.pod:938
1923 msgid ""
1924 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1925 "L</guestfs_list_partitions> and similar calls return the true names of the "
1926 "devices and partitions as known to the appliance."
1927 msgstr ""
1928
1929 # type: =head2
1930 #: ../src/guestfs.pod:943
1931 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1932 msgstr ""
1933
1934 # type: textblock
1935 #: ../src/guestfs.pod:945
1936 msgid ""
1937 "Usually this translation is transparent.  However in some (very rare)  cases "
1938 "you may need to know the exact algorithm.  Such cases include where you use "
1939 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1940 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1941 msgstr ""
1942
1943 # type: textblock
1944 #: ../src/guestfs.pod:951
1945 msgid ""
1946 "The algorithm is applied only to I<parameters> which are known to be either "
1947 "device or partition names.  Return values from functions such as L</"
1948 "guestfs_list_devices> are never changed."
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:959
1953 msgid "Is the string a parameter which is a device or partition name?"
1954 msgstr ""
1955
1956 # type: textblock
1957 #: ../src/guestfs.pod:963
1958 msgid "Does the string begin with C</dev/sd>?"
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:967
1963 msgid ""
1964 "Does the named device exist? If so, we use that device.  However if I<not> "
1965 "then we continue with this algorithm."
1966 msgstr ""
1967
1968 # type: textblock
1969 #: ../src/guestfs.pod:972
1970 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:974
1975 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:976
1980 msgid "If that named device exists, use it.  If not, continue."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:980
1985 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:982
1990 msgid "If that named device exists, use it.  If not, return an error."
1991 msgstr ""
1992
1993 # type: =head3
1994 #: ../src/guestfs.pod:986
1995 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1996 msgstr ""
1997
1998 # type: textblock
1999 #: ../src/guestfs.pod:988
2000 msgid ""
2001 "Although the standard naming scheme and automatic translation is useful for "
2002 "simple programs and guestfish scripts, for larger programs it is best not to "
2003 "rely on this mechanism."
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:992
2008 msgid ""
2009 "Where possible for maximum future portability programs using libguestfs "
2010 "should use these future-proof techniques:"
2011 msgstr ""
2012
2013 # type: textblock
2014 #: ../src/guestfs.pod:999
2015 msgid ""
2016 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2017 "device names, and then use those names directly."
2018 msgstr ""
2019
2020 # type: textblock
2021 #: ../src/guestfs.pod:1002
2022 msgid ""
2023 "Since those device names exist by definition, they will never be translated."
2024 msgstr ""
2025
2026 # type: textblock
2027 #: ../src/guestfs.pod:1007
2028 msgid ""
2029 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2030 "filesystem labels."
2031 msgstr ""
2032
2033 # type: =head1
2034 #: ../src/guestfs.pod:1012
2035 msgid "SECURITY"
2036 msgstr ""
2037
2038 # type: textblock
2039 #: ../src/guestfs.pod:1014
2040 msgid ""
2041 "This section discusses security implications of using libguestfs, "
2042 "particularly with untrusted or malicious guests or disk images."
2043 msgstr ""
2044
2045 # type: =head2
2046 #: ../src/guestfs.pod:1017
2047 msgid "GENERAL SECURITY CONSIDERATIONS"
2048 msgstr ""
2049
2050 # type: textblock
2051 #: ../src/guestfs.pod:1019
2052 msgid ""
2053 "Be careful with any files or data that you download from a guest (by "
2054 "\"download\" we mean not just the L</guestfs_download> command but any "
2055 "command that reads files, filenames, directories or anything else from a "
2056 "disk image).  An attacker could manipulate the data to fool your program "
2057 "into doing the wrong thing.  Consider cases such as:"
2058 msgstr ""
2059
2060 # type: textblock
2061 #: ../src/guestfs.pod:1029
2062 msgid "the data (file etc) not being present"
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1033
2067 msgid "being present but empty"
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1037
2072 msgid "being much larger than normal"
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1041
2077 msgid "containing arbitrary 8 bit data"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1045
2082 msgid "being in an unexpected character encoding"
2083 msgstr ""
2084
2085 # type: textblock
2086 #: ../src/guestfs.pod:1049
2087 msgid "containing homoglyphs."
2088 msgstr ""
2089
2090 # type: =head2
2091 #: ../src/guestfs.pod:1053
2092 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2093 msgstr ""
2094
2095 # type: textblock
2096 #: ../src/guestfs.pod:1055
2097 msgid ""
2098 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2099 "(VFS) module can sometimes be escalated into exploits by deliberately "
2100 "creating a malicious, malformed filesystem.  These exploits are very severe "
2101 "for two reasons.  Firstly there are very many filesystem drivers in the "
2102 "kernel, and many of them are infrequently used and not much developer "
2103 "attention has been paid to the code.  Linux userspace helps potential "
2104 "crackers by detecting the filesystem type and automatically choosing the "
2105 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2106 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2107 "exploit (worse in some ways), giving immediate and total access to the "
2108 "system right down to the hardware level."
2109 msgstr ""
2110
2111 # type: textblock
2112 #: ../src/guestfs.pod:1068
2113 msgid ""
2114 "That explains why you should never mount a filesystem from an untrusted "
2115 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2116 "inside a qemu virtual machine, usually running as a non-root user.  The "
2117 "attacker would need to write a filesystem which first exploited the kernel, "
2118 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2119 "the libguestfs protocol, and finally to be as serious as the host kernel "
2120 "exploit it would need to escalate its privileges to root.  This multi-step "
2121 "escalation, performed by a static piece of data, is thought to be extremely "
2122 "hard to do, although we never say 'never' about security issues."
2123 msgstr ""
2124
2125 # type: textblock
2126 #: ../src/guestfs.pod:1079
2127 msgid ""
2128 "In any case callers can reduce the attack surface by forcing the filesystem "
2129 "type when mounting (use L</guestfs_mount_vfs>)."
2130 msgstr ""
2131
2132 # type: =head2
2133 #: ../src/guestfs.pod:1082
2134 msgid "PROTOCOL SECURITY"
2135 msgstr ""
2136
2137 # type: textblock
2138 #: ../src/guestfs.pod:1084
2139 msgid ""
2140 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2141 "defined upper message size.  However a program that uses libguestfs must "
2142 "also take care - for example you can write a program that downloads a binary "
2143 "from a disk image and executes it locally, and no amount of protocol "
2144 "security will save you from the consequences."
2145 msgstr ""
2146
2147 # type: =head2
2148 #: ../src/guestfs.pod:1090
2149 msgid "INSPECTION SECURITY"
2150 msgstr ""
2151
2152 # type: textblock
2153 #: ../src/guestfs.pod:1092
2154 msgid ""
2155 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2156 "directly from the guest, and these could contain any 8 bit data.  Callers "
2157 "should be careful to escape these before printing them to a structured file "
2158 "(for example, use HTML escaping if creating a web page)."
2159 msgstr ""
2160
2161 # type: textblock
2162 #: ../src/guestfs.pod:1098
2163 msgid ""
2164 "Guest configuration may be altered in unusual ways by the administrator of "
2165 "the virtual machine, and may not reflect reality (particularly for untrusted "
2166 "or actively malicious guests).  For example we parse the hostname from "
2167 "configuration files like C</etc/sysconfig/network> that we find in the "
2168 "guest, but the guest administrator can easily manipulate these files to "
2169 "provide the wrong hostname."
2170 msgstr ""
2171
2172 # type: textblock
2173 #: ../src/guestfs.pod:1106
2174 msgid ""
2175 "The inspection API parses guest configuration using two external libraries: "
2176 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2177 "designed to be robust in the face of malicious data, although denial of "
2178 "service attacks are still possible, for example with oversized configuration "
2179 "files."
2180 msgstr ""
2181
2182 # type: =head2
2183 #: ../src/guestfs.pod:1112
2184 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2185 msgstr ""
2186
2187 # type: textblock
2188 #: ../src/guestfs.pod:1114
2189 msgid ""
2190 "Be very cautious about running commands from the guest.  By running a "
2191 "command in the guest, you are giving CPU time to a binary that you do not "
2192 "control, under the same user account as the library, albeit wrapped in qemu "
2193 "virtualization.  More information and alternatives can be found in the "
2194 "section L</RUNNING COMMANDS>."
2195 msgstr ""
2196
2197 # type: =head2
2198 #: ../src/guestfs.pod:1120
2199 msgid "CVE-2010-3851"
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1122
2204 msgid "https://bugzilla.redhat.com/642934"
2205 msgstr ""
2206
2207 # type: textblock
2208 #: ../src/guestfs.pod:1124
2209 msgid ""
2210 "This security bug concerns the automatic disk format detection that qemu "
2211 "does on disk images."
2212 msgstr ""
2213
2214 # type: textblock
2215 #: ../src/guestfs.pod:1127
2216 msgid ""
2217 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2218 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2219 "for one of the known headers, and if none is found then assuming the disk "
2220 "image must be raw."
2221 msgstr ""
2222
2223 # type: textblock
2224 #: ../src/guestfs.pod:1132
2225 msgid ""
2226 "This allows a guest which has been given a raw disk image to write some "
2227 "other header.  At next boot (or when the disk image is accessed by "
2228 "libguestfs) qemu would do autodetection and think the disk image format was, "
2229 "say, qcow2 based on the header written by the guest."
2230 msgstr ""
2231
2232 # type: textblock
2233 #: ../src/guestfs.pod:1137
2234 msgid ""
2235 "This in itself would not be a problem, but qcow2 offers many features, one "
2236 "of which is to allow a disk image to refer to another image (called the "
2237 "\"backing disk\").  It does this by placing the path to the backing disk "
2238 "into the qcow2 header.  This path is not validated and could point to any "
2239 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2240 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2241 "control of the attacker."
2242 msgstr ""
2243
2244 # type: textblock
2245 #: ../src/guestfs.pod:1145
2246 msgid ""
2247 "In libguestfs this is rather hard to exploit except under two circumstances:"
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1152
2252 msgid "You have enabled the network or have opened the disk in write mode."
2253 msgstr ""
2254
2255 # type: textblock
2256 #: ../src/guestfs.pod:1156
2257 msgid ""
2258 "You are also running untrusted code from the guest (see L</RUNNING "
2259 "COMMANDS>)."
2260 msgstr ""
2261
2262 # type: textblock
2263 #: ../src/guestfs.pod:1161
2264 msgid ""
2265 "The way to avoid this is to specify the expected disk format when adding "
2266 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2267 "should always do this if the disk is raw format, and it's a good idea for "
2268 "other cases too."
2269 msgstr ""
2270
2271 # type: textblock
2272 #: ../src/guestfs.pod:1166
2273 msgid ""
2274 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2275 "format is fetched from libvirt and passed through."
2276 msgstr ""
2277
2278 # type: textblock
2279 #: ../src/guestfs.pod:1169
2280 msgid ""
2281 "For libguestfs tools, use the I<--format> command line parameter as "
2282 "appropriate."
2283 msgstr ""
2284
2285 # type: =head1
2286 #: ../src/guestfs.pod:1172
2287 msgid "CONNECTION MANAGEMENT"
2288 msgstr ""
2289
2290 # type: =head2
2291 #: ../src/guestfs.pod:1174
2292 msgid "guestfs_h *"
2293 msgstr ""
2294
2295 # type: textblock
2296 #: ../src/guestfs.pod:1176
2297 msgid ""
2298 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2299 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2300 "handle and release all resources used."
2301 msgstr ""
2302
2303 # type: textblock
2304 #: ../src/guestfs.pod:1180
2305 msgid ""
2306 "For information on using multiple handles and threads, see the section L</"
2307 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2308 msgstr ""
2309
2310 # type: =head2
2311 #: ../src/guestfs.pod:1183
2312 msgid "guestfs_create"
2313 msgstr ""
2314
2315 # type: verbatim
2316 #: ../src/guestfs.pod:1185
2317 #, no-wrap
2318 msgid ""
2319 " guestfs_h *guestfs_create (void);\n"
2320 "\n"
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1187
2325 msgid "Create a connection handle."
2326 msgstr ""
2327
2328 # type: textblock
2329 #: ../src/guestfs.pod:1189
2330 msgid ""
2331 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2332 "on the handle at least once."
2333 msgstr ""
2334
2335 # type: textblock
2336 #: ../src/guestfs.pod:1192
2337 msgid ""
2338 "This function returns a non-NULL pointer to a handle on success or NULL on "
2339 "error."
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1195
2344 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2345 msgstr ""
2346
2347 # type: textblock
2348 #: ../src/guestfs.pod:1197
2349 msgid ""
2350 "You may also want to configure error handling for the handle.  See L</ERROR "
2351 "HANDLING> section below."
2352 msgstr ""
2353
2354 # type: =head2
2355 #: ../src/guestfs.pod:1200
2356 msgid "guestfs_close"
2357 msgstr ""
2358
2359 # type: verbatim
2360 #: ../src/guestfs.pod:1202
2361 #, no-wrap
2362 msgid ""
2363 " void guestfs_close (guestfs_h *g);\n"
2364 "\n"
2365 msgstr ""
2366
2367 # type: textblock
2368 #: ../src/guestfs.pod:1204
2369 msgid "This closes the connection handle and frees up all resources used."
2370 msgstr ""
2371
2372 # type: =head1
2373 #: ../src/guestfs.pod:1206
2374 msgid "ERROR HANDLING"
2375 msgstr ""
2376
2377 # type: textblock
2378 #: ../src/guestfs.pod:1208
2379 msgid ""
2380 "API functions can return errors.  For example, almost all functions that "
2381 "return C<int> will return C<-1> to indicate an error."
2382 msgstr ""
2383
2384 # type: textblock
2385 #: ../src/guestfs.pod:1211
2386 msgid ""
2387 "Additional information is available for errors: an error message string and "
2388 "optionally an error number (errno) if the thing that failed was a system "
2389 "call."
2390 msgstr ""
2391
2392 # type: textblock
2393 #: ../src/guestfs.pod:1215
2394 msgid ""
2395 "You can get at the additional information about the last error on the handle "
2396 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2397 "up an error handler with L</guestfs_set_error_handler>."
2398 msgstr ""
2399
2400 # type: textblock
2401 #: ../src/guestfs.pod:1220
2402 msgid ""
2403 "When the handle is created, a default error handler is installed which "
2404 "prints the error message string to C<stderr>.  For small short-running "
2405 "command line programs it is sufficient to do:"
2406 msgstr ""
2407
2408 # type: verbatim
2409 #: ../src/guestfs.pod:1224
2410 #, no-wrap
2411 msgid ""
2412 " if (guestfs_launch (g) == -1)\n"
2413 "   exit (EXIT_FAILURE);\n"
2414 "\n"
2415 msgstr ""
2416
2417 # type: textblock
2418 #: ../src/guestfs.pod:1227
2419 msgid ""
2420 "since the default error handler will ensure that an error message has been "
2421 "printed to C<stderr> before the program exits."
2422 msgstr ""
2423
2424 # type: textblock
2425 #: ../src/guestfs.pod:1230
2426 msgid ""
2427 "For other programs the caller will almost certainly want to install an "
2428 "alternate error handler or do error handling in-line like this:"
2429 msgstr ""
2430
2431 # type: verbatim
2432 #: ../src/guestfs.pod:1233
2433 #, no-wrap
2434 msgid ""
2435 " g = guestfs_create ();\n"
2436 " \n"
2437 msgstr ""
2438
2439 # type: verbatim
2440 #: ../src/guestfs.pod:1235
2441 #, no-wrap
2442 msgid ""
2443 " /* This disables the default behaviour of printing errors\n"
2444 "    on stderr. */\n"
2445 " guestfs_set_error_handler (g, NULL, NULL);\n"
2446 " \n"
2447 msgstr ""
2448
2449 # type: verbatim
2450 #: ../src/guestfs.pod:1239
2451 #, no-wrap
2452 msgid ""
2453 " if (guestfs_launch (g) == -1) {\n"
2454 "   /* Examine the error message and print it etc. */\n"
2455 "   char *msg = guestfs_last_error (g);\n"
2456 "   int errnum = guestfs_last_errno (g);\n"
2457 "   fprintf (stderr, \"%s\\n\", msg);\n"
2458 "   /* ... */\n"
2459 "  }\n"
2460 "\n"
2461 msgstr ""
2462
2463 # type: textblock
2464 #: ../src/guestfs.pod:1247
2465 msgid ""
2466 "Out of memory errors are handled differently.  The default action is to call "
2467 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2468 "guestfs_set_out_of_memory_handler>."
2469 msgstr ""
2470
2471 # type: textblock
2472 #: ../src/guestfs.pod:1251
2473 msgid ""
2474 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2475 "because there is no handle if this happens there is no way to get additional "
2476 "error information.  However L</guestfs_create> is supposed to be a "
2477 "lightweight operation which can only fail because of insufficient memory (it "
2478 "returns NULL in this case)."
2479 msgstr ""
2480
2481 # type: =head2
2482 #: ../src/guestfs.pod:1257
2483 msgid "guestfs_last_error"
2484 msgstr ""
2485
2486 # type: verbatim
2487 #: ../src/guestfs.pod:1259
2488 #, no-wrap
2489 msgid ""
2490 " const char *guestfs_last_error (guestfs_h *g);\n"
2491 "\n"
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1261
2496 msgid ""
2497 "This returns the last error message that happened on C<g>.  If there has not "
2498 "been an error since the handle was created, then this returns C<NULL>."
2499 msgstr ""
2500
2501 # type: textblock
2502 #: ../src/guestfs.pod:1265
2503 msgid ""
2504 "The lifetime of the returned string is until the next error occurs, or L</"
2505 "guestfs_close> is called."
2506 msgstr ""
2507
2508 # type: =head2
2509 #: ../src/guestfs.pod:1268
2510 msgid "guestfs_last_errno"
2511 msgstr ""
2512
2513 # type: verbatim
2514 #: ../src/guestfs.pod:1270
2515 #, no-wrap
2516 msgid ""
2517 " int guestfs_last_errno (guestfs_h *g);\n"
2518 "\n"
2519 msgstr ""
2520
2521 # type: textblock
2522 #: ../src/guestfs.pod:1272
2523 msgid "This returns the last error number (errno) that happened on C<g>."
2524 msgstr ""
2525
2526 # type: textblock
2527 #: ../src/guestfs.pod:1274
2528 msgid "If successful, an errno integer not equal to zero is returned."
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1276
2533 msgid ""
2534 "If no error, this returns 0.  This call can return 0 in three situations:"
2535 msgstr ""
2536
2537 # type: textblock
2538 #: ../src/guestfs.pod:1283
2539 msgid "There has not been any error on the handle."
2540 msgstr ""
2541
2542 # type: textblock
2543 #: ../src/guestfs.pod:1287
2544 msgid ""
2545 "There has been an error but the errno was meaningless.  This corresponds to "
2546 "the case where the error did not come from a failed system call, but for "
2547 "some other reason."
2548 msgstr ""
2549
2550 # type: textblock
2551 #: ../src/guestfs.pod:1293
2552 msgid ""
2553 "There was an error from a failed system call, but for some reason the errno "
2554 "was not captured and returned.  This usually indicates a bug in libguestfs."
2555 msgstr ""
2556
2557 # type: textblock
2558 #: ../src/guestfs.pod:1299
2559 msgid ""
2560 "Libguestfs tries to convert the errno from inside the applicance into a "
2561 "corresponding errno for the caller (not entirely trivial: the appliance "
2562 "might be running a completely different operating system from the library "
2563 "and error numbers are not standardized across Un*xen).  If this could not be "
2564 "done, then the error is translated to C<EINVAL>.  In practice this should "
2565 "only happen in very rare circumstances."
2566 msgstr ""
2567
2568 # type: =head2
2569 #: ../src/guestfs.pod:1307
2570 msgid "guestfs_set_error_handler"
2571 msgstr ""
2572
2573 # type: verbatim
2574 #: ../src/guestfs.pod:1309
2575 #, no-wrap
2576 msgid ""
2577 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2578 "                                           void *opaque,\n"
2579 "                                           const char *msg);\n"
2580 " void guestfs_set_error_handler (guestfs_h *g,\n"
2581 "                                 guestfs_error_handler_cb cb,\n"
2582 "                                 void *opaque);\n"
2583 "\n"
2584 msgstr ""
2585
2586 # type: textblock
2587 #: ../src/guestfs.pod:1316
2588 msgid ""
2589 "The callback C<cb> will be called if there is an error.  The parameters "
2590 "passed to the callback are an opaque data pointer and the error message "
2591 "string."
2592 msgstr ""
2593
2594 # type: textblock
2595 #: ../src/guestfs.pod:1320
2596 msgid ""
2597 "C<errno> is not passed to the callback.  To get that the callback must call "
2598 "L</guestfs_last_errno>."
2599 msgstr ""
2600
2601 # type: textblock
2602 #: ../src/guestfs.pod:1323
2603 msgid ""
2604 "Note that the message string C<msg> is freed as soon as the callback "
2605 "function returns, so if you want to stash it somewhere you must make your "
2606 "own copy."
2607 msgstr ""
2608
2609 # type: textblock
2610 #: ../src/guestfs.pod:1327
2611 msgid "The default handler prints messages on C<stderr>."
2612 msgstr ""
2613
2614 # type: textblock
2615 #: ../src/guestfs.pod:1329
2616 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2617 msgstr ""
2618
2619 # type: =head2
2620 #: ../src/guestfs.pod:1331
2621 msgid "guestfs_get_error_handler"
2622 msgstr ""
2623
2624 # type: verbatim
2625 #: ../src/guestfs.pod:1333
2626 #, no-wrap
2627 msgid ""
2628 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2629 "                                                     void **opaque_rtn);\n"
2630 "\n"
2631 msgstr ""
2632
2633 # type: textblock
2634 #: ../src/guestfs.pod:1336
2635 msgid "Returns the current error handler callback."
2636 msgstr ""
2637
2638 # type: =head2
2639 #: ../src/guestfs.pod:1338
2640 msgid "guestfs_set_out_of_memory_handler"
2641 msgstr ""
2642
2643 # type: verbatim
2644 #: ../src/guestfs.pod:1340
2645 #, no-wrap
2646 msgid ""
2647 " typedef void (*guestfs_abort_cb) (void);\n"
2648 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2649 "                                        guestfs_abort_cb);\n"
2650 "\n"
2651 msgstr ""
2652
2653 # type: textblock
2654 #: ../src/guestfs.pod:1344
2655 msgid ""
2656 "The callback C<cb> will be called if there is an out of memory situation.  "
2657 "I<Note this callback must not return>."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1347
2662 msgid "The default is to call L<abort(3)>."
2663 msgstr ""
2664
2665 # type: textblock
2666 #: ../src/guestfs.pod:1349
2667 msgid ""
2668 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2669 msgstr ""
2670
2671 # type: =head2
2672 #: ../src/guestfs.pod:1352
2673 msgid "guestfs_get_out_of_memory_handler"
2674 msgstr ""
2675
2676 # type: verbatim
2677 #: ../src/guestfs.pod:1354
2678 #, no-wrap
2679 msgid ""
2680 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2681 "\n"
2682 msgstr ""
2683
2684 # type: textblock
2685 #: ../src/guestfs.pod:1356
2686 msgid "This returns the current out of memory handler."
2687 msgstr ""
2688
2689 # type: =head1
2690 #: ../src/guestfs.pod:1358
2691 msgid "API CALLS"
2692 msgstr ""
2693
2694 # type: textblock
2695 #: ../src/guestfs.pod:1360 ../fish/guestfish.pod:908
2696 msgid "@ACTIONS@"
2697 msgstr ""
2698
2699 # type: =head1
2700 #: ../src/guestfs.pod:1362
2701 msgid "STRUCTURES"
2702 msgstr ""
2703
2704 # type: textblock
2705 #: ../src/guestfs.pod:1364
2706 msgid "@STRUCTS@"
2707 msgstr ""
2708
2709 # type: =head1
2710 #: ../src/guestfs.pod:1366
2711 msgid "AVAILABILITY"
2712 msgstr ""
2713
2714 # type: =head2
2715 #: ../src/guestfs.pod:1368
2716 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2717 msgstr ""
2718
2719 # type: textblock
2720 #: ../src/guestfs.pod:1370
2721 msgid ""
2722 "Using L</guestfs_available> you can test availability of the following "
2723 "groups of functions.  This test queries the appliance to see if the "
2724 "appliance you are currently using supports the functionality."
2725 msgstr ""
2726
2727 # type: textblock
2728 #: ../src/guestfs.pod:1375
2729 msgid "@AVAILABILITY@"
2730 msgstr ""
2731
2732 # type: =head2
2733 #: ../src/guestfs.pod:1377
2734 msgid "GUESTFISH supported COMMAND"
2735 msgstr ""
2736
2737 # type: textblock
2738 #: ../src/guestfs.pod:1379
2739 msgid ""
2740 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2741 "prints out the available groups and whether they are supported by this build "
2742 "of libguestfs.  Note however that you have to do C<run> first."
2743 msgstr ""
2744
2745 # type: =head2
2746 #: ../src/guestfs.pod:1384
2747 msgid "SINGLE CALLS AT COMPILE TIME"
2748 msgstr ""
2749
2750 # type: textblock
2751 #: ../src/guestfs.pod:1386
2752 msgid ""
2753 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2754 "function, such as:"
2755 msgstr ""
2756
2757 # type: verbatim
2758 #: ../src/guestfs.pod:1389
2759 #, no-wrap
2760 msgid ""
2761 " #define LIBGUESTFS_HAVE_DD 1\n"
2762 "\n"
2763 msgstr ""
2764
2765 # type: textblock
2766 #: ../src/guestfs.pod:1391
2767 msgid "if L</guestfs_dd> is available."
2768 msgstr ""
2769
2770 # type: textblock
2771 #: ../src/guestfs.pod:1393
2772 msgid ""
2773 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2774 "function is available at compile time, we recommended using build tools such "
2775 "as autoconf or cmake.  For example in autotools you could use:"
2776 msgstr ""
2777
2778 # type: verbatim
2779 #: ../src/guestfs.pod:1398
2780 #, no-wrap
2781 msgid ""
2782 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2783 " AC_CHECK_FUNCS([guestfs_dd])\n"
2784 "\n"
2785 msgstr ""
2786
2787 # type: textblock
2788 #: ../src/guestfs.pod:1401
2789 msgid ""
2790 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2791 "in your program."
2792 msgstr ""
2793
2794 # type: =head2
2795 #: ../src/guestfs.pod:1404
2796 msgid "SINGLE CALLS AT RUN TIME"
2797 msgstr ""
2798
2799 # type: textblock
2800 #: ../src/guestfs.pod:1406
2801 msgid ""
2802 "Testing at compile time doesn't guarantee that a function really exists in "
2803 "the library.  The reason is that you might be dynamically linked against a "
2804 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2805 "This situation unfortunately results in a segmentation fault, which is a "
2806 "shortcoming of the C dynamic linking system itself."
2807 msgstr ""
2808
2809 # type: textblock
2810 #: ../src/guestfs.pod:1413
2811 msgid ""
2812 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2813 "in this example program (note that you still need the compile time check as "
2814 "well):"
2815 msgstr ""
2816
2817 # type: verbatim
2818 #: ../src/guestfs.pod:1417
2819 #, no-wrap
2820 msgid ""
2821 " #include <stdio.h>\n"
2822 " #include <stdlib.h>\n"
2823 " #include <unistd.h>\n"
2824 " #include <dlfcn.h>\n"
2825 " #include <guestfs.h>\n"
2826 " \n"
2827 msgstr ""
2828
2829 # type: verbatim
2830 #: ../src/guestfs.pod:1423
2831 #, no-wrap
2832 msgid ""
2833 " main ()\n"
2834 " {\n"
2835 " #ifdef LIBGUESTFS_HAVE_DD\n"
2836 "   void *dl;\n"
2837 "   int has_function;\n"
2838 " \n"
2839 msgstr ""
2840
2841 # type: verbatim
2842 #: ../src/guestfs.pod:1429
2843 #, no-wrap
2844 msgid ""
2845 "   /* Test if the function guestfs_dd is really available. */\n"
2846 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2847 "   if (!dl) {\n"
2848 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2849 "     exit (EXIT_FAILURE);\n"
2850 "   }\n"
2851 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2852 "   dlclose (dl);\n"
2853 " \n"
2854 msgstr ""
2855
2856 # type: verbatim
2857 #: ../src/guestfs.pod:1438
2858 #, no-wrap
2859 msgid ""
2860 "   if (!has_function)\n"
2861 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2862 "   else {\n"
2863 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2864 "     /* Now it's safe to call\n"
2865 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2866 "     */\n"
2867 "   }\n"
2868 " #else\n"
2869 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2870 " #endif\n"
2871 "  }\n"
2872 "\n"
2873 msgstr ""
2874
2875 # type: textblock
2876 #: ../src/guestfs.pod:1451
2877 msgid ""
2878 "You may think the above is an awful lot of hassle, and it is.  There are "
2879 "other ways outside of the C linking system to ensure that this kind of "
2880 "incompatibility never arises, such as using package versioning:"
2881 msgstr ""
2882
2883 # type: verbatim
2884 #: ../src/guestfs.pod:1456
2885 #, no-wrap
2886 msgid ""
2887 " Requires: libguestfs >= 1.0.80\n"
2888 "\n"
2889 msgstr ""
2890
2891 # type: =head1
2892 #: ../src/guestfs.pod:1458
2893 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2894 msgstr ""
2895
2896 # type: textblock
2897 #: ../src/guestfs.pod:1460
2898 msgid ""
2899 "A recent feature of the API is the introduction of calls which take optional "
2900 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2901 "takes variable arguments (ie. C<...>), as in this example:"
2902 msgstr ""
2903
2904 # type: verbatim
2905 #: ../src/guestfs.pod:1465
2906 #, no-wrap
2907 msgid ""
2908 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2909 "\n"
2910 msgstr ""
2911
2912 # type: textblock
2913 #: ../src/guestfs.pod:1467
2914 msgid ""
2915 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2916 "call with no optional arguments specified:"
2917 msgstr ""
2918
2919 # type: verbatim
2920 #: ../src/guestfs.pod:1470
2921 #, no-wrap
2922 msgid ""
2923 " guestfs_add_drive_opts (g, filename, -1);\n"
2924 "\n"
2925 msgstr ""
2926
2927 # type: textblock
2928 #: ../src/guestfs.pod:1472
2929 msgid "With a single optional argument:"
2930 msgstr ""
2931
2932 # type: verbatim
2933 #: ../src/guestfs.pod:1474
2934 #, no-wrap
2935 msgid ""
2936 " guestfs_add_drive_opts (g, filename,\n"
2937 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2938 "                         -1);\n"
2939 "\n"
2940 msgstr ""
2941
2942 # type: textblock
2943 #: ../src/guestfs.pod:1478
2944 msgid "With two:"
2945 msgstr ""
2946
2947 # type: verbatim
2948 #: ../src/guestfs.pod:1480
2949 #, no-wrap
2950 msgid ""
2951 " guestfs_add_drive_opts (g, filename,\n"
2952 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2953 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2954 "                         -1);\n"
2955 "\n"
2956 msgstr ""
2957
2958 # type: textblock
2959 #: ../src/guestfs.pod:1485
2960 msgid ""
2961 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2962 "happen!"
2963 msgstr ""
2964
2965 # type: =head2
2966 #: ../src/guestfs.pod:1488
2967 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2968 msgstr ""
2969
2970 # type: textblock
2971 #: ../src/guestfs.pod:1490
2972 msgid ""
2973 "The second variant has the same name with the suffix C<_va>, which works the "
2974 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2975 "example function, this is declared:"
2976 msgstr ""
2977
2978 # type: verbatim
2979 #: ../src/guestfs.pod:1494
2980 #, no-wrap
2981 msgid ""
2982 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2983 "                                va_list args);\n"
2984 "\n"
2985 msgstr ""
2986
2987 # type: =head2
2988 #: ../src/guestfs.pod:1497
2989 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2990 msgstr ""
2991
2992 # type: textblock
2993 #: ../src/guestfs.pod:1499
2994 msgid ""
2995 "The third variant is useful where you need to construct these calls.  You "
2996 "pass in a structure where you fill in the optional fields.  The structure "
2997 "has a bitmask as the first element which you must set to indicate which "
2998 "fields you have filled in.  For our example function the structure and call "
2999 "are declared:"
3000 msgstr ""
3001
3002 # type: verbatim
3003 #: ../src/guestfs.pod:1505
3004 #, no-wrap
3005 msgid ""
3006 " struct guestfs_add_drive_opts_argv {\n"
3007 "   uint64_t bitmask;\n"
3008 "   int readonly;\n"
3009 "   const char *format;\n"
3010 "   /* ... */\n"
3011 " };\n"
3012 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3013 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3014 "\n"
3015 msgstr ""
3016
3017 # type: textblock
3018 #: ../src/guestfs.pod:1514
3019 msgid "You could call it like this:"
3020 msgstr ""
3021
3022 # type: verbatim
3023 #: ../src/guestfs.pod:1516
3024 #, no-wrap
3025 msgid ""
3026 " struct guestfs_add_drive_opts_argv optargs = {\n"
3027 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3028 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3029 "   .readonly = 1,\n"
3030 "   .format = \"qcow2\"\n"
3031 " };\n"
3032 " \n"
3033 msgstr ""
3034
3035 # type: verbatim
3036 #: ../src/guestfs.pod:1523
3037 #, no-wrap
3038 msgid ""
3039 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3040 "\n"
3041 msgstr ""
3042
3043 # type: textblock
3044 #: ../src/guestfs.pod:1525 ../src/guestfs-actions.pod:11
3045 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3046 #: ../fish/guestfish-actions.pod:1255
3047 msgid "Notes:"
3048 msgstr ""
3049
3050 # type: textblock
3051 #: ../src/guestfs.pod:1531
3052 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1536
3057 msgid "You do not need to fill in all fields of the structure."
3058 msgstr ""
3059
3060 # type: textblock
3061 #: ../src/guestfs.pod:1540
3062 msgid ""
3063 "There must be a one-to-one correspondence between fields of the structure "
3064 "that are filled in, and bits set in the bitmask."
3065 msgstr ""
3066
3067 # type: =head2
3068 #: ../src/guestfs.pod:1545
3069 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3070 msgstr ""
3071
3072 # type: textblock
3073 #: ../src/guestfs.pod:1547
3074 msgid ""
3075 "In other languages, optional arguments are expressed in the way that is "
3076 "natural for that language.  We refer you to the language-specific "
3077 "documentation for more details on that."
3078 msgstr ""
3079
3080 # type: textblock
3081 #: ../src/guestfs.pod:1551
3082 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3083 msgstr ""
3084
3085 # type: =head2
3086 #: ../src/guestfs.pod:1553
3087 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3088 msgstr ""
3089
3090 # type: textblock
3091 #: ../src/guestfs.pod:1555
3092 msgid ""
3093 "The child process generates events in some situations.  Current events "
3094 "include: receiving a log message, the child process exits."
3095 msgstr ""
3096
3097 # type: textblock
3098 #: ../src/guestfs.pod:1558
3099 msgid ""
3100 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3101 "types of events."
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1561
3106 msgid ""
3107 "Only I<one callback of each type> can be registered for each handle.  "
3108 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3109 "that type.  Cancel all callbacks of this type by calling this function with "
3110 "C<cb> set to C<NULL>."
3111 msgstr ""
3112
3113 # type: =head2
3114 #: ../src/guestfs.pod:1566
3115 msgid "guestfs_set_log_message_callback"
3116 msgstr ""
3117
3118 # type: verbatim
3119 #: ../src/guestfs.pod:1568
3120 #, no-wrap
3121 msgid ""
3122 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3123 "                                         char *buf, int len);\n"
3124 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3125 "                                        guestfs_log_message_cb cb,\n"
3126 "                                        void *opaque);\n"
3127 "\n"
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1574
3132 msgid ""
3133 "The callback function C<cb> will be called whenever qemu or the guest writes "
3134 "anything to the console."
3135 msgstr ""
3136
3137 # type: textblock
3138 #: ../src/guestfs.pod:1577
3139 msgid "Use this function to capture kernel messages and similar."
3140 msgstr ""
3141
3142 # type: textblock
3143 #: ../src/guestfs.pod:1579
3144 msgid ""
3145 "Normally there is no log message handler, and log messages are just "
3146 "discarded."
3147 msgstr ""
3148
3149 # type: =head2
3150 #: ../src/guestfs.pod:1582
3151 msgid "guestfs_set_subprocess_quit_callback"
3152 msgstr ""
3153
3154 # type: verbatim
3155 #: ../src/guestfs.pod:1584
3156 #, no-wrap
3157 msgid ""
3158 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3159 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3160 "                                            guestfs_subprocess_quit_cb cb,\n"
3161 "                                            void *opaque);\n"
3162 "\n"
3163 msgstr ""
3164
3165 # type: textblock
3166 #: ../src/guestfs.pod:1589
3167 msgid ""
3168 "The callback function C<cb> will be called when the child process quits, "
3169 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3170 "corresponds to a transition from any state to the CONFIG state)."
3171 msgstr ""
3172
3173 # type: =head2
3174 #: ../src/guestfs.pod:1594
3175 msgid "guestfs_set_launch_done_callback"
3176 msgstr ""
3177
3178 # type: verbatim
3179 #: ../src/guestfs.pod:1596
3180 #, no-wrap
3181 msgid ""
3182 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3183 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3184 "                                        guestfs_launch_done_cb cb,\n"
3185 "                                        void *opaque);\n"
3186 "\n"
3187 msgstr ""
3188
3189 # type: textblock
3190 #: ../src/guestfs.pod:1601
3191 msgid ""
3192 "The callback function C<cb> will be called when the child process becomes "
3193 "ready first time after it has been launched.  (This corresponds to a "
3194 "transition from LAUNCHING to the READY state)."
3195 msgstr ""
3196
3197 # type: =head2
3198 #: ../src/guestfs.pod:1605
3199 msgid "guestfs_set_close_callback"
3200 msgstr ""
3201
3202 # type: verbatim
3203 #: ../src/guestfs.pod:1607
3204 #, no-wrap
3205 msgid ""
3206 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3207 " void guestfs_set_close_callback (guestfs_h *g,\n"
3208 "                                  guestfs_close_cb cb,\n"
3209 "                                  void *opaque);\n"
3210 "\n"
3211 msgstr ""
3212
3213 # type: textblock
3214 #: ../src/guestfs.pod:1612
3215 msgid ""
3216 "The callback function C<cb> will be called while the handle is being closed "
3217 "(synchronously from L</guestfs_close>)."
3218 msgstr ""
3219
3220 # type: textblock
3221 #: ../src/guestfs.pod:1615
3222 msgid ""
3223 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3224 "handles that are open when the program exits.  This means that this callback "
3225 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3226 "problems in higher-level languages (eg. if your HLL interpreter has already "
3227 "been cleaned up by the time this is called, and if your callback then jumps "
3228 "into some HLL function)."
3229 msgstr ""
3230
3231 # type: =head2
3232 #: ../src/guestfs.pod:1623
3233 msgid "guestfs_set_progress_callback"
3234 msgstr ""
3235
3236 # type: verbatim
3237 #: ../src/guestfs.pod:1625
3238 #, no-wrap
3239 msgid ""
3240 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3241 "                                      int proc_nr, int serial,\n"
3242 "                                      uint64_t position, uint64_t total);\n"
3243 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3244 "                                     guestfs_progress_cb cb,\n"
3245 "                                     void *opaque);\n"
3246 "\n"
3247 msgstr ""
3248
3249 # type: textblock
3250 #: ../src/guestfs.pod:1632
3251 msgid ""
3252 "Some long-running operations can generate progress messages.  If this "
3253 "callback is registered, then it will be called each time a progress message "
3254 "is generated (usually two seconds after the operation started, and three "
3255 "times per second thereafter until it completes, although the frequency may "
3256 "change in future versions)."
3257 msgstr ""
3258
3259 # type: textblock
3260 #: ../src/guestfs.pod:1638
3261 msgid ""
3262 "The callback receives two numbers: C<position> and C<total>.  The units of "
3263 "C<total> are not defined, although for some operations C<total> may relate "
3264 "in some way to the amount of data to be transferred (eg. in bytes or "
3265 "megabytes), and C<position> may be the portion which has been transferred."
3266 msgstr ""
3267
3268 # type: textblock
3269 #: ../src/guestfs.pod:1644
3270 msgid "The only defined and stable parts of the API are:"
3271 msgstr ""
3272
3273 # type: textblock
3274 #: ../src/guestfs.pod:1650
3275 msgid ""
3276 "The callback can display to the user some type of progress bar or indicator "
3277 "which shows the ratio of C<position>:C<total>."
3278 msgstr ""
3279
3280 # type: textblock
3281 #: ../src/guestfs.pod:1655
3282 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3283 msgstr ""
3284
3285 # type: textblock
3286 #: ../src/guestfs.pod:1659
3287 msgid ""
3288 "If any progress notification is sent during a call, then a final progress "
3289 "notification is always sent when C<position> = C<total>."
3290 msgstr ""
3291
3292 # type: textblock
3293 #: ../src/guestfs.pod:1662
3294 msgid ""
3295 "This is to simplify caller code, so callers can easily set the progress "
3296 "indicator to \"100%\" at the end of the operation, without requiring special "
3297 "code to detect this case."
3298 msgstr ""
3299
3300 # type: textblock
3301 #: ../src/guestfs.pod:1668
3302 msgid ""
3303 "The callback also receives the procedure number and serial number of the "
3304 "call.  These are only useful for debugging protocol issues, and the callback "
3305 "can normally ignore them.  The callback may want to print these numbers in "
3306 "error messages or debugging messages."
3307 msgstr ""
3308
3309 # type: =head1
3310 #: ../src/guestfs.pod:1673
3311 msgid "PRIVATE DATA AREA"
3312 msgstr ""
3313
3314 # type: textblock
3315 #: ../src/guestfs.pod:1675
3316 msgid ""
3317 "You can attach named pieces of private data to the libguestfs handle, and "
3318 "fetch them by name for the lifetime of the handle.  This is called the "
3319 "private data area and is only available from the C API."
3320 msgstr ""
3321
3322 # type: textblock
3323 #: ../src/guestfs.pod:1679
3324 msgid "To attach a named piece of data, use the following call:"
3325 msgstr ""
3326
3327 # type: verbatim
3328 #: ../src/guestfs.pod:1681
3329 #, no-wrap
3330 msgid ""
3331 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3332 "\n"
3333 msgstr ""
3334
3335 # type: textblock
3336 #: ../src/guestfs.pod:1683
3337 msgid ""
3338 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3339 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3340 "overwritten."
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1687
3345 msgid ""
3346 "You can use any C<key> you want, but names beginning with an underscore "
3347 "character are reserved for internal libguestfs purposes (for implementing "
3348 "language bindings).  It is recommended to prefix the name with some unique "
3349 "string to avoid collisions with other users."
3350 msgstr ""
3351
3352 # type: textblock
3353 #: ../src/guestfs.pod:1692
3354 msgid "To retrieve the pointer, use:"
3355 msgstr ""
3356
3357 # type: verbatim
3358 #: ../src/guestfs.pod:1694
3359 #, no-wrap
3360 msgid ""
3361 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3362 "\n"
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1696
3367 msgid ""
3368 "This function returns C<NULL> if either no data is found associated with "
3369 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3370 "C<NULL>."
3371 msgstr ""
3372
3373 # type: textblock
3374 #: ../src/guestfs.pod:1700
3375 msgid ""
3376 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3377 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3378 "all.  In particular, libguestfs does I<not> try to free the data when the "
3379 "handle is closed.  If the data must be freed, then the caller must either "
3380 "free it before calling L</guestfs_close> or must set up a close callback to "
3381 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3382 "can be registered for a handle)."
3383 msgstr ""
3384
3385 # type: textblock
3386 #: ../src/guestfs.pod:1708
3387 msgid ""
3388 "The private data area is implemented using a hash table, and should be "
3389 "reasonably efficient for moderate numbers of keys."
3390 msgstr ""
3391
3392 # type: =end
3393 #: ../src/guestfs.pod:1711 ../src/guestfs.pod:1716
3394 msgid "html"
3395 msgstr ""
3396
3397 # type: textblock
3398 #: ../src/guestfs.pod:1713
3399 msgid ""
3400 "<!-- old anchor for the next section --> <a name="
3401 "\"state_machine_and_low_level_event_api\"/>"
3402 msgstr ""
3403
3404 # type: =head1
3405 #: ../src/guestfs.pod:1718
3406 msgid "ARCHITECTURE"
3407 msgstr ""
3408
3409 # type: textblock
3410 #: ../src/guestfs.pod:1720
3411 msgid ""
3412 "Internally, libguestfs is implemented by running an appliance (a special "
3413 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3414 "process of the main program."
3415 msgstr ""
3416
3417 # type: verbatim
3418 #: ../src/guestfs.pod:1724
3419 #, no-wrap
3420 msgid ""
3421 "  ___________________\n"
3422 " /                   \\\n"
3423 " | main program      |\n"
3424 " |                   |\n"
3425 " |                   |           child process / appliance\n"
3426 " |                   |           __________________________\n"
3427 " |                   |          / qemu                     \\\n"
3428 " +-------------------+   RPC    |      +-----------------+ |\n"
3429 " | libguestfs     <--------------------> guestfsd        | |\n"
3430 " |                   |          |      +-----------------+ |\n"
3431 " \\___________________/          |      | Linux kernel    | |\n"
3432 "                                |      +--^--------------+ |\n"
3433 "                                \\_________|________________/\n"
3434 "                                          |\n"
3435 "                                   _______v______\n"
3436 "                                  /              \\\n"
3437 "                                  | Device or    |\n"
3438 "                                  | disk image   |\n"
3439 "                                  \\______________/\n"
3440 "\n"
3441 msgstr ""
3442
3443 # type: textblock
3444 #: ../src/guestfs.pod:1744
3445 msgid ""
3446 "The library, linked to the main program, creates the child process and hence "
3447 "the appliance in the L</guestfs_launch> function."
3448 msgstr ""
3449
3450 # type: textblock
3451 #: ../src/guestfs.pod:1747
3452 msgid ""
3453 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3454 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3455 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3456 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3457 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3458 "attached to the qemu process which translates device access by the "
3459 "appliance's Linux kernel into accesses to the image."
3460 msgstr ""
3461
3462 # type: textblock
3463 #: ../src/guestfs.pod:1756
3464 msgid ""
3465 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3466 "Although the disk image you are attached to might also be used by some "
3467 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3468 "care if both libguestfs's qemu process and your virtual machine are trying "
3469 "to update the disk image at the same time, since these usually results in "
3470 "massive disk corruption)."
3471 msgstr ""
3472
3473 # type: =head1
3474 #: ../src/guestfs.pod:1763
3475 msgid "STATE MACHINE"
3476 msgstr ""
3477
3478 # type: textblock
3479 #: ../src/guestfs.pod:1765
3480 msgid "libguestfs uses a state machine to model the child process:"
3481 msgstr ""
3482
3483 # type: verbatim
3484 #: ../src/guestfs.pod:1767
3485 #, no-wrap
3486 msgid ""
3487 "                         |\n"
3488 "                    guestfs_create\n"
3489 "                         |\n"
3490 "                         |\n"
3491 "                     ____V_____\n"
3492 "                    /          \\\n"
3493 "                    |  CONFIG  |\n"
3494 "                    \\__________/\n"
3495 "                     ^ ^   ^  \\\n"
3496 "                    /  |    \\  \\ guestfs_launch\n"
3497 "                   /   |    _\\__V______\n"
3498 "                  /    |   /           \\\n"
3499 "                 /     |   | LAUNCHING |\n"
3500 "                /      |   \\___________/\n"
3501 "               /       |       /\n"
3502 "              /        |  guestfs_launch\n"
3503 "             /         |     /\n"
3504 "    ______  /        __|____V\n"
3505 "   /      \\ ------> /        \\\n"
3506 "   | BUSY |         | READY  |\n"
3507 "   \\______/ <------ \\________/\n"
3508 "\n"
3509 msgstr ""
3510
3511 # type: textblock
3512 #: ../src/guestfs.pod:1789
3513 msgid ""
3514 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3515 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3516 "(3) alternating between READY and BUSY as commands are issued to, and "
3517 "carried out by, the child process."
3518 msgstr ""
3519
3520 # type: textblock
3521 #: ../src/guestfs.pod:1794
3522 msgid ""
3523 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3524 "asynchronously at any time (eg. due to some internal error), and that causes "
3525 "the state to transition back to CONFIG."
3526 msgstr ""
3527
3528 # type: textblock
3529 #: ../src/guestfs.pod:1798
3530 msgid ""
3531 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3532 "issued when in the CONFIG state."
3533 msgstr ""
3534
3535 # type: textblock
3536 #: ../src/guestfs.pod:1801
3537 msgid ""
3538 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3539 "L</guestfs_launch> blocks until the child process is READY to accept "
3540 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3541 "moves the state from CONFIG to LAUNCHING while it is running."
3542 msgstr ""
3543
3544 # type: textblock
3545 #: ../src/guestfs.pod:1807
3546 msgid ""
3547 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3548 "state.  These API calls block waiting for the command to be carried out (ie. "
3549 "the state to transition to BUSY and then back to READY).  There are no non-"
3550 "blocking versions, and no way to issue more than one command per handle at "
3551 "the same time."
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1813
3556 msgid ""
3557 "Finally, the child process sends asynchronous messages back to the main "
3558 "program, such as kernel log messages.  You can register a callback to "
3559 "receive these messages."
3560 msgstr ""
3561
3562 # type: =head1
3563 #: ../src/guestfs.pod:1817
3564 msgid "INTERNALS"
3565 msgstr ""
3566
3567 # type: =head2
3568 #: ../src/guestfs.pod:1819
3569 msgid "COMMUNICATION PROTOCOL"
3570 msgstr ""
3571
3572 # type: textblock
3573 #: ../src/guestfs.pod:1821
3574 msgid ""
3575 "Don't rely on using this protocol directly.  This section documents how it "
3576 "currently works, but it may change at any time."
3577 msgstr ""
3578
3579 # type: textblock
3580 #: ../src/guestfs.pod:1824
3581 msgid ""
3582 "The protocol used to talk between the library and the daemon running inside "
3583 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3584 "1014, RFC 1832, RFC 4506)."
3585 msgstr ""
3586
3587 # type: textblock
3588 #: ../src/guestfs.pod:1828
3589 msgid ""
3590 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3591 "this file is automatically generated)."
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1831
3596 msgid ""
3597 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3598 "and C<FileOut> parameters, which are handled with very simple request/reply "
3599 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3600 "parameters, which use the same request and reply messages, but they may also "
3601 "be followed by files sent using a chunked encoding."
3602 msgstr ""
3603
3604 # type: =head3
3605 #: ../src/guestfs.pod:1838
3606 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3607 msgstr ""
3608
3609 # type: textblock
3610 #: ../src/guestfs.pod:1840
3611 msgid "For ordinary functions, the request message is:"
3612 msgstr ""
3613
3614 # type: verbatim
3615 #: ../src/guestfs.pod:1842
3616 #, no-wrap
3617 msgid ""
3618 " total length (header + arguments,\n"
3619 "      but not including the length word itself)\n"
3620 " struct guestfs_message_header (encoded as XDR)\n"
3621 " struct guestfs_<foo>_args (encoded as XDR)\n"
3622 "\n"
3623 msgstr ""
3624
3625 # type: textblock
3626 #: ../src/guestfs.pod:1847
3627 msgid ""
3628 "The total length field allows the daemon to allocate a fixed size buffer "
3629 "into which it slurps the rest of the message.  As a result, the total length "
3630 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3631 "effective size of any request is limited to somewhere under this size."
3632 msgstr ""
3633
3634 # type: textblock
3635 #: ../src/guestfs.pod:1853
3636 msgid ""
3637 "Note also that many functions don't take any arguments, in which case the "
3638 "C<guestfs_I<foo>_args> is completely omitted."
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1856
3643 msgid ""
3644 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3645 "receiver knows what type of args structure to expect, or none at all."
3646 msgstr ""
3647
3648 # type: textblock
3649 #: ../src/guestfs.pod:1860
3650 msgid "The reply message for ordinary functions is:"
3651 msgstr ""
3652
3653 # type: verbatim
3654 #: ../src/guestfs.pod:1862
3655 #, no-wrap
3656 msgid ""
3657 " total length (header + ret,\n"
3658 "      but not including the length word itself)\n"
3659 " struct guestfs_message_header (encoded as XDR)\n"
3660 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3661 "\n"
3662 msgstr ""
3663
3664 # type: textblock
3665 #: ../src/guestfs.pod:1867
3666 msgid ""
3667 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3668 "functions that return no formal return values."
3669 msgstr ""
3670
3671 # type: textblock
3672 #: ../src/guestfs.pod:1870
3673 msgid ""
3674 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3675 msgstr ""
3676
3677 # type: textblock
3678 #: ../src/guestfs.pod:1873
3679 msgid ""
3680 "In the case of an error, a flag is set in the header, and the reply message "
3681 "is slightly changed:"
3682 msgstr ""
3683
3684 # type: verbatim
3685 #: ../src/guestfs.pod:1876
3686 #, no-wrap
3687 msgid ""
3688 " total length (header + error,\n"
3689 "      but not including the length word itself)\n"
3690 " struct guestfs_message_header (encoded as XDR)\n"
3691 " struct guestfs_message_error (encoded as XDR)\n"
3692 "\n"
3693 msgstr ""
3694
3695 # type: textblock
3696 #: ../src/guestfs.pod:1881
3697 msgid ""
3698 "The C<guestfs_message_error> structure contains the error message as a "
3699 "string."
3700 msgstr ""
3701
3702 # type: =head3
3703 #: ../src/guestfs.pod:1884
3704 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3705 msgstr ""
3706
3707 # type: textblock
3708 #: ../src/guestfs.pod:1886
3709 msgid ""
3710 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3711 "The normal request message is sent (see above).  However this is followed by "
3712 "a sequence of file chunks."
3713 msgstr ""
3714
3715 # type: verbatim
3716 #: ../src/guestfs.pod:1890
3717 #, no-wrap
3718 msgid ""
3719 " total length (header + arguments,\n"
3720 "      but not including the length word itself,\n"
3721 "      and not including the chunks)\n"
3722 " struct guestfs_message_header (encoded as XDR)\n"
3723 " struct guestfs_<foo>_args (encoded as XDR)\n"
3724 " sequence of chunks for FileIn param #0\n"
3725 " sequence of chunks for FileIn param #1 etc.\n"
3726 "\n"
3727 msgstr ""
3728
3729 # type: textblock
3730 #: ../src/guestfs.pod:1898
3731 msgid "The \"sequence of chunks\" is:"
3732 msgstr ""
3733
3734 # type: verbatim
3735 #: ../src/guestfs.pod:1900
3736 #, no-wrap
3737 msgid ""
3738 " length of chunk (not including length word itself)\n"
3739 " struct guestfs_chunk (encoded as XDR)\n"
3740 " length of chunk\n"
3741 " struct guestfs_chunk (encoded as XDR)\n"
3742 "   ...\n"
3743 " length of chunk\n"
3744 " struct guestfs_chunk (with data.data_len == 0)\n"
3745 "\n"
3746 msgstr ""
3747
3748 # type: textblock
3749 #: ../src/guestfs.pod:1908
3750 msgid ""
3751 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3752 "is set in the final chunk to indicate either successful completion or early "
3753 "cancellation."
3754 msgstr ""
3755
3756 # type: textblock
3757 #: ../src/guestfs.pod:1912
3758 msgid ""
3759 "At time of writing there are no functions that have more than one FileIn "
3760 "parameter.  However this is (theoretically) supported, by sending the "
3761 "sequence of chunks for each FileIn parameter one after another (from left to "
3762 "right)."
3763 msgstr ""
3764
3765 # type: textblock
3766 #: ../src/guestfs.pod:1917
3767 msgid ""
3768 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3769 "transfer.  The library does this by sending a chunk with a special flag set "
3770 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3771 "RPC, does I<not> send any reply, and goes back to reading the next request."
3772 msgstr ""
3773
3774 # type: textblock
3775 #: ../src/guestfs.pod:1923
3776 msgid ""
3777 "The daemon may also cancel.  It does this by writing a special word "
3778 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3779 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3780 "cancel chunk).  The special word is chosen so that even if cancellation "
3781 "happens right at the end of the transfer (after the library has finished "
3782 "writing and has started listening for the reply), the \"spurious\" cancel "
3783 "flag will not be confused with the reply message."
3784 msgstr ""
3785
3786 # type: textblock
3787 #: ../src/guestfs.pod:1932
3788 msgid ""
3789 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3790 "limit), and also files where the size is not known in advance (eg. from "
3791 "pipes or sockets).  However the chunks are rather small "
3792 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3793 "to keep much in memory."
3794 msgstr ""
3795
3796 # type: =head3
3797 #: ../src/guestfs.pod:1938
3798 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs.pod:1940
3803 msgid ""
3804 "The protocol for FileOut parameters is exactly the same as for FileIn "
3805 "parameters, but with the roles of daemon and library reversed."
3806 msgstr ""
3807
3808 # type: verbatim
3809 #: ../src/guestfs.pod:1943
3810 #, no-wrap
3811 msgid ""
3812 " total length (header + ret,\n"
3813 "      but not including the length word itself,\n"
3814 "      and not including the chunks)\n"
3815 " struct guestfs_message_header (encoded as XDR)\n"
3816 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3817 " sequence of chunks for FileOut param #0\n"
3818 " sequence of chunks for FileOut param #1 etc.\n"
3819 "\n"
3820 msgstr ""
3821
3822 # type: =head3
3823 #: ../src/guestfs.pod:1951
3824 msgid "INITIAL MESSAGE"
3825 msgstr ""
3826
3827 # type: textblock
3828 #: ../src/guestfs.pod:1953
3829 msgid ""
3830 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3831 "which indicates that the guest and daemon is alive.  This is what L</"
3832 "guestfs_launch> waits for."
3833 msgstr ""
3834
3835 # type: =head3
3836 #: ../src/guestfs.pod:1957
3837 msgid "PROGRESS NOTIFICATION MESSAGES"
3838 msgstr ""
3839
3840 # type: textblock
3841 #: ../src/guestfs.pod:1959
3842 msgid ""
3843 "The daemon may send progress notification messages at any time.  These are "
3844 "distinguished by the normal length word being replaced by "
3845 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs.pod:1963
3850 msgid ""
3851 "The library turns them into progress callbacks (see "
3852 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3853 "discards them if not."
3854 msgstr ""
3855
3856 # type: textblock
3857 #: ../src/guestfs.pod:1967
3858 msgid ""
3859 "The daemon self-limits the frequency of progress messages it sends (see "
3860 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3861 "messages."
3862 msgstr ""
3863
3864 # type: =head1
3865 #: ../src/guestfs.pod:1971
3866 msgid "LIBGUESTFS VERSION NUMBERS"
3867 msgstr ""
3868
3869 # type: textblock
3870 #: ../src/guestfs.pod:1973
3871 msgid ""
3872 "Since April 2010, libguestfs has started to make separate development and "
3873 "stable releases, along with corresponding branches in our git repository.  "
3874 "These separate releases can be identified by version number:"
3875 msgstr ""
3876
3877 # type: verbatim
3878 #: ../src/guestfs.pod:1978
3879 #, no-wrap
3880 msgid ""
3881 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3882 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3883 "       |\n"
3884 "       v\n"
3885 " 1  .  3  .  5\n"
3886 " ^           ^\n"
3887 " |           |\n"
3888 " |           `-------- sub-version\n"
3889 " |\n"
3890 " `------ always '1' because we don't change the ABI\n"
3891 "\n"
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs.pod:1989
3896 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3897 msgstr ""
3898
3899 # type: textblock
3900 #: ../src/guestfs.pod:1991
3901 msgid ""
3902 "As time passes we cherry pick fixes from the development branch and backport "
3903 "those into the stable branch, the effect being that the stable branch should "
3904 "get more stable and less buggy over time.  So the stable releases are ideal "
3905 "for people who don't need new features but would just like the software to "
3906 "work."
3907 msgstr ""
3908
3909 # type: textblock
3910 #: ../src/guestfs.pod:1997
3911 msgid "Our criteria for backporting changes are:"
3912 msgstr ""
3913
3914 # type: textblock
3915 #: ../src/guestfs.pod:2003
3916 msgid ""
3917 "Documentation changes which don't affect any code are backported unless the "
3918 "documentation refers to a future feature which is not in stable."
3919 msgstr ""
3920
3921 # type: textblock
3922 #: ../src/guestfs.pod:2009
3923 msgid ""
3924 "Bug fixes which are not controversial, fix obvious problems, and have been "
3925 "well tested are backported."
3926 msgstr ""
3927
3928 # type: textblock
3929 #: ../src/guestfs.pod:2014
3930 msgid ""
3931 "Simple rearrangements of code which shouldn't affect how it works get "
3932 "backported.  This is so that the code in the two branches doesn't get too "
3933 "far out of step, allowing us to backport future fixes more easily."
3934 msgstr ""
3935
3936 # type: textblock
3937 #: ../src/guestfs.pod:2020
3938 msgid ""
3939 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3940 "exceptional case: the new feature is required in order to implement an "
3941 "important bug fix."
3942 msgstr ""
3943
3944 # type: textblock
3945 #: ../src/guestfs.pod:2026
3946 msgid ""
3947 "A new stable branch starts when we think the new features in development are "
3948 "substantial and compelling enough over the current stable branch to warrant "
3949 "it.  When that happens we create new stable and development versions 1.N.0 "
3950 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3951 "stable at this point, but by backporting fixes from development, that branch "
3952 "will stabilize over time."
3953 msgstr ""
3954
3955 # type: =head1
3956 #: ../src/guestfs.pod:2034 ../fish/guestfish.pod:915
3957 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3958 #: ../tools/virt-rescue.pl:255
3959 msgid "ENVIRONMENT VARIABLES"
3960 msgstr ""
3961
3962 # type: =item
3963 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:941
3964 msgid "LIBGUESTFS_APPEND"
3965 msgstr ""
3966
3967 # type: textblock
3968 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:943
3969 msgid "Pass additional options to the guest kernel."
3970 msgstr ""
3971
3972 # type: =item
3973 #: ../src/guestfs.pod:2042 ../fish/guestfish.pod:945
3974 msgid "LIBGUESTFS_DEBUG"
3975 msgstr ""
3976
3977 # type: textblock
3978 #: ../src/guestfs.pod:2044
3979 msgid ""
3980 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3981 "effect as calling C<guestfs_set_verbose (g, 1)>."
3982 msgstr ""
3983
3984 # type: =item
3985 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:950
3986 msgid "LIBGUESTFS_MEMSIZE"
3987 msgstr ""
3988
3989 # type: textblock
3990 #: ../src/guestfs.pod:2049 ../fish/guestfish.pod:952
3991 msgid ""
3992 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3993 msgstr ""
3994
3995 # type: verbatim
3996 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:955
3997 #, no-wrap
3998 msgid ""
3999 " LIBGUESTFS_MEMSIZE=700\n"
4000 "\n"
4001 msgstr ""
4002
4003 # type: =item
4004 #: ../src/guestfs.pod:2054 ../fish/guestfish.pod:957
4005 msgid "LIBGUESTFS_PATH"
4006 msgstr ""
4007
4008 # type: textblock
4009 #: ../src/guestfs.pod:2056
4010 msgid ""
4011 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4012 "the discussion of paths in section PATH above."
4013 msgstr ""
4014
4015 # type: =item
4016 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:962
4017 msgid "LIBGUESTFS_QEMU"
4018 msgstr ""
4019
4020 # type: textblock
4021 #: ../src/guestfs.pod:2061 ../fish/guestfish.pod:964
4022 msgid ""
4023 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4024 "which was found at compile time by the configure script is used."
4025 msgstr ""
4026
4027 # type: textblock
4028 #: ../src/guestfs.pod:2065
4029 msgid "See also L</QEMU WRAPPERS> above."
4030 msgstr ""
4031
4032 # type: =item
4033 #: ../src/guestfs.pod:2067 ../fish/guestfish.pod:968
4034 msgid "LIBGUESTFS_TRACE"
4035 msgstr ""
4036
4037 # type: textblock
4038 #: ../src/guestfs.pod:2069
4039 msgid ""
4040 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4041 "effect as calling C<guestfs_set_trace (g, 1)>."
4042 msgstr ""
4043
4044 # type: =item
4045 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:977
4046 msgid "TMPDIR"
4047 msgstr ""
4048
4049 # type: textblock
4050 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:979
4051 msgid "Location of temporary directory, defaults to C</tmp>."
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:981
4056 msgid ""
4057 "If libguestfs was compiled to use the supermin appliance then the real "
4058 "appliance is cached in this directory, shared between all handles belonging "
4059 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4060 "use in case C</tmp> is not large enough."
4061 msgstr ""
4062
4063 # type: =head1
4064 #: ../src/guestfs.pod:2084 ../fish/guestfish.pod:1039
4065 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4066 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484
4067 #: ../tools/virt-df.pl:640 ../tools/virt-resize.pl:1485
4068 #: ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:281
4069 #: ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534
4070 #: ../tools/virt-list-partitions.pl:257
4071 msgid "SEE ALSO"
4072 msgstr ""
4073
4074 # type: textblock
4075 #: ../src/guestfs.pod:2086
4076 msgid ""
4077 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
4078 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
4079 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
4080 "rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)"
4081 ">, L<hivex(3)>, L<http://libguestfs.org/>."
4082 msgstr ""
4083
4084 # type: textblock
4085 #: ../src/guestfs.pod:2105
4086 msgid ""
4087 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4088 "(8)>, L<disktype(1)>."
4089 msgstr ""
4090
4091 # type: =head1
4092 #: ../src/guestfs.pod:2112 ../tools/virt-win-reg.pl:499
4093 #: ../tools/virt-make-fs.pl:548
4094 msgid "BUGS"
4095 msgstr ""
4096
4097 # type: textblock
4098 #: ../src/guestfs.pod:2114
4099 msgid "To get a list of bugs against libguestfs use this link:"
4100 msgstr ""
4101
4102 # type: textblock
4103 #: ../src/guestfs.pod:2116
4104 msgid ""
4105 "L<https://bugzilla.redhat.com/buglist.cgi?"
4106 "component=libguestfs&product=Virtualization+Tools>"
4107 msgstr ""
4108
4109 # type: textblock
4110 #: ../src/guestfs.pod:2118
4111 msgid "To report a new bug against libguestfs use this link:"
4112 msgstr ""
4113
4114 # type: textblock
4115 #: ../src/guestfs.pod:2120
4116 msgid ""
4117 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4118 "component=libguestfs&product=Virtualization+Tools>"
4119 msgstr ""
4120
4121 # type: textblock
4122 #: ../src/guestfs.pod:2122
4123 msgid "When reporting a bug, please check:"
4124 msgstr ""
4125
4126 # type: textblock
4127 #: ../src/guestfs.pod:2128
4128 msgid "That the bug hasn't been reported already."
4129 msgstr ""
4130
4131 # type: textblock
4132 #: ../src/guestfs.pod:2132
4133 msgid "That you are testing a recent version."
4134 msgstr ""
4135
4136 # type: textblock
4137 #: ../src/guestfs.pod:2136
4138 msgid "Describe the bug accurately, and give a way to reproduce it."
4139 msgstr ""
4140
4141 # type: textblock
4142 #: ../src/guestfs.pod:2140
4143 msgid ""
4144 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4145 "bug report."
4146 msgstr ""
4147
4148 # type: =head1
4149 #: ../src/guestfs.pod:2145 ../fish/guestfish.pod:1058
4150 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4151 msgid "AUTHORS"
4152 msgstr ""
4153
4154 # type: textblock
4155 #: ../src/guestfs.pod:2147 ../fish/guestfish.pod:1060
4156 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4157 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4158 msgstr ""
4159
4160 # type: =head1
4161 #: ../src/guestfs.pod:2149 ../fish/guestfish.pod:1062
4162 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4163 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4164 #: ../tools/virt-df.pl:653 ../tools/virt-resize.pl:1510
4165 #: ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:296
4166 #: ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563
4167 #: ../tools/virt-list-partitions.pl:273
4168 msgid "COPYRIGHT"
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs.pod:2151 ../fish/guestfish.pod:1064
4173 #: ../fuse/guestmount.pod:250
4174 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4175 msgstr ""
4176
4177 # type: textblock
4178 #: ../src/guestfs.pod:2154
4179 msgid ""
4180 "This library is free software; you can redistribute it and/or modify it "
4181 "under the terms of the GNU Lesser General Public License as published by the "
4182 "Free Software Foundation; either version 2 of the License, or (at your "
4183 "option) any later version."
4184 msgstr ""
4185
4186 # type: textblock
4187 #: ../src/guestfs.pod:2159
4188 msgid ""
4189 "This library is distributed in the hope that it will be useful, but WITHOUT "
4190 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4191 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4192 "for more details."
4193 msgstr ""
4194
4195 # type: textblock
4196 #: ../src/guestfs.pod:2164
4197 msgid ""
4198 "You should have received a copy of the GNU Lesser General Public License "
4199 "along with this library; if not, write to the Free Software Foundation, "
4200 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4201 msgstr ""
4202
4203 # type: =head2
4204 #: ../src/guestfs-actions.pod:1
4205 msgid "guestfs_add_cdrom"
4206 msgstr ""
4207
4208 # type: verbatim
4209 #: ../src/guestfs-actions.pod:3
4210 #, no-wrap
4211 msgid ""
4212 " int\n"
4213 " guestfs_add_cdrom (guestfs_h *g,\n"
4214 "                    const char *filename);\n"
4215 "\n"
4216 msgstr ""
4217
4218 # type: textblock
4219 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4220 msgid "This function adds a virtual CD-ROM disk image to the guest."
4221 msgstr ""
4222
4223 # type: textblock
4224 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4225 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4226 msgstr ""
4227
4228 # type: textblock
4229 #: ../src/guestfs-actions.pod:17
4230 msgid ""
4231 "This call checks for the existence of C<filename>.  This stops you from "
4232 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4233 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4234 "instead."
4235 msgstr ""
4236
4237 # type: textblock
4238 #: ../src/guestfs-actions.pod:24
4239 msgid ""
4240 "If you just want to add an ISO file (often you use this as an efficient way "
4241 "to transfer large files into the guest), then you should probably use "
4242 "C<guestfs_add_drive_ro> instead."
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4247 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4248 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4249 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4250 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4251 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4252 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4253 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4254 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4255 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4256 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4257 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4258 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4259 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4260 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4261 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4262 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4263 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4264 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4265 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4266 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4267 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182
4268 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217
4269 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356
4270 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383
4271 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434
4272 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526
4273 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566
4274 #: ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621
4275 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659
4276 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706
4277 #: ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758
4278 #: ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786
4279 #: ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896
4280 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929
4281 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998
4282 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032
4283 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060
4284 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092
4285 #: ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161
4286 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211
4287 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242
4288 #: ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272
4289 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302
4290 #: ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352
4291 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386
4292 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452
4293 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503
4294 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548
4295 #: ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700
4296 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779
4297 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829
4298 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912
4299 #: ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939
4300 #: ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247
4301 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273
4302 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299
4303 #: ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329
4304 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369
4305 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406
4306 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447
4307 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487
4308 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523
4309 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575
4310 #: ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618
4311 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648
4312 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704
4313 #: ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753
4314 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982
4315 #: ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007
4316 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042
4317 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068
4318 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096
4319 #: ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172
4320 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204
4321 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234
4322 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290
4323 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345
4324 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376
4325 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436
4326 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573
4327 #: ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642
4328 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700
4329 #: ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787
4330 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879
4331 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4332 msgid "This function returns 0 on success or -1 on error."
4333 msgstr ""
4334
4335 # type: textblock
4336 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4337 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4338 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4339 msgid ""
4340 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4341 "instead."
4342 msgstr ""
4343
4344 # type: textblock
4345 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4346 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4347 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4348 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990
4349 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4350 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4351 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4352 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4353 msgid ""
4354 "Deprecated functions will not be removed from the API, but the fact that "
4355 "they are deprecated indicates that there are problems with correct use of "
4356 "these functions."
4357 msgstr ""
4358
4359 # type: textblock
4360 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4361 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4362 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4363 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199
4364 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408
4365 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635
4366 #: ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223
4367 #: ../src/guestfs-actions.pod:6735
4368 msgid "(Added in 0.3)"
4369 msgstr ""
4370
4371 # type: =head2
4372 #: ../src/guestfs-actions.pod:41
4373 msgid "guestfs_add_domain"
4374 msgstr ""
4375
4376 # type: verbatim
4377 #: ../src/guestfs-actions.pod:43
4378 #, no-wrap
4379 msgid ""
4380 " int\n"
4381 " guestfs_add_domain (guestfs_h *g,\n"
4382 "                     const char *dom,\n"
4383 "                     ...);\n"
4384 "\n"
4385 msgstr ""
4386
4387 # type: textblock
4388 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4389 msgid ""
4390 "You may supply a list of optional arguments to this call.  Use zero or more "
4391 "of the following pairs of parameters, and terminate the list with C<-1> on "
4392 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4393 msgstr ""
4394
4395 # type: verbatim
4396 #: ../src/guestfs-actions.pod:53
4397 #, no-wrap
4398 msgid ""
4399 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4400 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4401 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4402 "\n"
4403 msgstr ""
4404
4405 # type: textblock
4406 #: ../src/guestfs-actions.pod:57
4407 msgid ""
4408 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4409 "It works by connecting to libvirt, requesting the domain and domain XML from "
4410 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4411 "one."
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4416 msgid ""
4417 "The number of disks added is returned.  This operation is atomic: if an "
4418 "error is returned, then no disks are added."
4419 msgstr ""
4420
4421 # type: textblock
4422 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4423 msgid ""
4424 "This function does some minimal checks to make sure the libvirt domain is "
4425 "not running (unless C<readonly> is true).  In a future version we will try "
4426 "to acquire the libvirt lock on each disk."
4427 msgstr ""
4428
4429 # type: textblock
4430 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4431 msgid ""
4432 "Disks must be accessible locally.  This often means that adding disks from a "
4433 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4434 "unless those disks are accessible via the same device path locally too."
4435 msgstr ""
4436
4437 # type: textblock
4438 #: ../src/guestfs-actions.pod:74
4439 msgid ""
4440 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4441 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4442 "libvirt URI (or one set through an environment variable, see the libvirt "
4443 "documentation for full details).  If you are using the C API directly then "
4444 "it is more flexible to create the libvirt connection object yourself, get "
4445 "the domain object, and call C<guestfs_add_libvirt_dom>."
4446 msgstr ""
4447
4448 # type: textblock
4449 #: ../src/guestfs-actions.pod:82
4450 msgid ""
4451 "The other optional parameters are passed directly through to "
4452 "C<guestfs_add_drive_opts>."
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4457 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4458 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4459 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4460 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4461 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4462 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4463 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630
4464 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475
4465 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009
4466 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331
4467 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759
4468 #: ../src/guestfs-actions.pod:6772
4469 msgid "On error this function returns -1."
4470 msgstr ""
4471
4472 # type: =head2
4473 #: ../src/guestfs-actions.pod:87
4474 msgid "guestfs_add_domain_va"
4475 msgstr ""
4476
4477 # type: verbatim
4478 #: ../src/guestfs-actions.pod:89
4479 #, no-wrap
4480 msgid ""
4481 " int\n"
4482 " guestfs_add_domain_va (guestfs_h *g,\n"
4483 "                        const char *dom,\n"
4484 "                        va_list args);\n"
4485 "\n"
4486 msgstr ""
4487
4488 # type: textblock
4489 #: ../src/guestfs-actions.pod:94
4490 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4491 msgstr ""
4492
4493 # type: textblock
4494 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4495 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4496 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4497 msgstr ""
4498
4499 # type: =head2
4500 #: ../src/guestfs-actions.pod:98
4501 msgid "guestfs_add_domain_argv"
4502 msgstr ""
4503
4504 # type: verbatim
4505 #: ../src/guestfs-actions.pod:100
4506 #, no-wrap
4507 msgid ""
4508 " int\n"
4509 " guestfs_add_domain_argv (guestfs_h *g,\n"
4510 "                          const char *dom,\n"
4511 "                          const struct guestfs_add_domain_argv *optargs);\n"
4512 "\n"
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:105
4517 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4518 msgstr ""
4519
4520 # type: =head2
4521 #: ../src/guestfs-actions.pod:109
4522 msgid "guestfs_add_drive"
4523 msgstr ""
4524
4525 # type: verbatim
4526 #: ../src/guestfs-actions.pod:111
4527 #, no-wrap
4528 msgid ""
4529 " int\n"
4530 " guestfs_add_drive (guestfs_h *g,\n"
4531 "                    const char *filename);\n"
4532 "\n"
4533 msgstr ""
4534
4535 # type: textblock
4536 #: ../src/guestfs-actions.pod:115
4537 msgid ""
4538 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4539 "optional parameters, so the disk is added writable, with the format being "
4540 "detected automatically."
4541 msgstr ""
4542
4543 # type: textblock
4544 #: ../src/guestfs-actions.pod:119
4545 msgid ""
4546 "Automatic detection of the format opens you up to a potential security hole "
4547 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4548 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4549 "you should think about replacing calls to this function with calls to "
4550 "C<guestfs_add_drive_opts>, and specifying the format."
4551 msgstr ""
4552
4553 # type: =head2
4554 #: ../src/guestfs-actions.pod:130
4555 msgid "guestfs_add_drive_opts"
4556 msgstr ""
4557
4558 # type: verbatim
4559 #: ../src/guestfs-actions.pod:132
4560 #, no-wrap
4561 msgid ""
4562 " int\n"
4563 " guestfs_add_drive_opts (guestfs_h *g,\n"
4564 "                         const char *filename,\n"
4565 "                         ...);\n"
4566 "\n"
4567 msgstr ""
4568
4569 # type: verbatim
4570 #: ../src/guestfs-actions.pod:142
4571 #, no-wrap
4572 msgid ""
4573 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4574 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4575 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4576 "\n"
4577 msgstr ""
4578
4579 # type: textblock
4580 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4581 msgid ""
4582 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4583 "The first time you call this function, the disk appears as C</dev/sda>, the "
4584 "second time as C</dev/sdb>, and so on."
4585 msgstr ""
4586
4587 # type: textblock
4588 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4589 msgid ""
4590 "You don't necessarily need to be root when using libguestfs.  However you "
4591 "obviously do need sufficient permissions to access the filename for whatever "
4592 "operations you want to perform (ie. read access if you just want to read the "
4593 "image or write access if you want to modify the image)."
4594 msgstr ""
4595
4596 # type: textblock
4597 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4598 msgid "This call checks that C<filename> exists."
4599 msgstr ""
4600
4601 # type: textblock
4602 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4603 msgid "The optional arguments are:"
4604 msgstr ""
4605
4606 # type: =item
4607 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4608 msgid "C<readonly>"
4609 msgstr ""
4610
4611 # type: textblock
4612 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4613 msgid ""
4614 "If true then the image is treated as read-only.  Writes are still allowed, "
4615 "but they are stored in a temporary snapshot overlay which is discarded at "
4616 "the end.  The disk that you add is not modified."
4617 msgstr ""
4618
4619 # type: =item
4620 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4621 msgid "C<format>"
4622 msgstr ""
4623
4624 # type: textblock
4625 #: ../src/guestfs-actions.pod:171
4626 msgid ""
4627 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4628 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4629 "Possible formats include C<raw> and C<qcow2>."
4630 msgstr ""
4631
4632 # type: textblock
4633 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4634 msgid ""
4635 "Automatic detection of the format opens you up to a potential security hole "
4636 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4637 "RHBZ#642934.  Specifying the format closes this security hole."
4638 msgstr ""
4639
4640 # type: =item
4641 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4642 msgid "C<iface>"
4643 msgstr ""
4644
4645 # type: textblock
4646 #: ../src/guestfs-actions.pod:182
4647 msgid ""
4648 "This rarely-used option lets you emulate the behaviour of the deprecated "
4649 "C<guestfs_add_drive_with_if> call (q.v.)"
4650 msgstr ""
4651
4652 # type: textblock
4653 #: ../src/guestfs-actions.pod:189
4654 msgid "(Added in 1.5.23)"
4655 msgstr ""
4656
4657 # type: =head2
4658 #: ../src/guestfs-actions.pod:191
4659 msgid "guestfs_add_drive_opts_va"
4660 msgstr ""
4661
4662 # type: verbatim
4663 #: ../src/guestfs-actions.pod:193
4664 #, no-wrap
4665 msgid ""
4666 " int\n"
4667 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4668 "                            const char *filename,\n"
4669 "                            va_list args);\n"
4670 "\n"
4671 msgstr ""
4672
4673 # type: textblock
4674 #: ../src/guestfs-actions.pod:198
4675 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4676 msgstr ""
4677
4678 # type: =head2
4679 #: ../src/guestfs-actions.pod:202
4680 msgid "guestfs_add_drive_opts_argv"
4681 msgstr ""
4682
4683 # type: verbatim
4684 #: ../src/guestfs-actions.pod:204
4685 #, no-wrap
4686 msgid ""
4687 " int\n"
4688 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4689 "                              const char *filename,\n"
4690 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4691 "\n"
4692 msgstr ""
4693
4694 # type: textblock
4695 #: ../src/guestfs-actions.pod:209
4696 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4697 msgstr ""
4698
4699 # type: =head2
4700 #: ../src/guestfs-actions.pod:213
4701 msgid "guestfs_add_drive_ro"
4702 msgstr ""
4703
4704 # type: verbatim
4705 #: ../src/guestfs-actions.pod:215
4706 #, no-wrap
4707 msgid ""
4708 " int\n"
4709 " guestfs_add_drive_ro (guestfs_h *g,\n"
4710 "                       const char *filename);\n"
4711 "\n"
4712 msgstr ""
4713
4714 # type: textblock
4715 #: ../src/guestfs-actions.pod:219
4716 msgid ""
4717 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4718 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4719 "disk is added read-only, with the format being detected automatically."
4720 msgstr ""
4721
4722 # type: textblock
4723 #: ../src/guestfs-actions.pod:226
4724 msgid "(Added in 1.0.38)"
4725 msgstr ""
4726
4727 # type: =head2
4728 #: ../src/guestfs-actions.pod:228
4729 msgid "guestfs_add_drive_ro_with_if"
4730 msgstr ""
4731
4732 # type: verbatim
4733 #: ../src/guestfs-actions.pod:230
4734 #, no-wrap
4735 msgid ""
4736 " int\n"
4737 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4738 "                               const char *filename,\n"
4739 "                               const char *iface);\n"
4740 "\n"
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:235
4745 msgid ""
4746 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4747 "QEMU interface emulation to use at run time."
4748 msgstr ""
4749
4750 # type: textblock
4751 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4752 #: ../src/guestfs-actions.pod:2303
4753 msgid "(Added in 1.0.84)"
4754 msgstr ""
4755
4756 # type: =head2
4757 #: ../src/guestfs-actions.pod:249
4758 msgid "guestfs_add_drive_with_if"
4759 msgstr ""
4760
4761 # type: verbatim
4762 #: ../src/guestfs-actions.pod:251
4763 #, no-wrap
4764 msgid ""
4765 " int\n"
4766 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4767 "                            const char *filename,\n"
4768 "                            const char *iface);\n"
4769 "\n"
4770 msgstr ""
4771
4772 # type: textblock
4773 #: ../src/guestfs-actions.pod:256
4774 msgid ""
4775 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4776 "QEMU interface emulation to use at run time."
4777 msgstr ""
4778
4779 # type: =head2
4780 #: ../src/guestfs-actions.pod:270
4781 msgid "guestfs_aug_clear"
4782 msgstr ""
4783
4784 # type: verbatim
4785 #: ../src/guestfs-actions.pod:272
4786 #, no-wrap
4787 msgid ""
4788 " int\n"
4789 " guestfs_aug_clear (guestfs_h *g,\n"
4790 "                    const char *augpath);\n"
4791 "\n"
4792 msgstr ""
4793
4794 # type: textblock
4795 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4796 msgid ""
4797 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4798 "L<augtool(1)> C<clear> command."
4799 msgstr ""
4800
4801 # type: textblock
4802 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4803 msgid "(Added in 1.3.4)"
4804 msgstr ""
4805
4806 # type: =head2
4807 #: ../src/guestfs-actions.pod:283
4808 msgid "guestfs_aug_close"
4809 msgstr ""
4810
4811 # type: verbatim
4812 #: ../src/guestfs-actions.pod:285
4813 #, no-wrap
4814 msgid ""
4815 " int\n"
4816 " guestfs_aug_close (guestfs_h *g);\n"
4817 "\n"
4818 msgstr ""
4819
4820 # type: textblock
4821 #: ../src/guestfs-actions.pod:288
4822 msgid ""
4823 "Close the current Augeas handle and free up any resources used by it.  After "
4824 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4825 "any other Augeas functions."
4826 msgstr ""
4827
4828 # type: textblock
4829 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4830 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4831 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4832 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4833 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4834 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4835 #: ../src/guestfs-actions.pod:5086
4836 msgid "(Added in 0.7)"
4837 msgstr ""
4838
4839 # type: =head2
4840 #: ../src/guestfs-actions.pod:297
4841 msgid "guestfs_aug_defnode"
4842 msgstr ""
4843
4844 # type: verbatim
4845 #: ../src/guestfs-actions.pod:299
4846 #, no-wrap
4847 msgid ""
4848 " struct guestfs_int_bool *\n"
4849 " guestfs_aug_defnode (guestfs_h *g,\n"
4850 "                      const char *name,\n"
4851 "                      const char *expr,\n"
4852 "                      const char *val);\n"
4853 "\n"
4854 msgstr ""
4855
4856 # type: textblock
4857 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4858 msgid ""
4859 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4860 msgstr ""
4861
4862 # type: textblock
4863 #: ../src/guestfs-actions.pod:308
4864 msgid ""
4865 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4866 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4867 "containing that single node."
4868 msgstr ""
4869
4870 # type: textblock
4871 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4872 msgid ""
4873 "On success this returns a pair containing the number of nodes in the "
4874 "nodeset, and a boolean flag if a node was created."
4875 msgstr ""
4876
4877 # type: textblock
4878 #: ../src/guestfs-actions.pod:316
4879 msgid ""
4880 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4881 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4882 msgstr ""
4883
4884 # type: =head2
4885 #: ../src/guestfs-actions.pod:322
4886 msgid "guestfs_aug_defvar"
4887 msgstr ""
4888
4889 # type: verbatim
4890 #: ../src/guestfs-actions.pod:324
4891 #, no-wrap
4892 msgid ""
4893 " int\n"
4894 " guestfs_aug_defvar (guestfs_h *g,\n"
4895 "                     const char *name,\n"
4896 "                     const char *expr);\n"
4897 "\n"
4898 msgstr ""
4899
4900 # type: textblock
4901 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4902 msgid ""
4903 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4904 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4905 msgstr ""
4906
4907 # type: textblock
4908 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4909 msgid ""
4910 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4911 "evaluates to something which is not a nodeset."
4912 msgstr ""
4913
4914 # type: =head2
4915 #: ../src/guestfs-actions.pod:340
4916 msgid "guestfs_aug_get"
4917 msgstr ""
4918
4919 # type: verbatim
4920 #: ../src/guestfs-actions.pod:342
4921 #, no-wrap
4922 msgid ""
4923 " char *\n"
4924 " guestfs_aug_get (guestfs_h *g,\n"
4925 "                  const char *augpath);\n"
4926 "\n"
4927 msgstr ""
4928
4929 # type: textblock
4930 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4931 msgid ""
4932 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4933 "node, the C<value> is returned."
4934 msgstr ""
4935
4936 # type: textblock
4937 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4938 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4939 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4940 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4941 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4942 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4943 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4944 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4945 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4946 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
4947 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712
4948 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763
4949 #: ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846
4950 #: ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678
4951 #: ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958
4952 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814
4953 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162
4954 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774
4955 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807
4956 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495
4957 #: ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532
4958 #: ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4959 msgid ""
4960 "This function returns a string, or NULL on error.  I<The caller must free "
4961 "the returned string after use>."
4962 msgstr ""
4963
4964 # type: =head2
4965 #: ../src/guestfs-actions.pod:354
4966 msgid "guestfs_aug_init"
4967 msgstr ""
4968
4969 # type: verbatim
4970 #: ../src/guestfs-actions.pod:356
4971 #, no-wrap
4972 msgid ""
4973 " int\n"
4974 " guestfs_aug_init (guestfs_h *g,\n"
4975 "                   const char *root,\n"
4976 "                   int flags);\n"
4977 "\n"
4978 msgstr ""
4979
4980 # type: textblock
4981 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4982 msgid ""
4983 "Create a new Augeas handle for editing configuration files.  If there was "
4984 "any previous Augeas handle associated with this guestfs session, then it is "
4985 "closed."
4986 msgstr ""
4987
4988 # type: textblock
4989 #: ../src/guestfs-actions.pod:365
4990 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4991 msgstr ""
4992
4993 # type: textblock
4994 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4995 msgid ""
4996 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4997 msgstr ""
4998
4999 # type: textblock
5000 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
5001 msgid ""
5002 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5003 "logical I<or> of the following integers:"
5004 msgstr ""
5005
5006 # type: =item
5007 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5008 msgid "C<AUG_SAVE_BACKUP> = 1"
5009 msgstr ""
5010
5011 # type: textblock
5012 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5013 msgid "Keep the original file with a C<.augsave> extension."
5014 msgstr ""
5015
5016 # type: =item
5017 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5018 msgid "C<AUG_SAVE_NEWFILE> = 2"
5019 msgstr ""
5020
5021 # type: textblock
5022 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5023 msgid ""
5024 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5025 "original.  Overrides C<AUG_SAVE_BACKUP>."
5026 msgstr ""
5027
5028 # type: =item
5029 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5030 msgid "C<AUG_TYPE_CHECK> = 4"
5031 msgstr ""
5032
5033 # type: textblock
5034 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5035 msgid "Typecheck lenses (can be expensive)."
5036 msgstr ""
5037
5038 # type: =item
5039 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5040 msgid "C<AUG_NO_STDINC> = 8"
5041 msgstr ""
5042
5043 # type: textblock
5044 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5045 msgid "Do not use standard load path for modules."
5046 msgstr ""
5047
5048 # type: =item
5049 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5050 msgid "C<AUG_SAVE_NOOP> = 16"
5051 msgstr ""
5052
5053 # type: textblock
5054 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5055 msgid "Make save a no-op, just record what would have been changed."
5056 msgstr ""
5057
5058 # type: =item
5059 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5060 msgid "C<AUG_NO_LOAD> = 32"
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:400
5065 msgid "Do not load the tree in C<guestfs_aug_init>."
5066 msgstr ""
5067
5068 # type: textblock
5069 #: ../src/guestfs-actions.pod:404
5070 msgid "To close the handle, you can call C<guestfs_aug_close>."
5071 msgstr ""
5072
5073 # type: textblock
5074 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5075 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5076 msgstr ""
5077
5078 # type: =head2
5079 #: ../src/guestfs-actions.pod:412
5080 msgid "guestfs_aug_insert"
5081 msgstr ""
5082
5083 # type: verbatim
5084 #: ../src/guestfs-actions.pod:414
5085 #, no-wrap
5086 msgid ""
5087 " int\n"
5088 " guestfs_aug_insert (guestfs_h *g,\n"
5089 "                     const char *augpath,\n"
5090 "                     const char *label,\n"
5091 "                     int before);\n"
5092 "\n"
5093 msgstr ""
5094
5095 # type: textblock
5096 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5097 msgid ""
5098 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5099 "or after C<path> (depending on the boolean flag C<before>)."
5100 msgstr ""
5101
5102 # type: textblock
5103 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5104 msgid ""
5105 "C<path> must match exactly one existing node in the tree, and C<label> must "
5106 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5107 msgstr ""
5108
5109 # type: =head2
5110 #: ../src/guestfs-actions.pod:432
5111 msgid "guestfs_aug_load"
5112 msgstr ""
5113
5114 # type: verbatim
5115 #: ../src/guestfs-actions.pod:434
5116 #, no-wrap
5117 msgid ""
5118 " int\n"
5119 " guestfs_aug_load (guestfs_h *g);\n"
5120 "\n"
5121 msgstr ""
5122
5123 # type: textblock
5124 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5125 msgid "Load files into the tree."
5126 msgstr ""
5127
5128 # type: textblock
5129 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5130 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5131 msgstr ""
5132
5133 # type: =head2
5134 #: ../src/guestfs-actions.pod:446
5135 msgid "guestfs_aug_ls"
5136 msgstr ""
5137
5138 # type: verbatim
5139 #: ../src/guestfs-actions.pod:448
5140 #, no-wrap
5141 msgid ""
5142 " char **\n"
5143 " guestfs_aug_ls (guestfs_h *g,\n"
5144 "                 const char *augpath);\n"
5145 "\n"
5146 msgstr ""
5147
5148 # type: textblock
5149 #: ../src/guestfs-actions.pod:452
5150 msgid ""
5151 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5152 "sorting the resulting nodes into alphabetical order."
5153 msgstr ""
5154
5155 # type: textblock
5156 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5157 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5158 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5159 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5160 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5161 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5162 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5163 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5164 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782
5165 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248
5166 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415
5167 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436
5168 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082
5169 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847
5170 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963
5171 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133
5172 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625
5173 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837
5174 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941
5175 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006
5176 #: ../src/guestfs-actions.pod:7025
5177 msgid ""
5178 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5179 ">), or NULL if there was an error.  I<The caller must free the strings and "
5180 "the array after use>."
5181 msgstr ""
5182
5183 # type: textblock
5184 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5185 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5186 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102
5187 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711
5188 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931
5189 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440
5190 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275
5191 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301
5192 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347
5193 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589
5194 #: ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
5195 msgid "(Added in 0.8)"
5196 msgstr ""
5197
5198 # type: =head2
5199 #: ../src/guestfs-actions.pod:461
5200 msgid "guestfs_aug_match"
5201 msgstr ""
5202
5203 # type: verbatim
5204 #: ../src/guestfs-actions.pod:463
5205 #, no-wrap
5206 msgid ""
5207 " char **\n"
5208 " guestfs_aug_match (guestfs_h *g,\n"
5209 "                    const char *augpath);\n"
5210 "\n"
5211 msgstr ""
5212
5213 # type: textblock
5214 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5215 msgid ""
5216 "Returns a list of paths which match the path expression C<path>.  The "
5217 "returned paths are sufficiently qualified so that they match exactly one "
5218 "node in the current tree."
5219 msgstr ""
5220
5221 # type: =head2
5222 #: ../src/guestfs-actions.pod:477
5223 msgid "guestfs_aug_mv"
5224 msgstr ""
5225
5226 # type: verbatim
5227 #: ../src/guestfs-actions.pod:479
5228 #, no-wrap
5229 msgid ""
5230 " int\n"
5231 " guestfs_aug_mv (guestfs_h *g,\n"
5232 "                 const char *src,\n"
5233 "                 const char *dest);\n"
5234 "\n"
5235 msgstr ""
5236
5237 # type: textblock
5238 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5239 msgid ""
5240 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5241 "C<dest> is overwritten if it exists."
5242 msgstr ""
5243
5244 # type: =head2
5245 #: ../src/guestfs-actions.pod:491
5246 msgid "guestfs_aug_rm"
5247 msgstr ""
5248
5249 # type: verbatim
5250 #: ../src/guestfs-actions.pod:493
5251 #, no-wrap
5252 msgid ""
5253 " int\n"
5254 " guestfs_aug_rm (guestfs_h *g,\n"
5255 "                 const char *augpath);\n"
5256 "\n"
5257 msgstr ""
5258
5259 # type: textblock
5260 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5261 msgid "Remove C<path> and all of its children."
5262 msgstr ""
5263
5264 # type: textblock
5265 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5266 msgid "On success this returns the number of entries which were removed."
5267 msgstr ""
5268
5269 # type: =head2
5270 #: ../src/guestfs-actions.pod:505
5271 msgid "guestfs_aug_save"
5272 msgstr ""
5273
5274 # type: verbatim
5275 #: ../src/guestfs-actions.pod:507
5276 #, no-wrap
5277 msgid ""
5278 " int\n"
5279 " guestfs_aug_save (guestfs_h *g);\n"
5280 "\n"
5281 msgstr ""
5282
5283 # type: textblock
5284 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5285 msgid "This writes all pending changes to disk."
5286 msgstr ""
5287
5288 # type: textblock
5289 #: ../src/guestfs-actions.pod:512
5290 msgid ""
5291 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5292 "are saved."
5293 msgstr ""
5294
5295 # type: =head2
5296 #: ../src/guestfs-actions.pod:519
5297 msgid "guestfs_aug_set"
5298 msgstr ""
5299
5300 # type: verbatim
5301 #: ../src/guestfs-actions.pod:521
5302 #, no-wrap
5303 msgid ""
5304 " int\n"
5305 " guestfs_aug_set (guestfs_h *g,\n"
5306 "                  const char *augpath,\n"
5307 "                  const char *val);\n"
5308 "\n"
5309 msgstr ""
5310
5311 # type: textblock
5312 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5313 msgid "Set the value associated with C<path> to C<val>."
5314 msgstr ""
5315
5316 # type: textblock
5317 #: ../src/guestfs-actions.pod:528
5318 msgid ""
5319 "In the Augeas API, it is possible to clear a node by setting the value to "
5320 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5321 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5322 msgstr ""
5323
5324 # type: =head2
5325 #: ../src/guestfs-actions.pod:537
5326 msgid "guestfs_available"
5327 msgstr ""
5328
5329 # type: verbatim
5330 #: ../src/guestfs-actions.pod:539
5331 #, no-wrap
5332 msgid ""
5333 " int\n"
5334 " guestfs_available (guestfs_h *g,\n"
5335 "                    char *const *groups);\n"
5336 "\n"
5337 msgstr ""
5338
5339 # type: textblock
5340 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5341 msgid ""
5342 "This command is used to check the availability of some groups of "
5343 "functionality in the appliance, which not all builds of the libguestfs "
5344 "appliance will be able to provide."
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:547
5349 msgid ""
5350 "The libguestfs groups, and the functions that those groups correspond to, "
5351 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5352 "runtime by calling C<guestfs_available_all_groups>."
5353 msgstr ""
5354
5355 # type: textblock
5356 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5357 msgid ""
5358 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5359 "\"]> would check for the availability of the Linux inotify functions and "
5360 "Augeas (configuration file editing) functions."
5361 msgstr ""
5362
5363 # type: textblock
5364 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5365 msgid "The command returns no error if I<all> requested groups are available."
5366 msgstr ""
5367
5368 # type: textblock
5369 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5370 msgid ""
5371 "It fails with an error if one or more of the requested groups is unavailable "
5372 "in the appliance."
5373 msgstr ""
5374
5375 # type: textblock
5376 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5377 msgid ""
5378 "If an unknown group name is included in the list of groups then an error is "
5379 "always returned."
5380 msgstr ""
5381
5382 # type: textblock
5383 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5384 msgid "I<Notes:>"
5385 msgstr ""
5386
5387 # type: textblock
5388 #: ../src/guestfs-actions.pod:571
5389 msgid "You must call C<guestfs_launch> before calling this function."
5390 msgstr ""
5391
5392 # type: textblock
5393 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5394 msgid ""
5395 "The reason is because we don't know what groups are supported by the "
5396 "appliance/daemon until it is running and can be queried."
5397 msgstr ""
5398
5399 # type: textblock
5400 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5401 msgid ""
5402 "If a group of functions is available, this does not necessarily mean that "
5403 "they will work.  You still have to check for errors when calling individual "
5404 "API functions even if they are available."
5405 msgstr ""
5406
5407 # type: textblock
5408 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5409 msgid ""
5410 "It is usually the job of distro packagers to build complete functionality "
5411 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5412 "with all requirements satisfied, will support everything."
5413 msgstr ""
5414
5415 # type: textblock
5416 #: ../src/guestfs-actions.pod:593
5417 msgid ""
5418 "This call was added in version C<1.0.80>.  In previous versions of "
5419 "libguestfs all you could do would be to speculatively execute a command to "
5420 "find out if the daemon implemented it.  See also C<guestfs_version>."
5421 msgstr ""
5422
5423 # type: textblock
5424 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5425 msgid "(Added in 1.0.80)"
5426 msgstr ""
5427
5428 # type: =head2
5429 #: ../src/guestfs-actions.pod:604
5430 msgid "guestfs_available_all_groups"
5431 msgstr ""
5432
5433 # type: verbatim
5434 #: ../src/guestfs-actions.pod:606
5435 #, no-wrap
5436 msgid ""
5437 " char **\n"
5438 " guestfs_available_all_groups (guestfs_h *g);\n"
5439 "\n"
5440 msgstr ""
5441
5442 # type: textblock
5443 #: ../src/guestfs-actions.pod:609
5444 msgid ""
5445 "This command returns a list of all optional groups that this daemon knows "
5446 "about.  Note this returns both supported and unsupported groups.  To find "
5447 "out which ones the daemon can actually support you have to call "
5448 "C<guestfs_available> on each member of the returned list."
5449 msgstr ""
5450
5451 # type: textblock
5452 #: ../src/guestfs-actions.pod:615
5453 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5454 msgstr ""
5455
5456 # type: textblock
5457 #: ../src/guestfs-actions.pod:621
5458 msgid "(Added in 1.3.15)"
5459 msgstr ""
5460
5461 # type: =head2
5462 #: ../src/guestfs-actions.pod:623
5463 msgid "guestfs_base64_in"
5464 msgstr ""
5465
5466 # type: verbatim
5467 #: ../src/guestfs-actions.pod:625
5468 #, no-wrap
5469 msgid ""
5470 " int\n"
5471 " guestfs_base64_in (guestfs_h *g,\n"
5472 "                    const char *base64file,\n"
5473 "                    const char *filename);\n"
5474 "\n"
5475 msgstr ""
5476
5477 # type: textblock
5478 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5479 msgid ""
5480 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5481 msgstr ""
5482
5483 # type: textblock
5484 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5485 msgid "(Added in 1.3.5)"
5486 msgstr ""
5487
5488 # type: =head2
5489 #: ../src/guestfs-actions.pod:637
5490 msgid "guestfs_base64_out"
5491 msgstr ""
5492
5493 # type: verbatim
5494 #: ../src/guestfs-actions.pod:639
5495 #, no-wrap
5496 msgid ""
5497 " int\n"
5498 " guestfs_base64_out (guestfs_h *g,\n"
5499 "                     const char *filename,\n"
5500 "                     const char *base64file);\n"
5501 "\n"
5502 msgstr ""
5503
5504 # type: textblock
5505 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5506 msgid ""
5507 "This command downloads the contents of C<filename>, writing it out to local "
5508 "file C<base64file> encoded as base64."
5509 msgstr ""
5510
5511 # type: =head2
5512 #: ../src/guestfs-actions.pod:651
5513 msgid "guestfs_blockdev_flushbufs"
5514 msgstr ""
5515
5516 # type: verbatim
5517 #: ../src/guestfs-actions.pod:653
5518 #, no-wrap
5519 msgid ""
5520 " int\n"
5521 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5522 "                             const char *device);\n"
5523 "\n"
5524 msgstr ""
5525
5526 # type: textblock
5527 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5528 msgid ""
5529 "This tells the kernel to flush internal buffers associated with C<device>."
5530 msgstr ""
5531
5532 # type: textblock
5533 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5534 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5535 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5536 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5537 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5538 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5539 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5540 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5541 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5542 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5543 msgid "This uses the L<blockdev(8)> command."
5544 msgstr ""
5545
5546 # type: textblock
5547 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5548 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5549 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5550 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5551 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5552 msgid "(Added in 0.9.3)"
5553 msgstr ""
5554
5555 # type: =head2
5556 #: ../src/guestfs-actions.pod:666
5557 msgid "guestfs_blockdev_getbsz"
5558 msgstr ""
5559
5560 # type: verbatim
5561 #: ../src/guestfs-actions.pod:668
5562 #, no-wrap
5563 msgid ""
5564 " int\n"
5565 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5566 "                          const char *device);\n"
5567 "\n"
5568 msgstr ""
5569
5570 # type: textblock
5571 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5572 msgid "This returns the block size of a device."
5573 msgstr ""
5574
5575 # type: textblock
5576 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5577 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5578 msgid ""
5579 "(Note this is different from both I<size in blocks> and I<filesystem block "
5580 "size>)."
5581 msgstr ""
5582
5583 # type: =head2
5584 #: ../src/guestfs-actions.pod:683
5585 msgid "guestfs_blockdev_getro"
5586 msgstr ""
5587
5588 # type: verbatim
5589 #: ../src/guestfs-actions.pod:685
5590 #, no-wrap
5591 msgid ""
5592 " int\n"
5593 " guestfs_blockdev_getro (guestfs_h *g,\n"
5594 "                         const char *device);\n"
5595 "\n"
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5600 msgid ""
5601 "Returns a boolean indicating if the block device is read-only (true if read-"
5602 "only, false if not)."
5603 msgstr ""
5604
5605 # type: textblock
5606 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5607 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5608 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5609 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5610 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5611 #: ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024
5612 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053
5613 #: ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084
5614 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114
5615 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141
5616 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171
5617 #: ../src/guestfs-actions.pod:4585
5618 msgid "This function returns a C truth value on success or -1 on error."
5619 msgstr ""
5620
5621 # type: =head2
5622 #: ../src/guestfs-actions.pod:698
5623 msgid "guestfs_blockdev_getsize64"
5624 msgstr ""
5625
5626 # type: verbatim
5627 #: ../src/guestfs-actions.pod:700
5628 #, no-wrap
5629 msgid ""
5630 " int64_t\n"
5631 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5632 "                             const char *device);\n"
5633 "\n"
5634 msgstr ""
5635
5636 # type: textblock
5637 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5638 msgid "This returns the size of the device in bytes."
5639 msgstr ""
5640
5641 # type: textblock
5642 #: ../src/guestfs-actions.pod:706
5643 msgid "See also C<guestfs_blockdev_getsz>."
5644 msgstr ""
5645
5646 # type: =head2
5647 #: ../src/guestfs-actions.pod:714
5648 msgid "guestfs_blockdev_getss"
5649 msgstr ""
5650
5651 # type: verbatim
5652 #: ../src/guestfs-actions.pod:716
5653 #, no-wrap
5654 msgid ""
5655 " int\n"
5656 " guestfs_blockdev_getss (guestfs_h *g,\n"
5657 "                         const char *device);\n"
5658 "\n"
5659 msgstr ""
5660
5661 # type: textblock
5662 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5663 msgid ""
5664 "This returns the size of sectors on a block device.  Usually 512, but can be "
5665 "larger for modern devices."
5666 msgstr ""
5667
5668 # type: textblock
5669 #: ../src/guestfs-actions.pod:723
5670 msgid ""
5671 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5672 "that)."
5673 msgstr ""
5674
5675 # type: =head2
5676 #: ../src/guestfs-actions.pod:732
5677 msgid "guestfs_blockdev_getsz"
5678 msgstr ""
5679
5680 # type: verbatim
5681 #: ../src/guestfs-actions.pod:734
5682 #, no-wrap
5683 msgid ""
5684 " int64_t\n"
5685 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5686 "                         const char *device);\n"
5687 "\n"
5688 msgstr ""
5689
5690 # type: textblock
5691 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5692 msgid ""
5693 "This returns the size of the device in units of 512-byte sectors (even if "
5694 "the sectorsize isn't 512 bytes ... weird)."
5695 msgstr ""
5696
5697 # type: textblock
5698 #: ../src/guestfs-actions.pod:741
5699 msgid ""
5700 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5701 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5702 msgstr ""
5703
5704 # type: =head2
5705 #: ../src/guestfs-actions.pod:751
5706 msgid "guestfs_blockdev_rereadpt"
5707 msgstr ""
5708
5709 # type: verbatim
5710 #: ../src/guestfs-actions.pod:753
5711 #, no-wrap
5712 msgid ""
5713 " int\n"
5714 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5715 "                            const char *device);\n"
5716 "\n"
5717 msgstr ""
5718
5719 # type: textblock
5720 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5721 msgid "Reread the partition table on C<device>."
5722 msgstr ""
5723
5724 # type: =head2
5725 #: ../src/guestfs-actions.pod:765
5726 msgid "guestfs_blockdev_setbsz"
5727 msgstr ""
5728
5729 # type: verbatim
5730 #: ../src/guestfs-actions.pod:767
5731 #, no-wrap
5732 msgid ""
5733 " int\n"
5734 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5735 "                          const char *device,\n"
5736 "                          int blocksize);\n"
5737 "\n"
5738 msgstr ""
5739
5740 # type: textblock
5741 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5742 msgid "This sets the block size of a device."
5743 msgstr ""
5744
5745 # type: =head2
5746 #: ../src/guestfs-actions.pod:783
5747 msgid "guestfs_blockdev_setro"
5748 msgstr ""
5749
5750 # type: verbatim
5751 #: ../src/guestfs-actions.pod:785
5752 #, no-wrap
5753 msgid ""
5754 " int\n"
5755 " guestfs_blockdev_setro (guestfs_h *g,\n"
5756 "                         const char *device);\n"
5757 "\n"
5758 msgstr ""
5759
5760 # type: textblock
5761 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5762 msgid "Sets the block device named C<device> to read-only."
5763 msgstr ""
5764
5765 # type: =head2
5766 #: ../src/guestfs-actions.pod:797
5767 msgid "guestfs_blockdev_setrw"
5768 msgstr ""
5769
5770 # type: verbatim
5771 #: ../src/guestfs-actions.pod:799
5772 #, no-wrap
5773 msgid ""
5774 " int\n"
5775 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5776 "                         const char *device);\n"
5777 "\n"
5778 msgstr ""
5779
5780 # type: textblock
5781 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5782 msgid "Sets the block device named C<device> to read-write."
5783 msgstr ""
5784
5785 # type: =head2
5786 #: ../src/guestfs-actions.pod:811
5787 msgid "guestfs_case_sensitive_path"
5788 msgstr ""
5789
5790 # type: verbatim
5791 #: ../src/guestfs-actions.pod:813
5792 #, no-wrap
5793 msgid ""
5794 " char *\n"
5795 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5796 "                              const char *path);\n"
5797 "\n"
5798 msgstr ""
5799
5800 # type: textblock
5801 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5802 msgid ""
5803 "This can be used to resolve case insensitive paths on a filesystem which is "
5804 "case sensitive.  The use case is to resolve paths which you have read from "
5805 "Windows configuration files or the Windows Registry, to the true path."
5806 msgstr ""
5807
5808 # type: textblock
5809 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5810 msgid ""
5811 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5812 "(and probably others), which is that although the underlying filesystem is "
5813 "case-insensitive, the driver exports the filesystem to Linux as case-"
5814 "sensitive."
5815 msgstr ""
5816
5817 # type: textblock
5818 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5819 msgid ""
5820 "One consequence of this is that special directories such as C<c:\\windows> "
5821 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5822 "precise details of how they were created.  In Windows itself this would not "
5823 "be a problem."
5824 msgstr ""
5825
5826 # type: textblock
5827 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5828 msgid ""
5829 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5830 "#posixfilenames1>"
5831 msgstr ""
5832
5833 # type: textblock
5834 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5835 msgid ""
5836 "This function resolves the true case of each element in the path and returns "
5837 "the case-sensitive path."
5838 msgstr ""
5839
5840 # type: textblock
5841 #: ../src/guestfs-actions.pod:839
5842 msgid ""
5843 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5844 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5845 "how the directories were originally created under Windows)."
5846 msgstr ""
5847
5848 # type: textblock
5849 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5850 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5851 msgstr ""
5852
5853 # type: textblock
5854 #: ../src/guestfs-actions.pod:847
5855 msgid "See also C<guestfs_realpath>."
5856 msgstr ""
5857
5858 # type: textblock
5859 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5860 msgid "(Added in 1.0.75)"
5861 msgstr ""
5862
5863 # type: =head2
5864 #: ../src/guestfs-actions.pod:854
5865 msgid "guestfs_cat"
5866 msgstr ""
5867
5868 # type: verbatim
5869 #: ../src/guestfs-actions.pod:856
5870 #, no-wrap
5871 msgid ""
5872 " char *\n"
5873 " guestfs_cat (guestfs_h *g,\n"
5874 "              const char *path);\n"
5875 "\n"
5876 msgstr ""
5877
5878 # type: textblock
5879 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072
5880 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5881 msgid "Return the contents of the file named C<path>."
5882 msgstr ""
5883
5884 # type: textblock
5885 #: ../src/guestfs-actions.pod:862
5886 msgid ""
5887 "Note that this function cannot correctly handle binary files (specifically, "
5888 "files containing C<\\0> character which is treated as end of string).  For "
5889 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5890 "functions which have a more complex interface."
5891 msgstr ""
5892
5893 # type: textblock
5894 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5895 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5896 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5897 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5898 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5899 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5900 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5901 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880
5902 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037
5903 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912
5904 #: ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113
5905 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789
5906 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841
5907 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945
5908 #: ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010
5909 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582
5910 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5911 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5912 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5913 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5914 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5915 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5916 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5917 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5918 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5919 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5920 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5921 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5922 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5923 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5924 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5925 msgid ""
5926 "Because of the message protocol, there is a transfer limit of somewhere "
5927 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5928 msgstr ""
5929
5930 # type: textblock
5931 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252
5932 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331
5933 #: ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824
5934 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960
5935 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676
5936 #: ../src/guestfs-actions.pod:6690
5937 msgid "(Added in 0.4)"
5938 msgstr ""
5939
5940 # type: =head2
5941 #: ../src/guestfs-actions.pod:875
5942 msgid "guestfs_checksum"
5943 msgstr ""
5944
5945 # type: verbatim
5946 #: ../src/guestfs-actions.pod:877
5947 #, no-wrap
5948 msgid ""
5949 " char *\n"
5950 " guestfs_checksum (guestfs_h *g,\n"
5951 "                   const char *csumtype,\n"
5952 "                   const char *path);\n"
5953 "\n"
5954 msgstr ""
5955
5956 # type: textblock
5957 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5958 msgid ""
5959 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5960 msgstr ""
5961
5962 # type: textblock
5963 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5964 msgid ""
5965 "The type of checksum to compute is given by the C<csumtype> parameter which "
5966 "must have one of the following values:"
5967 msgstr ""
5968
5969 # type: =item
5970 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5971 msgid "C<crc>"
5972 msgstr ""
5973
5974 # type: textblock
5975 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5976 msgid ""
5977 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5978 "C<cksum> command."
5979 msgstr ""
5980
5981 # type: =item
5982 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5983 msgid "C<md5>"
5984 msgstr ""
5985
5986 # type: textblock
5987 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5988 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5989 msgstr ""
5990
5991 # type: =item
5992 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5993 msgid "C<sha1>"
5994 msgstr ""
5995
5996 # type: textblock
5997 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5998 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5999 msgstr ""
6000
6001 # type: =item
6002 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
6003 msgid "C<sha224>"
6004 msgstr ""
6005
6006 # type: textblock
6007 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6008 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6009 msgstr ""
6010
6011 # type: =item
6012 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6013 msgid "C<sha256>"
6014 msgstr ""
6015
6016 # type: textblock
6017 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6018 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6019 msgstr ""
6020
6021 # type: =item
6022 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6023 msgid "C<sha384>"
6024 msgstr ""
6025
6026 # type: textblock
6027 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6028 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6029 msgstr ""
6030
6031 # type: =item
6032 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6033 msgid "C<sha512>"
6034 msgstr ""
6035
6036 # type: textblock
6037 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6038 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6039 msgstr ""
6040
6041 # type: textblock
6042 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6043 msgid "The checksum is returned as a printable string."
6044 msgstr ""
6045
6046 # type: textblock
6047 #: ../src/guestfs-actions.pod:923
6048 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:925
6053 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6054 msgstr ""
6055
6056 # type: textblock
6057 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6058 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026
6059 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116
6060 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
6061 msgid "(Added in 1.0.2)"
6062 msgstr ""
6063
6064 # type: =head2
6065 #: ../src/guestfs-actions.pod:932
6066 msgid "guestfs_checksum_device"
6067 msgstr ""
6068
6069 # type: verbatim
6070 #: ../src/guestfs-actions.pod:934
6071 #, no-wrap
6072 msgid ""
6073 " char *\n"
6074 " guestfs_checksum_device (guestfs_h *g,\n"
6075 "                          const char *csumtype,\n"
6076 "                          const char *device);\n"
6077 "\n"
6078 msgstr ""
6079
6080 # type: textblock
6081 #: ../src/guestfs-actions.pod:939
6082 msgid ""
6083 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6084 "device named C<device>.  For the types of checksums supported see the "
6085 "C<guestfs_checksum> command."
6086 msgstr ""
6087
6088 # type: textblock
6089 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491
6090 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587
6091 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781
6092 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306
6093 #: ../src/guestfs-actions.pod:6702
6094 msgid "(Added in 1.3.2)"
6095 msgstr ""
6096
6097 # type: =head2
6098 #: ../src/guestfs-actions.pod:948
6099 msgid "guestfs_checksums_out"
6100 msgstr ""
6101
6102 # type: verbatim
6103 #: ../src/guestfs-actions.pod:950
6104 #, no-wrap
6105 msgid ""
6106 " int\n"
6107 " guestfs_checksums_out (guestfs_h *g,\n"
6108 "                        const char *csumtype,\n"
6109 "                        const char *directory,\n"
6110 "                        const char *sumsfile);\n"
6111 "\n"
6112 msgstr ""
6113
6114 # type: textblock
6115 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6116 msgid ""
6117 "This command computes the checksums of all regular files in C<directory> and "
6118 "then emits a list of those checksums to the local output file C<sumsfile>."
6119 msgstr ""
6120
6121 # type: textblock
6122 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6123 msgid ""
6124 "This can be used for verifying the integrity of a virtual machine.  However "
6125 "to be properly secure you should pay attention to the output of the checksum "
6126 "command (it uses the ones from GNU coreutils).  In particular when the "
6127 "filename is not printable, coreutils uses a special backslash syntax.  For "
6128 "more information, see the GNU coreutils info file."
6129 msgstr ""
6130
6131 # type: textblock
6132 #: ../src/guestfs-actions.pod:970
6133 msgid "(Added in 1.3.7)"
6134 msgstr ""
6135
6136 # type: =head2
6137 #: ../src/guestfs-actions.pod:972
6138 msgid "guestfs_chmod"
6139 msgstr ""
6140
6141 # type: verbatim
6142 #: ../src/guestfs-actions.pod:974
6143 #, no-wrap
6144 msgid ""
6145 " int\n"
6146 " guestfs_chmod (guestfs_h *g,\n"
6147 "                int mode,\n"
6148 "                const char *path);\n"
6149 "\n"
6150 msgstr ""
6151
6152 # type: textblock
6153 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6154 msgid ""
6155 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6156 "supported."
6157 msgstr ""
6158
6159 # type: textblock
6160 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6161 msgid ""
6162 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6163 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6164 "C<700>."
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075
6169 #: ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209
6170 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671
6171 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6172 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6173 msgid "The mode actually set is affected by the umask."
6174 msgstr ""
6175
6176 # type: =head2
6177 #: ../src/guestfs-actions.pod:992
6178 msgid "guestfs_chown"
6179 msgstr ""
6180
6181 # type: verbatim
6182 #: ../src/guestfs-actions.pod:994
6183 #, no-wrap
6184 msgid ""
6185 " int\n"
6186 " guestfs_chown (guestfs_h *g,\n"
6187 "                int owner,\n"
6188 "                int group,\n"
6189 "                const char *path);\n"
6190 "\n"
6191 msgstr ""
6192
6193 # type: textblock
6194 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6195 msgid "Change the file owner to C<owner> and group to C<group>."
6196 msgstr ""
6197
6198 # type: textblock
6199 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213
6200 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6201 msgid ""
6202 "Only numeric uid and gid are supported.  If you want to use names, you will "
6203 "need to locate and parse the password file yourself (Augeas support makes "
6204 "this relatively easy)."
6205 msgstr ""
6206
6207 # type: =head2
6208 #: ../src/guestfs-actions.pod:1010
6209 msgid "guestfs_command"
6210 msgstr ""
6211
6212 # type: verbatim
6213 #: ../src/guestfs-actions.pod:1012
6214 #, no-wrap
6215 msgid ""
6216 " char *\n"
6217 " guestfs_command (guestfs_h *g,\n"
6218 "                  char *const *arguments);\n"
6219 "\n"
6220 msgstr ""
6221
6222 # type: textblock
6223 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6224 msgid ""
6225 "This call runs a command from the guest filesystem.  The filesystem must be "
6226 "mounted, and must contain a compatible operating system (ie. something "
6227 "Linux, with the same or compatible processor architecture)."
6228 msgstr ""
6229
6230 # type: textblock
6231 #: ../src/guestfs-actions.pod:1021
6232 msgid ""
6233 "The single parameter is an argv-style list of arguments.  The first element "
6234 "is the name of the program to run.  Subsequent elements are parameters.  The "
6235 "list must be non-empty (ie. must contain a program name).  Note that the "
6236 "command runs directly, and is I<not> invoked via the shell (see "
6237 "C<guestfs_sh>)."
6238 msgstr ""
6239
6240 # type: textblock
6241 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6242 msgid "The return value is anything printed to I<stdout> by the command."
6243 msgstr ""
6244
6245 # type: textblock
6246 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6247 msgid ""
6248 "If the command returns a non-zero exit status, then this function returns an "
6249 "error message.  The error message string is the content of I<stderr> from "
6250 "the command."
6251 msgstr ""
6252
6253 # type: textblock
6254 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6255 msgid ""
6256 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6257 "bin>.  If you require a program from another location, you should provide "
6258 "the full path in the first parameter."
6259 msgstr ""
6260
6261 # type: textblock
6262 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6263 msgid ""
6264 "Shared libraries and data files required by the program must be available on "
6265 "filesystems which are mounted in the correct places.  It is the caller's "
6266 "responsibility to ensure all filesystems that are needed are mounted at the "
6267 "right locations."
6268 msgstr ""
6269
6270 # type: textblock
6271 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6272 #: ../src/guestfs-actions.pod:1535
6273 msgid "(Added in 0.9.1)"
6274 msgstr ""
6275
6276 # type: =head2
6277 #: ../src/guestfs-actions.pod:1054
6278 msgid "guestfs_command_lines"
6279 msgstr ""
6280
6281 # type: verbatim
6282 #: ../src/guestfs-actions.pod:1056
6283 #, no-wrap
6284 msgid ""
6285 " char **\n"
6286 " guestfs_command_lines (guestfs_h *g,\n"
6287 "                        char *const *arguments);\n"
6288 "\n"
6289 msgstr ""
6290
6291 # type: textblock
6292 #: ../src/guestfs-actions.pod:1060
6293 msgid ""
6294 "This is the same as C<guestfs_command>, but splits the result into a list of "
6295 "lines."
6296 msgstr ""
6297
6298 # type: textblock
6299 #: ../src/guestfs-actions.pod:1063
6300 msgid "See also: C<guestfs_sh_lines>"
6301 msgstr ""
6302
6303 # type: =head2
6304 #: ../src/guestfs-actions.pod:1074
6305 msgid "guestfs_config"
6306 msgstr ""
6307
6308 # type: verbatim
6309 #: ../src/guestfs-actions.pod:1076
6310 #, no-wrap
6311 msgid ""
6312 " int\n"
6313 " guestfs_config (guestfs_h *g,\n"
6314 "                 const char *qemuparam,\n"
6315 "                 const char *qemuvalue);\n"
6316 "\n"
6317 msgstr ""
6318
6319 # type: textblock
6320 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6321 msgid ""
6322 "This can be used to add arbitrary qemu command line parameters of the form "
6323 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6324 "setting some parameters which would interfere with parameters that we use."
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6329 msgid "The first character of C<param> string must be a C<-> (dash)."
6330 msgstr ""
6331
6332 # type: textblock
6333 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6334 msgid "C<value> can be NULL."
6335 msgstr ""
6336
6337 # type: =head2
6338 #: ../src/guestfs-actions.pod:1094
6339 msgid "guestfs_copy_size"
6340 msgstr ""
6341
6342 # type: verbatim
6343 #: ../src/guestfs-actions.pod:1096
6344 #, no-wrap
6345 msgid ""
6346 " int\n"
6347 " guestfs_copy_size (guestfs_h *g,\n"
6348 "                    const char *src,\n"
6349 "                    const char *dest,\n"
6350 "                    int64_t size);\n"
6351 "\n"
6352 msgstr ""
6353
6354 # type: textblock
6355 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6356 msgid ""
6357 "This command copies exactly C<size> bytes from one source device or file "
6358 "C<src> to another destination device or file C<dest>."
6359 msgstr ""
6360
6361 # type: textblock
6362 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6363 msgid ""
6364 "Note this will fail if the source is too short or if the destination is not "
6365 "large enough."
6366 msgstr ""
6367
6368 # type: textblock
6369 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6370 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6371 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881
6372 #: ../src/guestfs-actions.pod:6900
6373 msgid ""
6374 "This long-running command can generate progress notification messages so "
6375 "that the caller can display a progress bar or indicator.  To receive these "
6376 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6377 "guestfs_set_progress_callback>."
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851
6382 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609
6383 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6384 msgid "(Added in 1.0.87)"
6385 msgstr ""
6386
6387 # type: =head2
6388 #: ../src/guestfs-actions.pod:1117
6389 msgid "guestfs_cp"
6390 msgstr ""
6391
6392 # type: verbatim
6393 #: ../src/guestfs-actions.pod:1119
6394 #, no-wrap
6395 msgid ""
6396 " int\n"
6397 " guestfs_cp (guestfs_h *g,\n"
6398 "             const char *src,\n"
6399 "             const char *dest);\n"
6400 "\n"
6401 msgstr ""
6402
6403 # type: textblock
6404 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6405 msgid ""
6406 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6407 "destination filename or destination directory."
6408 msgstr ""
6409
6410 # type: textblock
6411 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6412 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6413 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454
6414 #: ../src/guestfs-actions.pod:4831
6415 msgid "(Added in 1.0.18)"
6416 msgstr ""
6417
6418 # type: =head2
6419 #: ../src/guestfs-actions.pod:1131
6420 msgid "guestfs_cp_a"
6421 msgstr ""
6422
6423 # type: verbatim
6424 #: ../src/guestfs-actions.pod:1133
6425 #, no-wrap
6426 msgid ""
6427 " int\n"
6428 " guestfs_cp_a (guestfs_h *g,\n"
6429 "               const char *src,\n"
6430 "               const char *dest);\n"
6431 "\n"
6432 msgstr ""
6433
6434 # type: textblock
6435 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6436 msgid ""
6437 "This copies a file or directory from C<src> to C<dest> recursively using the "
6438 "C<cp -a> command."
6439 msgstr ""
6440
6441 # type: =head2
6442 #: ../src/guestfs-actions.pod:1145
6443 msgid "guestfs_dd"
6444 msgstr ""
6445
6446 # type: verbatim
6447 #: ../src/guestfs-actions.pod:1147
6448 #, no-wrap
6449 msgid ""
6450 " int\n"
6451 " guestfs_dd (guestfs_h *g,\n"
6452 "             const char *src,\n"
6453 "             const char *dest);\n"
6454 "\n"
6455 msgstr ""
6456
6457 # type: textblock
6458 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6459 msgid ""
6460 "This command copies from one source device or file C<src> to another "
6461 "destination device or file C<dest>.  Normally you would use this to copy to "
6462 "or from a device or partition, for example to duplicate a filesystem."
6463 msgstr ""
6464
6465 # type: textblock
6466 #: ../src/guestfs-actions.pod:1157
6467 msgid ""
6468 "If the destination is a device, it must be as large or larger than the "
6469 "source file or device, otherwise the copy will fail.  This command cannot do "
6470 "partial copies (see C<guestfs_copy_size>)."
6471 msgstr ""
6472
6473 # type: =head2
6474 #: ../src/guestfs-actions.pod:1165
6475 msgid "guestfs_df"
6476 msgstr ""
6477
6478 # type: verbatim
6479 #: ../src/guestfs-actions.pod:1167
6480 #, no-wrap
6481 msgid ""
6482 " char *\n"
6483 " guestfs_df (guestfs_h *g);\n"
6484 "\n"
6485 msgstr ""
6486
6487 # type: textblock
6488 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6489 msgid "This command runs the C<df> command to report disk space used."
6490 msgstr ""
6491
6492 # type: textblock
6493 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6494 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6495 msgid ""
6496 "This command is mostly useful for interactive sessions.  It is I<not> "
6497 "intended that you try to parse the output string.  Use C<statvfs> from "
6498 "programs."
6499 msgstr ""
6500
6501 # type: textblock
6502 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6503 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6504 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6505 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354
6506 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140
6507 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761
6508 #: ../src/guestfs-actions.pod:6774
6509 msgid "(Added in 1.0.54)"
6510 msgstr ""
6511
6512 # type: =head2
6513 #: ../src/guestfs-actions.pod:1181
6514 msgid "guestfs_df_h"
6515 msgstr ""
6516
6517 # type: verbatim
6518 #: ../src/guestfs-actions.pod:1183
6519 #, no-wrap
6520 msgid ""
6521 " char *\n"
6522 " guestfs_df_h (guestfs_h *g);\n"
6523 "\n"
6524 msgstr ""
6525
6526 # type: textblock
6527 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6528 msgid ""
6529 "This command runs the C<df -h> command to report disk space used in human-"
6530 "readable format."
6531 msgstr ""
6532
6533 # type: =head2
6534 #: ../src/guestfs-actions.pod:1198
6535 msgid "guestfs_dmesg"
6536 msgstr ""
6537
6538 # type: verbatim
6539 #: ../src/guestfs-actions.pod:1200
6540 #, no-wrap
6541 msgid ""
6542 " char *\n"
6543 " guestfs_dmesg (guestfs_h *g);\n"
6544 "\n"
6545 msgstr ""
6546
6547 # type: textblock
6548 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6549 msgid ""
6550 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6551 "This is sometimes useful for extended debugging of problems."
6552 msgstr ""
6553
6554 # type: textblock
6555 #: ../src/guestfs-actions.pod:1207
6556 msgid ""
6557 "Another way to get the same information is to enable verbose messages with "
6558 "C<guestfs_set_verbose> or by setting the environment variable "
6559 "C<LIBGUESTFS_DEBUG=1> before running the program."
6560 msgstr ""
6561
6562 # type: =head2
6563 #: ../src/guestfs-actions.pod:1217
6564 msgid "guestfs_download"
6565 msgstr ""
6566
6567 # type: verbatim
6568 #: ../src/guestfs-actions.pod:1219
6569 #, no-wrap
6570 msgid ""
6571 " int\n"
6572 " guestfs_download (guestfs_h *g,\n"
6573 "                   const char *remotefilename,\n"
6574 "                   const char *filename);\n"
6575 "\n"
6576 msgstr ""
6577
6578 # type: textblock
6579 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6580 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6581 msgid ""
6582 "Download file C<remotefilename> and save it as C<filename> on the local "
6583 "machine."
6584 msgstr ""
6585
6586 # type: textblock
6587 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372
6588 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6589 msgid "C<filename> can also be a named pipe."
6590 msgstr ""
6591
6592 # type: textblock
6593 #: ../src/guestfs-actions.pod:1229
6594 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6595 msgstr ""
6596
6597 # type: =head2
6598 #: ../src/guestfs-actions.pod:1240
6599 msgid "guestfs_download_offset"
6600 msgstr ""
6601
6602 # type: verbatim
6603 #: ../src/guestfs-actions.pod:1242
6604 #, no-wrap
6605 msgid ""
6606 " int\n"
6607 " guestfs_download_offset (guestfs_h *g,\n"
6608 "                          const char *remotefilename,\n"
6609 "                          const char *filename,\n"
6610 "                          int64_t offset,\n"
6611 "                          int64_t size);\n"
6612 "\n"
6613 msgstr ""
6614
6615 # type: textblock
6616 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6617 msgid ""
6618 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6619 "region must be within the file or device)."
6620 msgstr ""
6621
6622 # type: textblock
6623 #: ../src/guestfs-actions.pod:1255
6624 msgid ""
6625 "Note that there is no limit on the amount of data that can be downloaded "
6626 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6627 "full amount unless an error occurs."
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1260
6632 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6633 msgstr ""
6634
6635 # type: textblock
6636 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6637 msgid "(Added in 1.5.17)"
6638 msgstr ""
6639
6640 # type: =head2
6641 #: ../src/guestfs-actions.pod:1271
6642 msgid "guestfs_drop_caches"
6643 msgstr ""
6644
6645 # type: verbatim
6646 #: ../src/guestfs-actions.pod:1273
6647 #, no-wrap
6648 msgid ""
6649 " int\n"
6650 " guestfs_drop_caches (guestfs_h *g,\n"
6651 "                      int whattodrop);\n"
6652 "\n"
6653 msgstr ""
6654
6655 # type: textblock
6656 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6657 msgid ""
6658 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6659 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6660 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6661 msgstr ""
6662
6663 # type: textblock
6664 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6665 msgid "Setting C<whattodrop> to 3 should drop everything."
6666 msgstr ""
6667
6668 # type: textblock
6669 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6670 msgid ""
6671 "This automatically calls L<sync(2)> before the operation, so that the "
6672 "maximum guest memory is freed."
6673 msgstr ""
6674
6675 # type: =head2
6676 #: ../src/guestfs-actions.pod:1291
6677 msgid "guestfs_du"
6678 msgstr ""
6679
6680 # type: verbatim
6681 #: ../src/guestfs-actions.pod:1293
6682 #, no-wrap
6683 msgid ""
6684 " int64_t\n"
6685 " guestfs_du (guestfs_h *g,\n"
6686 "             const char *path);\n"
6687 "\n"
6688 msgstr ""
6689
6690 # type: textblock
6691 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6692 msgid ""
6693 "This command runs the C<du -s> command to estimate file space usage for "
6694 "C<path>."
6695 msgstr ""
6696
6697 # type: textblock
6698 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6699 msgid ""
6700 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6701 "estimate includes the contents of the directory and all subdirectories "
6702 "(recursively)."
6703 msgstr ""
6704
6705 # type: textblock
6706 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6707 msgid ""
6708 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6709 msgstr ""
6710
6711 # type: =head2
6712 #: ../src/guestfs-actions.pod:1311
6713 msgid "guestfs_e2fsck_f"
6714 msgstr ""
6715
6716 # type: verbatim
6717 #: ../src/guestfs-actions.pod:1313
6718 #, no-wrap
6719 msgid ""
6720 " int\n"
6721 " guestfs_e2fsck_f (guestfs_h *g,\n"
6722 "                   const char *device);\n"
6723 "\n"
6724 msgstr ""
6725
6726 # type: textblock
6727 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6728 msgid ""
6729 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6730 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6731 "clean (C<-f>)."
6732 msgstr ""
6733
6734 # type: textblock
6735 #: ../src/guestfs-actions.pod:1321
6736 msgid ""
6737 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6738 "Normally you should use C<guestfs_fsck>."
6739 msgstr ""
6740
6741 # type: textblock
6742 #: ../src/guestfs-actions.pod:1326
6743 msgid "(Added in 1.0.29)"
6744 msgstr ""
6745
6746 # type: =head2
6747 #: ../src/guestfs-actions.pod:1328
6748 msgid "guestfs_echo_daemon"
6749 msgstr ""
6750
6751 # type: verbatim
6752 #: ../src/guestfs-actions.pod:1330
6753 #, no-wrap
6754 msgid ""
6755 " char *\n"
6756 " guestfs_echo_daemon (guestfs_h *g,\n"
6757 "                      char *const *words);\n"
6758 "\n"
6759 msgstr ""
6760
6761 # type: textblock
6762 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6763 msgid ""
6764 "This command concatenates the list of C<words> passed with single spaces "
6765 "between them and returns the resulting string."
6766 msgstr ""
6767
6768 # type: textblock
6769 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6770 msgid "You can use this command to test the connection through to the daemon."
6771 msgstr ""
6772
6773 # type: textblock
6774 #: ../src/guestfs-actions.pod:1339
6775 msgid "See also C<guestfs_ping_daemon>."
6776 msgstr ""
6777
6778 # type: textblock
6779 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6780 #: ../src/guestfs-actions.pod:5620
6781 msgid "(Added in 1.0.69)"
6782 msgstr ""
6783
6784 # type: =head2
6785 #: ../src/guestfs-actions.pod:1346
6786 msgid "guestfs_egrep"
6787 msgstr ""
6788
6789 # type: verbatim
6790 #: ../src/guestfs-actions.pod:1348
6791 #, no-wrap
6792 msgid ""
6793 " char **\n"
6794 " guestfs_egrep (guestfs_h *g,\n"
6795 "                const char *regex,\n"
6796 "                const char *path);\n"
6797 "\n"
6798 msgstr ""
6799
6800 # type: textblock
6801 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6802 msgid ""
6803 "This calls the external C<egrep> program and returns the matching lines."
6804 msgstr ""
6805
6806 # type: textblock
6807 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6808 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6809 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6810 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6811 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6812 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6813 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344
6814 #: ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371
6815 #: ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289
6816 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214
6817 #: ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996
6818 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022
6819 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057
6820 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083
6821 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863
6822 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967
6823 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6824 msgid "(Added in 1.0.66)"
6825 msgstr ""
6826
6827 # type: =head2
6828 #: ../src/guestfs-actions.pod:1365
6829 msgid "guestfs_egrepi"
6830 msgstr ""
6831
6832 # type: verbatim
6833 #: ../src/guestfs-actions.pod:1367
6834 #, no-wrap
6835 msgid ""
6836 " char **\n"
6837 " guestfs_egrepi (guestfs_h *g,\n"
6838 "                 const char *regex,\n"
6839 "                 const char *path);\n"
6840 "\n"
6841 msgstr ""
6842
6843 # type: textblock
6844 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6845 msgid ""
6846 "This calls the external C<egrep -i> program and returns the matching lines."
6847 msgstr ""
6848
6849 # type: =head2
6850 #: ../src/guestfs-actions.pod:1384
6851 msgid "guestfs_equal"
6852 msgstr ""
6853
6854 # type: verbatim
6855 #: ../src/guestfs-actions.pod:1386
6856 #, no-wrap
6857 msgid ""
6858 " int\n"
6859 " guestfs_equal (guestfs_h *g,\n"
6860 "                const char *file1,\n"
6861 "                const char *file2);\n"
6862 "\n"
6863 msgstr ""
6864
6865 # type: textblock
6866 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6867 msgid ""
6868 "This compares the two files C<file1> and C<file2> and returns true if their "
6869 "content is exactly equal, or false otherwise."
6870 msgstr ""
6871
6872 # type: textblock
6873 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6874 msgid "The external L<cmp(1)> program is used for the comparison."
6875 msgstr ""
6876
6877 # type: =head2
6878 #: ../src/guestfs-actions.pod:1400
6879 msgid "guestfs_exists"
6880 msgstr ""
6881
6882 # type: verbatim
6883 #: ../src/guestfs-actions.pod:1402
6884 #, no-wrap
6885 msgid ""
6886 " int\n"
6887 " guestfs_exists (guestfs_h *g,\n"
6888 "                 const char *path);\n"
6889 "\n"
6890 msgstr ""
6891
6892 # type: textblock
6893 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6894 msgid ""
6895 "This returns C<true> if and only if there is a file, directory (or anything) "
6896 "with the given C<path> name."
6897 msgstr ""
6898
6899 # type: textblock
6900 #: ../src/guestfs-actions.pod:1409
6901 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6902 msgstr ""
6903
6904 # type: =head2
6905 #: ../src/guestfs-actions.pod:1415
6906 msgid "guestfs_fallocate"
6907 msgstr ""
6908
6909 # type: verbatim
6910 #: ../src/guestfs-actions.pod:1417
6911 #, no-wrap
6912 msgid ""
6913 " int\n"
6914 " guestfs_fallocate (guestfs_h *g,\n"
6915 "                    const char *path,\n"
6916 "                    int len);\n"
6917 "\n"
6918 msgstr ""
6919
6920 # type: textblock
6921 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6922 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6923 msgid ""
6924 "This command preallocates a file (containing zero bytes) named C<path> of "
6925 "size C<len> bytes.  If the file exists already, it is overwritten."
6926 msgstr ""
6927
6928 # type: textblock
6929 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6930 msgid ""
6931 "Do not confuse this with the guestfish-specific C<alloc> command which "
6932 "allocates a file in the host and attaches it as a device."
6933 msgstr ""
6934
6935 # type: textblock
6936 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6937 msgid ""
6938 "This function is deprecated.  In new code, use the C<fallocate64> call "
6939 "instead."
6940 msgstr ""
6941
6942 # type: =head2
6943 #: ../src/guestfs-actions.pod:1441
6944 msgid "guestfs_fallocate64"
6945 msgstr ""
6946
6947 # type: verbatim
6948 #: ../src/guestfs-actions.pod:1443
6949 #, no-wrap
6950 msgid ""
6951 " int\n"
6952 " guestfs_fallocate64 (guestfs_h *g,\n"
6953 "                      const char *path,\n"
6954 "                      int64_t len);\n"
6955 "\n"
6956 msgstr ""
6957
6958 # type: textblock
6959 #: ../src/guestfs-actions.pod:1452
6960 msgid ""
6961 "Note that this call allocates disk blocks for the file.  To create a sparse "
6962 "file use C<guestfs_truncate_size> instead."
6963 msgstr ""
6964
6965 # type: textblock
6966 #: ../src/guestfs-actions.pod:1455
6967 msgid ""
6968 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6969 "oversight it only allowed 30 bit lengths to be specified, effectively "
6970 "limiting the maximum size of files created through that call to 1GB."
6971 msgstr ""
6972
6973 # type: textblock
6974 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6975 msgid ""
6976 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6977 "commands which create a file in the host and attach it as a device."
6978 msgstr ""
6979
6980 # type: textblock
6981 #: ../src/guestfs-actions.pod:1466
6982 msgid "(Added in 1.3.17)"
6983 msgstr ""
6984
6985 # type: =head2
6986 #: ../src/guestfs-actions.pod:1468
6987 msgid "guestfs_fgrep"
6988 msgstr ""
6989
6990 # type: verbatim
6991 #: ../src/guestfs-actions.pod:1470
6992 #, no-wrap
6993 msgid ""
6994 " char **\n"
6995 " guestfs_fgrep (guestfs_h *g,\n"
6996 "                const char *pattern,\n"
6997 "                const char *path);\n"
6998 "\n"
6999 msgstr ""
7000
7001 # type: textblock
7002 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
7003 msgid ""
7004 "This calls the external C<fgrep> program and returns the matching lines."
7005 msgstr ""
7006
7007 # type: =head2
7008 #: ../src/guestfs-actions.pod:1487
7009 msgid "guestfs_fgrepi"
7010 msgstr ""
7011
7012 # type: verbatim
7013 #: ../src/guestfs-actions.pod:1489
7014 #, no-wrap
7015 msgid ""
7016 " char **\n"
7017 " guestfs_fgrepi (guestfs_h *g,\n"
7018 "                 const char *pattern,\n"
7019 "                 const char *path);\n"
7020 "\n"
7021 msgstr ""
7022
7023 # type: textblock
7024 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7025 msgid ""
7026 "This calls the external C<fgrep -i> program and returns the matching lines."
7027 msgstr ""
7028
7029 # type: =head2
7030 #: ../src/guestfs-actions.pod:1506
7031 msgid "guestfs_file"
7032 msgstr ""
7033
7034 # type: verbatim
7035 #: ../src/guestfs-actions.pod:1508
7036 #, no-wrap
7037 msgid ""
7038 " char *\n"
7039 " guestfs_file (guestfs_h *g,\n"
7040 "               const char *path);\n"
7041 "\n"
7042 msgstr ""
7043
7044 # type: textblock
7045 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7046 msgid ""
7047 "This call uses the standard L<file(1)> command to determine the type or "
7048 "contents of the file."
7049 msgstr ""
7050
7051 # type: textblock
7052 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7053 msgid ""
7054 "This call will also transparently look inside various types of compressed "
7055 "file."
7056 msgstr ""
7057
7058 # type: textblock
7059 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7060 msgid ""
7061 "The exact command which runs is C<file -zb path>.  Note in particular that "
7062 "the filename is not prepended to the output (the C<-b> option)."
7063 msgstr ""
7064
7065 # type: textblock
7066 #: ../src/guestfs-actions.pod:1522
7067 msgid ""
7068 "This command can also be used on C</dev/> devices (and partitions, LV "
7069 "names).  You can for example use this to determine if a device contains a "
7070 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7071 msgstr ""
7072
7073 # type: textblock
7074 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7075 msgid ""
7076 "If the C<path> does not begin with C</dev/> then this command only works for "
7077 "the content of regular files.  For other file types (directory, symbolic "
7078 "link etc) it will just return the string C<directory> etc."
7079 msgstr ""
7080
7081 # type: =head2
7082 #: ../src/guestfs-actions.pod:1537
7083 msgid "guestfs_file_architecture"
7084 msgstr ""
7085
7086 # type: verbatim
7087 #: ../src/guestfs-actions.pod:1539
7088 #, no-wrap
7089 msgid ""
7090 " char *\n"
7091 " guestfs_file_architecture (guestfs_h *g,\n"
7092 "                            const char *filename);\n"
7093 "\n"
7094 msgstr ""
7095
7096 # type: textblock
7097 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7098 msgid ""
7099 "This detects the architecture of the binary C<filename>, and returns it if "
7100 "known."
7101 msgstr ""
7102
7103 # type: textblock
7104 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7105 msgid "Currently defined architectures are:"
7106 msgstr ""
7107
7108 # type: =item
7109 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7110 msgid "\"i386\""
7111 msgstr ""
7112
7113 # type: textblock
7114 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7115 msgid ""
7116 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7117 "irrespective of the precise processor requirements of the binary."
7118 msgstr ""
7119
7120 # type: =item
7121 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7122 msgid "\"x86_64\""
7123 msgstr ""
7124
7125 # type: textblock
7126 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7127 msgid "64 bit x86-64."
7128 msgstr ""
7129
7130 # type: =item
7131 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7132 msgid "\"sparc\""
7133 msgstr ""
7134
7135 # type: textblock
7136 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7137 msgid "32 bit SPARC."
7138 msgstr ""
7139
7140 # type: =item
7141 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7142 msgid "\"sparc64\""
7143 msgstr ""
7144
7145 # type: textblock
7146 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7147 msgid "64 bit SPARC V9 and above."
7148 msgstr ""
7149
7150 # type: =item
7151 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7152 msgid "\"ia64\""
7153 msgstr ""
7154
7155 # type: textblock
7156 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7157 msgid "Intel Itanium."
7158 msgstr ""
7159
7160 # type: =item
7161 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7162 msgid "\"ppc\""
7163 msgstr ""
7164
7165 # type: textblock
7166 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7167 msgid "32 bit Power PC."
7168 msgstr ""
7169
7170 # type: =item
7171 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7172 msgid "\"ppc64\""
7173 msgstr ""
7174
7175 # type: textblock
7176 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7177 msgid "64 bit Power PC."
7178 msgstr ""
7179
7180 # type: textblock
7181 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7182 msgid "Libguestfs may return other architecture strings in future."
7183 msgstr ""
7184
7185 # type: textblock
7186 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7187 msgid "The function works on at least the following types of files:"
7188 msgstr ""
7189
7190 # type: textblock
7191 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7192 msgid "many types of Un*x and Linux binary"
7193 msgstr ""
7194
7195 # type: textblock
7196 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7197 msgid "many types of Un*x and Linux shared library"
7198 msgstr ""
7199
7200 # type: textblock
7201 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7202 msgid "Windows Win32 and Win64 binaries"
7203 msgstr ""
7204
7205 # type: textblock
7206 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7207 msgid "Windows Win32 and Win64 DLLs"
7208 msgstr ""
7209
7210 # type: textblock
7211 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7212 msgid "Win32 binaries and DLLs return C<i386>."
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7217 msgid "Win64 binaries and DLLs return C<x86_64>."
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7222 msgid "Linux kernel modules"
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7227 msgid "Linux new-style initrd images"
7228 msgstr ""
7229
7230 # type: textblock
7231 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7232 msgid "some non-x86 Linux vmlinuz kernels"
7233 msgstr ""
7234
7235 # type: textblock
7236 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7237 msgid "What it can't do currently:"
7238 msgstr ""
7239
7240 # type: textblock
7241 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7242 msgid "static libraries (libfoo.a)"
7243 msgstr ""
7244
7245 # type: textblock
7246 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7247 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7248 msgstr ""
7249
7250 # type: textblock
7251 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7252 msgid "x86 Linux vmlinuz kernels"
7253 msgstr ""
7254
7255 # type: textblock
7256 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7257 msgid ""
7258 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7259 "compressed code, and are horribly hard to unpack.  If you want to find the "
7260 "architecture of a kernel, use the architecture of the associated initrd or "
7261 "kernel module(s) instead."
7262 msgstr ""
7263
7264 # type: textblock
7265 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7266 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7267 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
7268 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653
7269 #: ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766
7270 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997
7271 #: ../src/guestfs-actions.pod:3129
7272 msgid "(Added in 1.5.3)"
7273 msgstr ""
7274
7275 # type: =head2
7276 #: ../src/guestfs-actions.pod:1649
7277 msgid "guestfs_filesize"
7278 msgstr ""
7279
7280 # type: verbatim
7281 #: ../src/guestfs-actions.pod:1651
7282 #, no-wrap
7283 msgid ""
7284 " int64_t\n"
7285 " guestfs_filesize (guestfs_h *g,\n"
7286 "                   const char *file);\n"
7287 "\n"
7288 msgstr ""
7289
7290 # type: textblock
7291 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7292 msgid "This command returns the size of C<file> in bytes."
7293 msgstr ""
7294
7295 # type: textblock
7296 #: ../src/guestfs-actions.pod:1657
7297 msgid ""
7298 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7299 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7300 "devices, use C<guestfs_blockdev_getsize64>."
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:1663
7305 msgid "(Added in 1.0.82)"
7306 msgstr ""
7307
7308 # type: =head2
7309 #: ../src/guestfs-actions.pod:1665
7310 msgid "guestfs_fill"
7311 msgstr ""
7312
7313 # type: verbatim
7314 #: ../src/guestfs-actions.pod:1667
7315 #, no-wrap
7316 msgid ""
7317 " int\n"
7318 " guestfs_fill (guestfs_h *g,\n"
7319 "               int c,\n"
7320 "               int len,\n"
7321 "               const char *path);\n"
7322 "\n"
7323 msgstr ""
7324
7325 # type: textblock
7326 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7327 msgid ""
7328 "This command creates a new file called C<path>.  The initial content of the "
7329 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7330 "[0..255]>."
7331 msgstr ""
7332
7333 # type: textblock
7334 #: ../src/guestfs-actions.pod:1677
7335 msgid ""
7336 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7337 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7338 "bytes use C<guestfs_fill_pattern>."
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:1689
7343 msgid "(Added in 1.0.79)"
7344 msgstr ""
7345
7346 # type: =head2
7347 #: ../src/guestfs-actions.pod:1691
7348 msgid "guestfs_fill_pattern"
7349 msgstr ""
7350
7351 # type: verbatim
7352 #: ../src/guestfs-actions.pod:1693
7353 #, no-wrap
7354 msgid ""
7355 " int\n"
7356 " guestfs_fill_pattern (guestfs_h *g,\n"
7357 "                       const char *pattern,\n"
7358 "                       int len,\n"
7359 "                       const char *path);\n"
7360 "\n"
7361 msgstr ""
7362
7363 # type: textblock
7364 #: ../src/guestfs-actions.pod:1699
7365 msgid ""
7366 "This function is like C<guestfs_fill> except that it creates a new file of "
7367 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7368 "pattern is truncated if necessary to ensure the length of the file is "
7369 "exactly C<len> bytes."
7370 msgstr ""
7371
7372 # type: textblock
7373 #: ../src/guestfs-actions.pod:1711
7374 msgid "(Added in 1.3.12)"
7375 msgstr ""
7376
7377 # type: =head2
7378 #: ../src/guestfs-actions.pod:1713
7379 msgid "guestfs_find"
7380 msgstr ""
7381
7382 # type: verbatim
7383 #: ../src/guestfs-actions.pod:1715
7384 #, no-wrap
7385 msgid ""
7386 " char **\n"
7387 " guestfs_find (guestfs_h *g,\n"
7388 "               const char *directory);\n"
7389 "\n"
7390 msgstr ""
7391
7392 # type: textblock
7393 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7394 msgid ""
7395 "This command lists out all files and directories, recursively, starting at "
7396 "C<directory>.  It is essentially equivalent to running the shell command "
7397 "C<find directory -print> but some post-processing happens on the output, "
7398 "described below."
7399 msgstr ""
7400
7401 # type: textblock
7402 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7403 msgid ""
7404 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7405 "structure was:"
7406 msgstr ""
7407
7408 # type: verbatim
7409 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7410 #, no-wrap
7411 msgid ""
7412 " /tmp/a\n"
7413 " /tmp/b\n"
7414 " /tmp/c/d\n"
7415 "\n"
7416 msgstr ""
7417
7418 # type: textblock
7419 #: ../src/guestfs-actions.pod:1731
7420 msgid ""
7421 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7422 msgstr ""
7423
7424 # type: verbatim
7425 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7426 #, no-wrap
7427 msgid ""
7428 " a\n"
7429 " b\n"
7430 " c\n"
7431 " c/d\n"
7432 "\n"
7433 msgstr ""
7434
7435 # type: textblock
7436 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7437 msgid "If C<directory> is not a directory, then this command returns an error."
7438 msgstr ""
7439
7440 # type: textblock
7441 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7442 msgid "The returned list is sorted."
7443 msgstr ""
7444
7445 # type: textblock
7446 #: ../src/guestfs-actions.pod:1744
7447 msgid "See also C<guestfs_find0>."
7448 msgstr ""
7449
7450 # type: textblock
7451 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788
7452 #: ../src/guestfs-actions.pod:5249
7453 msgid "(Added in 1.0.27)"
7454 msgstr ""
7455
7456 # type: =head2
7457 #: ../src/guestfs-actions.pod:1755
7458 msgid "guestfs_find0"
7459 msgstr ""
7460
7461 # type: verbatim
7462 #: ../src/guestfs-actions.pod:1757
7463 #, no-wrap
7464 msgid ""
7465 " int\n"
7466 " guestfs_find0 (guestfs_h *g,\n"
7467 "                const char *directory,\n"
7468 "                const char *files);\n"
7469 "\n"
7470 msgstr ""
7471
7472 # type: textblock
7473 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7474 msgid ""
7475 "This command lists out all files and directories, recursively, starting at "
7476 "C<directory>, placing the resulting list in the external file called "
7477 "C<files>."
7478 msgstr ""
7479
7480 # type: textblock
7481 #: ../src/guestfs-actions.pod:1766
7482 msgid ""
7483 "This command works the same way as C<guestfs_find> with the following "
7484 "exceptions:"
7485 msgstr ""
7486
7487 # type: textblock
7488 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7489 msgid "The resulting list is written to an external file."
7490 msgstr ""
7491
7492 # type: textblock
7493 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7494 msgid ""
7495 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7496 "L<find(1)> option I<-print0>."
7497 msgstr ""
7498
7499 # type: textblock
7500 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7501 msgid "This command is not limited in the number of names that it can return."
7502 msgstr ""
7503
7504 # type: textblock
7505 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7506 msgid "The result list is not sorted."
7507 msgstr ""
7508
7509 # type: textblock
7510 #: ../src/guestfs-actions.pod:1793
7511 msgid "(Added in 1.0.74)"
7512 msgstr ""
7513
7514 # type: =head2
7515 #: ../src/guestfs-actions.pod:1795
7516 msgid "guestfs_findfs_label"
7517 msgstr ""
7518
7519 # type: verbatim
7520 #: ../src/guestfs-actions.pod:1797
7521 #, no-wrap
7522 msgid ""
7523 " char *\n"
7524 " guestfs_findfs_label (guestfs_h *g,\n"
7525 "                       const char *label);\n"
7526 "\n"
7527 msgstr ""
7528
7529 # type: textblock
7530 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7531 msgid ""
7532 "This command searches the filesystems and returns the one which has the "
7533 "given label.  An error is returned if no such filesystem can be found."
7534 msgstr ""
7535
7536 # type: textblock
7537 #: ../src/guestfs-actions.pod:1805
7538 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7539 msgstr ""
7540
7541 # type: =head2
7542 #: ../src/guestfs-actions.pod:1812
7543 msgid "guestfs_findfs_uuid"
7544 msgstr ""
7545
7546 # type: verbatim
7547 #: ../src/guestfs-actions.pod:1814
7548 #, no-wrap
7549 msgid ""
7550 " char *\n"
7551 " guestfs_findfs_uuid (guestfs_h *g,\n"
7552 "                      const char *uuid);\n"
7553 "\n"
7554 msgstr ""
7555
7556 # type: textblock
7557 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7558 msgid ""
7559 "This command searches the filesystems and returns the one which has the "
7560 "given UUID.  An error is returned if no such filesystem can be found."
7561 msgstr ""
7562
7563 # type: textblock
7564 #: ../src/guestfs-actions.pod:1822
7565 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7566 msgstr ""
7567
7568 # type: =head2
7569 #: ../src/guestfs-actions.pod:1829
7570 msgid "guestfs_fsck"
7571 msgstr ""
7572
7573 # type: verbatim
7574 #: ../src/guestfs-actions.pod:1831
7575 #, no-wrap
7576 msgid ""
7577 " int\n"
7578 " guestfs_fsck (guestfs_h *g,\n"
7579 "               const char *fstype,\n"
7580 "               const char *device);\n"
7581 "\n"
7582 msgstr ""
7583
7584 # type: textblock
7585 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7586 msgid ""
7587 "This runs the filesystem checker (fsck) on C<device> which should have "
7588 "filesystem type C<fstype>."
7589 msgstr ""
7590
7591 # type: textblock
7592 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7593 msgid ""
7594 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7595 "codes from C<fsck>."
7596 msgstr ""
7597
7598 # type: textblock
7599 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7600 msgid "Multiple status codes can be summed together."
7601 msgstr ""
7602
7603 # type: textblock
7604 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7605 msgid ""
7606 "A non-zero return code can mean \"success\", for example if errors have been "
7607 "corrected on the filesystem."
7608 msgstr ""
7609
7610 # type: textblock
7611 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7612 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7613 msgstr ""
7614
7615 # type: textblock
7616 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7617 msgid ""
7618 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7619 msgstr ""
7620
7621 # type: textblock
7622 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7623 msgid "(Added in 1.0.16)"
7624 msgstr ""
7625
7626 # type: =head2
7627 #: ../src/guestfs-actions.pod:1868
7628 msgid "guestfs_get_append"
7629 msgstr ""
7630
7631 # type: verbatim
7632 #: ../src/guestfs-actions.pod:1870
7633 #, no-wrap
7634 msgid ""
7635 " const char *\n"
7636 " guestfs_get_append (guestfs_h *g);\n"
7637 "\n"
7638 msgstr ""
7639
7640 # type: textblock
7641 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7642 msgid ""
7643 "Return the additional kernel options which are added to the guest kernel "
7644 "command line."
7645 msgstr ""
7646
7647 # type: textblock
7648 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7649 msgid "If C<NULL> then no options are added."
7650 msgstr ""
7651
7652 # type: textblock
7653 #: ../src/guestfs-actions.pod:1878
7654 msgid ""
7655 "This function returns a string which may be NULL.  There is no way to return "
7656 "an error from this function.  The string is owned by the guest handle and "
7657 "must I<not> be freed."
7658 msgstr ""
7659
7660 # type: textblock
7661 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927
7662 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758
7663 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793
7664 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557
7665 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7666 msgid "(Added in 1.0.26)"
7667 msgstr ""
7668
7669 # type: =head2
7670 #: ../src/guestfs-actions.pod:1884
7671 msgid "guestfs_get_autosync"
7672 msgstr ""
7673
7674 # type: verbatim
7675 #: ../src/guestfs-actions.pod:1886
7676 #, no-wrap
7677 msgid ""
7678 " int\n"
7679 " guestfs_get_autosync (guestfs_h *g);\n"
7680 "\n"
7681 msgstr ""
7682
7683 # type: textblock
7684 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7685 msgid "Get the autosync flag."
7686 msgstr ""
7687
7688 # type: =head2
7689 #: ../src/guestfs-actions.pod:1895
7690 msgid "guestfs_get_direct"
7691 msgstr ""
7692
7693 # type: verbatim
7694 #: ../src/guestfs-actions.pod:1897
7695 #, no-wrap
7696 msgid ""
7697 " int\n"
7698 " guestfs_get_direct (guestfs_h *g);\n"
7699 "\n"
7700 msgstr ""
7701
7702 # type: textblock
7703 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7704 msgid "Return the direct appliance mode flag."
7705 msgstr ""
7706
7707 # type: textblock
7708 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7709 msgid "(Added in 1.0.72)"
7710 msgstr ""
7711
7712 # type: =head2
7713 #: ../src/guestfs-actions.pod:1906
7714 msgid "guestfs_get_e2label"
7715 msgstr ""
7716
7717 # type: verbatim
7718 #: ../src/guestfs-actions.pod:1908
7719 #, no-wrap
7720 msgid ""
7721 " char *\n"
7722 " guestfs_get_e2label (guestfs_h *g,\n"
7723 "                      const char *device);\n"
7724 "\n"
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7729 msgid ""
7730 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7731 msgstr ""
7732
7733 # type: textblock
7734 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7735 msgid ""
7736 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7737 msgstr ""
7738
7739 # type: textblock
7740 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7741 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7742 msgid "(Added in 1.0.15)"
7743 msgstr ""
7744
7745 # type: =head2
7746 #: ../src/guestfs-actions.pod:1927
7747 msgid "guestfs_get_e2uuid"
7748 msgstr ""
7749
7750 # type: verbatim
7751 #: ../src/guestfs-actions.pod:1929
7752 #, no-wrap
7753 msgid ""
7754 " char *\n"
7755 " guestfs_get_e2uuid (guestfs_h *g,\n"
7756 "                     const char *device);\n"
7757 "\n"
7758 msgstr ""
7759
7760 # type: textblock
7761 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7762 msgid ""
7763 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7764 msgstr ""
7765
7766 # type: textblock
7767 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7768 msgid ""
7769 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7770 msgstr ""
7771
7772 # type: =head2
7773 #: ../src/guestfs-actions.pod:1948
7774 msgid "guestfs_get_memsize"
7775 msgstr ""
7776
7777 # type: verbatim
7778 #: ../src/guestfs-actions.pod:1950
7779 #, no-wrap
7780 msgid ""
7781 " int\n"
7782 " guestfs_get_memsize (guestfs_h *g);\n"
7783 "\n"
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7788 msgid ""
7789 "This gets the memory size in megabytes allocated to the qemu subprocess."
7790 msgstr ""
7791
7792 # type: textblock
7793 #: ../src/guestfs-actions.pod:1956
7794 msgid ""
7795 "If C<guestfs_set_memsize> was not called on this handle, and if "
7796 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7797 "value for memsize."
7798 msgstr ""
7799
7800 # type: textblock
7801 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7802 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591
7803 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7804 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7805 msgid ""
7806 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7807 msgstr ""
7808
7809 # type: textblock
7810 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079
7811 #: ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213
7812 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244
7813 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274
7814 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489
7815 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7816 msgid "(Added in 1.0.55)"
7817 msgstr ""
7818
7819 # type: =head2
7820 #: ../src/guestfs-actions.pod:1967
7821 msgid "guestfs_get_network"
7822 msgstr ""
7823
7824 # type: verbatim
7825 #: ../src/guestfs-actions.pod:1969
7826 #, no-wrap
7827 msgid ""
7828 " int\n"
7829 " guestfs_get_network (guestfs_h *g);\n"
7830 "\n"
7831 msgstr ""
7832
7833 # type: textblock
7834 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7835 msgid "This returns the enable network flag."
7836 msgstr ""
7837
7838 # type: textblock
7839 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7840 msgid "(Added in 1.5.4)"
7841 msgstr ""
7842
7843 # type: =head2
7844 #: ../src/guestfs-actions.pod:1978
7845 msgid "guestfs_get_path"
7846 msgstr ""
7847
7848 # type: verbatim
7849 #: ../src/guestfs-actions.pod:1980
7850 #, no-wrap
7851 msgid ""
7852 " const char *\n"
7853 " guestfs_get_path (guestfs_h *g);\n"
7854 "\n"
7855 msgstr ""
7856
7857 # type: textblock
7858 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7859 msgid "Return the current search path."
7860 msgstr ""
7861
7862 # type: textblock
7863 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7864 msgid ""
7865 "This is always non-NULL.  If it wasn't set already, then this will return "
7866 "the default path."
7867 msgstr ""
7868
7869 # type: textblock
7870 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7871 msgid ""
7872 "This function returns a string, or NULL on error.  The string is owned by "
7873 "the guest handle and must I<not> be freed."
7874 msgstr ""
7875
7876 # type: =head2
7877 #: ../src/guestfs-actions.pod:1993
7878 msgid "guestfs_get_pid"
7879 msgstr ""
7880
7881 # type: verbatim
7882 #: ../src/guestfs-actions.pod:1995
7883 #, no-wrap
7884 msgid ""
7885 " int\n"
7886 " guestfs_get_pid (guestfs_h *g);\n"
7887 "\n"
7888 msgstr ""
7889
7890 # type: textblock
7891 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7892 msgid ""
7893 "Return the process ID of the qemu subprocess.  If there is no qemu "
7894 "subprocess, then this will return an error."
7895 msgstr ""
7896
7897 # type: textblock
7898 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7899 msgid "This is an internal call used for debugging and testing."
7900 msgstr ""
7901
7902 # type: textblock
7903 #: ../src/guestfs-actions.pod:2005
7904 msgid "(Added in 1.0.56)"
7905 msgstr ""
7906
7907 # type: =head2
7908 #: ../src/guestfs-actions.pod:2007
7909 msgid "guestfs_get_qemu"
7910 msgstr ""
7911
7912 # type: verbatim
7913 #: ../src/guestfs-actions.pod:2009
7914 #, no-wrap
7915 msgid ""
7916 " const char *\n"
7917 " guestfs_get_qemu (guestfs_h *g);\n"
7918 "\n"
7919 msgstr ""
7920
7921 # type: textblock
7922 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7923 msgid "Return the current qemu binary."
7924 msgstr ""
7925
7926 # type: textblock
7927 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7928 msgid ""
7929 "This is always non-NULL.  If it wasn't set already, then this will return "
7930 "the default qemu binary name."
7931 msgstr ""
7932
7933 # type: textblock
7934 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7935 msgid "(Added in 1.0.6)"
7936 msgstr ""
7937
7938 # type: =head2
7939 #: ../src/guestfs-actions.pod:2022
7940 msgid "guestfs_get_recovery_proc"
7941 msgstr ""
7942
7943 # type: verbatim
7944 #: ../src/guestfs-actions.pod:2024
7945 #, no-wrap
7946 msgid ""
7947 " int\n"
7948 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7949 "\n"
7950 msgstr ""
7951
7952 # type: textblock
7953 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7954 msgid "Return the recovery process enabled flag."
7955 msgstr ""
7956
7957 # type: textblock
7958 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219
7959 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886
7960 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857
7961 #: ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577
7962 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256
7963 #: ../src/guestfs-actions.pod:6438
7964 msgid "(Added in 1.0.77)"
7965 msgstr ""
7966
7967 # type: =head2
7968 #: ../src/guestfs-actions.pod:2033
7969 msgid "guestfs_get_selinux"
7970 msgstr ""
7971
7972 # type: verbatim
7973 #: ../src/guestfs-actions.pod:2035
7974 #, no-wrap
7975 msgid ""
7976 " int\n"
7977 " guestfs_get_selinux (guestfs_h *g);\n"
7978 "\n"
7979 msgstr ""
7980
7981 # type: textblock
7982 #: ../src/guestfs-actions.pod:2038
7983 msgid ""
7984 "This returns the current setting of the selinux flag which is passed to the "
7985 "appliance at boot time.  See C<guestfs_set_selinux>."
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7990 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7991 msgid "(Added in 1.0.67)"
7992 msgstr ""
7993
7994 # type: =head2
7995 #: ../src/guestfs-actions.pod:2048
7996 msgid "guestfs_get_state"
7997 msgstr ""
7998
7999 # type: verbatim
8000 #: ../src/guestfs-actions.pod:2050
8001 #, no-wrap
8002 msgid ""
8003 " int\n"
8004 " guestfs_get_state (guestfs_h *g);\n"
8005 "\n"
8006 msgstr ""
8007
8008 # type: textblock
8009 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8010 msgid ""
8011 "This returns the current state as an opaque integer.  This is only useful "
8012 "for printing debug and internal error messages."
8013 msgstr ""
8014
8015 # type: textblock
8016 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022
8017 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112
8018 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398
8019 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8020 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8021 msgid "For more information on states, see L<guestfs(3)>."
8022 msgstr ""
8023
8024 # type: =head2
8025 #: ../src/guestfs-actions.pod:2062
8026 msgid "guestfs_get_trace"
8027 msgstr ""
8028
8029 # type: verbatim
8030 #: ../src/guestfs-actions.pod:2064
8031 #, no-wrap
8032 msgid ""
8033 " int\n"
8034 " guestfs_get_trace (guestfs_h *g);\n"
8035 "\n"
8036 msgstr ""
8037
8038 # type: textblock
8039 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8040 msgid "Return the command trace flag."
8041 msgstr ""
8042
8043 # type: =head2
8044 #: ../src/guestfs-actions.pod:2073
8045 msgid "guestfs_get_umask"
8046 msgstr ""
8047
8048 # type: verbatim
8049 #: ../src/guestfs-actions.pod:2075
8050 #, no-wrap
8051 msgid ""
8052 " int\n"
8053 " guestfs_get_umask (guestfs_h *g);\n"
8054 "\n"
8055 msgstr ""
8056
8057 # type: textblock
8058 #: ../src/guestfs-actions.pod:2078
8059 msgid ""
8060 "Return the current umask.  By default the umask is C<022> unless it has been "
8061 "set by calling C<guestfs_umask>."
8062 msgstr ""
8063
8064 # type: =head2
8065 #: ../src/guestfs-actions.pod:2085
8066 msgid "guestfs_get_verbose"
8067 msgstr ""
8068
8069 # type: verbatim
8070 #: ../src/guestfs-actions.pod:2087
8071 #, no-wrap
8072 msgid ""
8073 " int\n"
8074 " guestfs_get_verbose (guestfs_h *g);\n"
8075 "\n"
8076 msgstr ""
8077
8078 # type: textblock
8079 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8080 msgid "This returns the verbose messages flag."
8081 msgstr ""
8082
8083 # type: =head2
8084 #: ../src/guestfs-actions.pod:2096
8085 msgid "guestfs_getcon"
8086 msgstr ""
8087
8088 # type: verbatim
8089 #: ../src/guestfs-actions.pod:2098
8090 #, no-wrap
8091 msgid ""
8092 " char *\n"
8093 " guestfs_getcon (guestfs_h *g);\n"
8094 "\n"
8095 msgstr ""
8096
8097 # type: textblock
8098 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8099 msgid "This gets the SELinux security context of the daemon."
8100 msgstr ""
8101
8102 # type: textblock
8103 #: ../src/guestfs-actions.pod:2103
8104 msgid ""
8105 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8106 msgstr ""
8107
8108 # type: =head2
8109 #: ../src/guestfs-actions.pod:2111
8110 msgid "guestfs_getxattrs"
8111 msgstr ""
8112
8113 # type: verbatim
8114 #: ../src/guestfs-actions.pod:2113
8115 #, no-wrap
8116 msgid ""
8117 " struct guestfs_xattr_list *\n"
8118 " guestfs_getxattrs (guestfs_h *g,\n"
8119 "                    const char *path);\n"
8120 "\n"
8121 msgstr ""
8122
8123 # type: textblock
8124 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8125 msgid ""
8126 "This call lists the extended attributes of the file or directory C<path>."
8127 msgstr ""
8128
8129 # type: textblock
8130 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8131 msgid ""
8132 "At the system call level, this is a combination of the L<listxattr(2)> and "
8133 "L<getxattr(2)> calls."
8134 msgstr ""
8135
8136 # type: textblock
8137 #: ../src/guestfs-actions.pod:2123
8138 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8139 msgstr ""
8140
8141 # type: textblock
8142 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231
8143 #: ../src/guestfs-actions.pod:3882
8144 msgid ""
8145 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8146 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8147 msgstr ""
8148
8149 # type: textblock
8150 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235
8151 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436
8152 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669
8153 #: ../src/guestfs-actions.pod:6994
8154 msgid "(Added in 1.0.59)"
8155 msgstr ""
8156
8157 # type: =head2
8158 #: ../src/guestfs-actions.pod:2131
8159 msgid "guestfs_glob_expand"
8160 msgstr ""
8161
8162 # type: verbatim
8163 #: ../src/guestfs-actions.pod:2133
8164 #, no-wrap
8165 msgid ""
8166 " char **\n"
8167 " guestfs_glob_expand (guestfs_h *g,\n"
8168 "                      const char *pattern);\n"
8169 "\n"
8170 msgstr ""
8171
8172 # type: textblock
8173 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8174 msgid ""
8175 "This command searches for all the pathnames matching C<pattern> according to "
8176 "the wildcard expansion rules used by the shell."
8177 msgstr ""
8178
8179 # type: textblock
8180 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8181 msgid ""
8182 "If no paths match, then this returns an empty list (note: not an error)."
8183 msgstr ""
8184
8185 # type: textblock
8186 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8187 msgid ""
8188 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8189 "GLOB_BRACE>.  See that manual page for more details."
8190 msgstr ""
8191
8192 # type: textblock
8193 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834
8194 #: ../src/guestfs-actions.pod:5851
8195 msgid "(Added in 1.0.50)"
8196 msgstr ""
8197
8198 # type: =head2
8199 #: ../src/guestfs-actions.pod:2154
8200 msgid "guestfs_grep"
8201 msgstr ""
8202
8203 # type: verbatim
8204 #: ../src/guestfs-actions.pod:2156
8205 #, no-wrap
8206 msgid ""
8207 " char **\n"
8208 " guestfs_grep (guestfs_h *g,\n"
8209 "               const char *regex,\n"
8210 "               const char *path);\n"
8211 "\n"
8212 msgstr ""
8213
8214 # type: textblock
8215 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8216 msgid "This calls the external C<grep> program and returns the matching lines."
8217 msgstr ""
8218
8219 # type: =head2
8220 #: ../src/guestfs-actions.pod:2173
8221 msgid "guestfs_grepi"
8222 msgstr ""
8223
8224 # type: verbatim
8225 #: ../src/guestfs-actions.pod:2175
8226 #, no-wrap
8227 msgid ""
8228 " char **\n"
8229 " guestfs_grepi (guestfs_h *g,\n"
8230 "                const char *regex,\n"
8231 "                const char *path);\n"
8232 "\n"
8233 msgstr ""
8234
8235 # type: textblock
8236 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8237 msgid ""
8238 "This calls the external C<grep -i> program and returns the matching lines."
8239 msgstr ""
8240
8241 # type: =head2
8242 #: ../src/guestfs-actions.pod:2192
8243 msgid "guestfs_grub_install"
8244 msgstr ""
8245
8246 # type: verbatim
8247 #: ../src/guestfs-actions.pod:2194
8248 #, no-wrap
8249 msgid ""
8250 " int\n"
8251 " guestfs_grub_install (guestfs_h *g,\n"
8252 "                       const char *root,\n"
8253 "                       const char *device);\n"
8254 "\n"
8255 msgstr ""
8256
8257 # type: textblock
8258 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8259 msgid ""
8260 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8261 "the root directory being C<root>."
8262 msgstr ""
8263
8264 # type: textblock
8265 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8266 msgid ""
8267 "Note: If grub-install reports the error \"No suitable drive was found in the "
8268 "generated device map.\" it may be that you need to create a C</boot/grub/"
8269 "device.map> file first that contains the mapping between grub device names "
8270 "and Linux device names.  It is usually sufficient to create a file "
8271 "containing:"
8272 msgstr ""
8273
8274 # type: verbatim
8275 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8276 #, no-wrap
8277 msgid ""
8278 " (hd0) /dev/vda\n"
8279 "\n"
8280 msgstr ""
8281
8282 # type: textblock
8283 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8284 msgid "replacing C</dev/vda> with the name of the installation device."
8285 msgstr ""
8286
8287 # type: textblock
8288 #: ../src/guestfs-actions.pod:2215
8289 msgid "(Added in 1.0.17)"
8290 msgstr ""
8291
8292 # type: =head2
8293 #: ../src/guestfs-actions.pod:2217
8294 msgid "guestfs_head"
8295 msgstr ""
8296
8297 # type: verbatim
8298 #: ../src/guestfs-actions.pod:2219
8299 #, no-wrap
8300 msgid ""
8301 " char **\n"
8302 " guestfs_head (guestfs_h *g,\n"
8303 "               const char *path);\n"
8304 "\n"
8305 msgstr ""
8306
8307 # type: textblock
8308 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8309 msgid ""
8310 "This command returns up to the first 10 lines of a file as a list of strings."
8311 msgstr ""
8312
8313 # type: =head2
8314 #: ../src/guestfs-actions.pod:2235
8315 msgid "guestfs_head_n"
8316 msgstr ""
8317
8318 # type: verbatim
8319 #: ../src/guestfs-actions.pod:2237
8320 #, no-wrap
8321 msgid ""
8322 " char **\n"
8323 " guestfs_head_n (guestfs_h *g,\n"
8324 "                 int nrlines,\n"
8325 "                 const char *path);\n"
8326 "\n"
8327 msgstr ""
8328
8329 # type: textblock
8330 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8331 msgid ""
8332 "If the parameter C<nrlines> is a positive number, this returns the first "
8333 "C<nrlines> lines of the file C<path>."
8334 msgstr ""
8335
8336 # type: textblock
8337 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8338 msgid ""
8339 "If the parameter C<nrlines> is a negative number, this returns lines from "
8340 "the file C<path>, excluding the last C<nrlines> lines."
8341 msgstr ""
8342
8343 # type: textblock
8344 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131
8345 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8346 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8347 msgstr ""
8348
8349 # type: =head2
8350 #: ../src/guestfs-actions.pod:2259
8351 msgid "guestfs_hexdump"
8352 msgstr ""
8353
8354 # type: verbatim
8355 #: ../src/guestfs-actions.pod:2261
8356 #, no-wrap
8357 msgid ""
8358 " char *\n"
8359 " guestfs_hexdump (guestfs_h *g,\n"
8360 "                  const char *path);\n"
8361 "\n"
8362 msgstr ""
8363
8364 # type: textblock
8365 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8366 msgid ""
8367 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8368 "readable, canonical hex dump of the file."
8369 msgstr ""
8370
8371 # type: textblock
8372 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915
8373 #: ../src/guestfs-actions.pod:5970
8374 msgid "(Added in 1.0.22)"
8375 msgstr ""
8376
8377 # type: =head2
8378 #: ../src/guestfs-actions.pod:2276
8379 msgid "guestfs_initrd_cat"
8380 msgstr ""
8381
8382 # type: verbatim
8383 #: ../src/guestfs-actions.pod:2278
8384 #, no-wrap
8385 msgid ""
8386 " char *\n"
8387 " guestfs_initrd_cat (guestfs_h *g,\n"
8388 "                     const char *initrdpath,\n"
8389 "                     const char *filename,\n"
8390 "                     size_t *size_r);\n"
8391 "\n"
8392 msgstr ""
8393
8394 # type: textblock
8395 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8396 msgid ""
8397 "This command unpacks the file C<filename> from the initrd file called "
8398 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8399 "character."
8400 msgstr ""
8401
8402 # type: textblock
8403 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8404 msgid ""
8405 "For example, in guestfish you could use the following command to examine the "
8406 "boot script (usually called C</init>)  contained in a Linux initrd or "
8407 "initramfs image:"
8408 msgstr ""
8409
8410 # type: verbatim
8411 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8412 #, no-wrap
8413 msgid ""
8414 " initrd-cat /boot/initrd-<version>.img init\n"
8415 "\n"
8416 msgstr ""
8417
8418 # type: textblock
8419 #: ../src/guestfs-actions.pod:2294
8420 msgid "See also C<guestfs_initrd_list>."
8421 msgstr ""
8422
8423 # type: textblock
8424 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850
8425 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8426 msgid ""
8427 "This function returns a buffer, or NULL on error.  The size of the returned "
8428 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8429 "after use>."
8430 msgstr ""
8431
8432 # type: =head2
8433 #: ../src/guestfs-actions.pod:2305
8434 msgid "guestfs_initrd_list"
8435 msgstr ""
8436
8437 # type: verbatim
8438 #: ../src/guestfs-actions.pod:2307
8439 #, no-wrap
8440 msgid ""
8441 " char **\n"
8442 " guestfs_initrd_list (guestfs_h *g,\n"
8443 "                      const char *path);\n"
8444 "\n"
8445 msgstr ""
8446
8447 # type: textblock
8448 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8449 msgid "This command lists out files contained in an initrd."
8450 msgstr ""
8451
8452 # type: textblock
8453 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8454 msgid ""
8455 "The files are listed without any initial C</> character.  The files are "
8456 "listed in the order they appear (not necessarily alphabetical).  Directory "
8457 "names are listed as separate items."
8458 msgstr ""
8459
8460 # type: textblock
8461 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8462 msgid ""
8463 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8464 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8465 "files)."
8466 msgstr ""
8467
8468 # type: =head2
8469 #: ../src/guestfs-actions.pod:2327
8470 msgid "guestfs_inotify_add_watch"
8471 msgstr ""
8472
8473 # type: verbatim
8474 #: ../src/guestfs-actions.pod:2329
8475 #, no-wrap
8476 msgid ""
8477 " int64_t\n"
8478 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8479 "                            const char *path,\n"
8480 "                            int mask);\n"
8481 "\n"
8482 msgstr ""
8483
8484 # type: textblock
8485 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8486 msgid "Watch C<path> for the events listed in C<mask>."
8487 msgstr ""
8488
8489 # type: textblock
8490 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8491 msgid ""
8492 "Note that if C<path> is a directory then events within that directory are "
8493 "watched, but this does I<not> happen recursively (in subdirectories)."
8494 msgstr ""
8495
8496 # type: textblock
8497 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8498 msgid ""
8499 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8500 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8501 msgstr ""
8502
8503 # type: =head2
8504 #: ../src/guestfs-actions.pod:2348
8505 msgid "guestfs_inotify_close"
8506 msgstr ""
8507
8508 # type: verbatim
8509 #: ../src/guestfs-actions.pod:2350
8510 #, no-wrap
8511 msgid ""
8512 " int\n"
8513 " guestfs_inotify_close (guestfs_h *g);\n"
8514 "\n"
8515 msgstr ""
8516
8517 # type: textblock
8518 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8519 msgid ""
8520 "This closes the inotify handle which was previously opened by inotify_init.  "
8521 "It removes all watches, throws away any pending events, and deallocates all "
8522 "resources."
8523 msgstr ""
8524
8525 # type: =head2
8526 #: ../src/guestfs-actions.pod:2361
8527 msgid "guestfs_inotify_files"
8528 msgstr ""
8529
8530 # type: verbatim
8531 #: ../src/guestfs-actions.pod:2363
8532 #, no-wrap
8533 msgid ""
8534 " char **\n"
8535 " guestfs_inotify_files (guestfs_h *g);\n"
8536 "\n"
8537 msgstr ""
8538
8539 # type: textblock
8540 #: ../src/guestfs-actions.pod:2366
8541 msgid ""
8542 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8543 "returns a list of pathnames of objects that were touched.  The returned "
8544 "pathnames are sorted and deduplicated."
8545 msgstr ""
8546
8547 # type: =head2
8548 #: ../src/guestfs-actions.pod:2376
8549 msgid "guestfs_inotify_init"
8550 msgstr ""
8551
8552 # type: verbatim
8553 #: ../src/guestfs-actions.pod:2378
8554 #, no-wrap
8555 msgid ""
8556 " int\n"
8557 " guestfs_inotify_init (guestfs_h *g,\n"
8558 "                       int maxevents);\n"
8559 "\n"
8560 msgstr ""
8561
8562 # type: textblock
8563 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8564 msgid ""
8565 "This command creates a new inotify handle.  The inotify subsystem can be "
8566 "used to notify events which happen to objects in the guest filesystem."
8567 msgstr ""
8568
8569 # type: textblock
8570 #: ../src/guestfs-actions.pod:2386
8571 msgid ""
8572 "C<maxevents> is the maximum number of events which will be queued up between "
8573 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8574 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8575 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8576 "throws away events, but records the fact that it threw them away by setting "
8577 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8578 "C<guestfs_inotify_read>)."
8579 msgstr ""
8580
8581 # type: textblock
8582 #: ../src/guestfs-actions.pod:2396
8583 msgid ""
8584 "Before any events are generated, you have to add some watches to the "
8585 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8586 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8587 msgstr ""
8588
8589 # type: textblock
8590 #: ../src/guestfs-actions.pod:2402
8591 msgid ""
8592 "Queued up events should be read periodically by calling "
8593 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8594 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8595 "often enough then you risk the internal queue overflowing."
8596 msgstr ""
8597
8598 # type: textblock
8599 #: ../src/guestfs-actions.pod:2409
8600 msgid ""
8601 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8602 "This also removes any watches automatically."
8603 msgstr ""
8604
8605 # type: textblock
8606 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8607 msgid ""
8608 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8609 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8610 "that there is one global inotify handle per libguestfs instance."
8611 msgstr ""
8612
8613 # type: =head2
8614 #: ../src/guestfs-actions.pod:2422
8615 msgid "guestfs_inotify_read"
8616 msgstr ""
8617
8618 # type: verbatim
8619 #: ../src/guestfs-actions.pod:2424
8620 #, no-wrap
8621 msgid ""
8622 " struct guestfs_inotify_event_list *\n"
8623 " guestfs_inotify_read (guestfs_h *g);\n"
8624 "\n"
8625 msgstr ""
8626
8627 # type: textblock
8628 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8629 msgid ""
8630 "Return the complete queue of events that have happened since the previous "
8631 "read call."
8632 msgstr ""
8633
8634 # type: textblock
8635 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8636 msgid "If no events have happened, this returns an empty list."
8637 msgstr ""
8638
8639 # type: textblock
8640 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8641 msgid ""
8642 "I<Note>: In order to make sure that all events have been read, you must call "
8643 "this function repeatedly until it returns an empty list.  The reason is that "
8644 "the call will read events up to the maximum appliance-to-host message size "
8645 "and leave remaining events in the queue."
8646 msgstr ""
8647
8648 # type: textblock
8649 #: ../src/guestfs-actions.pod:2438
8650 msgid ""
8651 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8652 "there was an error.  I<The caller must call "
8653 "C<guestfs_free_inotify_event_list> after use>."
8654 msgstr ""
8655
8656 # type: =head2
8657 #: ../src/guestfs-actions.pod:2444
8658 msgid "guestfs_inotify_rm_watch"
8659 msgstr ""
8660
8661 # type: verbatim
8662 #: ../src/guestfs-actions.pod:2446
8663 #, no-wrap
8664 msgid ""
8665 " int\n"
8666 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8667 "                           int wd);\n"
8668 "\n"
8669 msgstr ""
8670
8671 # type: textblock
8672 #: ../src/guestfs-actions.pod:2450
8673 msgid ""
8674 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8675 msgstr ""
8676
8677 # type: =head2
8678 #: ../src/guestfs-actions.pod:2457
8679 msgid "guestfs_inspect_get_arch"
8680 msgstr ""
8681
8682 # type: verbatim
8683 #: ../src/guestfs-actions.pod:2459
8684 #, no-wrap
8685 msgid ""
8686 " char *\n"
8687 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8688 "                           const char *root);\n"
8689 "\n"
8690 msgstr ""
8691
8692 # type: textblock
8693 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8694 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593
8695 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640
8696 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694
8697 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750
8698 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834
8699 #: ../src/guestfs-actions.pod:2857
8700 msgid ""
8701 "This function should only be called with a root device string as returned by "
8702 "C<guestfs_inspect_os>."
8703 msgstr ""
8704
8705 # type: textblock
8706 #: ../src/guestfs-actions.pod:2466
8707 msgid ""
8708 "This returns the architecture of the inspected operating system.  The "
8709 "possible return values are listed under C<guestfs_file_architecture>."
8710 msgstr ""
8711
8712 # type: textblock
8713 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8714 msgid ""
8715 "If the architecture could not be determined, then the string C<unknown> is "
8716 "returned."
8717 msgstr ""
8718
8719 # type: textblock
8720 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554
8721 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628
8722 #: ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739
8723 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780
8724 #: ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844
8725 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989
8726 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8727 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8728 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8729 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8730 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8731 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8732 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8733 msgstr ""
8734
8735 # type: =head2
8736 #: ../src/guestfs-actions.pod:2480
8737 msgid "guestfs_inspect_get_distro"
8738 msgstr ""
8739
8740 # type: verbatim
8741 #: ../src/guestfs-actions.pod:2482
8742 #, no-wrap
8743 msgid ""
8744 " char *\n"
8745 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8746 "                             const char *root);\n"
8747 "\n"
8748 msgstr ""
8749
8750 # type: textblock
8751 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8752 msgid ""
8753 "This returns the distro (distribution) of the inspected operating system."
8754 msgstr ""
8755
8756 # type: textblock
8757 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8758 msgid "Currently defined distros are:"
8759 msgstr ""
8760
8761 # type: =item
8762 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8763 msgid "\"archlinux\""
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8768 msgid "Arch Linux."
8769 msgstr ""
8770
8771 # type: =item
8772 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8773 msgid "\"debian\""
8774 msgstr ""
8775
8776 # type: textblock
8777 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8778 msgid "Debian."
8779 msgstr ""
8780
8781 # type: =item
8782 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8783 msgid "\"fedora\""
8784 msgstr ""
8785
8786 # type: textblock
8787 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8788 msgid "Fedora."
8789 msgstr ""
8790
8791 # type: =item
8792 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8793 msgid "\"gentoo\""
8794 msgstr ""
8795
8796 # type: textblock
8797 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8798 msgid "Gentoo."
8799 msgstr ""
8800
8801 # type: =item
8802 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8803 msgid "\"linuxmint\""
8804 msgstr ""
8805
8806 # type: textblock
8807 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8808 msgid "Linux Mint."
8809 msgstr ""
8810
8811 # type: =item
8812 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8813 msgid "\"mandriva\""
8814 msgstr ""
8815
8816 # type: textblock
8817 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8818 msgid "Mandriva."
8819 msgstr ""
8820
8821 # type: =item
8822 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8823 msgid "\"meego\""
8824 msgstr ""
8825
8826 # type: textblock
8827 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8828 msgid "MeeGo."
8829 msgstr ""
8830
8831 # type: =item
8832 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8833 msgid "\"pardus\""
8834 msgstr ""
8835
8836 # type: textblock
8837 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8838 msgid "Pardus."
8839 msgstr ""
8840
8841 # type: =item
8842 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8843 msgid "\"redhat-based\""
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8848 msgid "Some Red Hat-derived distro."
8849 msgstr ""
8850
8851 # type: =item
8852 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8853 msgid "\"rhel\""
8854 msgstr ""
8855
8856 # type: textblock
8857 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8858 msgid "Red Hat Enterprise Linux and some derivatives."
8859 msgstr ""
8860
8861 # type: =item
8862 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8863 msgid "\"ubuntu\""
8864 msgstr ""
8865
8866 # type: textblock
8867 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8868 msgid "Ubuntu."
8869 msgstr ""
8870
8871 # type: =item
8872 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812
8873 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8874 msgid "\"unknown\""
8875 msgstr ""
8876
8877 # type: textblock
8878 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8879 msgid "The distro could not be determined."
8880 msgstr ""
8881
8882 # type: =item
8883 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804
8884 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8885 msgid "\"windows\""
8886 msgstr ""
8887
8888 # type: textblock
8889 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8890 msgid ""
8891 "Windows does not have distributions.  This string is returned if the OS type "
8892 "is Windows."
8893 msgstr ""
8894
8895 # type: textblock
8896 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818
8897 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8898 msgid ""
8899 "Future versions of libguestfs may return other strings here.  The caller "
8900 "should be prepared to handle any string."
8901 msgstr ""
8902
8903 # type: =head2
8904 #: ../src/guestfs-actions.pod:2561
8905 msgid "guestfs_inspect_get_filesystems"
8906 msgstr ""
8907
8908 # type: verbatim
8909 #: ../src/guestfs-actions.pod:2563
8910 #, no-wrap
8911 msgid ""
8912 " char **\n"
8913 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8914 "                                  const char *root);\n"
8915 "\n"
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8920 msgid ""
8921 "This returns a list of all the filesystems that we think are associated with "
8922 "this operating system.  This includes the root filesystem, other ordinary "
8923 "filesystems, and non-mounted devices like swap partitions."
8924 msgstr ""
8925
8926 # type: textblock
8927 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8928 msgid ""
8929 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8930 "to be shared between operating systems."
8931 msgstr ""
8932
8933 # type: textblock
8934 #: ../src/guestfs-actions.pod:2578
8935 msgid ""
8936 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8937 "C<guestfs_inspect_get_mountpoints>."
8938 msgstr ""
8939
8940 # type: =head2
8941 #: ../src/guestfs-actions.pod:2587
8942 msgid "guestfs_inspect_get_hostname"
8943 msgstr ""
8944
8945 # type: verbatim
8946 #: ../src/guestfs-actions.pod:2589
8947 #, no-wrap
8948 msgid ""
8949 " char *\n"
8950 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8951 "                               const char *root);\n"
8952 "\n"
8953 msgstr ""
8954
8955 # type: textblock
8956 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8957 msgid ""
8958 "This function returns the hostname of the operating system as found by "
8959 "inspection of the guest's configuration files."
8960 msgstr ""
8961
8962 # type: textblock
8963 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8964 msgid ""
8965 "If the hostname could not be determined, then the string C<unknown> is "
8966 "returned."
8967 msgstr ""
8968
8969 # type: =head2
8970 #: ../src/guestfs-actions.pod:2607
8971 msgid "guestfs_inspect_get_major_version"
8972 msgstr ""
8973
8974 # type: verbatim
8975 #: ../src/guestfs-actions.pod:2609
8976 #, no-wrap
8977 msgid ""
8978 " int\n"
8979 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8980 "                                    const char *root);\n"
8981 "\n"
8982 msgstr ""
8983
8984 # type: textblock
8985 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8986 msgid ""
8987 "This returns the major version number of the inspected operating system."
8988 msgstr ""
8989
8990 # type: textblock
8991 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
8992 msgid ""
8993 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8994 "popular public names used by the operating system.  Notably the operating "
8995 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8996 "1).  You can find out the real versions corresponding to releases of Windows "
8997 "by consulting Wikipedia or MSDN."
8998 msgstr ""
8999
9000 # type: textblock
9001 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646
9002 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
9003 msgid "If the version could not be determined, then C<0> is returned."
9004 msgstr ""
9005
9006 # type: =head2
9007 #: ../src/guestfs-actions.pod:2634
9008 msgid "guestfs_inspect_get_minor_version"
9009 msgstr ""
9010
9011 # type: verbatim
9012 #: ../src/guestfs-actions.pod:2636
9013 #, no-wrap
9014 msgid ""
9015 " int\n"
9016 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9017 "                                    const char *root);\n"
9018 "\n"
9019 msgstr ""
9020
9021 # type: textblock
9022 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
9023 msgid ""
9024 "This returns the minor version number of the inspected operating system."
9025 msgstr ""
9026
9027 # type: textblock
9028 #: ../src/guestfs-actions.pod:2648
9029 msgid ""
9030 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9031 "C<guestfs_inspect_get_major_version>."
9032 msgstr ""
9033
9034 # type: =head2
9035 #: ../src/guestfs-actions.pod:2655
9036 msgid "guestfs_inspect_get_mountpoints"
9037 msgstr ""
9038
9039 # type: verbatim
9040 #: ../src/guestfs-actions.pod:2657
9041 #, no-wrap
9042 msgid ""
9043 " char **\n"
9044 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9045 "                                  const char *root);\n"
9046 "\n"
9047 msgstr ""
9048
9049 # type: textblock
9050 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
9051 msgid ""
9052 "This returns a hash of where we think the filesystems associated with this "
9053 "operating system should be mounted.  Callers should note that this is at "
9054 "best an educated guess made by reading configuration files such as C</etc/"
9055 "fstab>."
9056 msgstr ""
9057
9058 # type: textblock
9059 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
9060 msgid ""
9061 "Each element in the returned hashtable has a key which is the path of the "
9062 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9063 "mounted there (eg. C</dev/sda1>)."
9064 msgstr ""
9065
9066 # type: textblock
9067 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
9068 msgid ""
9069 "Non-mounted devices such as swap devices are I<not> returned in this list."
9070 msgstr ""
9071
9072 # type: textblock
9073 #: ../src/guestfs-actions.pod:2677
9074 msgid ""
9075 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9076 "C<guestfs_inspect_get_filesystems>."
9077 msgstr ""
9078
9079 # type: textblock
9080 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288
9081 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
9082 msgid ""
9083 "This function returns a NULL-terminated array of strings, or NULL if there "
9084 "was an error.  The array of strings will always have length C<2n+1>, where "
9085 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9086 "caller must free the strings and the array after use>."
9087 msgstr ""
9088
9089 # type: =head2
9090 #: ../src/guestfs-actions.pod:2688
9091 msgid "guestfs_inspect_get_package_format"
9092 msgstr ""
9093
9094 # type: verbatim
9095 #: ../src/guestfs-actions.pod:2690
9096 #, no-wrap
9097 msgid ""
9098 " char *\n"
9099 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9100 "                                     const char *root);\n"
9101 "\n"
9102 msgstr ""
9103
9104 # type: textblock
9105 #: ../src/guestfs-actions.pod:2697
9106 msgid ""
9107 "This function and C<guestfs_inspect_get_package_management> return the "
9108 "package format and package management tool used by the inspected operating "
9109 "system.  For example for Fedora these functions would return C<rpm> (package "
9110 "format) and C<yum> (package management)."
9111 msgstr ""
9112
9113 # type: textblock
9114 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
9115 msgid ""
9116 "This returns the string C<unknown> if we could not determine the package "
9117 "format I<or> if the operating system does not have a real packaging system "
9118 "(eg. Windows)."
9119 msgstr ""
9120
9121 # type: textblock
9122 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
9123 msgid ""
9124 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9125 "Future versions of libguestfs may return other strings."
9126 msgstr ""
9127
9128 # type: =head2
9129 #: ../src/guestfs-actions.pod:2715
9130 msgid "guestfs_inspect_get_package_management"
9131 msgstr ""
9132
9133 # type: verbatim
9134 #: ../src/guestfs-actions.pod:2717
9135 #, no-wrap
9136 msgid ""
9137 " char *\n"
9138 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9139 "                                         const char *root);\n"
9140 "\n"
9141 msgstr ""
9142
9143 # type: textblock
9144 #: ../src/guestfs-actions.pod:2724
9145 msgid ""
9146 "C<guestfs_inspect_get_package_format> and this function return the package "
9147 "format and package management tool used by the inspected operating system.  "
9148 "For example for Fedora these functions would return C<rpm> (package format) "
9149 "and C<yum> (package management)."
9150 msgstr ""
9151
9152 # type: textblock
9153 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
9154 msgid ""
9155 "This returns the string C<unknown> if we could not determine the package "
9156 "management tool I<or> if the operating system does not have a real packaging "
9157 "system (eg. Windows)."
9158 msgstr ""
9159
9160 # type: textblock
9161 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
9162 msgid ""
9163 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9164 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9165 "libguestfs may return other strings."
9166 msgstr ""
9167
9168 # type: =head2
9169 #: ../src/guestfs-actions.pod:2744
9170 msgid "guestfs_inspect_get_product_name"
9171 msgstr ""
9172
9173 # type: verbatim
9174 #: ../src/guestfs-actions.pod:2746
9175 #, no-wrap
9176 msgid ""
9177 " char *\n"
9178 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9179 "                                   const char *root);\n"
9180 "\n"
9181 msgstr ""
9182
9183 # type: textblock
9184 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
9185 msgid ""
9186 "This returns the product name of the inspected operating system.  The "
9187 "product name is generally some freeform string which can be displayed to the "
9188 "user, but should not be parsed by programs."
9189 msgstr ""
9190
9191 # type: textblock
9192 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
9193 msgid ""
9194 "If the product name could not be determined, then the string C<unknown> is "
9195 "returned."
9196 msgstr ""
9197
9198 # type: =head2
9199 #: ../src/guestfs-actions.pod:2768
9200 msgid "guestfs_inspect_get_roots"
9201 msgstr ""
9202
9203 # type: verbatim
9204 #: ../src/guestfs-actions.pod:2770
9205 #, no-wrap
9206 msgid ""
9207 " char **\n"
9208 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9209 "\n"
9210 msgstr ""
9211
9212 # type: textblock
9213 #: ../src/guestfs-actions.pod:2773
9214 msgid ""
9215 "This function is a convenient way to get the list of root devices, as "
9216 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9217 "the whole inspection process."
9218 msgstr ""
9219
9220 # type: textblock
9221 #: ../src/guestfs-actions.pod:2777
9222 msgid ""
9223 "This returns an empty list if either no root devices were found or the "
9224 "caller has not called C<guestfs_inspect_os>."
9225 msgstr ""
9226
9227 # type: =head2
9228 #: ../src/guestfs-actions.pod:2786
9229 msgid "guestfs_inspect_get_type"
9230 msgstr ""
9231
9232 # type: verbatim
9233 #: ../src/guestfs-actions.pod:2788
9234 #, no-wrap
9235 msgid ""
9236 " char *\n"
9237 " guestfs_inspect_get_type (guestfs_h *g,\n"
9238 "                           const char *root);\n"
9239 "\n"
9240 msgstr ""
9241
9242 # type: textblock
9243 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
9244 msgid ""
9245 "This returns the type of the inspected operating system.  Currently defined "
9246 "types are:"
9247 msgstr ""
9248
9249 # type: =item
9250 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
9251 msgid "\"linux\""
9252 msgstr ""
9253
9254 # type: textblock
9255 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
9256 msgid "Any Linux-based operating system."
9257 msgstr ""
9258
9259 # type: textblock
9260 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
9261 msgid "Any Microsoft Windows operating system."
9262 msgstr ""
9263
9264 # type: =item
9265 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
9266 msgid "\"freebsd\""
9267 msgstr ""
9268
9269 # type: textblock
9270 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
9271 msgid "FreeBSD."
9272 msgstr ""
9273
9274 # type: textblock
9275 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
9276 msgid "The operating system type could not be determined."
9277 msgstr ""
9278
9279 # type: =head2
9280 #: ../src/guestfs-actions.pod:2828
9281 msgid "guestfs_inspect_get_windows_systemroot"
9282 msgstr ""
9283
9284 # type: verbatim
9285 #: ../src/guestfs-actions.pod:2830
9286 #, no-wrap
9287 msgid ""
9288 " char *\n"
9289 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9290 "                                         const char *root);\n"
9291 "\n"
9292 msgstr ""
9293
9294 # type: textblock
9295 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
9296 msgid ""
9297 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9298 "is a directory path such as C</WINDOWS>."
9299 msgstr ""
9300
9301 # type: textblock
9302 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
9303 msgid ""
9304 "This call assumes that the guest is Windows and that the systemroot could be "
9305 "determined by inspection.  If this is not the case then an error is returned."
9306 msgstr ""
9307
9308 # type: textblock
9309 #: ../src/guestfs-actions.pod:2849
9310 msgid "(Added in 1.5.25)"
9311 msgstr ""
9312
9313 # type: =head2
9314 #: ../src/guestfs-actions.pod:2851
9315 msgid "guestfs_inspect_list_applications"
9316 msgstr ""
9317
9318 # type: verbatim
9319 #: ../src/guestfs-actions.pod:2853
9320 #, no-wrap
9321 msgid ""
9322 " struct guestfs_application_list *\n"
9323 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9324 "                                    const char *root);\n"
9325 "\n"
9326 msgstr ""
9327
9328 # type: textblock
9329 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
9330 msgid "Return the list of applications installed in the operating system."
9331 msgstr ""
9332
9333 # type: textblock
9334 #: ../src/guestfs-actions.pod:2862
9335 msgid ""
9336 "I<Note:> This call works differently from other parts of the inspection "
9337 "API.  You have to call C<guestfs_inspect_os>, then "
9338 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9339 "this.  Listing applications is a significantly more difficult operation "
9340 "which requires access to the full filesystem.  Also note that unlike the "
9341 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9342 "the libguestfs handle, this call actually reads parts of the mounted "
9343 "filesystems during the call."
9344 msgstr ""
9345
9346 # type: textblock
9347 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
9348 msgid ""
9349 "This returns an empty list if the inspection code was not able to determine "
9350 "the list of applications."
9351 msgstr ""
9352
9353 # type: textblock
9354 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
9355 msgid "The application structure contains the following fields:"
9356 msgstr ""
9357
9358 # type: =item
9359 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
9360 msgid "C<app_name>"
9361 msgstr ""
9362
9363 # type: textblock
9364 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
9365 msgid ""
9366 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9367 "guests, this is the package name."
9368 msgstr ""
9369
9370 # type: =item
9371 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
9372 msgid "C<app_display_name>"
9373 msgstr ""
9374
9375 # type: textblock
9376 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
9377 msgid ""
9378 "The display name of the application, sometimes localized to the install "
9379 "language of the guest operating system."
9380 msgstr ""
9381
9382 # type: textblock
9383 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
9384 msgid ""
9385 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9386 "to display something can use C<app_name> instead."
9387 msgstr ""
9388
9389 # type: =item
9390 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
9391 msgid "C<app_epoch>"
9392 msgstr ""
9393
9394 # type: textblock
9395 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
9396 msgid ""
9397 "For package managers which use epochs, this contains the epoch of the "
9398 "package (an integer).  If unavailable, this is returned as C<0>."
9399 msgstr ""
9400
9401 # type: =item
9402 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
9403 msgid "C<app_version>"
9404 msgstr ""
9405
9406 # type: textblock
9407 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
9408 msgid ""
9409 "The version string of the application or package.  If unavailable this is "
9410 "returned as an empty string C<\"\">."
9411 msgstr ""
9412
9413 # type: =item
9414 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
9415 msgid "C<app_release>"
9416 msgstr ""
9417
9418 # type: textblock
9419 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
9420 msgid ""
9421 "The release string of the application or package, for package managers that "
9422 "use this.  If unavailable this is returned as an empty string C<\"\">."
9423 msgstr ""
9424
9425 # type: =item
9426 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
9427 msgid "C<app_install_path>"
9428 msgstr ""
9429
9430 # type: textblock
9431 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
9432 msgid ""
9433 "The installation path of the application (on operating systems such as "
9434 "Windows which use installation paths).  This path is in the format used by "
9435 "the guest operating system, it is not a libguestfs path."
9436 msgstr ""
9437
9438 # type: textblock
9439 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
9440 msgid "If unavailable this is returned as an empty string C<\"\">."
9441 msgstr ""
9442
9443 # type: =item
9444 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
9445 msgid "C<app_trans_path>"
9446 msgstr ""
9447
9448 # type: textblock
9449 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9450 msgid ""
9451 "The install path translated into a libguestfs path.  If unavailable this is "
9452 "returned as an empty string C<\"\">."
9453 msgstr ""
9454
9455 # type: =item
9456 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9457 msgid "C<app_publisher>"
9458 msgstr ""
9459
9460 # type: textblock
9461 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9462 msgid ""
9463 "The name of the publisher of the application, for package managers that use "
9464 "this.  If unavailable this is returned as an empty string C<\"\">."
9465 msgstr ""
9466
9467 # type: =item
9468 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9469 msgid "C<app_url>"
9470 msgstr ""
9471
9472 # type: textblock
9473 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9474 msgid ""
9475 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9476 "returned as an empty string C<\"\">."
9477 msgstr ""
9478
9479 # type: =item
9480 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9481 msgid "C<app_source_package>"
9482 msgstr ""
9483
9484 # type: textblock
9485 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9486 msgid ""
9487 "For packaging systems which support this, the name of the source package.  "
9488 "If unavailable this is returned as an empty string C<\"\">."
9489 msgstr ""
9490
9491 # type: =item
9492 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9493 msgid "C<app_summary>"
9494 msgstr ""
9495
9496 # type: textblock
9497 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9498 msgid ""
9499 "A short (usually one line) description of the application or package.  If "
9500 "unavailable this is returned as an empty string C<\"\">."
9501 msgstr ""
9502
9503 # type: =item
9504 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9505 msgid "C<app_description>"
9506 msgstr ""
9507
9508 # type: textblock
9509 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9510 msgid ""
9511 "A longer description of the application or package.  If unavailable this is "
9512 "returned as an empty string C<\"\">."
9513 msgstr ""
9514
9515 # type: textblock
9516 #: ../src/guestfs-actions.pod:2952
9517 msgid ""
9518 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9519 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9520 "after use>."
9521 msgstr ""
9522
9523 # type: =head2
9524 #: ../src/guestfs-actions.pod:2956
9525 msgid "guestfs_inspect_os"
9526 msgstr ""
9527
9528 # type: verbatim
9529 #: ../src/guestfs-actions.pod:2958
9530 #, no-wrap
9531 msgid ""
9532 " char **\n"
9533 " guestfs_inspect_os (guestfs_h *g);\n"
9534 "\n"
9535 msgstr ""
9536
9537 # type: textblock
9538 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9539 msgid ""
9540 "This function uses other libguestfs functions and certain heuristics to "
9541 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9542 "for operating systems."
9543 msgstr ""
9544
9545 # type: textblock
9546 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9547 msgid "The list returned is empty if no operating systems were found."
9548 msgstr ""
9549
9550 # type: textblock
9551 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9552 msgid ""
9553 "If one operating system was found, then this returns a list with a single "
9554 "element, which is the name of the root filesystem of this operating system.  "
9555 "It is also possible for this function to return a list containing more than "
9556 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9557 "element being the root filesystem of one of the operating systems."
9558 msgstr ""
9559
9560 # type: textblock
9561 #: ../src/guestfs-actions.pod:2974
9562 msgid ""
9563 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9564 "functions in order to query further information about each operating system, "
9565 "such as the name and version."
9566 msgstr ""
9567
9568 # type: textblock
9569 #: ../src/guestfs-actions.pod:2979
9570 msgid ""
9571 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9572 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9573 "the contents.  This should be called with no disks currently mounted.  The "
9574 "function may also use Augeas, so any existing Augeas handle will be closed."
9575 msgstr ""
9576
9577 # type: textblock
9578 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9579 msgid ""
9580 "This function cannot decrypt encrypted disks.  The caller must do that first "
9581 "(supplying the necessary keys) if the disk is encrypted."
9582 msgstr ""
9583
9584 # type: textblock
9585 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246
9586 #: ../src/guestfs-actions.pod:3308
9587 msgid "See also C<guestfs_list_filesystems>."
9588 msgstr ""
9589
9590 # type: =head2
9591 #: ../src/guestfs-actions.pod:2999
9592 msgid "guestfs_is_blockdev"
9593 msgstr ""
9594
9595 # type: verbatim
9596 #: ../src/guestfs-actions.pod:3001
9597 #, no-wrap
9598 msgid ""
9599 " int\n"
9600 " guestfs_is_blockdev (guestfs_h *g,\n"
9601 "                      const char *path);\n"
9602 "\n"
9603 msgstr ""
9604
9605 # type: textblock
9606 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9607 msgid ""
9608 "This returns C<true> if and only if there is a block device with the given "
9609 "C<path> name."
9610 msgstr ""
9611
9612 # type: textblock
9613 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037
9614 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082
9615 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154
9616 #: ../src/guestfs-actions.pod:3169
9617 msgid "See also C<guestfs_stat>."
9618 msgstr ""
9619
9620 # type: textblock
9621 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041
9622 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158
9623 #: ../src/guestfs-actions.pod:3173
9624 msgid "(Added in 1.5.10)"
9625 msgstr ""
9626
9627 # type: =head2
9628 #: ../src/guestfs-actions.pod:3014
9629 msgid "guestfs_is_busy"
9630 msgstr ""
9631
9632 # type: verbatim
9633 #: ../src/guestfs-actions.pod:3016
9634 #, no-wrap
9635 msgid ""
9636 " int\n"
9637 " guestfs_is_busy (guestfs_h *g);\n"
9638 "\n"
9639 msgstr ""
9640
9641 # type: textblock
9642 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9643 msgid ""
9644 "This returns true iff this handle is busy processing a command (in the "
9645 "C<BUSY> state)."
9646 msgstr ""
9647
9648 # type: =head2
9649 #: ../src/guestfs-actions.pod:3028
9650 msgid "guestfs_is_chardev"
9651 msgstr ""
9652
9653 # type: verbatim
9654 #: ../src/guestfs-actions.pod:3030
9655 #, no-wrap
9656 msgid ""
9657 " int\n"
9658 " guestfs_is_chardev (guestfs_h *g,\n"
9659 "                     const char *path);\n"
9660 "\n"
9661 msgstr ""
9662
9663 # type: textblock
9664 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9665 msgid ""
9666 "This returns C<true> if and only if there is a character device with the "
9667 "given C<path> name."
9668 msgstr ""
9669
9670 # type: =head2
9671 #: ../src/guestfs-actions.pod:3043
9672 msgid "guestfs_is_config"
9673 msgstr ""
9674
9675 # type: verbatim
9676 #: ../src/guestfs-actions.pod:3045
9677 #, no-wrap
9678 msgid ""
9679 " int\n"
9680 " guestfs_is_config (guestfs_h *g);\n"
9681 "\n"
9682 msgstr ""
9683
9684 # type: textblock
9685 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9686 msgid ""
9687 "This returns true iff this handle is being configured (in the C<CONFIG> "
9688 "state)."
9689 msgstr ""
9690
9691 # type: =head2
9692 #: ../src/guestfs-actions.pod:3057
9693 msgid "guestfs_is_dir"
9694 msgstr ""
9695
9696 # type: verbatim
9697 #: ../src/guestfs-actions.pod:3059
9698 #, no-wrap
9699 msgid ""
9700 " int\n"
9701 " guestfs_is_dir (guestfs_h *g,\n"
9702 "                 const char *path);\n"
9703 "\n"
9704 msgstr ""
9705
9706 # type: textblock
9707 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9708 msgid ""
9709 "This returns C<true> if and only if there is a directory with the given "
9710 "C<path> name.  Note that it returns false for other objects like files."
9711 msgstr ""
9712
9713 # type: =head2
9714 #: ../src/guestfs-actions.pod:3073
9715 msgid "guestfs_is_fifo"
9716 msgstr ""
9717
9718 # type: verbatim
9719 #: ../src/guestfs-actions.pod:3075
9720 #, no-wrap
9721 msgid ""
9722 " int\n"
9723 " guestfs_is_fifo (guestfs_h *g,\n"
9724 "                  const char *path);\n"
9725 "\n"
9726 msgstr ""
9727
9728 # type: textblock
9729 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9730 msgid ""
9731 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9732 "given C<path> name."
9733 msgstr ""
9734
9735 # type: =head2
9736 #: ../src/guestfs-actions.pod:3088
9737 msgid "guestfs_is_file"
9738 msgstr ""
9739
9740 # type: verbatim
9741 #: ../src/guestfs-actions.pod:3090
9742 #, no-wrap
9743 msgid ""
9744 " int\n"
9745 " guestfs_is_file (guestfs_h *g,\n"
9746 "                  const char *path);\n"
9747 "\n"
9748 msgstr ""
9749
9750 # type: textblock
9751 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9752 msgid ""
9753 "This returns C<true> if and only if there is a regular file with the given "
9754 "C<path> name.  Note that it returns false for other objects like directories."
9755 msgstr ""
9756
9757 # type: =head2
9758 #: ../src/guestfs-actions.pod:3104
9759 msgid "guestfs_is_launching"
9760 msgstr ""
9761
9762 # type: verbatim
9763 #: ../src/guestfs-actions.pod:3106
9764 #, no-wrap
9765 msgid ""
9766 " int\n"
9767 " guestfs_is_launching (guestfs_h *g);\n"
9768 "\n"
9769 msgstr ""
9770
9771 # type: textblock
9772 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9773 msgid ""
9774 "This returns true iff this handle is launching the subprocess (in the "
9775 "C<LAUNCHING> state)."
9776 msgstr ""
9777
9778 # type: =head2
9779 #: ../src/guestfs-actions.pod:3118
9780 msgid "guestfs_is_lv"
9781 msgstr ""
9782
9783 # type: verbatim
9784 #: ../src/guestfs-actions.pod:3120
9785 #, no-wrap
9786 msgid ""
9787 " int\n"
9788 " guestfs_is_lv (guestfs_h *g,\n"
9789 "                const char *device);\n"
9790 "\n"
9791 msgstr ""
9792
9793 # type: textblock
9794 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9795 msgid ""
9796 "This command tests whether C<device> is a logical volume, and returns true "
9797 "iff this is the case."
9798 msgstr ""
9799
9800 # type: =head2
9801 #: ../src/guestfs-actions.pod:3131
9802 msgid "guestfs_is_ready"
9803 msgstr ""
9804
9805 # type: verbatim
9806 #: ../src/guestfs-actions.pod:3133
9807 #, no-wrap
9808 msgid ""
9809 " int\n"
9810 " guestfs_is_ready (guestfs_h *g);\n"
9811 "\n"
9812 msgstr ""
9813
9814 # type: textblock
9815 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9816 msgid ""
9817 "This returns true iff this handle is ready to accept commands (in the "
9818 "C<READY> state)."
9819 msgstr ""
9820
9821 # type: =head2
9822 #: ../src/guestfs-actions.pod:3145
9823 msgid "guestfs_is_socket"
9824 msgstr ""
9825
9826 # type: verbatim
9827 #: ../src/guestfs-actions.pod:3147
9828 #, no-wrap
9829 msgid ""
9830 " int\n"
9831 " guestfs_is_socket (guestfs_h *g,\n"
9832 "                    const char *path);\n"
9833 "\n"
9834 msgstr ""
9835
9836 # type: textblock
9837 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9838 msgid ""
9839 "This returns C<true> if and only if there is a Unix domain socket with the "
9840 "given C<path> name."
9841 msgstr ""
9842
9843 # type: =head2
9844 #: ../src/guestfs-actions.pod:3160
9845 msgid "guestfs_is_symlink"
9846 msgstr ""
9847
9848 # type: verbatim
9849 #: ../src/guestfs-actions.pod:3162
9850 #, no-wrap
9851 msgid ""
9852 " int\n"
9853 " guestfs_is_symlink (guestfs_h *g,\n"
9854 "                     const char *path);\n"
9855 "\n"
9856 msgstr ""
9857
9858 # type: textblock
9859 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9860 msgid ""
9861 "This returns C<true> if and only if there is a symbolic link with the given "
9862 "C<path> name."
9863 msgstr ""
9864
9865 # type: =head2
9866 #: ../src/guestfs-actions.pod:3175
9867 msgid "guestfs_kill_subprocess"
9868 msgstr ""
9869
9870 # type: verbatim
9871 #: ../src/guestfs-actions.pod:3177
9872 #, no-wrap
9873 msgid ""
9874 " int\n"
9875 " guestfs_kill_subprocess (guestfs_h *g);\n"
9876 "\n"
9877 msgstr ""
9878
9879 # type: textblock
9880 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9881 msgid "This kills the qemu subprocess.  You should never need to call this."
9882 msgstr ""
9883
9884 # type: =head2
9885 #: ../src/guestfs-actions.pod:3186
9886 msgid "guestfs_launch"
9887 msgstr ""
9888
9889 # type: verbatim
9890 #: ../src/guestfs-actions.pod:3188
9891 #, no-wrap
9892 msgid ""
9893 " int\n"
9894 " guestfs_launch (guestfs_h *g);\n"
9895 "\n"
9896 msgstr ""
9897
9898 # type: textblock
9899 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9900 msgid ""
9901 "Internally libguestfs is implemented by running a virtual machine using "
9902 "L<qemu(1)>."
9903 msgstr ""
9904
9905 # type: textblock
9906 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9907 msgid ""
9908 "You should call this after configuring the handle (eg. adding drives) but "
9909 "before performing any actions."
9910 msgstr ""
9911
9912 # type: =head2
9913 #: ../src/guestfs-actions.pod:3201
9914 msgid "guestfs_lchown"
9915 msgstr ""
9916
9917 # type: verbatim
9918 #: ../src/guestfs-actions.pod:3203
9919 #, no-wrap
9920 msgid ""
9921 " int\n"
9922 " guestfs_lchown (guestfs_h *g,\n"
9923 "                 int owner,\n"
9924 "                 int group,\n"
9925 "                 const char *path);\n"
9926 "\n"
9927 msgstr ""
9928
9929 # type: textblock
9930 #: ../src/guestfs-actions.pod:3209
9931 msgid ""
9932 "Change the file owner to C<owner> and group to C<group>.  This is like "
9933 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9934 "changed, not the target."
9935 msgstr ""
9936
9937 # type: =head2
9938 #: ../src/guestfs-actions.pod:3221
9939 msgid "guestfs_lgetxattrs"
9940 msgstr ""
9941
9942 # type: verbatim
9943 #: ../src/guestfs-actions.pod:3223
9944 #, no-wrap
9945 msgid ""
9946 " struct guestfs_xattr_list *\n"
9947 " guestfs_lgetxattrs (guestfs_h *g,\n"
9948 "                     const char *path);\n"
9949 "\n"
9950 msgstr ""
9951
9952 # type: textblock
9953 #: ../src/guestfs-actions.pod:3227
9954 msgid ""
9955 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9956 "then it returns the extended attributes of the link itself."
9957 msgstr ""
9958
9959 # type: =head2
9960 #: ../src/guestfs-actions.pod:3237
9961 msgid "guestfs_list_devices"
9962 msgstr ""
9963
9964 # type: verbatim
9965 #: ../src/guestfs-actions.pod:3239
9966 #, no-wrap
9967 msgid ""
9968 " char **\n"
9969 " guestfs_list_devices (guestfs_h *g);\n"
9970 "\n"
9971 msgstr ""
9972
9973 # type: textblock
9974 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9975 msgid "List all the block devices."
9976 msgstr ""
9977
9978 # type: textblock
9979 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9980 msgid "The full block device names are returned, eg. C</dev/sda>."
9981 msgstr ""
9982
9983 # type: =head2
9984 #: ../src/guestfs-actions.pod:3254
9985 msgid "guestfs_list_filesystems"
9986 msgstr ""
9987
9988 # type: verbatim
9989 #: ../src/guestfs-actions.pod:3256
9990 #, no-wrap
9991 msgid ""
9992 " char **\n"
9993 " guestfs_list_filesystems (guestfs_h *g);\n"
9994 "\n"
9995 msgstr ""
9996
9997 # type: textblock
9998 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
9999 msgid ""
10000 "This inspection command looks for filesystems on partitions, block devices "
10001 "and logical volumes, returning a list of devices containing filesystems and "
10002 "their type."
10003 msgstr ""
10004
10005 # type: textblock
10006 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
10007 msgid ""
10008 "The return value is a hash, where the keys are the devices containing "
10009 "filesystems, and the values are the filesystem types.  For example:"
10010 msgstr ""
10011
10012 # type: verbatim
10013 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
10014 #, no-wrap
10015 msgid ""
10016 " \"/dev/sda1\" => \"ntfs\"\n"
10017 " \"/dev/sda2\" => \"ext2\"\n"
10018 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10019 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10020 "\n"
10021 msgstr ""
10022
10023 # type: textblock
10024 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
10025 msgid ""
10026 "The value can have the special value \"unknown\", meaning the content of the "
10027 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10028 msgstr ""
10029
10030 # type: textblock
10031 #: ../src/guestfs-actions.pod:3276
10032 msgid ""
10033 "This command runs other libguestfs commands, which might include "
10034 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10035 "soon after launch and only when nothing is mounted."
10036 msgstr ""
10037
10038 # type: textblock
10039 #: ../src/guestfs-actions.pod:3280
10040 msgid ""
10041 "Not all of the filesystems returned will be mountable.  In particular, swap "
10042 "partitions are returned in the list.  Also this command does not check that "
10043 "each filesystem found is valid and mountable, and some filesystems might be "
10044 "mountable but require special options.  Filesystems may not all belong to a "
10045 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10046 msgstr ""
10047
10048 # type: textblock
10049 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
10050 msgid "(Added in 1.5.15)"
10051 msgstr ""
10052
10053 # type: =head2
10054 #: ../src/guestfs-actions.pod:3296
10055 msgid "guestfs_list_partitions"
10056 msgstr ""
10057
10058 # type: verbatim
10059 #: ../src/guestfs-actions.pod:3298
10060 #, no-wrap
10061 msgid ""
10062 " char **\n"
10063 " guestfs_list_partitions (guestfs_h *g);\n"
10064 "\n"
10065 msgstr ""
10066
10067 # type: textblock
10068 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
10069 msgid "List all the partitions detected on all block devices."
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
10074 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10075 msgstr ""
10076
10077 # type: textblock
10078 #: ../src/guestfs-actions.pod:3305
10079 msgid ""
10080 "This does not return logical volumes.  For that you will need to call "
10081 "C<guestfs_lvs>."
10082 msgstr ""
10083
10084 # type: =head2
10085 #: ../src/guestfs-actions.pod:3316
10086 msgid "guestfs_ll"
10087 msgstr ""
10088
10089 # type: verbatim
10090 #: ../src/guestfs-actions.pod:3318
10091 #, no-wrap
10092 msgid ""
10093 " char *\n"
10094 " guestfs_ll (guestfs_h *g,\n"
10095 "             const char *directory);\n"
10096 "\n"
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
10101 msgid ""
10102 "List the files in C<directory> (relative to the root directory, there is no "
10103 "cwd) in the format of 'ls -la'."
10104 msgstr ""
10105
10106 # type: textblock
10107 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
10108 msgid ""
10109 "This command is mostly useful for interactive sessions.  It is I<not> "
10110 "intended that you try to parse the output string."
10111 msgstr ""
10112
10113 # type: =head2
10114 #: ../src/guestfs-actions.pod:3333
10115 msgid "guestfs_ln"
10116 msgstr ""
10117
10118 # type: verbatim
10119 #: ../src/guestfs-actions.pod:3335
10120 #, no-wrap
10121 msgid ""
10122 " int\n"
10123 " guestfs_ln (guestfs_h *g,\n"
10124 "             const char *target,\n"
10125 "             const char *linkname);\n"
10126 "\n"
10127 msgstr ""
10128
10129 # type: textblock
10130 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
10131 msgid "This command creates a hard link using the C<ln> command."
10132 msgstr ""
10133
10134 # type: =head2
10135 #: ../src/guestfs-actions.pod:3346
10136 msgid "guestfs_ln_f"
10137 msgstr ""
10138
10139 # type: verbatim
10140 #: ../src/guestfs-actions.pod:3348
10141 #, no-wrap
10142 msgid ""
10143 " int\n"
10144 " guestfs_ln_f (guestfs_h *g,\n"
10145 "               const char *target,\n"
10146 "               const char *linkname);\n"
10147 "\n"
10148 msgstr ""
10149
10150 # type: textblock
10151 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
10152 msgid ""
10153 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10154 "option removes the link (C<linkname>) if it exists already."
10155 msgstr ""
10156
10157 # type: =head2
10158 #: ../src/guestfs-actions.pod:3360
10159 msgid "guestfs_ln_s"
10160 msgstr ""
10161
10162 # type: verbatim
10163 #: ../src/guestfs-actions.pod:3362
10164 #, no-wrap
10165 msgid ""
10166 " int\n"
10167 " guestfs_ln_s (guestfs_h *g,\n"
10168 "               const char *target,\n"
10169 "               const char *linkname);\n"
10170 "\n"
10171 msgstr ""
10172
10173 # type: textblock
10174 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
10175 msgid "This command creates a symbolic link using the C<ln -s> command."
10176 msgstr ""
10177
10178 # type: =head2
10179 #: ../src/guestfs-actions.pod:3373
10180 msgid "guestfs_ln_sf"
10181 msgstr ""
10182
10183 # type: verbatim
10184 #: ../src/guestfs-actions.pod:3375
10185 #, no-wrap
10186 msgid ""
10187 " int\n"
10188 " guestfs_ln_sf (guestfs_h *g,\n"
10189 "                const char *target,\n"
10190 "                const char *linkname);\n"
10191 "\n"
10192 msgstr ""
10193
10194 # type: textblock
10195 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
10196 msgid ""
10197 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10198 "option removes the link (C<linkname>) if it exists already."
10199 msgstr ""
10200
10201 # type: =head2
10202 #: ../src/guestfs-actions.pod:3387
10203 msgid "guestfs_lremovexattr"
10204 msgstr ""
10205
10206 # type: verbatim
10207 #: ../src/guestfs-actions.pod:3389
10208 #, no-wrap
10209 msgid ""
10210 " int\n"
10211 " guestfs_lremovexattr (guestfs_h *g,\n"
10212 "                       const char *xattr,\n"
10213 "                       const char *path);\n"
10214 "\n"
10215 msgstr ""
10216
10217 # type: textblock
10218 #: ../src/guestfs-actions.pod:3394
10219 msgid ""
10220 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10221 "link, then it removes an extended attribute of the link itself."
10222 msgstr ""
10223
10224 # type: =head2
10225 #: ../src/guestfs-actions.pod:3402
10226 msgid "guestfs_ls"
10227 msgstr ""
10228
10229 # type: verbatim
10230 #: ../src/guestfs-actions.pod:3404
10231 #, no-wrap
10232 msgid ""
10233 " char **\n"
10234 " guestfs_ls (guestfs_h *g,\n"
10235 "             const char *directory);\n"
10236 "\n"
10237 msgstr ""
10238
10239 # type: textblock
10240 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
10241 msgid ""
10242 "List the files in C<directory> (relative to the root directory, there is no "
10243 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10244 msgstr ""
10245
10246 # type: textblock
10247 #: ../src/guestfs-actions.pod:3412
10248 msgid ""
10249 "This command is mostly useful for interactive sessions.  Programs should "
10250 "probably use C<guestfs_readdir> instead."
10251 msgstr ""
10252
10253 # type: =head2
10254 #: ../src/guestfs-actions.pod:3421
10255 msgid "guestfs_lsetxattr"
10256 msgstr ""
10257
10258 # type: verbatim
10259 #: ../src/guestfs-actions.pod:3423
10260 #, no-wrap
10261 msgid ""
10262 " int\n"
10263 " guestfs_lsetxattr (guestfs_h *g,\n"
10264 "                    const char *xattr,\n"
10265 "                    const char *val,\n"
10266 "                    int vallen,\n"
10267 "                    const char *path);\n"
10268 "\n"
10269 msgstr ""
10270
10271 # type: textblock
10272 #: ../src/guestfs-actions.pod:3430
10273 msgid ""
10274 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10275 "then it sets an extended attribute of the link itself."
10276 msgstr ""
10277
10278 # type: =head2
10279 #: ../src/guestfs-actions.pod:3438
10280 msgid "guestfs_lstat"
10281 msgstr ""
10282
10283 # type: verbatim
10284 #: ../src/guestfs-actions.pod:3440
10285 #, no-wrap
10286 msgid ""
10287 " struct guestfs_stat *\n"
10288 " guestfs_lstat (guestfs_h *g,\n"
10289 "                const char *path);\n"
10290 "\n"
10291 msgstr ""
10292
10293 # type: textblock
10294 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871
10295 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10296 msgid "Returns file information for the given C<path>."
10297 msgstr ""
10298
10299 # type: textblock
10300 #: ../src/guestfs-actions.pod:3446
10301 msgid ""
10302 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10303 "link, then the link is stat-ed, not the file it refers to."
10304 msgstr ""
10305
10306 # type: textblock
10307 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
10308 msgid "This is the same as the C<lstat(2)> system call."
10309 msgstr ""
10310
10311 # type: textblock
10312 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
10313 msgid ""
10314 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10315 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10316 msgstr ""
10317
10318 # type: textblock
10319 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879
10320 #: ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
10321 msgid "(Added in 0.9.2)"
10322 msgstr ""
10323
10324 # type: =head2
10325 #: ../src/guestfs-actions.pod:3458
10326 msgid "guestfs_lstatlist"
10327 msgstr ""
10328
10329 # type: verbatim
10330 #: ../src/guestfs-actions.pod:3460
10331 #, no-wrap
10332 msgid ""
10333 " struct guestfs_stat_list *\n"
10334 " guestfs_lstatlist (guestfs_h *g,\n"
10335 "                    const char *path,\n"
10336 "                    char *const *names);\n"
10337 "\n"
10338 msgstr ""
10339
10340 # type: textblock
10341 #: ../src/guestfs-actions.pod:3465
10342 msgid ""
10343 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10344 "files, where all files are in the directory C<path>.  C<names> is the list "
10345 "of files from this directory."
10346 msgstr ""
10347
10348 # type: textblock
10349 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
10350 msgid ""
10351 "On return you get a list of stat structs, with a one-to-one correspondence "
10352 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10353 "then the C<ino> field of that structure is set to C<-1>."
10354 msgstr ""
10355
10356 # type: textblock
10357 #: ../src/guestfs-actions.pod:3474
10358 msgid ""
10359 "This call is intended for programs that want to efficiently list a directory "
10360 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10361 "for a similarly efficient call for getting extended attributes.  Very long "
10362 "directory listings might cause the protocol message size to be exceeded, "
10363 "causing this call to fail.  The caller must split up such requests into "
10364 "smaller groups of names."
10365 msgstr ""
10366
10367 # type: textblock
10368 #: ../src/guestfs-actions.pod:3482
10369 msgid ""
10370 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10371 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10372 msgstr ""
10373
10374 # type: =head2
10375 #: ../src/guestfs-actions.pod:3488
10376 msgid "guestfs_luks_add_key"
10377 msgstr ""
10378
10379 # type: verbatim
10380 #: ../src/guestfs-actions.pod:3490
10381 #, no-wrap
10382 msgid ""
10383 " int\n"
10384 " guestfs_luks_add_key (guestfs_h *g,\n"
10385 "                       const char *device,\n"
10386 "                       const char *key,\n"
10387 "                       const char *newkey,\n"
10388 "                       int keyslot);\n"
10389 "\n"
10390 msgstr ""
10391
10392 # type: textblock
10393 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
10394 msgid ""
10395 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10396 "existing key, and is used to access the device.  C<newkey> is the new key to "
10397 "add.  C<keyslot> is the key slot that will be replaced."
10398 msgstr ""
10399
10400 # type: textblock
10401 #: ../src/guestfs-actions.pod:3502
10402 msgid ""
10403 "Note that if C<keyslot> already contains a key, then this command will "
10404 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10405 msgstr ""
10406
10407 # type: textblock
10408 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548
10409 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591
10410 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
10411 msgid ""
10412 "This function takes a key or passphrase parameter which could contain "
10413 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10414 "information."
10415 msgstr ""
10416
10417 # type: textblock
10418 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552
10419 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
10420 msgid "(Added in 1.5.2)"
10421 msgstr ""
10422
10423 # type: =head2
10424 #: ../src/guestfs-actions.pod:3514
10425 msgid "guestfs_luks_close"
10426 msgstr ""
10427
10428 # type: verbatim
10429 #: ../src/guestfs-actions.pod:3516
10430 #, no-wrap
10431 msgid ""
10432 " int\n"
10433 " guestfs_luks_close (guestfs_h *g,\n"
10434 "                     const char *device);\n"
10435 "\n"
10436 msgstr ""
10437
10438 # type: textblock
10439 #: ../src/guestfs-actions.pod:3520
10440 msgid ""
10441 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10442 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10443 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10444 "underlying block device."
10445 msgstr ""
10446
10447 # type: textblock
10448 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627
10449 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696
10450 #: ../src/guestfs-actions.pod:3744
10451 msgid "(Added in 1.5.1)"
10452 msgstr ""
10453
10454 # type: =head2
10455 #: ../src/guestfs-actions.pod:3530
10456 msgid "guestfs_luks_format"
10457 msgstr ""
10458
10459 # type: verbatim
10460 #: ../src/guestfs-actions.pod:3532
10461 #, no-wrap
10462 msgid ""
10463 " int\n"
10464 " guestfs_luks_format (guestfs_h *g,\n"
10465 "                      const char *device,\n"
10466 "                      const char *key,\n"
10467 "                      int keyslot);\n"
10468 "\n"
10469 msgstr ""
10470
10471 # type: textblock
10472 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10473 msgid ""
10474 "This command erases existing data on C<device> and formats the device as a "
10475 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10476 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10477 msgstr ""
10478
10479 # type: textblock
10480 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568
10481 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568
10482 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706
10483 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755
10484 #: ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433
10485 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10486 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10487 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10488 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10489 msgid ""
10490 "B<This command is dangerous.  Without careful use you can easily destroy all "
10491 "your data>."
10492 msgstr ""
10493
10494 # type: =head2
10495 #: ../src/guestfs-actions.pod:3554
10496 msgid "guestfs_luks_format_cipher"
10497 msgstr ""
10498
10499 # type: verbatim
10500 #: ../src/guestfs-actions.pod:3556
10501 #, no-wrap
10502 msgid ""
10503 " int\n"
10504 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10505 "                             const char *device,\n"
10506 "                             const char *key,\n"
10507 "                             int keyslot,\n"
10508 "                             const char *cipher);\n"
10509 "\n"
10510 msgstr ""
10511
10512 # type: textblock
10513 #: ../src/guestfs-actions.pod:3563
10514 msgid ""
10515 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10516 "set the C<cipher> used."
10517 msgstr ""
10518
10519 # type: =head2
10520 #: ../src/guestfs-actions.pod:3577
10521 msgid "guestfs_luks_kill_slot"
10522 msgstr ""
10523
10524 # type: verbatim
10525 #: ../src/guestfs-actions.pod:3579
10526 #, no-wrap
10527 msgid ""
10528 " int\n"
10529 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10530 "                         const char *device,\n"
10531 "                         const char *key,\n"
10532 "                         int keyslot);\n"
10533 "\n"
10534 msgstr ""
10535
10536 # type: textblock
10537 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10538 msgid ""
10539 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10540 "device C<device>.  C<key> must be one of the I<other> keys."
10541 msgstr ""
10542
10543 # type: =head2
10544 #: ../src/guestfs-actions.pod:3597
10545 msgid "guestfs_luks_open"
10546 msgstr ""
10547
10548 # type: verbatim
10549 #: ../src/guestfs-actions.pod:3599
10550 #, no-wrap
10551 msgid ""
10552 " int\n"
10553 " guestfs_luks_open (guestfs_h *g,\n"
10554 "                    const char *device,\n"
10555 "                    const char *key,\n"
10556 "                    const char *mapname);\n"
10557 "\n"
10558 msgstr ""
10559
10560 # type: textblock
10561 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10562 msgid ""
10563 "This command opens a block device which has been encrypted according to the "
10564 "Linux Unified Key Setup (LUKS) standard."
10565 msgstr ""
10566
10567 # type: textblock
10568 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10569 msgid "C<device> is the encrypted block device or partition."
10570 msgstr ""
10571
10572 # type: textblock
10573 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10574 msgid ""
10575 "The caller must supply one of the keys associated with the LUKS block "
10576 "device, in the C<key> parameter."
10577 msgstr ""
10578
10579 # type: textblock
10580 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10581 msgid ""
10582 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10583 "writes to this block device are decrypted from and encrypted to the "
10584 "underlying C<device> respectively."
10585 msgstr ""
10586
10587 # type: textblock
10588 #: ../src/guestfs-actions.pod:3617
10589 msgid ""
10590 "If this block device contains LVM volume groups, then calling "
10591 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10592 "visible."
10593 msgstr ""
10594
10595 # type: =head2
10596 #: ../src/guestfs-actions.pod:3629
10597 msgid "guestfs_luks_open_ro"
10598 msgstr ""
10599
10600 # type: verbatim
10601 #: ../src/guestfs-actions.pod:3631
10602 #, no-wrap
10603 msgid ""
10604 " int\n"
10605 " guestfs_luks_open_ro (guestfs_h *g,\n"
10606 "                       const char *device,\n"
10607 "                       const char *key,\n"
10608 "                       const char *mapname);\n"
10609 "\n"
10610 msgstr ""
10611
10612 # type: textblock
10613 #: ../src/guestfs-actions.pod:3637
10614 msgid ""
10615 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10616 "created."
10617 msgstr ""
10618
10619 # type: =head2
10620 #: ../src/guestfs-actions.pod:3648
10621 msgid "guestfs_lvcreate"
10622 msgstr ""
10623
10624 # type: verbatim
10625 #: ../src/guestfs-actions.pod:3650
10626 #, no-wrap
10627 msgid ""
10628 " int\n"
10629 " guestfs_lvcreate (guestfs_h *g,\n"
10630 "                   const char *logvol,\n"
10631 "                   const char *volgroup,\n"
10632 "                   int mbytes);\n"
10633 "\n"
10634 msgstr ""
10635
10636 # type: textblock
10637 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10638 msgid ""
10639 "This creates an LVM logical volume called C<logvol> on the volume group "
10640 "C<volgroup>, with C<size> megabytes."
10641 msgstr ""
10642
10643 # type: =head2
10644 #: ../src/guestfs-actions.pod:3663
10645 msgid "guestfs_lvm_canonical_lv_name"
10646 msgstr ""
10647
10648 # type: verbatim
10649 #: ../src/guestfs-actions.pod:3665
10650 #, no-wrap
10651 msgid ""
10652 " char *\n"
10653 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10654 "                                const char *lvname);\n"
10655 "\n"
10656 msgstr ""
10657
10658 # type: textblock
10659 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10660 msgid ""
10661 "This converts alternative naming schemes for LVs that you might find to the "
10662 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10663 "LV>."
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10668 msgid ""
10669 "This command returns an error if the C<lvname> parameter does not refer to a "
10670 "logical volume."
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:3676
10675 msgid "See also C<guestfs_is_lv>."
10676 msgstr ""
10677
10678 # type: textblock
10679 #: ../src/guestfs-actions.pod:3681
10680 msgid "(Added in 1.5.24)"
10681 msgstr ""
10682
10683 # type: =head2
10684 #: ../src/guestfs-actions.pod:3683
10685 msgid "guestfs_lvm_clear_filter"
10686 msgstr ""
10687
10688 # type: verbatim
10689 #: ../src/guestfs-actions.pod:3685
10690 #, no-wrap
10691 msgid ""
10692 " int\n"
10693 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10694 "\n"
10695 msgstr ""
10696
10697 # type: textblock
10698 #: ../src/guestfs-actions.pod:3688
10699 msgid ""
10700 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10701 "see every block device."
10702 msgstr ""
10703
10704 # type: textblock
10705 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733
10706 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10707 msgid ""
10708 "This command also clears the LVM cache and performs a volume group scan."
10709 msgstr ""
10710
10711 # type: =head2
10712 #: ../src/guestfs-actions.pod:3698
10713 msgid "guestfs_lvm_remove_all"
10714 msgstr ""
10715
10716 # type: verbatim
10717 #: ../src/guestfs-actions.pod:3700
10718 #, no-wrap
10719 msgid ""
10720 " int\n"
10721 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10722 "\n"
10723 msgstr ""
10724
10725 # type: textblock
10726 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10727 msgid ""
10728 "This command removes all LVM logical volumes, volume groups and physical "
10729 "volumes."
10730 msgstr ""
10731
10732 # type: =head2
10733 #: ../src/guestfs-actions.pod:3713
10734 msgid "guestfs_lvm_set_filter"
10735 msgstr ""
10736
10737 # type: verbatim
10738 #: ../src/guestfs-actions.pod:3715
10739 #, no-wrap
10740 msgid ""
10741 " int\n"
10742 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10743 "                         char *const *devices);\n"
10744 "\n"
10745 msgstr ""
10746
10747 # type: textblock
10748 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10749 msgid ""
10750 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10751 "block devices in the list C<devices>, and will ignore all other attached "
10752 "block devices."
10753 msgstr ""
10754
10755 # type: textblock
10756 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10757 msgid ""
10758 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10759 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10760 "there are two types of duplication possible: either cloned PVs/VGs which "
10761 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10762 "same name.  In normal operation you cannot create this situation, but you "
10763 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10764 "inside the LVM metadata."
10765 msgstr ""
10766
10767 # type: textblock
10768 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10769 msgid "You can filter whole block devices or individual partitions."
10770 msgstr ""
10771
10772 # type: textblock
10773 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10774 msgid ""
10775 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10776 "filesystem), even if you are not filtering out that VG."
10777 msgstr ""
10778
10779 # type: =head2
10780 #: ../src/guestfs-actions.pod:3746
10781 msgid "guestfs_lvremove"
10782 msgstr ""
10783
10784 # type: verbatim
10785 #: ../src/guestfs-actions.pod:3748
10786 #, no-wrap
10787 msgid ""
10788 " int\n"
10789 " guestfs_lvremove (guestfs_h *g,\n"
10790 "                   const char *device);\n"
10791 "\n"
10792 msgstr ""
10793
10794 # type: textblock
10795 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10796 msgid ""
10797 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10798 "LV, such as C</dev/VG/LV>."
10799 msgstr ""
10800
10801 # type: textblock
10802 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10803 msgid ""
10804 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10805 "dev/VG>."
10806 msgstr ""
10807
10808 # type: textblock
10809 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914
10810 #: ../src/guestfs-actions.pod:6644
10811 msgid "(Added in 1.0.13)"
10812 msgstr ""
10813
10814 # type: =head2
10815 #: ../src/guestfs-actions.pod:3762
10816 msgid "guestfs_lvrename"
10817 msgstr ""
10818
10819 # type: verbatim
10820 #: ../src/guestfs-actions.pod:3764
10821 #, no-wrap
10822 msgid ""
10823 " int\n"
10824 " guestfs_lvrename (guestfs_h *g,\n"
10825 "                   const char *logvol,\n"
10826 "                   const char *newlogvol);\n"
10827 "\n"
10828 msgstr ""
10829
10830 # type: textblock
10831 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10832 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10833 msgstr ""
10834
10835 # type: textblock
10836 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10837 msgid "(Added in 1.0.83)"
10838 msgstr ""
10839
10840 # type: =head2
10841 #: ../src/guestfs-actions.pod:3775
10842 msgid "guestfs_lvresize"
10843 msgstr ""
10844
10845 # type: verbatim
10846 #: ../src/guestfs-actions.pod:3777
10847 #, no-wrap
10848 msgid ""
10849 " int\n"
10850 " guestfs_lvresize (guestfs_h *g,\n"
10851 "                   const char *device,\n"
10852 "                   int mbytes);\n"
10853 "\n"
10854 msgstr ""
10855
10856 # type: textblock
10857 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10858 msgid ""
10859 "This resizes (expands or shrinks) an existing LVM logical volume to "
10860 "C<mbytes>.  When reducing, data in the reduced part is lost."
10861 msgstr ""
10862
10863 # type: =head2
10864 #: ../src/guestfs-actions.pod:3790
10865 msgid "guestfs_lvresize_free"
10866 msgstr ""
10867
10868 # type: verbatim
10869 #: ../src/guestfs-actions.pod:3792
10870 #, no-wrap
10871 msgid ""
10872 " int\n"
10873 " guestfs_lvresize_free (guestfs_h *g,\n"
10874 "                        const char *lv,\n"
10875 "                        int percent);\n"
10876 "\n"
10877 msgstr ""
10878
10879 # type: textblock
10880 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10881 msgid ""
10882 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10883 "remaining free space in the volume group.  Commonly you would call this with "
10884 "pc = 100 which expands the logical volume as much as possible, using all "
10885 "remaining free space in the volume group."
10886 msgstr ""
10887
10888 # type: textblock
10889 #: ../src/guestfs-actions.pod:3805
10890 msgid "(Added in 1.3.3)"
10891 msgstr ""
10892
10893 # type: =head2
10894 #: ../src/guestfs-actions.pod:3807
10895 msgid "guestfs_lvs"
10896 msgstr ""
10897
10898 # type: verbatim
10899 #: ../src/guestfs-actions.pod:3809
10900 #, no-wrap
10901 msgid ""
10902 " char **\n"
10903 " guestfs_lvs (guestfs_h *g);\n"
10904 "\n"
10905 msgstr ""
10906
10907 # type: textblock
10908 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10909 msgid ""
10910 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10911 "(8)> command."
10912 msgstr ""
10913
10914 # type: textblock
10915 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10916 msgid ""
10917 "This returns a list of the logical volume device names (eg. C</dev/"
10918 "VolGroup00/LogVol00>)."
10919 msgstr ""
10920
10921 # type: textblock
10922 #: ../src/guestfs-actions.pod:3818
10923 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10924 msgstr ""
10925
10926 # type: =head2
10927 #: ../src/guestfs-actions.pod:3826
10928 msgid "guestfs_lvs_full"
10929 msgstr ""
10930
10931 # type: verbatim
10932 #: ../src/guestfs-actions.pod:3828
10933 #, no-wrap
10934 msgid ""
10935 " struct guestfs_lvm_lv_list *\n"
10936 " guestfs_lvs_full (guestfs_h *g);\n"
10937 "\n"
10938 msgstr ""
10939
10940 # type: textblock
10941 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10942 msgid ""
10943 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10944 "(8)> command.  The \"full\" version includes all fields."
10945 msgstr ""
10946
10947 # type: textblock
10948 #: ../src/guestfs-actions.pod:3834
10949 msgid ""
10950 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10951 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10952 msgstr ""
10953
10954 # type: =head2
10955 #: ../src/guestfs-actions.pod:3840
10956 msgid "guestfs_lvuuid"
10957 msgstr ""
10958
10959 # type: verbatim
10960 #: ../src/guestfs-actions.pod:3842
10961 #, no-wrap
10962 msgid ""
10963 " char *\n"
10964 " guestfs_lvuuid (guestfs_h *g,\n"
10965 "                 const char *device);\n"
10966 "\n"
10967 msgstr ""
10968
10969 # type: textblock
10970 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10971 msgid "This command returns the UUID of the LVM LV C<device>."
10972 msgstr ""
10973
10974 # type: =head2
10975 #: ../src/guestfs-actions.pod:3853
10976 msgid "guestfs_lxattrlist"
10977 msgstr ""
10978
10979 # type: verbatim
10980 #: ../src/guestfs-actions.pod:3855
10981 #, no-wrap
10982 msgid ""
10983 " struct guestfs_xattr_list *\n"
10984 " guestfs_lxattrlist (guestfs_h *g,\n"
10985 "                     const char *path,\n"
10986 "                     char *const *names);\n"
10987 "\n"
10988 msgstr ""
10989
10990 # type: textblock
10991 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
10992 msgid ""
10993 "This call allows you to get the extended attributes of multiple files, where "
10994 "all files are in the directory C<path>.  C<names> is the list of files from "
10995 "this directory."
10996 msgstr ""
10997
10998 # type: textblock
10999 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
11000 msgid ""
11001 "On return you get a flat list of xattr structs which must be interpreted "
11002 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11003 "C<attrval> in this struct is zero-length to indicate there was an error "
11004 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11005 "number (the number of following attributes for this file, which could be C<"
11006 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11007 "for the first named file.  This repeats for the second and subsequent files."
11008 msgstr ""
11009
11010 # type: textblock
11011 #: ../src/guestfs-actions.pod:3874
11012 msgid ""
11013 "This call is intended for programs that want to efficiently list a directory "
11014 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11015 "a similarly efficient call for getting standard stats.  Very long directory "
11016 "listings might cause the protocol message size to be exceeded, causing this "
11017 "call to fail.  The caller must split up such requests into smaller groups of "
11018 "names."
11019 msgstr ""
11020
11021 # type: =head2
11022 #: ../src/guestfs-actions.pod:3888
11023 msgid "guestfs_mkdir"
11024 msgstr ""
11025
11026 # type: verbatim
11027 #: ../src/guestfs-actions.pod:3890
11028 #, no-wrap
11029 msgid ""
11030 " int\n"
11031 " guestfs_mkdir (guestfs_h *g,\n"
11032 "                const char *path);\n"
11033 "\n"
11034 msgstr ""
11035
11036 # type: textblock
11037 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
11038 msgid "Create a directory named C<path>."
11039 msgstr ""
11040
11041 # type: =head2
11042 #: ../src/guestfs-actions.pod:3900
11043 msgid "guestfs_mkdir_mode"
11044 msgstr ""
11045
11046 # type: verbatim
11047 #: ../src/guestfs-actions.pod:3902
11048 #, no-wrap
11049 msgid ""
11050 " int\n"
11051 " guestfs_mkdir_mode (guestfs_h *g,\n"
11052 "                     const char *path,\n"
11053 "                     int mode);\n"
11054 "\n"
11055 msgstr ""
11056
11057 # type: textblock
11058 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
11059 msgid ""
11060 "This command creates a directory, setting the initial permissions of the "
11061 "directory to C<mode>."
11062 msgstr ""
11063
11064 # type: textblock
11065 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
11066 msgid ""
11067 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11068 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11069 "other ways."
11070 msgstr ""
11071
11072 # type: textblock
11073 #: ../src/guestfs-actions.pod:3914
11074 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11075 msgstr ""
11076
11077 # type: =head2
11078 #: ../src/guestfs-actions.pod:3920
11079 msgid "guestfs_mkdir_p"
11080 msgstr ""
11081
11082 # type: verbatim
11083 #: ../src/guestfs-actions.pod:3922
11084 #, no-wrap
11085 msgid ""
11086 " int\n"
11087 " guestfs_mkdir_p (guestfs_h *g,\n"
11088 "                  const char *path);\n"
11089 "\n"
11090 msgstr ""
11091
11092 # type: textblock
11093 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
11094 msgid ""
11095 "Create a directory named C<path>, creating any parent directories as "
11096 "necessary.  This is like the C<mkdir -p> shell command."
11097 msgstr ""
11098
11099 # type: =head2
11100 #: ../src/guestfs-actions.pod:3933
11101 msgid "guestfs_mkdtemp"
11102 msgstr ""
11103
11104 # type: verbatim
11105 #: ../src/guestfs-actions.pod:3935
11106 #, no-wrap
11107 msgid ""
11108 " char *\n"
11109 " guestfs_mkdtemp (guestfs_h *g,\n"
11110 "                  const char *template);\n"
11111 "\n"
11112 msgstr ""
11113
11114 # type: textblock
11115 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
11116 msgid ""
11117 "This command creates a temporary directory.  The C<template> parameter "
11118 "should be a full pathname for the temporary directory name with the final "
11119 "six characters being \"XXXXXX\"."
11120 msgstr ""
11121
11122 # type: textblock
11123 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
11124 msgid ""
11125 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11126 "being suitable for Windows filesystems."
11127 msgstr ""
11128
11129 # type: textblock
11130 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
11131 msgid "The name of the temporary directory that was created is returned."
11132 msgstr ""
11133
11134 # type: textblock
11135 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
11136 msgid "The temporary directory is created with mode 0700 and is owned by root."
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
11141 msgid ""
11142 "The caller is responsible for deleting the temporary directory and its "
11143 "contents after use."
11144 msgstr ""
11145
11146 # type: textblock
11147 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
11148 msgid "See also: L<mkdtemp(3)>"
11149 msgstr ""
11150
11151 # type: =head2
11152 #: ../src/guestfs-actions.pod:3963
11153 msgid "guestfs_mke2fs_J"
11154 msgstr ""
11155
11156 # type: verbatim
11157 #: ../src/guestfs-actions.pod:3965
11158 #, no-wrap
11159 msgid ""
11160 " int\n"
11161 " guestfs_mke2fs_J (guestfs_h *g,\n"
11162 "                   const char *fstype,\n"
11163 "                   int blocksize,\n"
11164 "                   const char *device,\n"
11165 "                   const char *journal);\n"
11166 "\n"
11167 msgstr ""
11168
11169 # type: textblock
11170 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
11171 msgid ""
11172 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11173 "C<journal>.  It is equivalent to the command:"
11174 msgstr ""
11175
11176 # type: verbatim
11177 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
11178 #, no-wrap
11179 msgid ""
11180 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11181 "\n"
11182 msgstr ""
11183
11184 # type: textblock
11185 #: ../src/guestfs-actions.pod:3978
11186 msgid "See also C<guestfs_mke2journal>."
11187 msgstr ""
11188
11189 # type: textblock
11190 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000
11191 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034
11192 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062
11193 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
11194 msgid "(Added in 1.0.68)"
11195 msgstr ""
11196
11197 # type: =head2
11198 #: ../src/guestfs-actions.pod:3984
11199 msgid "guestfs_mke2fs_JL"
11200 msgstr ""
11201
11202 # type: verbatim
11203 #: ../src/guestfs-actions.pod:3986
11204 #, no-wrap
11205 msgid ""
11206 " int\n"
11207 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11208 "                    const char *fstype,\n"
11209 "                    int blocksize,\n"
11210 "                    const char *device,\n"
11211 "                    const char *label);\n"
11212 "\n"
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
11217 msgid ""
11218 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11219 "the journal labeled C<label>."
11220 msgstr ""
11221
11222 # type: textblock
11223 #: ../src/guestfs-actions.pod:3996
11224 msgid "See also C<guestfs_mke2journal_L>."
11225 msgstr ""
11226
11227 # type: =head2
11228 #: ../src/guestfs-actions.pod:4002
11229 msgid "guestfs_mke2fs_JU"
11230 msgstr ""
11231
11232 # type: verbatim
11233 #: ../src/guestfs-actions.pod:4004
11234 #, no-wrap
11235 msgid ""
11236 " int\n"
11237 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11238 "                    const char *fstype,\n"
11239 "                    int blocksize,\n"
11240 "                    const char *device,\n"
11241 "                    const char *uuid);\n"
11242 "\n"
11243 msgstr ""
11244
11245 # type: textblock
11246 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
11247 msgid ""
11248 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11249 "the journal with UUID C<uuid>."
11250 msgstr ""
11251
11252 # type: textblock
11253 #: ../src/guestfs-actions.pod:4014
11254 msgid "See also C<guestfs_mke2journal_U>."
11255 msgstr ""
11256
11257 # type: =head2
11258 #: ../src/guestfs-actions.pod:4020
11259 msgid "guestfs_mke2journal"
11260 msgstr ""
11261
11262 # type: verbatim
11263 #: ../src/guestfs-actions.pod:4022
11264 #, no-wrap
11265 msgid ""
11266 " int\n"
11267 " guestfs_mke2journal (guestfs_h *g,\n"
11268 "                      int blocksize,\n"
11269 "                      const char *device);\n"
11270 "\n"
11271 msgstr ""
11272
11273 # type: textblock
11274 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
11275 msgid ""
11276 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11277 "command:"
11278 msgstr ""
11279
11280 # type: verbatim
11281 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
11282 #, no-wrap
11283 msgid ""
11284 " mke2fs -O journal_dev -b blocksize device\n"
11285 "\n"
11286 msgstr ""
11287
11288 # type: =head2
11289 #: ../src/guestfs-actions.pod:4036
11290 msgid "guestfs_mke2journal_L"
11291 msgstr ""
11292
11293 # type: verbatim
11294 #: ../src/guestfs-actions.pod:4038
11295 #, no-wrap
11296 msgid ""
11297 " int\n"
11298 " guestfs_mke2journal_L (guestfs_h *g,\n"
11299 "                        int blocksize,\n"
11300 "                        const char *label,\n"
11301 "                        const char *device);\n"
11302 "\n"
11303 msgstr ""
11304
11305 # type: textblock
11306 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
11307 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11308 msgstr ""
11309
11310 # type: =head2
11311 #: ../src/guestfs-actions.pod:4050
11312 msgid "guestfs_mke2journal_U"
11313 msgstr ""
11314
11315 # type: verbatim
11316 #: ../src/guestfs-actions.pod:4052
11317 #, no-wrap
11318 msgid ""
11319 " int\n"
11320 " guestfs_mke2journal_U (guestfs_h *g,\n"
11321 "                        int blocksize,\n"
11322 "                        const char *uuid,\n"
11323 "                        const char *device);\n"
11324 "\n"
11325 msgstr ""
11326
11327 # type: textblock
11328 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
11329 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11330 msgstr ""
11331
11332 # type: =head2
11333 #: ../src/guestfs-actions.pod:4064
11334 msgid "guestfs_mkfifo"
11335 msgstr ""
11336
11337 # type: verbatim
11338 #: ../src/guestfs-actions.pod:4066
11339 #, no-wrap
11340 msgid ""
11341 " int\n"
11342 " guestfs_mkfifo (guestfs_h *g,\n"
11343 "                 int mode,\n"
11344 "                 const char *path);\n"
11345 "\n"
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4071
11350 msgid ""
11351 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11352 "is just a convenient wrapper around C<guestfs_mknod>."
11353 msgstr ""
11354
11355 # type: =head2
11356 #: ../src/guestfs-actions.pod:4081
11357 msgid "guestfs_mkfs"
11358 msgstr ""
11359
11360 # type: verbatim
11361 #: ../src/guestfs-actions.pod:4083
11362 #, no-wrap
11363 msgid ""
11364 " int\n"
11365 " guestfs_mkfs (guestfs_h *g,\n"
11366 "               const char *fstype,\n"
11367 "               const char *device);\n"
11368 "\n"
11369 msgstr ""
11370
11371 # type: textblock
11372 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
11373 msgid ""
11374 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11375 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11376 msgstr ""
11377
11378 # type: =head2
11379 #: ../src/guestfs-actions.pod:4096
11380 msgid "guestfs_mkfs_b"
11381 msgstr ""
11382
11383 # type: verbatim
11384 #: ../src/guestfs-actions.pod:4098
11385 #, no-wrap
11386 msgid ""
11387 " int\n"
11388 " guestfs_mkfs_b (guestfs_h *g,\n"
11389 "                 const char *fstype,\n"
11390 "                 int blocksize,\n"
11391 "                 const char *device);\n"
11392 "\n"
11393 msgstr ""
11394
11395 # type: textblock
11396 #: ../src/guestfs-actions.pod:4104
11397 msgid ""
11398 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11399 "block size of the resulting filesystem.  Supported block sizes depend on the "
11400 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11401 msgstr ""
11402
11403 # type: textblock
11404 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
11405 msgid ""
11406 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11407 "cluster size."
11408 msgstr ""
11409
11410 # type: =head2
11411 #: ../src/guestfs-actions.pod:4116
11412 msgid "guestfs_mkmountpoint"
11413 msgstr ""
11414
11415 # type: verbatim
11416 #: ../src/guestfs-actions.pod:4118
11417 #, no-wrap
11418 msgid ""
11419 " int\n"
11420 " guestfs_mkmountpoint (guestfs_h *g,\n"
11421 "                       const char *exemptpath);\n"
11422 "\n"
11423 msgstr ""
11424
11425 # type: textblock
11426 #: ../src/guestfs-actions.pod:4122
11427 msgid ""
11428 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11429 "that can be used to create extra mountpoints before mounting the first "
11430 "filesystem."
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11435 msgid ""
11436 "These calls are I<only> necessary in some very limited circumstances, mainly "
11437 "the case where you want to mount a mix of unrelated and/or read-only "
11438 "filesystems together."
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
11443 msgid ""
11444 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11445 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11446 "inside that.  You can unpack this as follows in guestfish:"
11447 msgstr ""
11448
11449 # type: verbatim
11450 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
11451 #, no-wrap
11452 msgid ""
11453 " add-ro Fedora-11-i686-Live.iso\n"
11454 " run\n"
11455 " mkmountpoint /cd\n"
11456 " mkmountpoint /sqsh\n"
11457 " mkmountpoint /ext3fs\n"
11458 " mount /dev/sda /cd\n"
11459 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11460 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11461 "\n"
11462 msgstr ""
11463
11464 # type: textblock
11465 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
11466 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11467 msgstr ""
11468
11469 # type: textblock
11470 #: ../src/guestfs-actions.pod:4146
11471 msgid ""
11472 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11473 "may get unexpected errors if you try to mix these calls.  It is safest to "
11474 "manually unmount filesystems and remove mountpoints after use."
11475 msgstr ""
11476
11477 # type: textblock
11478 #: ../src/guestfs-actions.pod:4150
11479 msgid ""
11480 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11481 "first, so for this to work for manual mountpoints, you must ensure that the "
11482 "innermost mountpoints have the longest pathnames, as in the example code "
11483 "above."
11484 msgstr ""
11485
11486 # type: textblock
11487 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11488 msgid ""
11489 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11490 msgstr ""
11491
11492 # type: textblock
11493 #: ../src/guestfs-actions.pod:4157
11494 msgid ""
11495 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11496 "means that C<guestfs_umount_all> is called when the handle is closed which "
11497 "can also trigger these issues."
11498 msgstr ""
11499
11500 # type: textblock
11501 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422
11502 #: ../src/guestfs-actions.pod:5315
11503 msgid "(Added in 1.0.62)"
11504 msgstr ""
11505
11506 # type: =head2
11507 #: ../src/guestfs-actions.pod:4165
11508 msgid "guestfs_mknod"
11509 msgstr ""
11510
11511 # type: verbatim
11512 #: ../src/guestfs-actions.pod:4167
11513 #, no-wrap
11514 msgid ""
11515 " int\n"
11516 " guestfs_mknod (guestfs_h *g,\n"
11517 "                int mode,\n"
11518 "                int devmajor,\n"
11519 "                int devminor,\n"
11520 "                const char *path);\n"
11521 "\n"
11522 msgstr ""
11523
11524 # type: textblock
11525 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11526 msgid ""
11527 "This call creates block or character special devices, or named pipes (FIFOs)."
11528 msgstr ""
11529
11530 # type: textblock
11531 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11532 msgid ""
11533 "The C<mode> parameter should be the mode, using the standard constants.  "
11534 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11535 "used when creating block and character special devices."
11536 msgstr ""
11537
11538 # type: textblock
11539 #: ../src/guestfs-actions.pod:4182
11540 msgid ""
11541 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11542 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11543 "regular file).  These constants are available in the standard Linux header "
11544 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11545 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11546 "the appropriate constant for you."
11547 msgstr ""
11548
11549 # type: =head2
11550 #: ../src/guestfs-actions.pod:4196
11551 msgid "guestfs_mknod_b"
11552 msgstr ""
11553
11554 # type: verbatim
11555 #: ../src/guestfs-actions.pod:4198
11556 #, no-wrap
11557 msgid ""
11558 " int\n"
11559 " guestfs_mknod_b (guestfs_h *g,\n"
11560 "                  int mode,\n"
11561 "                  int devmajor,\n"
11562 "                  int devminor,\n"
11563 "                  const char *path);\n"
11564 "\n"
11565 msgstr ""
11566
11567 # type: textblock
11568 #: ../src/guestfs-actions.pod:4205
11569 msgid ""
11570 "This call creates a block device node called C<path> with mode C<mode> and "
11571 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11572 "wrapper around C<guestfs_mknod>."
11573 msgstr ""
11574
11575 # type: =head2
11576 #: ../src/guestfs-actions.pod:4215
11577 msgid "guestfs_mknod_c"
11578 msgstr ""
11579
11580 # type: verbatim
11581 #: ../src/guestfs-actions.pod:4217
11582 #, no-wrap
11583 msgid ""
11584 " int\n"
11585 " guestfs_mknod_c (guestfs_h *g,\n"
11586 "                  int mode,\n"
11587 "                  int devmajor,\n"
11588 "                  int devminor,\n"
11589 "                  const char *path);\n"
11590 "\n"
11591 msgstr ""
11592
11593 # type: textblock
11594 #: ../src/guestfs-actions.pod:4224
11595 msgid ""
11596 "This call creates a char device node called C<path> with mode C<mode> and "
11597 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11598 "wrapper around C<guestfs_mknod>."
11599 msgstr ""
11600
11601 # type: =head2
11602 #: ../src/guestfs-actions.pod:4234
11603 msgid "guestfs_mkswap"
11604 msgstr ""
11605
11606 # type: verbatim
11607 #: ../src/guestfs-actions.pod:4236
11608 #, no-wrap
11609 msgid ""
11610 " int\n"
11611 " guestfs_mkswap (guestfs_h *g,\n"
11612 "                 const char *device);\n"
11613 "\n"
11614 msgstr ""
11615
11616 # type: textblock
11617 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11618 msgid "Create a swap partition on C<device>."
11619 msgstr ""
11620
11621 # type: =head2
11622 #: ../src/guestfs-actions.pod:4246
11623 msgid "guestfs_mkswap_L"
11624 msgstr ""
11625
11626 # type: verbatim
11627 #: ../src/guestfs-actions.pod:4248
11628 #, no-wrap
11629 msgid ""
11630 " int\n"
11631 " guestfs_mkswap_L (guestfs_h *g,\n"
11632 "                   const char *label,\n"
11633 "                   const char *device);\n"
11634 "\n"
11635 msgstr ""
11636
11637 # type: textblock
11638 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11639 msgid "Create a swap partition on C<device> with label C<label>."
11640 msgstr ""
11641
11642 # type: textblock
11643 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11644 msgid ""
11645 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11646 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11647 "or swap tools."
11648 msgstr ""
11649
11650 # type: =head2
11651 #: ../src/guestfs-actions.pod:4263
11652 msgid "guestfs_mkswap_U"
11653 msgstr ""
11654
11655 # type: verbatim
11656 #: ../src/guestfs-actions.pod:4265
11657 #, no-wrap
11658 msgid ""
11659 " int\n"
11660 " guestfs_mkswap_U (guestfs_h *g,\n"
11661 "                   const char *uuid,\n"
11662 "                   const char *device);\n"
11663 "\n"
11664 msgstr ""
11665
11666 # type: textblock
11667 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11668 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11669 msgstr ""
11670
11671 # type: =head2
11672 #: ../src/guestfs-actions.pod:4276
11673 msgid "guestfs_mkswap_file"
11674 msgstr ""
11675
11676 # type: verbatim
11677 #: ../src/guestfs-actions.pod:4278
11678 #, no-wrap
11679 msgid ""
11680 " int\n"
11681 " guestfs_mkswap_file (guestfs_h *g,\n"
11682 "                      const char *path);\n"
11683 "\n"
11684 msgstr ""
11685
11686 # type: textblock
11687 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11688 msgid "Create a swap file."
11689 msgstr ""
11690
11691 # type: textblock
11692 #: ../src/guestfs-actions.pod:4284
11693 msgid ""
11694 "This command just writes a swap file signature to an existing file.  To "
11695 "create the file itself, use something like C<guestfs_fallocate>."
11696 msgstr ""
11697
11698 # type: =head2
11699 #: ../src/guestfs-actions.pod:4291
11700 msgid "guestfs_modprobe"
11701 msgstr ""
11702
11703 # type: verbatim
11704 #: ../src/guestfs-actions.pod:4293
11705 #, no-wrap
11706 msgid ""
11707 " int\n"
11708 " guestfs_modprobe (guestfs_h *g,\n"
11709 "                   const char *modulename);\n"
11710 "\n"
11711 msgstr ""
11712
11713 # type: textblock
11714 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11715 msgid "This loads a kernel module in the appliance."
11716 msgstr ""
11717
11718 # type: textblock
11719 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11720 msgid ""
11721 "The kernel module must have been whitelisted when libguestfs was built (see "
11722 "C<appliance/kmod.whitelist.in> in the source)."
11723 msgstr ""
11724
11725 # type: =head2
11726 #: ../src/guestfs-actions.pod:4306
11727 msgid "guestfs_mount"
11728 msgstr ""
11729
11730 # type: verbatim
11731 #: ../src/guestfs-actions.pod:4308
11732 #, no-wrap
11733 msgid ""
11734 " int\n"
11735 " guestfs_mount (guestfs_h *g,\n"
11736 "                const char *device,\n"
11737 "                const char *mountpoint);\n"
11738 "\n"
11739 msgstr ""
11740
11741 # type: textblock
11742 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11743 msgid ""
11744 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11745 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11746 "those block devices contain partitions, they will have the usual names (eg. "
11747 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11748 msgstr ""
11749
11750 # type: textblock
11751 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11752 msgid ""
11753 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11754 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11755 "mounted on directories which already exist."
11756 msgstr ""
11757
11758 # type: textblock
11759 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11760 msgid ""
11761 "The mounted filesystem is writable, if we have sufficient permissions on the "
11762 "underlying device."
11763 msgstr ""
11764
11765 # type: textblock
11766 #: ../src/guestfs-actions.pod:4327
11767 msgid ""
11768 "B<Important note:> When you use this call, the filesystem options C<sync> "
11769 "and C<noatime> are set implicitly.  This was originally done because we "
11770 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11771 "very large negative performance impact and negligible effect on "
11772 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11773 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11774 "(use an empty string for the first parameter if you don't want any options)."
11775 msgstr ""
11776
11777 # type: =head2
11778 #: ../src/guestfs-actions.pod:4341
11779 msgid "guestfs_mount_loop"
11780 msgstr ""
11781
11782 # type: verbatim
11783 #: ../src/guestfs-actions.pod:4343
11784 #, no-wrap
11785 msgid ""
11786 " int\n"
11787 " guestfs_mount_loop (guestfs_h *g,\n"
11788 "                     const char *file,\n"
11789 "                     const char *mountpoint);\n"
11790 "\n"
11791 msgstr ""
11792
11793 # type: textblock
11794 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11795 msgid ""
11796 "This command lets you mount C<file> (a filesystem image in a file) on a "
11797 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11798 "mountpoint>."
11799 msgstr ""
11800
11801 # type: =head2
11802 #: ../src/guestfs-actions.pod:4356
11803 msgid "guestfs_mount_options"
11804 msgstr ""
11805
11806 # type: verbatim
11807 #: ../src/guestfs-actions.pod:4358
11808 #, no-wrap
11809 msgid ""
11810 " int\n"
11811 " guestfs_mount_options (guestfs_h *g,\n"
11812 "                        const char *options,\n"
11813 "                        const char *device,\n"
11814 "                        const char *mountpoint);\n"
11815 "\n"
11816 msgstr ""
11817
11818 # type: textblock
11819 #: ../src/guestfs-actions.pod:4364
11820 msgid ""
11821 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11822 "the mount options as for the L<mount(8)> I<-o> flag."
11823 msgstr ""
11824
11825 # type: textblock
11826 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11827 msgid ""
11828 "If the C<options> parameter is an empty string, then no options are passed "
11829 "(all options default to whatever the filesystem uses)."
11830 msgstr ""
11831
11832 # type: textblock
11833 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388
11834 #: ../src/guestfs-actions.pod:4405
11835 msgid "(Added in 1.0.10)"
11836 msgstr ""
11837
11838 # type: =head2
11839 #: ../src/guestfs-actions.pod:4376
11840 msgid "guestfs_mount_ro"
11841 msgstr ""
11842
11843 # type: verbatim
11844 #: ../src/guestfs-actions.pod:4378
11845 #, no-wrap
11846 msgid ""
11847 " int\n"
11848 " guestfs_mount_ro (guestfs_h *g,\n"
11849 "                   const char *device,\n"
11850 "                   const char *mountpoint);\n"
11851 "\n"
11852 msgstr ""
11853
11854 # type: textblock
11855 #: ../src/guestfs-actions.pod:4383
11856 msgid ""
11857 "This is the same as the C<guestfs_mount> command, but it mounts the "
11858 "filesystem with the read-only (I<-o ro>) flag."
11859 msgstr ""
11860
11861 # type: =head2
11862 #: ../src/guestfs-actions.pod:4390
11863 msgid "guestfs_mount_vfs"
11864 msgstr ""
11865
11866 # type: verbatim
11867 #: ../src/guestfs-actions.pod:4392
11868 #, no-wrap
11869 msgid ""
11870 " int\n"
11871 " guestfs_mount_vfs (guestfs_h *g,\n"
11872 "                    const char *options,\n"
11873 "                    const char *vfstype,\n"
11874 "                    const char *device,\n"
11875 "                    const char *mountpoint);\n"
11876 "\n"
11877 msgstr ""
11878
11879 # type: textblock
11880 #: ../src/guestfs-actions.pod:4399
11881 msgid ""
11882 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11883 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11884 "t> flags."
11885 msgstr ""
11886
11887 # type: =head2
11888 #: ../src/guestfs-actions.pod:4407
11889 msgid "guestfs_mountpoints"
11890 msgstr ""
11891
11892 # type: verbatim
11893 #: ../src/guestfs-actions.pod:4409
11894 #, no-wrap
11895 msgid ""
11896 " char **\n"
11897 " guestfs_mountpoints (guestfs_h *g);\n"
11898 "\n"
11899 msgstr ""
11900
11901 # type: textblock
11902 #: ../src/guestfs-actions.pod:4412
11903 msgid ""
11904 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11905 "devices.  This one returns a hash table (map) of device name to directory "
11906 "where the device is mounted."
11907 msgstr ""
11908
11909 # type: =head2
11910 #: ../src/guestfs-actions.pod:4424
11911 msgid "guestfs_mounts"
11912 msgstr ""
11913
11914 # type: verbatim
11915 #: ../src/guestfs-actions.pod:4426
11916 #, no-wrap
11917 msgid ""
11918 " char **\n"
11919 " guestfs_mounts (guestfs_h *g);\n"
11920 "\n"
11921 msgstr ""
11922
11923 # type: textblock
11924 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11925 msgid ""
11926 "This returns the list of currently mounted filesystems.  It returns the list "
11927 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11928 msgstr ""
11929
11930 # type: textblock
11931 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11932 msgid "Some internal mounts are not shown."
11933 msgstr ""
11934
11935 # type: textblock
11936 #: ../src/guestfs-actions.pod:4434
11937 msgid "See also: C<guestfs_mountpoints>"
11938 msgstr ""
11939
11940 # type: =head2
11941 #: ../src/guestfs-actions.pod:4442
11942 msgid "guestfs_mv"
11943 msgstr ""
11944
11945 # type: verbatim
11946 #: ../src/guestfs-actions.pod:4444
11947 #, no-wrap
11948 msgid ""
11949 " int\n"
11950 " guestfs_mv (guestfs_h *g,\n"
11951 "             const char *src,\n"
11952 "             const char *dest);\n"
11953 "\n"
11954 msgstr ""
11955
11956 # type: textblock
11957 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11958 msgid ""
11959 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11960 "destination filename or destination directory."
11961 msgstr ""
11962
11963 # type: =head2
11964 #: ../src/guestfs-actions.pod:4456
11965 msgid "guestfs_ntfs_3g_probe"
11966 msgstr ""
11967
11968 # type: verbatim
11969 #: ../src/guestfs-actions.pod:4458
11970 #, no-wrap
11971 msgid ""
11972 " int\n"
11973 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11974 "                        int rw,\n"
11975 "                        const char *device);\n"
11976 "\n"
11977 msgstr ""
11978
11979 # type: textblock
11980 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11981 msgid ""
11982 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11983 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11984 "write, and some cannot be mounted at all)."
11985 msgstr ""
11986
11987 # type: textblock
11988 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11989 msgid ""
11990 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11991 "can be mounted read-write.  Set it to false if you want to test if the "
11992 "volume can be mounted read-only."
11993 msgstr ""
11994
11995 # type: textblock
11996 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
11997 msgid ""
11998 "The return value is an integer which C<0> if the operation would succeed, or "
11999 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12000 msgstr ""
12001
12002 # type: textblock
12003 #: ../src/guestfs-actions.pod:4477
12004 msgid "(Added in 1.0.43)"
12005 msgstr ""
12006
12007 # type: =head2
12008 #: ../src/guestfs-actions.pod:4479
12009 msgid "guestfs_ntfsresize"
12010 msgstr ""
12011
12012 # type: verbatim
12013 #: ../src/guestfs-actions.pod:4481
12014 #, no-wrap
12015 msgid ""
12016 " int\n"
12017 " guestfs_ntfsresize (guestfs_h *g,\n"
12018 "                     const char *device);\n"
12019 "\n"
12020 msgstr ""
12021
12022 # type: textblock
12023 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
12024 msgid ""
12025 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12026 "size of the underlying device.  See also L<ntfsresize(8)>."
12027 msgstr ""
12028
12029 # type: =head2
12030 #: ../src/guestfs-actions.pod:4493
12031 msgid "guestfs_ntfsresize_size"
12032 msgstr ""
12033
12034 # type: verbatim
12035 #: ../src/guestfs-actions.pod:4495
12036 #, no-wrap
12037 msgid ""
12038 " int\n"
12039 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12040 "                          const char *device,\n"
12041 "                          int64_t size);\n"
12042 "\n"
12043 msgstr ""
12044
12045 # type: textblock
12046 #: ../src/guestfs-actions.pod:4500
12047 msgid ""
12048 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12049 "to specify the new size (in bytes) explicitly."
12050 msgstr ""
12051
12052 # type: textblock
12053 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941
12054 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
12055 msgid "(Added in 1.3.14)"
12056 msgstr ""
12057
12058 # type: =head2
12059 #: ../src/guestfs-actions.pod:4507
12060 msgid "guestfs_part_add"
12061 msgstr ""
12062
12063 # type: verbatim
12064 #: ../src/guestfs-actions.pod:4509
12065 #, no-wrap
12066 msgid ""
12067 " int\n"
12068 " guestfs_part_add (guestfs_h *g,\n"
12069 "                   const char *device,\n"
12070 "                   const char *prlogex,\n"
12071 "                   int64_t startsect,\n"
12072 "                   int64_t endsect);\n"
12073 "\n"
12074 msgstr ""
12075
12076 # type: textblock
12077 #: ../src/guestfs-actions.pod:4516
12078 msgid ""
12079 "This command adds a partition to C<device>.  If there is no partition table "
12080 "on the device, call C<guestfs_part_init> first."
12081 msgstr ""
12082
12083 # type: textblock
12084 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
12085 msgid ""
12086 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12087 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12088 "C<logical>) and C<e> (or C<extended>) partition types."
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
12093 msgid ""
12094 "C<startsect> and C<endsect> are the start and end of the partition in "
12095 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12096 "from the end of the disk (C<-1> is the last sector)."
12097 msgstr ""
12098
12099 # type: textblock
12100 #: ../src/guestfs-actions.pod:4528
12101 msgid ""
12102 "Creating a partition which covers the whole disk is not so easy.  Use "
12103 "C<guestfs_part_disk> to do that."
12104 msgstr ""
12105
12106 # type: textblock
12107 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571
12108 #: ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702
12109 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759
12110 #: ../src/guestfs-actions.pod:4799
12111 msgid "(Added in 1.0.78)"
12112 msgstr ""
12113
12114 # type: =head2
12115 #: ../src/guestfs-actions.pod:4535
12116 msgid "guestfs_part_del"
12117 msgstr ""
12118
12119 # type: verbatim
12120 #: ../src/guestfs-actions.pod:4537
12121 #, no-wrap
12122 msgid ""
12123 " int\n"
12124 " guestfs_part_del (guestfs_h *g,\n"
12125 "                   const char *device,\n"
12126 "                   int partnum);\n"
12127 "\n"
12128 msgstr ""
12129
12130 # type: textblock
12131 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
12132 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12133 msgstr ""
12134
12135 # type: textblock
12136 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
12137 msgid ""
12138 "Note that in the case of MBR partitioning, deleting an extended partition "
12139 "also deletes any logical partitions it contains."
12140 msgstr ""
12141
12142 # type: =head2
12143 #: ../src/guestfs-actions.pod:4552
12144 msgid "guestfs_part_disk"
12145 msgstr ""
12146
12147 # type: verbatim
12148 #: ../src/guestfs-actions.pod:4554
12149 #, no-wrap
12150 msgid ""
12151 " int\n"
12152 " guestfs_part_disk (guestfs_h *g,\n"
12153 "                    const char *device,\n"
12154 "                    const char *parttype);\n"
12155 "\n"
12156 msgstr ""
12157
12158 # type: textblock
12159 #: ../src/guestfs-actions.pod:4559
12160 msgid ""
12161 "This command is simply a combination of C<guestfs_part_init> followed by "
12162 "C<guestfs_part_add> to create a single primary partition covering the whole "
12163 "disk."
12164 msgstr ""
12165
12166 # type: textblock
12167 #: ../src/guestfs-actions.pod:4563
12168 msgid ""
12169 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12170 "possible values are described in C<guestfs_part_init>."
12171 msgstr ""
12172
12173 # type: =head2
12174 #: ../src/guestfs-actions.pod:4573
12175 msgid "guestfs_part_get_bootable"
12176 msgstr ""
12177
12178 # type: verbatim
12179 #: ../src/guestfs-actions.pod:4575
12180 #, no-wrap
12181 msgid ""
12182 " int\n"
12183 " guestfs_part_get_bootable (guestfs_h *g,\n"
12184 "                            const char *device,\n"
12185 "                            int partnum);\n"
12186 "\n"
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
12191 msgid ""
12192 "This command returns true if the partition C<partnum> on C<device> has the "
12193 "bootable flag set."
12194 msgstr ""
12195
12196 # type: textblock
12197 #: ../src/guestfs-actions.pod:4583
12198 msgid "See also C<guestfs_part_set_bootable>."
12199 msgstr ""
12200
12201 # type: =head2
12202 #: ../src/guestfs-actions.pod:4589
12203 msgid "guestfs_part_get_mbr_id"
12204 msgstr ""
12205
12206 # type: verbatim
12207 #: ../src/guestfs-actions.pod:4591
12208 #, no-wrap
12209 msgid ""
12210 " int\n"
12211 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12212 "                          const char *device,\n"
12213 "                          int partnum);\n"
12214 "\n"
12215 msgstr ""
12216
12217 # type: textblock
12218 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
12219 msgid ""
12220 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12221 "partition C<partnum>."
12222 msgstr ""
12223
12224 # type: textblock
12225 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
12226 msgid ""
12227 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12228 "undefined results for other partition table types (see "
12229 "C<guestfs_part_get_parttype>)."
12230 msgstr ""
12231
12232 # type: =head2
12233 #: ../src/guestfs-actions.pod:4607
12234 msgid "guestfs_part_get_parttype"
12235 msgstr ""
12236
12237 # type: verbatim
12238 #: ../src/guestfs-actions.pod:4609
12239 #, no-wrap
12240 msgid ""
12241 " char *\n"
12242 " guestfs_part_get_parttype (guestfs_h *g,\n"
12243 "                            const char *device);\n"
12244 "\n"
12245 msgstr ""
12246
12247 # type: textblock
12248 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
12249 msgid ""
12250 "This command examines the partition table on C<device> and returns the "
12251 "partition table type (format) being used."
12252 msgstr ""
12253
12254 # type: textblock
12255 #: ../src/guestfs-actions.pod:4616
12256 msgid ""
12257 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12258 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12259 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12260 msgstr ""
12261
12262 # type: =head2
12263 #: ../src/guestfs-actions.pod:4626
12264 msgid "guestfs_part_init"
12265 msgstr ""
12266
12267 # type: verbatim
12268 #: ../src/guestfs-actions.pod:4628
12269 #, no-wrap
12270 msgid ""
12271 " int\n"
12272 " guestfs_part_init (guestfs_h *g,\n"
12273 "                    const char *device,\n"
12274 "                    const char *parttype);\n"
12275 "\n"
12276 msgstr ""
12277
12278 # type: textblock
12279 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
12280 msgid ""
12281 "This creates an empty partition table on C<device> of one of the partition "
12282 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12283 "(for large disks)."
12284 msgstr ""
12285
12286 # type: textblock
12287 #: ../src/guestfs-actions.pod:4637
12288 msgid ""
12289 "Initially there are no partitions.  Following this, you should call "
12290 "C<guestfs_part_add> for each partition required."
12291 msgstr ""
12292
12293 # type: textblock
12294 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
12295 msgid "Possible values for C<parttype> are:"
12296 msgstr ""
12297
12298 # type: =item
12299 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
12300 msgid "B<efi> | B<gpt>"
12301 msgstr ""
12302
12303 # type: textblock
12304 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
12305 msgid "Intel EFI / GPT partition table."
12306 msgstr ""
12307
12308 # type: textblock
12309 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
12310 msgid ""
12311 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12312 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12313 "the C<mbr> format."
12314 msgstr ""
12315
12316 # type: =item
12317 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
12318 msgid "B<mbr> | B<msdos>"
12319 msgstr ""
12320
12321 # type: textblock
12322 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
12323 msgid ""
12324 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12325 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12326 "TB.  For large disks we recommend using C<gpt>."
12327 msgstr ""
12328
12329 # type: textblock
12330 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
12331 msgid ""
12332 "Other partition table types that may work but are not supported include:"
12333 msgstr ""
12334
12335 # type: =item
12336 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
12337 msgid "B<aix>"
12338 msgstr ""
12339
12340 # type: textblock
12341 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
12342 msgid "AIX disk labels."
12343 msgstr ""
12344
12345 # type: =item
12346 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
12347 msgid "B<amiga> | B<rdb>"
12348 msgstr ""
12349
12350 # type: textblock
12351 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
12352 msgid "Amiga \"Rigid Disk Block\" format."
12353 msgstr ""
12354
12355 # type: =item
12356 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
12357 msgid "B<bsd>"
12358 msgstr ""
12359
12360 # type: textblock
12361 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
12362 msgid "BSD disk labels."
12363 msgstr ""
12364
12365 # type: =item
12366 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
12367 msgid "B<dasd>"
12368 msgstr ""
12369
12370 # type: textblock
12371 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
12372 msgid "DASD, used on IBM mainframes."
12373 msgstr ""
12374
12375 # type: =item
12376 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
12377 msgid "B<dvh>"
12378 msgstr ""
12379
12380 # type: textblock
12381 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
12382 msgid "MIPS/SGI volumes."
12383 msgstr ""
12384
12385 # type: =item
12386 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
12387 msgid "B<mac>"
12388 msgstr ""
12389
12390 # type: textblock
12391 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
12392 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12393 msgstr ""
12394
12395 # type: =item
12396 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
12397 msgid "B<pc98>"
12398 msgstr ""
12399
12400 # type: textblock
12401 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
12402 msgid "NEC PC-98 format, common in Japan apparently."
12403 msgstr ""
12404
12405 # type: =item
12406 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
12407 msgid "B<sun>"
12408 msgstr ""
12409
12410 # type: textblock
12411 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
12412 msgid "Sun disk labels."
12413 msgstr ""
12414
12415 # type: =head2
12416 #: ../src/guestfs-actions.pod:4704
12417 msgid "guestfs_part_list"
12418 msgstr ""
12419
12420 # type: verbatim
12421 #: ../src/guestfs-actions.pod:4706
12422 #, no-wrap
12423 msgid ""
12424 " struct guestfs_partition_list *\n"
12425 " guestfs_part_list (guestfs_h *g,\n"
12426 "                    const char *device);\n"
12427 "\n"
12428 msgstr ""
12429
12430 # type: textblock
12431 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
12432 msgid ""
12433 "This command parses the partition table on C<device> and returns the list of "
12434 "partitions found."
12435 msgstr ""
12436
12437 # type: textblock
12438 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
12439 msgid "The fields in the returned structure are:"
12440 msgstr ""
12441
12442 # type: =item
12443 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
12444 msgid "B<part_num>"
12445 msgstr ""
12446
12447 # type: textblock
12448 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
12449 msgid "Partition number, counting from 1."
12450 msgstr ""
12451
12452 # type: =item
12453 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
12454 msgid "B<part_start>"
12455 msgstr ""
12456
12457 # type: textblock
12458 #: ../src/guestfs-actions.pod:4723
12459 msgid ""
12460 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12461 "the device's sector size, see C<guestfs_blockdev_getss>."
12462 msgstr ""
12463
12464 # type: =item
12465 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
12466 msgid "B<part_end>"
12467 msgstr ""
12468
12469 # type: textblock
12470 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
12471 msgid "End of the partition in bytes."
12472 msgstr ""
12473
12474 # type: =item
12475 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12476 msgid "B<part_size>"
12477 msgstr ""
12478
12479 # type: textblock
12480 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12481 msgid "Size of the partition in bytes."
12482 msgstr ""
12483
12484 # type: textblock
12485 #: ../src/guestfs-actions.pod:4736
12486 msgid ""
12487 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12488 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12489 "use>."
12490 msgstr ""
12491
12492 # type: =head2
12493 #: ../src/guestfs-actions.pod:4742
12494 msgid "guestfs_part_set_bootable"
12495 msgstr ""
12496
12497 # type: verbatim
12498 #: ../src/guestfs-actions.pod:4744
12499 #, no-wrap
12500 msgid ""
12501 " int\n"
12502 " guestfs_part_set_bootable (guestfs_h *g,\n"
12503 "                            const char *device,\n"
12504 "                            int partnum,\n"
12505 "                            int bootable);\n"
12506 "\n"
12507 msgstr ""
12508
12509 # type: textblock
12510 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12511 msgid ""
12512 "This sets the bootable flag on partition numbered C<partnum> on device "
12513 "C<device>.  Note that partitions are numbered from 1."
12514 msgstr ""
12515
12516 # type: textblock
12517 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12518 msgid ""
12519 "The bootable flag is used by some operating systems (notably Windows) to "
12520 "determine which partition to boot from.  It is by no means universally "
12521 "recognized."
12522 msgstr ""
12523
12524 # type: =head2
12525 #: ../src/guestfs-actions.pod:4761
12526 msgid "guestfs_part_set_mbr_id"
12527 msgstr ""
12528
12529 # type: verbatim
12530 #: ../src/guestfs-actions.pod:4763
12531 #, no-wrap
12532 msgid ""
12533 " int\n"
12534 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12535 "                          const char *device,\n"
12536 "                          int partnum,\n"
12537 "                          int idbyte);\n"
12538 "\n"
12539 msgstr ""
12540
12541 # type: textblock
12542 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12543 msgid ""
12544 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12545 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12546 "documentation are in fact hexadecimal numbers, but usually documented "
12547 "without any leading \"0x\" which might be confusing."
12548 msgstr ""
12549
12550 # type: =head2
12551 #: ../src/guestfs-actions.pod:4783
12552 msgid "guestfs_part_set_name"
12553 msgstr ""
12554
12555 # type: verbatim
12556 #: ../src/guestfs-actions.pod:4785
12557 #, no-wrap
12558 msgid ""
12559 " int\n"
12560 " guestfs_part_set_name (guestfs_h *g,\n"
12561 "                        const char *device,\n"
12562 "                        int partnum,\n"
12563 "                        const char *name);\n"
12564 "\n"
12565 msgstr ""
12566
12567 # type: textblock
12568 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12569 msgid ""
12570 "This sets the partition name on partition numbered C<partnum> on device "
12571 "C<device>.  Note that partitions are numbered from 1."
12572 msgstr ""
12573
12574 # type: textblock
12575 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12576 msgid ""
12577 "The partition name can only be set on certain types of partition table.  "
12578 "This works on C<gpt> but not on C<mbr> partitions."
12579 msgstr ""
12580
12581 # type: =head2
12582 #: ../src/guestfs-actions.pod:4801
12583 msgid "guestfs_part_to_dev"
12584 msgstr ""
12585
12586 # type: verbatim
12587 #: ../src/guestfs-actions.pod:4803
12588 #, no-wrap
12589 msgid ""
12590 " char *\n"
12591 " guestfs_part_to_dev (guestfs_h *g,\n"
12592 "                      const char *partition);\n"
12593 "\n"
12594 msgstr ""
12595
12596 # type: textblock
12597 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12598 msgid ""
12599 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12600 "partition number, returning the device name (eg. \"/dev/sdb\")."
12601 msgstr ""
12602
12603 # type: textblock
12604 #: ../src/guestfs-actions.pod:4811
12605 msgid ""
12606 "The named partition must exist, for example as a string returned from "
12607 "C<guestfs_list_partitions>."
12608 msgstr ""
12609
12610 # type: =head2
12611 #: ../src/guestfs-actions.pod:4819
12612 msgid "guestfs_ping_daemon"
12613 msgstr ""
12614
12615 # type: verbatim
12616 #: ../src/guestfs-actions.pod:4821
12617 #, no-wrap
12618 msgid ""
12619 " int\n"
12620 " guestfs_ping_daemon (guestfs_h *g);\n"
12621 "\n"
12622 msgstr ""
12623
12624 # type: textblock
12625 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12626 msgid ""
12627 "This is a test probe into the guestfs daemon running inside the qemu "
12628 "subprocess.  Calling this function checks that the daemon responds to the "
12629 "ping message, without affecting the daemon or attached block device(s) in "
12630 "any other way."
12631 msgstr ""
12632
12633 # type: =head2
12634 #: ../src/guestfs-actions.pod:4833
12635 msgid "guestfs_pread"
12636 msgstr ""
12637
12638 # type: verbatim
12639 #: ../src/guestfs-actions.pod:4835
12640 #, no-wrap
12641 msgid ""
12642 " char *\n"
12643 " guestfs_pread (guestfs_h *g,\n"
12644 "                const char *path,\n"
12645 "                int count,\n"
12646 "                int64_t offset,\n"
12647 "                size_t *size_r);\n"
12648 "\n"
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12653 msgid ""
12654 "This command lets you read part of a file.  It reads C<count> bytes of the "
12655 "file, starting at C<offset>, from file C<path>."
12656 msgstr ""
12657
12658 # type: textblock
12659 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871
12660 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12661 msgid ""
12662 "This may read fewer bytes than requested.  For further details see the "
12663 "L<pread(2)> system call."
12664 msgstr ""
12665
12666 # type: textblock
12667 #: ../src/guestfs-actions.pod:4848
12668 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12669 msgstr ""
12670
12671 # type: =head2
12672 #: ../src/guestfs-actions.pod:4859
12673 msgid "guestfs_pread_device"
12674 msgstr ""
12675
12676 # type: verbatim
12677 #: ../src/guestfs-actions.pod:4861
12678 #, no-wrap
12679 msgid ""
12680 " char *\n"
12681 " guestfs_pread_device (guestfs_h *g,\n"
12682 "                       const char *device,\n"
12683 "                       int count,\n"
12684 "                       int64_t offset,\n"
12685 "                       size_t *size_r);\n"
12686 "\n"
12687 msgstr ""
12688
12689 # type: textblock
12690 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12691 msgid ""
12692 "This command lets you read part of a file.  It reads C<count> bytes of "
12693 "C<device>, starting at C<offset>."
12694 msgstr ""
12695
12696 # type: textblock
12697 #: ../src/guestfs-actions.pod:4874
12698 msgid "See also C<guestfs_pread>."
12699 msgstr ""
12700
12701 # type: textblock
12702 #: ../src/guestfs-actions.pod:4883
12703 msgid "(Added in 1.5.21)"
12704 msgstr ""
12705
12706 # type: =head2
12707 #: ../src/guestfs-actions.pod:4885
12708 msgid "guestfs_pvcreate"
12709 msgstr ""
12710
12711 # type: verbatim
12712 #: ../src/guestfs-actions.pod:4887
12713 #, no-wrap
12714 msgid ""
12715 " int\n"
12716 " guestfs_pvcreate (guestfs_h *g,\n"
12717 "                   const char *device);\n"
12718 "\n"
12719 msgstr ""
12720
12721 # type: textblock
12722 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12723 msgid ""
12724 "This creates an LVM physical volume on the named C<device>, where C<device> "
12725 "should usually be a partition name such as C</dev/sda1>."
12726 msgstr ""
12727
12728 # type: =head2
12729 #: ../src/guestfs-actions.pod:4899
12730 msgid "guestfs_pvremove"
12731 msgstr ""
12732
12733 # type: verbatim
12734 #: ../src/guestfs-actions.pod:4901
12735 #, no-wrap
12736 msgid ""
12737 " int\n"
12738 " guestfs_pvremove (guestfs_h *g,\n"
12739 "                   const char *device);\n"
12740 "\n"
12741 msgstr ""
12742
12743 # type: textblock
12744 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12745 msgid ""
12746 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12747 "it."
12748 msgstr ""
12749
12750 # type: textblock
12751 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12752 msgid ""
12753 "The implementation uses the C<pvremove> command which refuses to wipe "
12754 "physical volumes that contain any volume groups, so you have to remove those "
12755 "first."
12756 msgstr ""
12757
12758 # type: =head2
12759 #: ../src/guestfs-actions.pod:4916
12760 msgid "guestfs_pvresize"
12761 msgstr ""
12762
12763 # type: verbatim
12764 #: ../src/guestfs-actions.pod:4918
12765 #, no-wrap
12766 msgid ""
12767 " int\n"
12768 " guestfs_pvresize (guestfs_h *g,\n"
12769 "                   const char *device);\n"
12770 "\n"
12771 msgstr ""
12772
12773 # type: textblock
12774 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12775 msgid ""
12776 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12777 "the new size of the underlying device."
12778 msgstr ""
12779
12780 # type: =head2
12781 #: ../src/guestfs-actions.pod:4929
12782 msgid "guestfs_pvresize_size"
12783 msgstr ""
12784
12785 # type: verbatim
12786 #: ../src/guestfs-actions.pod:4931
12787 #, no-wrap
12788 msgid ""
12789 " int\n"
12790 " guestfs_pvresize_size (guestfs_h *g,\n"
12791 "                        const char *device,\n"
12792 "                        int64_t size);\n"
12793 "\n"
12794 msgstr ""
12795
12796 # type: textblock
12797 #: ../src/guestfs-actions.pod:4936
12798 msgid ""
12799 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12800 "specify the new size (in bytes) explicitly."
12801 msgstr ""
12802
12803 # type: =head2
12804 #: ../src/guestfs-actions.pod:4943
12805 msgid "guestfs_pvs"
12806 msgstr ""
12807
12808 # type: verbatim
12809 #: ../src/guestfs-actions.pod:4945
12810 #, no-wrap
12811 msgid ""
12812 " char **\n"
12813 " guestfs_pvs (guestfs_h *g);\n"
12814 "\n"
12815 msgstr ""
12816
12817 # type: textblock
12818 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12819 msgid ""
12820 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12821 "(8)> command."
12822 msgstr ""
12823
12824 # type: textblock
12825 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12826 msgid ""
12827 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12828 "sda2>)."
12829 msgstr ""
12830
12831 # type: textblock
12832 #: ../src/guestfs-actions.pod:4954
12833 msgid "See also C<guestfs_pvs_full>."
12834 msgstr ""
12835
12836 # type: =head2
12837 #: ../src/guestfs-actions.pod:4962
12838 msgid "guestfs_pvs_full"
12839 msgstr ""
12840
12841 # type: verbatim
12842 #: ../src/guestfs-actions.pod:4964
12843 #, no-wrap
12844 msgid ""
12845 " struct guestfs_lvm_pv_list *\n"
12846 " guestfs_pvs_full (guestfs_h *g);\n"
12847 "\n"
12848 msgstr ""
12849
12850 # type: textblock
12851 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12852 msgid ""
12853 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12854 "(8)> command.  The \"full\" version includes all fields."
12855 msgstr ""
12856
12857 # type: textblock
12858 #: ../src/guestfs-actions.pod:4970
12859 msgid ""
12860 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12861 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12862 msgstr ""
12863
12864 # type: =head2
12865 #: ../src/guestfs-actions.pod:4976
12866 msgid "guestfs_pvuuid"
12867 msgstr ""
12868
12869 # type: verbatim
12870 #: ../src/guestfs-actions.pod:4978
12871 #, no-wrap
12872 msgid ""
12873 " char *\n"
12874 " guestfs_pvuuid (guestfs_h *g,\n"
12875 "                 const char *device);\n"
12876 "\n"
12877 msgstr ""
12878
12879 # type: textblock
12880 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12881 msgid "This command returns the UUID of the LVM PV C<device>."
12882 msgstr ""
12883
12884 # type: =head2
12885 #: ../src/guestfs-actions.pod:4989
12886 msgid "guestfs_pwrite"
12887 msgstr ""
12888
12889 # type: verbatim
12890 #: ../src/guestfs-actions.pod:4991
12891 #, no-wrap
12892 msgid ""
12893 " int\n"
12894 " guestfs_pwrite (guestfs_h *g,\n"
12895 "                 const char *path,\n"
12896 "                 const char *content,\n"
12897 "                 size_t content_size,\n"
12898 "                 int64_t offset);\n"
12899 "\n"
12900 msgstr ""
12901
12902 # type: textblock
12903 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12904 msgid ""
12905 "This command writes to part of a file.  It writes the data buffer C<content> "
12906 "to the file C<path> starting at offset C<offset>."
12907 msgstr ""
12908
12909 # type: textblock
12910 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12911 msgid ""
12912 "This command implements the L<pwrite(2)> system call, and like that system "
12913 "call it may not write the full data requested.  The return value is the "
12914 "number of bytes that were actually written to the file.  This could even be "
12915 "0, although short writes are unlikely for regular files in ordinary "
12916 "circumstances."
12917 msgstr ""
12918
12919 # type: textblock
12920 #: ../src/guestfs-actions.pod:5007
12921 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12922 msgstr ""
12923
12924 # type: =head2
12925 #: ../src/guestfs-actions.pod:5016
12926 msgid "guestfs_pwrite_device"
12927 msgstr ""
12928
12929 # type: verbatim
12930 #: ../src/guestfs-actions.pod:5018
12931 #, no-wrap
12932 msgid ""
12933 " int\n"
12934 " guestfs_pwrite_device (guestfs_h *g,\n"
12935 "                        const char *device,\n"
12936 "                        const char *content,\n"
12937 "                        size_t content_size,\n"
12938 "                        int64_t offset);\n"
12939 "\n"
12940 msgstr ""
12941
12942 # type: textblock
12943 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12944 msgid ""
12945 "This command writes to part of a device.  It writes the data buffer "
12946 "C<content> to C<device> starting at offset C<offset>."
12947 msgstr ""
12948
12949 # type: textblock
12950 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12951 msgid ""
12952 "This command implements the L<pwrite(2)> system call, and like that system "
12953 "call it may not write the full data requested (although short writes to disk "
12954 "devices and partitions are probably impossible with standard Linux kernels)."
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5033
12959 msgid "See also C<guestfs_pwrite>."
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:5040
12964 msgid "(Added in 1.5.20)"
12965 msgstr ""
12966
12967 # type: =head2
12968 #: ../src/guestfs-actions.pod:5042
12969 msgid "guestfs_read_file"
12970 msgstr ""
12971
12972 # type: verbatim
12973 #: ../src/guestfs-actions.pod:5044
12974 #, no-wrap
12975 msgid ""
12976 " char *\n"
12977 " guestfs_read_file (guestfs_h *g,\n"
12978 "                    const char *path,\n"
12979 "                    size_t *size_r);\n"
12980 "\n"
12981 msgstr ""
12982
12983 # type: textblock
12984 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12985 msgid "This calls returns the contents of the file C<path> as a buffer."
12986 msgstr ""
12987
12988 # type: textblock
12989 #: ../src/guestfs-actions.pod:5052
12990 msgid ""
12991 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12992 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12993 "function is limited in the total size of file that can be handled."
12994 msgstr ""
12995
12996 # type: textblock
12997 #: ../src/guestfs-actions.pod:5064
12998 msgid "(Added in 1.0.63)"
12999 msgstr ""
13000
13001 # type: =head2
13002 #: ../src/guestfs-actions.pod:5066
13003 msgid "guestfs_read_lines"
13004 msgstr ""
13005
13006 # type: verbatim
13007 #: ../src/guestfs-actions.pod:5068
13008 #, no-wrap
13009 msgid ""
13010 " char **\n"
13011 " guestfs_read_lines (guestfs_h *g,\n"
13012 "                     const char *path);\n"
13013 "\n"
13014 msgstr ""
13015
13016 # type: textblock
13017 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
13018 msgid ""
13019 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13020 "C<CRLF> character sequences are I<not> returned."
13021 msgstr ""
13022
13023 # type: textblock
13024 #: ../src/guestfs-actions.pod:5077
13025 msgid ""
13026 "Note that this function cannot correctly handle binary files (specifically, "
13027 "files containing C<\\0> character which is treated as end of line).  For "
13028 "those you need to use the C<guestfs_read_file> function which has a more "
13029 "complex interface."
13030 msgstr ""
13031
13032 # type: =head2
13033 #: ../src/guestfs-actions.pod:5088
13034 msgid "guestfs_readdir"
13035 msgstr ""
13036
13037 # type: verbatim
13038 #: ../src/guestfs-actions.pod:5090
13039 #, no-wrap
13040 msgid ""
13041 " struct guestfs_dirent_list *\n"
13042 " guestfs_readdir (guestfs_h *g,\n"
13043 "                  const char *dir);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
13049 msgid "This returns the list of directory entries in directory C<dir>."
13050 msgstr ""
13051
13052 # type: textblock
13053 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
13054 msgid ""
13055 "All entries in the directory are returned, including C<.> and C<..>.  The "
13056 "entries are I<not> sorted, but returned in the same order as the underlying "
13057 "filesystem."
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
13062 msgid ""
13063 "Also this call returns basic file type information about each file.  The "
13064 "C<ftyp> field will contain one of the following characters:"
13065 msgstr ""
13066
13067 # type: =item
13068 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
13069 msgid "'b'"
13070 msgstr ""
13071
13072 # type: textblock
13073 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
13074 msgid "Block special"
13075 msgstr ""
13076
13077 # type: =item
13078 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
13079 msgid "'c'"
13080 msgstr ""
13081
13082 # type: textblock
13083 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
13084 msgid "Char special"
13085 msgstr ""
13086
13087 # type: =item
13088 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
13089 msgid "'d'"
13090 msgstr ""
13091
13092 # type: textblock
13093 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
13094 msgid "Directory"
13095 msgstr ""
13096
13097 # type: =item
13098 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
13099 msgid "'f'"
13100 msgstr ""
13101
13102 # type: textblock
13103 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
13104 msgid "FIFO (named pipe)"
13105 msgstr ""
13106
13107 # type: =item
13108 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
13109 msgid "'l'"
13110 msgstr ""
13111
13112 # type: textblock
13113 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
13114 msgid "Symbolic link"
13115 msgstr ""
13116
13117 # type: =item
13118 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
13119 msgid "'r'"
13120 msgstr ""
13121
13122 # type: textblock
13123 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
13124 msgid "Regular file"
13125 msgstr ""
13126
13127 # type: =item
13128 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
13129 msgid "'s'"
13130 msgstr ""
13131
13132 # type: textblock
13133 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
13134 msgid "Socket"
13135 msgstr ""
13136
13137 # type: =item
13138 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
13139 msgid "'u'"
13140 msgstr ""
13141
13142 # type: textblock
13143 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
13144 msgid "Unknown file type"
13145 msgstr ""
13146
13147 # type: =item
13148 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
13149 msgid "'?'"
13150 msgstr ""
13151
13152 # type: textblock
13153 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
13154 msgid ""
13155 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13156 msgstr ""
13157
13158 # type: textblock
13159 #: ../src/guestfs-actions.pod:5144
13160 msgid ""
13161 "This function is primarily intended for use by programs.  To get a simple "
13162 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13163 "consumption, use C<guestfs_ll>."
13164 msgstr ""
13165
13166 # type: textblock
13167 #: ../src/guestfs-actions.pod:5148
13168 msgid ""
13169 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13170 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13171 msgstr ""
13172
13173 # type: =head2
13174 #: ../src/guestfs-actions.pod:5154
13175 msgid "guestfs_readlink"
13176 msgstr ""
13177
13178 # type: verbatim
13179 #: ../src/guestfs-actions.pod:5156
13180 #, no-wrap
13181 msgid ""
13182 " char *\n"
13183 " guestfs_readlink (guestfs_h *g,\n"
13184 "                   const char *path);\n"
13185 "\n"
13186 msgstr ""
13187
13188 # type: textblock
13189 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
13190 msgid "This command reads the target of a symbolic link."
13191 msgstr ""
13192
13193 # type: =head2
13194 #: ../src/guestfs-actions.pod:5167
13195 msgid "guestfs_readlinklist"
13196 msgstr ""
13197
13198 # type: verbatim
13199 #: ../src/guestfs-actions.pod:5169
13200 #, no-wrap
13201 msgid ""
13202 " char **\n"
13203 " guestfs_readlinklist (guestfs_h *g,\n"
13204 "                       const char *path,\n"
13205 "                       char *const *names);\n"
13206 "\n"
13207 msgstr ""
13208
13209 # type: textblock
13210 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
13211 msgid ""
13212 "This call allows you to do a C<readlink> operation on multiple files, where "
13213 "all files are in the directory C<path>.  C<names> is the list of files from "
13214 "this directory."
13215 msgstr ""
13216
13217 # type: textblock
13218 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
13219 msgid ""
13220 "On return you get a list of strings, with a one-to-one correspondence to the "
13221 "C<names> list.  Each string is the value of the symbolic link."
13222 msgstr ""
13223
13224 # type: textblock
13225 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
13226 msgid ""
13227 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13228 "result string is the empty string C<\"\">.  However the whole operation is "
13229 "completed even if there were C<readlink(2)> errors, and so you can call this "
13230 "function with names where you don't know if they are symbolic links already "
13231 "(albeit slightly less efficient)."
13232 msgstr ""
13233
13234 # type: textblock
13235 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
13236 msgid ""
13237 "This call is intended for programs that want to efficiently list a directory "
13238 "contents without making many round-trips.  Very long directory listings "
13239 "might cause the protocol message size to be exceeded, causing this call to "
13240 "fail.  The caller must split up such requests into smaller groups of names."
13241 msgstr ""
13242
13243 # type: =head2
13244 #: ../src/guestfs-actions.pod:5202
13245 msgid "guestfs_realpath"
13246 msgstr ""
13247
13248 # type: verbatim
13249 #: ../src/guestfs-actions.pod:5204
13250 #, no-wrap
13251 msgid ""
13252 " char *\n"
13253 " guestfs_realpath (guestfs_h *g,\n"
13254 "                   const char *path);\n"
13255 "\n"
13256 msgstr ""
13257
13258 # type: textblock
13259 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
13260 msgid ""
13261 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13262 "has no C<.>, C<..> or symbolic link path elements."
13263 msgstr ""
13264
13265 # type: =head2
13266 #: ../src/guestfs-actions.pod:5216
13267 msgid "guestfs_removexattr"
13268 msgstr ""
13269
13270 # type: verbatim
13271 #: ../src/guestfs-actions.pod:5218
13272 #, no-wrap
13273 msgid ""
13274 " int\n"
13275 " guestfs_removexattr (guestfs_h *g,\n"
13276 "                      const char *xattr,\n"
13277 "                      const char *path);\n"
13278 "\n"
13279 msgstr ""
13280
13281 # type: textblock
13282 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
13283 msgid ""
13284 "This call removes the extended attribute named C<xattr> of the file C<path>."
13285 msgstr ""
13286
13287 # type: textblock
13288 #: ../src/guestfs-actions.pod:5226
13289 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13290 msgstr ""
13291
13292 # type: =head2
13293 #: ../src/guestfs-actions.pod:5232
13294 msgid "guestfs_resize2fs"
13295 msgstr ""
13296
13297 # type: verbatim
13298 #: ../src/guestfs-actions.pod:5234
13299 #, no-wrap
13300 msgid ""
13301 " int\n"
13302 " guestfs_resize2fs (guestfs_h *g,\n"
13303 "                    const char *device);\n"
13304 "\n"
13305 msgstr ""
13306
13307 # type: textblock
13308 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
13309 msgid ""
13310 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13311 "underlying device."
13312 msgstr ""
13313
13314 # type: textblock
13315 #: ../src/guestfs-actions.pod:5241
13316 msgid ""
13317 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13318 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13319 "sometimes gives an error about this and sometimes not.  In any case, it is "
13320 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13321 msgstr ""
13322
13323 # type: =head2
13324 #: ../src/guestfs-actions.pod:5251
13325 msgid "guestfs_resize2fs_size"
13326 msgstr ""
13327
13328 # type: verbatim
13329 #: ../src/guestfs-actions.pod:5253
13330 #, no-wrap
13331 msgid ""
13332 " int\n"
13333 " guestfs_resize2fs_size (guestfs_h *g,\n"
13334 "                         const char *device,\n"
13335 "                         int64_t size);\n"
13336 "\n"
13337 msgstr ""
13338
13339 # type: textblock
13340 #: ../src/guestfs-actions.pod:5258
13341 msgid ""
13342 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13343 "to specify the new size (in bytes) explicitly."
13344 msgstr ""
13345
13346 # type: =head2
13347 #: ../src/guestfs-actions.pod:5265
13348 msgid "guestfs_rm"
13349 msgstr ""
13350
13351 # type: verbatim
13352 #: ../src/guestfs-actions.pod:5267
13353 #, no-wrap
13354 msgid ""
13355 " int\n"
13356 " guestfs_rm (guestfs_h *g,\n"
13357 "             const char *path);\n"
13358 "\n"
13359 msgstr ""
13360
13361 # type: textblock
13362 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
13363 msgid "Remove the single file C<path>."
13364 msgstr ""
13365
13366 # type: =head2
13367 #: ../src/guestfs-actions.pod:5277
13368 msgid "guestfs_rm_rf"
13369 msgstr ""
13370
13371 # type: verbatim
13372 #: ../src/guestfs-actions.pod:5279
13373 #, no-wrap
13374 msgid ""
13375 " int\n"
13376 " guestfs_rm_rf (guestfs_h *g,\n"
13377 "                const char *path);\n"
13378 "\n"
13379 msgstr ""
13380
13381 # type: textblock
13382 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
13383 msgid ""
13384 "Remove the file or directory C<path>, recursively removing the contents if "
13385 "its a directory.  This is like the C<rm -rf> shell command."
13386 msgstr ""
13387
13388 # type: =head2
13389 #: ../src/guestfs-actions.pod:5291
13390 msgid "guestfs_rmdir"
13391 msgstr ""
13392
13393 # type: verbatim
13394 #: ../src/guestfs-actions.pod:5293
13395 #, no-wrap
13396 msgid ""
13397 " int\n"
13398 " guestfs_rmdir (guestfs_h *g,\n"
13399 "                const char *path);\n"
13400 "\n"
13401 msgstr ""
13402
13403 # type: textblock
13404 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
13405 msgid "Remove the single directory C<path>."
13406 msgstr ""
13407
13408 # type: =head2
13409 #: ../src/guestfs-actions.pod:5303
13410 msgid "guestfs_rmmountpoint"
13411 msgstr ""
13412
13413 # type: verbatim
13414 #: ../src/guestfs-actions.pod:5305
13415 #, no-wrap
13416 msgid ""
13417 " int\n"
13418 " guestfs_rmmountpoint (guestfs_h *g,\n"
13419 "                       const char *exemptpath);\n"
13420 "\n"
13421 msgstr ""
13422
13423 # type: textblock
13424 #: ../src/guestfs-actions.pod:5309
13425 msgid ""
13426 "This calls removes a mountpoint that was previously created with "
13427 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13428 msgstr ""
13429
13430 # type: =head2
13431 #: ../src/guestfs-actions.pod:5317
13432 msgid "guestfs_scrub_device"
13433 msgstr ""
13434
13435 # type: verbatim
13436 #: ../src/guestfs-actions.pod:5319
13437 #, no-wrap
13438 msgid ""
13439 " int\n"
13440 " guestfs_scrub_device (guestfs_h *g,\n"
13441 "                       const char *device);\n"
13442 "\n"
13443 msgstr ""
13444
13445 # type: textblock
13446 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
13447 msgid ""
13448 "This command writes patterns over C<device> to make data retrieval more "
13449 "difficult."
13450 msgstr ""
13451
13452 # type: textblock
13453 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347
13454 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564
13455 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13456 msgid ""
13457 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13458 "more details."
13459 msgstr ""
13460
13461 # type: textblock
13462 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352
13463 #: ../src/guestfs-actions.pod:5371
13464 msgid "(Added in 1.0.52)"
13465 msgstr ""
13466
13467 # type: =head2
13468 #: ../src/guestfs-actions.pod:5336
13469 msgid "guestfs_scrub_file"
13470 msgstr ""
13471
13472 # type: verbatim
13473 #: ../src/guestfs-actions.pod:5338
13474 #, no-wrap
13475 msgid ""
13476 " int\n"
13477 " guestfs_scrub_file (guestfs_h *g,\n"
13478 "                     const char *file);\n"
13479 "\n"
13480 msgstr ""
13481
13482 # type: textblock
13483 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13484 msgid ""
13485 "This command writes patterns over a file to make data retrieval more "
13486 "difficult."
13487 msgstr ""
13488
13489 # type: textblock
13490 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13491 msgid "The file is I<removed> after scrubbing."
13492 msgstr ""
13493
13494 # type: =head2
13495 #: ../src/guestfs-actions.pod:5354
13496 msgid "guestfs_scrub_freespace"
13497 msgstr ""
13498
13499 # type: verbatim
13500 #: ../src/guestfs-actions.pod:5356
13501 #, no-wrap
13502 msgid ""
13503 " int\n"
13504 " guestfs_scrub_freespace (guestfs_h *g,\n"
13505 "                          const char *dir);\n"
13506 "\n"
13507 msgstr ""
13508
13509 # type: textblock
13510 #: ../src/guestfs-actions.pod:5360
13511 msgid ""
13512 "This command creates the directory C<dir> and then fills it with files until "
13513 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13514 "and deletes them.  The intention is to scrub any free space on the partition "
13515 "containing C<dir>."
13516 msgstr ""
13517
13518 # type: =head2
13519 #: ../src/guestfs-actions.pod:5373
13520 msgid "guestfs_set_append"
13521 msgstr ""
13522
13523 # type: verbatim
13524 #: ../src/guestfs-actions.pod:5375
13525 #, no-wrap
13526 msgid ""
13527 " int\n"
13528 " guestfs_set_append (guestfs_h *g,\n"
13529 "                     const char *append);\n"
13530 "\n"
13531 msgstr ""
13532
13533 # type: textblock
13534 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13535 msgid ""
13536 "This function is used to add additional options to the guest kernel command "
13537 "line."
13538 msgstr ""
13539
13540 # type: textblock
13541 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13542 msgid ""
13543 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13544 "environment variable."
13545 msgstr ""
13546
13547 # type: textblock
13548 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13549 msgid ""
13550 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13551 "(libguestfs always adds a few of its own)."
13552 msgstr ""
13553
13554 # type: =head2
13555 #: ../src/guestfs-actions.pod:5392
13556 msgid "guestfs_set_autosync"
13557 msgstr ""
13558
13559 # type: verbatim
13560 #: ../src/guestfs-actions.pod:5394
13561 #, no-wrap
13562 msgid ""
13563 " int\n"
13564 " guestfs_set_autosync (guestfs_h *g,\n"
13565 "                       int autosync);\n"
13566 "\n"
13567 msgstr ""
13568
13569 # type: textblock
13570 #: ../src/guestfs-actions.pod:5398
13571 msgid ""
13572 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13573 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13574 "the handle is closed (also if the program exits without closing handles)."
13575 msgstr ""
13576
13577 # type: textblock
13578 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13579 msgid ""
13580 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13581 "disabled by default)."
13582 msgstr ""
13583
13584 # type: =head2
13585 #: ../src/guestfs-actions.pod:5410
13586 msgid "guestfs_set_direct"
13587 msgstr ""
13588
13589 # type: verbatim
13590 #: ../src/guestfs-actions.pod:5412
13591 #, no-wrap
13592 msgid ""
13593 " int\n"
13594 " guestfs_set_direct (guestfs_h *g,\n"
13595 "                     int direct);\n"
13596 "\n"
13597 msgstr ""
13598
13599 # type: textblock
13600 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13601 msgid ""
13602 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13603 "passed directly through to the appliance once it is launched."
13604 msgstr ""
13605
13606 # type: textblock
13607 #: ../src/guestfs-actions.pod:5420
13608 msgid ""
13609 "One consequence of this is that log messages aren't caught by the library "
13610 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13611 "stdout."
13612 msgstr ""
13613
13614 # type: textblock
13615 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13616 msgid "You probably don't want to use this unless you know what you are doing."
13617 msgstr ""
13618
13619 # type: textblock
13620 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13621 msgid "The default is disabled."
13622 msgstr ""
13623
13624 # type: =head2
13625 #: ../src/guestfs-actions.pod:5433
13626 msgid "guestfs_set_e2label"
13627 msgstr ""
13628
13629 # type: verbatim
13630 #: ../src/guestfs-actions.pod:5435
13631 #, no-wrap
13632 msgid ""
13633 " int\n"
13634 " guestfs_set_e2label (guestfs_h *g,\n"
13635 "                      const char *device,\n"
13636 "                      const char *label);\n"
13637 "\n"
13638 msgstr ""
13639
13640 # type: textblock
13641 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13642 msgid ""
13643 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13644 "C<label>.  Filesystem labels are limited to 16 characters."
13645 msgstr ""
13646
13647 # type: textblock
13648 #: ../src/guestfs-actions.pod:5444
13649 msgid ""
13650 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13651 "the existing label on a filesystem."
13652 msgstr ""
13653
13654 # type: =head2
13655 #: ../src/guestfs-actions.pod:5451
13656 msgid "guestfs_set_e2uuid"
13657 msgstr ""
13658
13659 # type: verbatim
13660 #: ../src/guestfs-actions.pod:5453
13661 #, no-wrap
13662 msgid ""
13663 " int\n"
13664 " guestfs_set_e2uuid (guestfs_h *g,\n"
13665 "                     const char *device,\n"
13666 "                     const char *uuid);\n"
13667 "\n"
13668 msgstr ""
13669
13670 # type: textblock
13671 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13672 msgid ""
13673 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13674 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13675 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13676 msgstr ""
13677
13678 # type: textblock
13679 #: ../src/guestfs-actions.pod:5463
13680 msgid ""
13681 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13682 "the existing UUID of a filesystem."
13683 msgstr ""
13684
13685 # type: =head2
13686 #: ../src/guestfs-actions.pod:5470
13687 msgid "guestfs_set_memsize"
13688 msgstr ""
13689
13690 # type: verbatim
13691 #: ../src/guestfs-actions.pod:5472
13692 #, no-wrap
13693 msgid ""
13694 " int\n"
13695 " guestfs_set_memsize (guestfs_h *g,\n"
13696 "                      int memsize);\n"
13697 "\n"
13698 msgstr ""
13699
13700 # type: textblock
13701 #: ../src/guestfs-actions.pod:5476
13702 msgid ""
13703 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13704 "This only has any effect if called before C<guestfs_launch>."
13705 msgstr ""
13706
13707 # type: textblock
13708 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13709 msgid ""
13710 "You can also change this by setting the environment variable "
13711 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13712 msgstr ""
13713
13714 # type: =head2
13715 #: ../src/guestfs-actions.pod:5491
13716 msgid "guestfs_set_network"
13717 msgstr ""
13718
13719 # type: verbatim
13720 #: ../src/guestfs-actions.pod:5493
13721 #, no-wrap
13722 msgid ""
13723 " int\n"
13724 " guestfs_set_network (guestfs_h *g,\n"
13725 "                      int network);\n"
13726 "\n"
13727 msgstr ""
13728
13729 # type: textblock
13730 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13731 msgid ""
13732 "If C<network> is true, then the network is enabled in the libguestfs "
13733 "appliance.  The default is false."
13734 msgstr ""
13735
13736 # type: textblock
13737 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13738 msgid ""
13739 "This affects whether commands are able to access the network (see L<guestfs"
13740 "(3)/RUNNING COMMANDS>)."
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-actions.pod:5503
13745 msgid ""
13746 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13747 "effect."
13748 msgstr ""
13749
13750 # type: =head2
13751 #: ../src/guestfs-actions.pod:5510
13752 msgid "guestfs_set_path"
13753 msgstr ""
13754
13755 # type: verbatim
13756 #: ../src/guestfs-actions.pod:5512
13757 #, no-wrap
13758 msgid ""
13759 " int\n"
13760 " guestfs_set_path (guestfs_h *g,\n"
13761 "                   const char *searchpath);\n"
13762 "\n"
13763 msgstr ""
13764
13765 # type: textblock
13766 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13767 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13768 msgstr ""
13769
13770 # type: textblock
13771 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13772 msgid ""
13773 "The default is C<$libdir/guestfs> unless overridden by setting "
13774 "C<LIBGUESTFS_PATH> environment variable."
13775 msgstr ""
13776
13777 # type: textblock
13778 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13779 msgid "Setting C<path> to C<NULL> restores the default path."
13780 msgstr ""
13781
13782 # type: =head2
13783 #: ../src/guestfs-actions.pod:5527
13784 msgid "guestfs_set_qemu"
13785 msgstr ""
13786
13787 # type: verbatim
13788 #: ../src/guestfs-actions.pod:5529
13789 #, no-wrap
13790 msgid ""
13791 " int\n"
13792 " guestfs_set_qemu (guestfs_h *g,\n"
13793 "                   const char *qemu);\n"
13794 "\n"
13795 msgstr ""
13796
13797 # type: textblock
13798 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13799 msgid "Set the qemu binary that we will use."
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13804 msgid ""
13805 "The default is chosen when the library was compiled by the configure script."
13806 msgstr ""
13807
13808 # type: textblock
13809 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13810 msgid ""
13811 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13812 "variable."
13813 msgstr ""
13814
13815 # type: textblock
13816 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13817 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13818 msgstr ""
13819
13820 # type: textblock
13821 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13822 msgid ""
13823 "Note that you should call this function as early as possible after creating "
13824 "the handle.  This is because some pre-launch operations depend on testing "
13825 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13826 "don't retest features, and so you might see inconsistent results.  Using the "
13827 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13828 "the qemu binary at the same time as the handle is created."
13829 msgstr ""
13830
13831 # type: =head2
13832 #: ../src/guestfs-actions.pod:5555
13833 msgid "guestfs_set_recovery_proc"
13834 msgstr ""
13835
13836 # type: verbatim
13837 #: ../src/guestfs-actions.pod:5557
13838 #, no-wrap
13839 msgid ""
13840 " int\n"
13841 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13842 "                            int recoveryproc);\n"
13843 "\n"
13844 msgstr ""
13845
13846 # type: textblock
13847 #: ../src/guestfs-actions.pod:5561
13848 msgid ""
13849 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13850 "not create a recovery process.  The purpose of the recovery process is to "
13851 "stop runaway qemu processes in the case where the main program aborts "
13852 "abruptly."
13853 msgstr ""
13854
13855 # type: textblock
13856 #: ../src/guestfs-actions.pod:5566
13857 msgid ""
13858 "This only has any effect if called before C<guestfs_launch>, and the default "
13859 "is true."
13860 msgstr ""
13861
13862 # type: textblock
13863 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13864 msgid ""
13865 "About the only time when you would want to disable this is if the main "
13866 "process will fork itself into the background (\"daemonize\" itself).  In "
13867 "this case the recovery process thinks that the main program has disappeared "
13868 "and so kills qemu, which is not very helpful."
13869 msgstr ""
13870
13871 # type: =head2
13872 #: ../src/guestfs-actions.pod:5579
13873 msgid "guestfs_set_selinux"
13874 msgstr ""
13875
13876 # type: verbatim
13877 #: ../src/guestfs-actions.pod:5581
13878 #, no-wrap
13879 msgid ""
13880 " int\n"
13881 " guestfs_set_selinux (guestfs_h *g,\n"
13882 "                      int selinux);\n"
13883 "\n"
13884 msgstr ""
13885
13886 # type: textblock
13887 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13888 msgid ""
13889 "This sets the selinux flag that is passed to the appliance at boot time.  "
13890 "The default is C<selinux=0> (disabled)."
13891 msgstr ""
13892
13893 # type: textblock
13894 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13895 msgid ""
13896 "Note that if SELinux is enabled, it is always in Permissive mode "
13897 "(C<enforcing=0>)."
13898 msgstr ""
13899
13900 # type: =head2
13901 #: ../src/guestfs-actions.pod:5598
13902 msgid "guestfs_set_trace"
13903 msgstr ""
13904
13905 # type: verbatim
13906 #: ../src/guestfs-actions.pod:5600
13907 #, no-wrap
13908 msgid ""
13909 " int\n"
13910 " guestfs_set_trace (guestfs_h *g,\n"
13911 "                    int trace);\n"
13912 "\n"
13913 msgstr ""
13914
13915 # type: textblock
13916 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13917 msgid ""
13918 "If the command trace flag is set to 1, then commands are printed on stderr "
13919 "before they are executed in a format which is very similar to the one used "
13920 "by guestfish.  In other words, you can run a program with this enabled, and "
13921 "you will get out a script which you can feed to guestfish to perform the "
13922 "same set of actions."
13923 msgstr ""
13924
13925 # type: textblock
13926 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13927 msgid ""
13928 "If you want to trace C API calls into libguestfs (and other libraries) then "
13929 "possibly a better way is to use the external ltrace(1) command."
13930 msgstr ""
13931
13932 # type: textblock
13933 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13934 msgid ""
13935 "Command traces are disabled unless the environment variable "
13936 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13937 msgstr ""
13938
13939 # type: =head2
13940 #: ../src/guestfs-actions.pod:5622
13941 msgid "guestfs_set_verbose"
13942 msgstr ""
13943
13944 # type: verbatim
13945 #: ../src/guestfs-actions.pod:5624
13946 #, no-wrap
13947 msgid ""
13948 " int\n"
13949 " guestfs_set_verbose (guestfs_h *g,\n"
13950 "                      int verbose);\n"
13951 "\n"
13952 msgstr ""
13953
13954 # type: textblock
13955 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13956 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13957 msgstr ""
13958
13959 # type: textblock
13960 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13961 msgid ""
13962 "Verbose messages are disabled unless the environment variable "
13963 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13964 msgstr ""
13965
13966 # type: =head2
13967 #: ../src/guestfs-actions.pod:5637
13968 msgid "guestfs_setcon"
13969 msgstr ""
13970
13971 # type: verbatim
13972 #: ../src/guestfs-actions.pod:5639
13973 #, no-wrap
13974 msgid ""
13975 " int\n"
13976 " guestfs_setcon (guestfs_h *g,\n"
13977 "                 const char *context);\n"
13978 "\n"
13979 msgstr ""
13980
13981 # type: textblock
13982 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13983 msgid ""
13984 "This sets the SELinux security context of the daemon to the string "
13985 "C<context>."
13986 msgstr ""
13987
13988 # type: textblock
13989 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13990 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13991 msgstr ""
13992
13993 # type: =head2
13994 #: ../src/guestfs-actions.pod:5652
13995 msgid "guestfs_setxattr"
13996 msgstr ""
13997
13998 # type: verbatim
13999 #: ../src/guestfs-actions.pod:5654
14000 #, no-wrap
14001 msgid ""
14002 " int\n"
14003 " guestfs_setxattr (guestfs_h *g,\n"
14004 "                   const char *xattr,\n"
14005 "                   const char *val,\n"
14006 "                   int vallen,\n"
14007 "                   const char *path);\n"
14008 "\n"
14009 msgstr ""
14010
14011 # type: textblock
14012 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
14013 msgid ""
14014 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14015 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14016 msgstr ""
14017
14018 # type: textblock
14019 #: ../src/guestfs-actions.pod:5665
14020 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14021 msgstr ""
14022
14023 # type: =head2
14024 #: ../src/guestfs-actions.pod:5671
14025 msgid "guestfs_sfdisk"
14026 msgstr ""
14027
14028 # type: verbatim
14029 #: ../src/guestfs-actions.pod:5673
14030 #, no-wrap
14031 msgid ""
14032 " int\n"
14033 " guestfs_sfdisk (guestfs_h *g,\n"
14034 "                 const char *device,\n"
14035 "                 int cyls,\n"
14036 "                 int heads,\n"
14037 "                 int sectors,\n"
14038 "                 char *const *lines);\n"
14039 "\n"
14040 msgstr ""
14041
14042 # type: textblock
14043 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
14044 msgid ""
14045 "This is a direct interface to the L<sfdisk(8)> program for creating "
14046 "partitions on block devices."
14047 msgstr ""
14048
14049 # type: textblock
14050 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
14051 msgid "C<device> should be a block device, for example C</dev/sda>."
14052 msgstr ""
14053
14054 # type: textblock
14055 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
14056 msgid ""
14057 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14058 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14059 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14060 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14061 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14062 "the kernel) cannot work out the right geometry and you will need to tell it."
14063 msgstr ""
14064
14065 # type: textblock
14066 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
14067 msgid ""
14068 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14069 "refer to the L<sfdisk(8)> manpage."
14070 msgstr ""
14071
14072 # type: textblock
14073 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
14074 msgid ""
14075 "To create a single partition occupying the whole disk, you would pass "
14076 "C<lines> as a single element list, when the single element being the string "
14077 "C<,> (comma)."
14078 msgstr ""
14079
14080 # type: textblock
14081 #: ../src/guestfs-actions.pod:5701
14082 msgid ""
14083 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14084 msgstr ""
14085
14086 # type: =head2
14087 #: ../src/guestfs-actions.pod:5711
14088 msgid "guestfs_sfdiskM"
14089 msgstr ""
14090
14091 # type: verbatim
14092 #: ../src/guestfs-actions.pod:5713
14093 #, no-wrap
14094 msgid ""
14095 " int\n"
14096 " guestfs_sfdiskM (guestfs_h *g,\n"
14097 "                  const char *device,\n"
14098 "                  char *const *lines);\n"
14099 "\n"
14100 msgstr ""
14101
14102 # type: textblock
14103 #: ../src/guestfs-actions.pod:5718
14104 msgid ""
14105 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14106 "partition sizes are specified in megabytes only (rounded to the nearest "
14107 "cylinder) and you don't need to specify the cyls, heads and sectors "
14108 "parameters which were rarely if ever used anyway."
14109 msgstr ""
14110
14111 # type: textblock
14112 #: ../src/guestfs-actions.pod:5724
14113 msgid ""
14114 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14115 "C<guestfs_part_disk>"
14116 msgstr ""
14117
14118 # type: =head2
14119 #: ../src/guestfs-actions.pod:5734
14120 msgid "guestfs_sfdisk_N"
14121 msgstr ""
14122
14123 # type: verbatim
14124 #: ../src/guestfs-actions.pod:5736
14125 #, no-wrap
14126 msgid ""
14127 " int\n"
14128 " guestfs_sfdisk_N (guestfs_h *g,\n"
14129 "                   const char *device,\n"
14130 "                   int partnum,\n"
14131 "                   int cyls,\n"
14132 "                   int heads,\n"
14133 "                   int sectors,\n"
14134 "                   const char *line);\n"
14135 "\n"
14136 msgstr ""
14137
14138 # type: textblock
14139 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
14140 msgid ""
14141 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14142 "(note: C<n> counts from 1)."
14143 msgstr ""
14144
14145 # type: textblock
14146 #: ../src/guestfs-actions.pod:5748
14147 msgid ""
14148 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14149 "for the cyls/heads/sectors parameters."
14150 msgstr ""
14151
14152 # type: textblock
14153 #: ../src/guestfs-actions.pod:5751
14154 msgid "See also: C<guestfs_part_add>"
14155 msgstr ""
14156
14157 # type: =head2
14158 #: ../src/guestfs-actions.pod:5760
14159 msgid "guestfs_sfdisk_disk_geometry"
14160 msgstr ""
14161
14162 # type: verbatim
14163 #: ../src/guestfs-actions.pod:5762
14164 #, no-wrap
14165 msgid ""
14166 " char *\n"
14167 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14168 "                               const char *device);\n"
14169 "\n"
14170 msgstr ""
14171
14172 # type: textblock
14173 #: ../src/guestfs-actions.pod:5766
14174 msgid ""
14175 "This displays the disk geometry of C<device> read from the partition table.  "
14176 "Especially in the case where the underlying block device has been resized, "
14177 "this can be different from the kernel's idea of the geometry (see "
14178 "C<guestfs_sfdisk_kernel_geometry>)."
14179 msgstr ""
14180
14181 # type: textblock
14182 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787
14183 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14184 msgid "The result is in human-readable format, and not designed to be parsed."
14185 msgstr ""
14186
14187 # type: =head2
14188 #: ../src/guestfs-actions.pod:5779
14189 msgid "guestfs_sfdisk_kernel_geometry"
14190 msgstr ""
14191
14192 # type: verbatim
14193 #: ../src/guestfs-actions.pod:5781
14194 #, no-wrap
14195 msgid ""
14196 " char *\n"
14197 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14198 "                                 const char *device);\n"
14199 "\n"
14200 msgstr ""
14201
14202 # type: textblock
14203 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
14204 msgid "This displays the kernel's idea of the geometry of C<device>."
14205 msgstr ""
14206
14207 # type: =head2
14208 #: ../src/guestfs-actions.pod:5795
14209 msgid "guestfs_sfdisk_l"
14210 msgstr ""
14211
14212 # type: verbatim
14213 #: ../src/guestfs-actions.pod:5797
14214 #, no-wrap
14215 msgid ""
14216 " char *\n"
14217 " guestfs_sfdisk_l (guestfs_h *g,\n"
14218 "                   const char *device);\n"
14219 "\n"
14220 msgstr ""
14221
14222 # type: textblock
14223 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
14224 msgid ""
14225 "This displays the partition table on C<device>, in the human-readable output "
14226 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14227 msgstr ""
14228
14229 # type: textblock
14230 #: ../src/guestfs-actions.pod:5805
14231 msgid "See also: C<guestfs_part_list>"
14232 msgstr ""
14233
14234 # type: =head2
14235 #: ../src/guestfs-actions.pod:5812
14236 msgid "guestfs_sh"
14237 msgstr ""
14238
14239 # type: verbatim
14240 #: ../src/guestfs-actions.pod:5814
14241 #, no-wrap
14242 msgid ""
14243 " char *\n"
14244 " guestfs_sh (guestfs_h *g,\n"
14245 "             const char *command);\n"
14246 "\n"
14247 msgstr ""
14248
14249 # type: textblock
14250 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
14251 msgid ""
14252 "This call runs a command from the guest filesystem via the guest's C</bin/"
14253 "sh>."
14254 msgstr ""
14255
14256 # type: textblock
14257 #: ../src/guestfs-actions.pod:5821
14258 msgid "This is like C<guestfs_command>, but passes the command to:"
14259 msgstr ""
14260
14261 # type: verbatim
14262 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
14263 #, no-wrap
14264 msgid ""
14265 " /bin/sh -c \"command\"\n"
14266 "\n"
14267 msgstr ""
14268
14269 # type: textblock
14270 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
14271 msgid ""
14272 "Depending on the guest's shell, this usually results in wildcards being "
14273 "expanded, shell expressions being interpolated and so on."
14274 msgstr ""
14275
14276 # type: textblock
14277 #: ../src/guestfs-actions.pod:5829
14278 msgid "All the provisos about C<guestfs_command> apply to this call."
14279 msgstr ""
14280
14281 # type: =head2
14282 #: ../src/guestfs-actions.pod:5836
14283 msgid "guestfs_sh_lines"
14284 msgstr ""
14285
14286 # type: verbatim
14287 #: ../src/guestfs-actions.pod:5838
14288 #, no-wrap
14289 msgid ""
14290 " char **\n"
14291 " guestfs_sh_lines (guestfs_h *g,\n"
14292 "                   const char *command);\n"
14293 "\n"
14294 msgstr ""
14295
14296 # type: textblock
14297 #: ../src/guestfs-actions.pod:5842
14298 msgid ""
14299 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14300 "lines."
14301 msgstr ""
14302
14303 # type: textblock
14304 #: ../src/guestfs-actions.pod:5845
14305 msgid "See also: C<guestfs_command_lines>"
14306 msgstr ""
14307
14308 # type: =head2
14309 #: ../src/guestfs-actions.pod:5853
14310 msgid "guestfs_sleep"
14311 msgstr ""
14312
14313 # type: verbatim
14314 #: ../src/guestfs-actions.pod:5855
14315 #, no-wrap
14316 msgid ""
14317 " int\n"
14318 " guestfs_sleep (guestfs_h *g,\n"
14319 "                int secs);\n"
14320 "\n"
14321 msgstr ""
14322
14323 # type: textblock
14324 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
14325 msgid "Sleep for C<secs> seconds."
14326 msgstr ""
14327
14328 # type: textblock
14329 #: ../src/guestfs-actions.pod:5863
14330 msgid "(Added in 1.0.41)"
14331 msgstr ""
14332
14333 # type: =head2
14334 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
14335 msgid "guestfs_stat"
14336 msgstr ""
14337
14338 # type: verbatim
14339 #: ../src/guestfs-actions.pod:5867
14340 #, no-wrap
14341 msgid ""
14342 " struct guestfs_stat *\n"
14343 " guestfs_stat (guestfs_h *g,\n"
14344 "               const char *path);\n"
14345 "\n"
14346 msgstr ""
14347
14348 # type: textblock
14349 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
14350 msgid "This is the same as the C<stat(2)> system call."
14351 msgstr ""
14352
14353 # type: =head2
14354 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
14355 msgid "guestfs_statvfs"
14356 msgstr ""
14357
14358 # type: verbatim
14359 #: ../src/guestfs-actions.pod:5883
14360 #, no-wrap
14361 msgid ""
14362 " struct guestfs_statvfs *\n"
14363 " guestfs_statvfs (guestfs_h *g,\n"
14364 "                  const char *path);\n"
14365 "\n"
14366 msgstr ""
14367
14368 # type: textblock
14369 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
14370 msgid ""
14371 "Returns file system statistics for any mounted file system.  C<path> should "
14372 "be a file or directory in the mounted file system (typically it is the mount "
14373 "point itself, but it doesn't need to be)."
14374 msgstr ""
14375
14376 # type: textblock
14377 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
14378 msgid "This is the same as the C<statvfs(2)> system call."
14379 msgstr ""
14380
14381 # type: textblock
14382 #: ../src/guestfs-actions.pod:5893
14383 msgid ""
14384 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14385 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14386 msgstr ""
14387
14388 # type: =head2
14389 #: ../src/guestfs-actions.pod:5899
14390 msgid "guestfs_strings"
14391 msgstr ""
14392
14393 # type: verbatim
14394 #: ../src/guestfs-actions.pod:5901
14395 #, no-wrap
14396 msgid ""
14397 " char **\n"
14398 " guestfs_strings (guestfs_h *g,\n"
14399 "                  const char *path);\n"
14400 "\n"
14401 msgstr ""
14402
14403 # type: textblock
14404 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
14405 msgid ""
14406 "This runs the L<strings(1)> command on a file and returns the list of "
14407 "printable strings found."
14408 msgstr ""
14409
14410 # type: =head2
14411 #: ../src/guestfs-actions.pod:5917
14412 msgid "guestfs_strings_e"
14413 msgstr ""
14414
14415 # type: verbatim
14416 #: ../src/guestfs-actions.pod:5919
14417 #, no-wrap
14418 msgid ""
14419 " char **\n"
14420 " guestfs_strings_e (guestfs_h *g,\n"
14421 "                    const char *encoding,\n"
14422 "                    const char *path);\n"
14423 "\n"
14424 msgstr ""
14425
14426 # type: textblock
14427 #: ../src/guestfs-actions.pod:5924
14428 msgid ""
14429 "This is like the C<guestfs_strings> command, but allows you to specify the "
14430 "encoding of strings that are looked for in the source file C<path>."
14431 msgstr ""
14432
14433 # type: textblock
14434 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
14435 msgid "Allowed encodings are:"
14436 msgstr ""
14437
14438 # type: =item
14439 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
14440 msgid "s"
14441 msgstr ""
14442
14443 # type: textblock
14444 #: ../src/guestfs-actions.pod:5934
14445 msgid ""
14446 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14447 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14448 msgstr ""
14449
14450 # type: =item
14451 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
14452 msgid "S"
14453 msgstr ""
14454
14455 # type: textblock
14456 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
14457 msgid "Single 8-bit-byte characters."
14458 msgstr ""
14459
14460 # type: =item
14461 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
14462 msgid "b"
14463 msgstr ""
14464
14465 # type: textblock
14466 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
14467 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14468 msgstr ""
14469
14470 # type: =item
14471 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
14472 msgid "l (lower case letter L)"
14473 msgstr ""
14474
14475 # type: textblock
14476 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
14477 msgid ""
14478 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14479 "examining binaries in Windows guests."
14480 msgstr ""
14481
14482 # type: =item
14483 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14484 msgid "B"
14485 msgstr ""
14486
14487 # type: textblock
14488 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14489 msgid "32-bit big endian such as UCS-4BE."
14490 msgstr ""
14491
14492 # type: =item
14493 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14494 msgid "L"
14495 msgstr ""
14496
14497 # type: textblock
14498 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14499 msgid "32-bit little endian such as UCS-4LE."
14500 msgstr ""
14501
14502 # type: textblock
14503 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14504 msgid "The returned strings are transcoded to UTF-8."
14505 msgstr ""
14506
14507 # type: =head2
14508 #: ../src/guestfs-actions.pod:5972
14509 msgid "guestfs_swapoff_device"
14510 msgstr ""
14511
14512 # type: verbatim
14513 #: ../src/guestfs-actions.pod:5974
14514 #, no-wrap
14515 msgid ""
14516 " int\n"
14517 " guestfs_swapoff_device (guestfs_h *g,\n"
14518 "                         const char *device);\n"
14519 "\n"
14520 msgstr ""
14521
14522 # type: textblock
14523 #: ../src/guestfs-actions.pod:5978
14524 msgid ""
14525 "This command disables the libguestfs appliance swap device or partition "
14526 "named C<device>.  See C<guestfs_swapon_device>."
14527 msgstr ""
14528
14529 # type: =head2
14530 #: ../src/guestfs-actions.pod:5986
14531 msgid "guestfs_swapoff_file"
14532 msgstr ""
14533
14534 # type: verbatim
14535 #: ../src/guestfs-actions.pod:5988
14536 #, no-wrap
14537 msgid ""
14538 " int\n"
14539 " guestfs_swapoff_file (guestfs_h *g,\n"
14540 "                       const char *file);\n"
14541 "\n"
14542 msgstr ""
14543
14544 # type: textblock
14545 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14546 msgid "This command disables the libguestfs appliance swap on file."
14547 msgstr ""
14548
14549 # type: =head2
14550 #: ../src/guestfs-actions.pod:5998
14551 msgid "guestfs_swapoff_label"
14552 msgstr ""
14553
14554 # type: verbatim
14555 #: ../src/guestfs-actions.pod:6000
14556 #, no-wrap
14557 msgid ""
14558 " int\n"
14559 " guestfs_swapoff_label (guestfs_h *g,\n"
14560 "                        const char *label);\n"
14561 "\n"
14562 msgstr ""
14563
14564 # type: textblock
14565 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14566 msgid ""
14567 "This command disables the libguestfs appliance swap on labeled swap "
14568 "partition."
14569 msgstr ""
14570
14571 # type: =head2
14572 #: ../src/guestfs-actions.pod:6011
14573 msgid "guestfs_swapoff_uuid"
14574 msgstr ""
14575
14576 # type: verbatim
14577 #: ../src/guestfs-actions.pod:6013
14578 #, no-wrap
14579 msgid ""
14580 " int\n"
14581 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14582 "                       const char *uuid);\n"
14583 "\n"
14584 msgstr ""
14585
14586 # type: textblock
14587 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14588 msgid ""
14589 "This command disables the libguestfs appliance swap partition with the given "
14590 "UUID."
14591 msgstr ""
14592
14593 # type: =head2
14594 #: ../src/guestfs-actions.pod:6024
14595 msgid "guestfs_swapon_device"
14596 msgstr ""
14597
14598 # type: verbatim
14599 #: ../src/guestfs-actions.pod:6026
14600 #, no-wrap
14601 msgid ""
14602 " int\n"
14603 " guestfs_swapon_device (guestfs_h *g,\n"
14604 "                        const char *device);\n"
14605 "\n"
14606 msgstr ""
14607
14608 # type: textblock
14609 #: ../src/guestfs-actions.pod:6030
14610 msgid ""
14611 "This command enables the libguestfs appliance to use the swap device or "
14612 "partition named C<device>.  The increased memory is made available for all "
14613 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14614 msgstr ""
14615
14616 # type: textblock
14617 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14618 msgid ""
14619 "Note that you should not swap to existing guest swap partitions unless you "
14620 "know what you are doing.  They may contain hibernation information, or other "
14621 "information that the guest doesn't want you to trash.  You also risk leaking "
14622 "information about the host to the guest this way.  Instead, attach a new "
14623 "host device to the guest and swap on that."
14624 msgstr ""
14625
14626 # type: =head2
14627 #: ../src/guestfs-actions.pod:6046
14628 msgid "guestfs_swapon_file"
14629 msgstr ""
14630
14631 # type: verbatim
14632 #: ../src/guestfs-actions.pod:6048
14633 #, no-wrap
14634 msgid ""
14635 " int\n"
14636 " guestfs_swapon_file (guestfs_h *g,\n"
14637 "                      const char *file);\n"
14638 "\n"
14639 msgstr ""
14640
14641 # type: textblock
14642 #: ../src/guestfs-actions.pod:6052
14643 msgid ""
14644 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14645 "notes."
14646 msgstr ""
14647
14648 # type: =head2
14649 #: ../src/guestfs-actions.pod:6059
14650 msgid "guestfs_swapon_label"
14651 msgstr ""
14652
14653 # type: verbatim
14654 #: ../src/guestfs-actions.pod:6061
14655 #, no-wrap
14656 msgid ""
14657 " int\n"
14658 " guestfs_swapon_label (guestfs_h *g,\n"
14659 "                       const char *label);\n"
14660 "\n"
14661 msgstr ""
14662
14663 # type: textblock
14664 #: ../src/guestfs-actions.pod:6065
14665 msgid ""
14666 "This command enables swap to a labeled swap partition.  See "
14667 "C<guestfs_swapon_device> for other notes."
14668 msgstr ""
14669
14670 # type: =head2
14671 #: ../src/guestfs-actions.pod:6072
14672 msgid "guestfs_swapon_uuid"
14673 msgstr ""
14674
14675 # type: verbatim
14676 #: ../src/guestfs-actions.pod:6074
14677 #, no-wrap
14678 msgid ""
14679 " int\n"
14680 " guestfs_swapon_uuid (guestfs_h *g,\n"
14681 "                      const char *uuid);\n"
14682 "\n"
14683 msgstr ""
14684
14685 # type: textblock
14686 #: ../src/guestfs-actions.pod:6078
14687 msgid ""
14688 "This command enables swap to a swap partition with the given UUID.  See "
14689 "C<guestfs_swapon_device> for other notes."
14690 msgstr ""
14691
14692 # type: =head2
14693 #: ../src/guestfs-actions.pod:6085
14694 msgid "guestfs_sync"
14695 msgstr ""
14696
14697 # type: verbatim
14698 #: ../src/guestfs-actions.pod:6087
14699 #, no-wrap
14700 msgid ""
14701 " int\n"
14702 " guestfs_sync (guestfs_h *g);\n"
14703 "\n"
14704 msgstr ""
14705
14706 # type: textblock
14707 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14708 msgid ""
14709 "This syncs the disk, so that any writes are flushed through to the "
14710 "underlying disk image."
14711 msgstr ""
14712
14713 # type: textblock
14714 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14715 msgid ""
14716 "You should always call this if you have modified a disk image, before "
14717 "closing the handle."
14718 msgstr ""
14719
14720 # type: =head2
14721 #: ../src/guestfs-actions.pod:6100
14722 msgid "guestfs_tail"
14723 msgstr ""
14724
14725 # type: verbatim
14726 #: ../src/guestfs-actions.pod:6102
14727 #, no-wrap
14728 msgid ""
14729 " char **\n"
14730 " guestfs_tail (guestfs_h *g,\n"
14731 "               const char *path);\n"
14732 "\n"
14733 msgstr ""
14734
14735 # type: textblock
14736 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14737 msgid ""
14738 "This command returns up to the last 10 lines of a file as a list of strings."
14739 msgstr ""
14740
14741 # type: =head2
14742 #: ../src/guestfs-actions.pod:6118
14743 msgid "guestfs_tail_n"
14744 msgstr ""
14745
14746 # type: verbatim
14747 #: ../src/guestfs-actions.pod:6120
14748 #, no-wrap
14749 msgid ""
14750 " char **\n"
14751 " guestfs_tail_n (guestfs_h *g,\n"
14752 "                 int nrlines,\n"
14753 "                 const char *path);\n"
14754 "\n"
14755 msgstr ""
14756
14757 # type: textblock
14758 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14759 msgid ""
14760 "If the parameter C<nrlines> is a positive number, this returns the last "
14761 "C<nrlines> lines of the file C<path>."
14762 msgstr ""
14763
14764 # type: textblock
14765 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14766 msgid ""
14767 "If the parameter C<nrlines> is a negative number, this returns lines from "
14768 "the file C<path>, starting with the C<-nrlines>th line."
14769 msgstr ""
14770
14771 # type: =head2
14772 #: ../src/guestfs-actions.pod:6142
14773 msgid "guestfs_tar_in"
14774 msgstr ""
14775
14776 # type: verbatim
14777 #: ../src/guestfs-actions.pod:6144
14778 #, no-wrap
14779 msgid ""
14780 " int\n"
14781 " guestfs_tar_in (guestfs_h *g,\n"
14782 "                 const char *tarfile,\n"
14783 "                 const char *directory);\n"
14784 "\n"
14785 msgstr ""
14786
14787 # type: textblock
14788 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14789 msgid ""
14790 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14791 "tar file) into C<directory>."
14792 msgstr ""
14793
14794 # type: textblock
14795 #: ../src/guestfs-actions.pod:6152
14796 msgid ""
14797 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14798 msgstr ""
14799
14800 # type: textblock
14801 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174
14802 #: ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14803 msgid "(Added in 1.0.3)"
14804 msgstr ""
14805
14806 # type: =head2
14807 #: ../src/guestfs-actions.pod:6159
14808 msgid "guestfs_tar_out"
14809 msgstr ""
14810
14811 # type: verbatim
14812 #: ../src/guestfs-actions.pod:6161
14813 #, no-wrap
14814 msgid ""
14815 " int\n"
14816 " guestfs_tar_out (guestfs_h *g,\n"
14817 "                  const char *directory,\n"
14818 "                  const char *tarfile);\n"
14819 "\n"
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14824 msgid ""
14825 "This command packs the contents of C<directory> and downloads it to local "
14826 "file C<tarfile>."
14827 msgstr ""
14828
14829 # type: textblock
14830 #: ../src/guestfs-actions.pod:6169
14831 msgid ""
14832 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14833 "C<guestfs_txz_out>."
14834 msgstr ""
14835
14836 # type: =head2
14837 #: ../src/guestfs-actions.pod:6176
14838 msgid "guestfs_tgz_in"
14839 msgstr ""
14840
14841 # type: verbatim
14842 #: ../src/guestfs-actions.pod:6178
14843 #, no-wrap
14844 msgid ""
14845 " int\n"
14846 " guestfs_tgz_in (guestfs_h *g,\n"
14847 "                 const char *tarball,\n"
14848 "                 const char *directory);\n"
14849 "\n"
14850 msgstr ""
14851
14852 # type: textblock
14853 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14854 msgid ""
14855 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14856 "tar file) into C<directory>."
14857 msgstr ""
14858
14859 # type: textblock
14860 #: ../src/guestfs-actions.pod:6186
14861 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14862 msgstr ""
14863
14864 # type: =head2
14865 #: ../src/guestfs-actions.pod:6192
14866 msgid "guestfs_tgz_out"
14867 msgstr ""
14868
14869 # type: verbatim
14870 #: ../src/guestfs-actions.pod:6194
14871 #, no-wrap
14872 msgid ""
14873 " int\n"
14874 " guestfs_tgz_out (guestfs_h *g,\n"
14875 "                  const char *directory,\n"
14876 "                  const char *tarball);\n"
14877 "\n"
14878 msgstr ""
14879
14880 # type: textblock
14881 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14882 msgid ""
14883 "This command packs the contents of C<directory> and downloads it to local "
14884 "file C<tarball>."
14885 msgstr ""
14886
14887 # type: textblock
14888 #: ../src/guestfs-actions.pod:6202
14889 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14890 msgstr ""
14891
14892 # type: =head2
14893 #: ../src/guestfs-actions.pod:6208
14894 msgid "guestfs_touch"
14895 msgstr ""
14896
14897 # type: verbatim
14898 #: ../src/guestfs-actions.pod:6210
14899 #, no-wrap
14900 msgid ""
14901 " int\n"
14902 " guestfs_touch (guestfs_h *g,\n"
14903 "                const char *path);\n"
14904 "\n"
14905 msgstr ""
14906
14907 # type: textblock
14908 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14909 msgid ""
14910 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14911 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14912 "length file."
14913 msgstr ""
14914
14915 # type: textblock
14916 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14917 msgid ""
14918 "This command only works on regular files, and will fail on other file types "
14919 "such as directories, symbolic links, block special etc."
14920 msgstr ""
14921
14922 # type: =head2
14923 #: ../src/guestfs-actions.pod:6225
14924 msgid "guestfs_truncate"
14925 msgstr ""
14926
14927 # type: verbatim
14928 #: ../src/guestfs-actions.pod:6227
14929 #, no-wrap
14930 msgid ""
14931 " int\n"
14932 " guestfs_truncate (guestfs_h *g,\n"
14933 "                   const char *path);\n"
14934 "\n"
14935 msgstr ""
14936
14937 # type: textblock
14938 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14939 msgid ""
14940 "This command truncates C<path> to a zero-length file.  The file must exist "
14941 "already."
14942 msgstr ""
14943
14944 # type: =head2
14945 #: ../src/guestfs-actions.pod:6238
14946 msgid "guestfs_truncate_size"
14947 msgstr ""
14948
14949 # type: verbatim
14950 #: ../src/guestfs-actions.pod:6240
14951 #, no-wrap
14952 msgid ""
14953 " int\n"
14954 " guestfs_truncate_size (guestfs_h *g,\n"
14955 "                        const char *path,\n"
14956 "                        int64_t size);\n"
14957 "\n"
14958 msgstr ""
14959
14960 # type: textblock
14961 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14962 msgid ""
14963 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14964 "already."
14965 msgstr ""
14966
14967 # type: textblock
14968 #: ../src/guestfs-actions.pod:6248
14969 msgid ""
14970 "If the current file size is less than C<size> then the file is extended to "
14971 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14972 "blocks are not allocated for the file until you write to it).  To create a "
14973 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14974 msgstr ""
14975
14976 # type: =head2
14977 #: ../src/guestfs-actions.pod:6258
14978 msgid "guestfs_tune2fs_l"
14979 msgstr ""
14980
14981 # type: verbatim
14982 #: ../src/guestfs-actions.pod:6260
14983 #, no-wrap
14984 msgid ""
14985 " char **\n"
14986 " guestfs_tune2fs_l (guestfs_h *g,\n"
14987 "                    const char *device);\n"
14988 "\n"
14989 msgstr ""
14990
14991 # type: textblock
14992 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
14993 msgid ""
14994 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14995 "C<device>."
14996 msgstr ""
14997
14998 # type: textblock
14999 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
15000 msgid ""
15001 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15002 "for more details.  The list of fields returned isn't clearly defined, and "
15003 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15004 "and the filesystem itself."
15005 msgstr ""
15006
15007 # type: =head2
15008 #: ../src/guestfs-actions.pod:6280
15009 msgid "guestfs_txz_in"
15010 msgstr ""
15011
15012 # type: verbatim
15013 #: ../src/guestfs-actions.pod:6282
15014 #, no-wrap
15015 msgid ""
15016 " int\n"
15017 " guestfs_txz_in (guestfs_h *g,\n"
15018 "                 const char *tarball,\n"
15019 "                 const char *directory);\n"
15020 "\n"
15021 msgstr ""
15022
15023 # type: textblock
15024 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
15025 msgid ""
15026 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15027 "tar file) into C<directory>."
15028 msgstr ""
15029
15030 # type: =head2
15031 #: ../src/guestfs-actions.pod:6294
15032 msgid "guestfs_txz_out"
15033 msgstr ""
15034
15035 # type: verbatim
15036 #: ../src/guestfs-actions.pod:6296
15037 #, no-wrap
15038 msgid ""
15039 " int\n"
15040 " guestfs_txz_out (guestfs_h *g,\n"
15041 "                  const char *directory,\n"
15042 "                  const char *tarball);\n"
15043 "\n"
15044 msgstr ""
15045
15046 # type: textblock
15047 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
15048 msgid ""
15049 "This command packs the contents of C<directory> and downloads it to local "
15050 "file C<tarball> (as an xz compressed tar archive)."
15051 msgstr ""
15052
15053 # type: =head2
15054 #: ../src/guestfs-actions.pod:6308
15055 msgid "guestfs_umask"
15056 msgstr ""
15057
15058 # type: verbatim
15059 #: ../src/guestfs-actions.pod:6310
15060 #, no-wrap
15061 msgid ""
15062 " int\n"
15063 " guestfs_umask (guestfs_h *g,\n"
15064 "                int mask);\n"
15065 "\n"
15066 msgstr ""
15067
15068 # type: textblock
15069 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
15070 msgid ""
15071 "This function sets the mask used for creating new files and device nodes to "
15072 "C<mask & 0777>."
15073 msgstr ""
15074
15075 # type: textblock
15076 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
15077 msgid ""
15078 "Typical umask values would be C<022> which creates new files with "
15079 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15080 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15081 msgstr ""
15082
15083 # type: textblock
15084 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
15085 msgid ""
15086 "The default umask is C<022>.  This is important because it means that "
15087 "directories and device nodes will be created with C<0644> or C<0755> mode "
15088 "even if you specify C<0777>."
15089 msgstr ""
15090
15091 # type: textblock
15092 #: ../src/guestfs-actions.pod:6326
15093 msgid ""
15094 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15095 "C<guestfs_mkdir>."
15096 msgstr ""
15097
15098 # type: textblock
15099 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
15100 msgid "This call returns the previous umask."
15101 msgstr ""
15102
15103 # type: =head2
15104 #: ../src/guestfs-actions.pod:6335
15105 msgid "guestfs_umount"
15106 msgstr ""
15107
15108 # type: verbatim
15109 #: ../src/guestfs-actions.pod:6337
15110 #, no-wrap
15111 msgid ""
15112 " int\n"
15113 " guestfs_umount (guestfs_h *g,\n"
15114 "                 const char *pathordevice);\n"
15115 "\n"
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
15120 msgid ""
15121 "This unmounts the given filesystem.  The filesystem may be specified either "
15122 "by its mountpoint (path) or the device which contains the filesystem."
15123 msgstr ""
15124
15125 # type: =head2
15126 #: ../src/guestfs-actions.pod:6349
15127 msgid "guestfs_umount_all"
15128 msgstr ""
15129
15130 # type: verbatim
15131 #: ../src/guestfs-actions.pod:6351
15132 #, no-wrap
15133 msgid ""
15134 " int\n"
15135 " guestfs_umount_all (guestfs_h *g);\n"
15136 "\n"
15137 msgstr ""
15138
15139 # type: textblock
15140 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
15141 msgid "This unmounts all mounted filesystems."
15142 msgstr ""
15143
15144 # type: textblock
15145 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
15146 msgid "Some internal mounts are not unmounted by this call."
15147 msgstr ""
15148
15149 # type: =head2
15150 #: ../src/guestfs-actions.pod:6362
15151 msgid "guestfs_upload"
15152 msgstr ""
15153
15154 # type: verbatim
15155 #: ../src/guestfs-actions.pod:6364
15156 #, no-wrap
15157 msgid ""
15158 " int\n"
15159 " guestfs_upload (guestfs_h *g,\n"
15160 "                 const char *filename,\n"
15161 "                 const char *remotefilename);\n"
15162 "\n"
15163 msgstr ""
15164
15165 # type: textblock
15166 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388
15167 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15168 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15169 msgstr ""
15170
15171 # type: textblock
15172 #: ../src/guestfs-actions.pod:6374
15173 msgid "See also C<guestfs_download>."
15174 msgstr ""
15175
15176 # type: =head2
15177 #: ../src/guestfs-actions.pod:6380
15178 msgid "guestfs_upload_offset"
15179 msgstr ""
15180
15181 # type: verbatim
15182 #: ../src/guestfs-actions.pod:6382
15183 #, no-wrap
15184 msgid ""
15185 " int\n"
15186 " guestfs_upload_offset (guestfs_h *g,\n"
15187 "                        const char *filename,\n"
15188 "                        const char *remotefilename,\n"
15189 "                        int64_t offset);\n"
15190 "\n"
15191 msgstr ""
15192
15193 # type: textblock
15194 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
15195 msgid ""
15196 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15197 "The intention is to overwrite parts of existing files or devices, although "
15198 "if a non-existant file is specified then it is created with a \"hole\" "
15199 "before C<offset>.  The size of the data written is implicit in the size of "
15200 "the source C<filename>."
15201 msgstr ""
15202
15203 # type: textblock
15204 #: ../src/guestfs-actions.pod:6398
15205 msgid ""
15206 "Note that there is no limit on the amount of data that can be uploaded with "
15207 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15208 "full amount unless an error occurs."
15209 msgstr ""
15210
15211 # type: textblock
15212 #: ../src/guestfs-actions.pod:6403
15213 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15214 msgstr ""
15215
15216 # type: =head2
15217 #: ../src/guestfs-actions.pod:6409
15218 msgid "guestfs_utimens"
15219 msgstr ""
15220
15221 # type: verbatim
15222 #: ../src/guestfs-actions.pod:6411
15223 #, no-wrap
15224 msgid ""
15225 " int\n"
15226 " guestfs_utimens (guestfs_h *g,\n"
15227 "                  const char *path,\n"
15228 "                  int64_t atsecs,\n"
15229 "                  int64_t atnsecs,\n"
15230 "                  int64_t mtsecs,\n"
15231 "                  int64_t mtnsecs);\n"
15232 "\n"
15233 msgstr ""
15234
15235 # type: textblock
15236 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
15237 msgid "This command sets the timestamps of a file with nanosecond precision."
15238 msgstr ""
15239
15240 # type: textblock
15241 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
15242 msgid ""
15243 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15244 "from the epoch."
15245 msgstr ""
15246
15247 # type: textblock
15248 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
15249 msgid ""
15250 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15251 "nanoseconds from the epoch."
15252 msgstr ""
15253
15254 # type: textblock
15255 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
15256 msgid ""
15257 "If the C<*nsecs> field contains the special value C<-1> then the "
15258 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15259 "ignored in this case)."
15260 msgstr ""
15261
15262 # type: textblock
15263 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
15264 msgid ""
15265 "If the C<*nsecs> field contains the special value C<-2> then the "
15266 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15267 "in this case)."
15268 msgstr ""
15269
15270 # type: =head2
15271 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
15272 msgid "guestfs_version"
15273 msgstr ""
15274
15275 # type: verbatim
15276 #: ../src/guestfs-actions.pod:6442
15277 #, no-wrap
15278 msgid ""
15279 " struct guestfs_version *\n"
15280 " guestfs_version (guestfs_h *g);\n"
15281 "\n"
15282 msgstr ""
15283
15284 # type: textblock
15285 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
15286 msgid ""
15287 "Return the libguestfs version number that the program is linked against."
15288 msgstr ""
15289
15290 # type: textblock
15291 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
15292 msgid ""
15293 "Note that because of dynamic linking this is not necessarily the version of "
15294 "libguestfs that you compiled against.  You can compile the program, and then "
15295 "at runtime dynamically link against a completely different C<libguestfs.so> "
15296 "library."
15297 msgstr ""
15298
15299 # type: textblock
15300 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
15301 msgid ""
15302 "This call was added in version C<1.0.58>.  In previous versions of "
15303 "libguestfs there was no way to get the version number.  From C code you can "
15304 "use dynamic linker functions to find out if this symbol exists (if it "
15305 "doesn't, then it's an earlier version)."
15306 msgstr ""
15307
15308 # type: textblock
15309 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
15310 msgid ""
15311 "The call returns a structure with four elements.  The first three (C<major>, "
15312 "C<minor> and C<release>) are numbers and correspond to the usual version "
15313 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15314 "but may be used for distro-specific information."
15315 msgstr ""
15316
15317 # type: textblock
15318 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
15319 msgid ""
15320 "To construct the original version string: C<$major.$minor.$release$extra>"
15321 msgstr ""
15322
15323 # type: textblock
15324 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
15325 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15326 msgstr ""
15327
15328 # type: textblock
15329 #: ../src/guestfs-actions.pod:6470
15330 msgid ""
15331 "I<Note:> Don't use this call to test for availability of features.  In "
15332 "enterprise distributions we backport features from later versions into "
15333 "earlier versions, making this an unreliable way to test for features.  Use "
15334 "C<guestfs_available> instead."
15335 msgstr ""
15336
15337 # type: textblock
15338 #: ../src/guestfs-actions.pod:6476
15339 msgid ""
15340 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15341 "error.  I<The caller must call C<guestfs_free_version> after use>."
15342 msgstr ""
15343
15344 # type: textblock
15345 #: ../src/guestfs-actions.pod:6480
15346 msgid "(Added in 1.0.58)"
15347 msgstr ""
15348
15349 # type: =head2
15350 #: ../src/guestfs-actions.pod:6482
15351 msgid "guestfs_vfs_label"
15352 msgstr ""
15353
15354 # type: verbatim
15355 #: ../src/guestfs-actions.pod:6484
15356 #, no-wrap
15357 msgid ""
15358 " char *\n"
15359 " guestfs_vfs_label (guestfs_h *g,\n"
15360 "                    const char *device);\n"
15361 "\n"
15362 msgstr ""
15363
15364 # type: textblock
15365 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
15366 msgid "This returns the filesystem label of the filesystem on C<device>."
15367 msgstr ""
15368
15369 # type: textblock
15370 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
15371 msgid "If the filesystem is unlabeled, this returns the empty string."
15372 msgstr ""
15373
15374 # type: textblock
15375 #: ../src/guestfs-actions.pod:6493
15376 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15377 msgstr ""
15378
15379 # type: textblock
15380 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
15381 msgid "(Added in 1.3.18)"
15382 msgstr ""
15383
15384 # type: =head2
15385 #: ../src/guestfs-actions.pod:6500
15386 msgid "guestfs_vfs_type"
15387 msgstr ""
15388
15389 # type: verbatim
15390 #: ../src/guestfs-actions.pod:6502
15391 #, no-wrap
15392 msgid ""
15393 " char *\n"
15394 " guestfs_vfs_type (guestfs_h *g,\n"
15395 "                   const char *device);\n"
15396 "\n"
15397 msgstr ""
15398
15399 # type: textblock
15400 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
15401 msgid ""
15402 "This command gets the filesystem type corresponding to the filesystem on "
15403 "C<device>."
15404 msgstr ""
15405
15406 # type: textblock
15407 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
15408 msgid ""
15409 "For most filesystems, the result is the name of the Linux VFS module which "
15410 "would be used to mount this filesystem if you mounted it without specifying "
15411 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15412 msgstr ""
15413
15414 # type: =head2
15415 #: ../src/guestfs-actions.pod:6519
15416 msgid "guestfs_vfs_uuid"
15417 msgstr ""
15418
15419 # type: verbatim
15420 #: ../src/guestfs-actions.pod:6521
15421 #, no-wrap
15422 msgid ""
15423 " char *\n"
15424 " guestfs_vfs_uuid (guestfs_h *g,\n"
15425 "                   const char *device);\n"
15426 "\n"
15427 msgstr ""
15428
15429 # type: textblock
15430 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
15431 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15432 msgstr ""
15433
15434 # type: textblock
15435 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
15436 msgid "If the filesystem does not have a UUID, this returns the empty string."
15437 msgstr ""
15438
15439 # type: textblock
15440 #: ../src/guestfs-actions.pod:6530
15441 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15442 msgstr ""
15443
15444 # type: =head2
15445 #: ../src/guestfs-actions.pod:6537
15446 msgid "guestfs_vg_activate"
15447 msgstr ""
15448
15449 # type: verbatim
15450 #: ../src/guestfs-actions.pod:6539
15451 #, no-wrap
15452 msgid ""
15453 " int\n"
15454 " guestfs_vg_activate (guestfs_h *g,\n"
15455 "                      int activate,\n"
15456 "                      char *const *volgroups);\n"
15457 "\n"
15458 msgstr ""
15459
15460 # type: textblock
15461 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
15462 msgid ""
15463 "This command activates or (if C<activate> is false) deactivates all logical "
15464 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15465 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15466 "deactivated, then those devices disappear."
15467 msgstr ""
15468
15469 # type: textblock
15470 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
15471 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15472 msgstr ""
15473
15474 # type: textblock
15475 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
15476 msgid ""
15477 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15478 "activated or deactivated."
15479 msgstr ""
15480
15481 # type: =head2
15482 #: ../src/guestfs-actions.pod:6559
15483 msgid "guestfs_vg_activate_all"
15484 msgstr ""
15485
15486 # type: verbatim
15487 #: ../src/guestfs-actions.pod:6561
15488 #, no-wrap
15489 msgid ""
15490 " int\n"
15491 " guestfs_vg_activate_all (guestfs_h *g,\n"
15492 "                          int activate);\n"
15493 "\n"
15494 msgstr ""
15495
15496 # type: textblock
15497 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15498 msgid ""
15499 "This command activates or (if C<activate> is false) deactivates all logical "
15500 "volumes in all volume groups.  If activated, then they are made known to the "
15501 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15502 "those devices disappear."
15503 msgstr ""
15504
15505 # type: textblock
15506 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15507 msgid "This command is the same as running C<vgchange -a y|n>"
15508 msgstr ""
15509
15510 # type: =head2
15511 #: ../src/guestfs-actions.pod:6577
15512 msgid "guestfs_vgcreate"
15513 msgstr ""
15514
15515 # type: verbatim
15516 #: ../src/guestfs-actions.pod:6579
15517 #, no-wrap
15518 msgid ""
15519 " int\n"
15520 " guestfs_vgcreate (guestfs_h *g,\n"
15521 "                   const char *volgroup,\n"
15522 "                   char *const *physvols);\n"
15523 "\n"
15524 msgstr ""
15525
15526 # type: textblock
15527 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15528 msgid ""
15529 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15530 "of physical volumes C<physvols>."
15531 msgstr ""
15532
15533 # type: =head2
15534 #: ../src/guestfs-actions.pod:6591
15535 msgid "guestfs_vglvuuids"
15536 msgstr ""
15537
15538 # type: verbatim
15539 #: ../src/guestfs-actions.pod:6593
15540 #, no-wrap
15541 msgid ""
15542 " char **\n"
15543 " guestfs_vglvuuids (guestfs_h *g,\n"
15544 "                    const char *vgname);\n"
15545 "\n"
15546 msgstr ""
15547
15548 # type: textblock
15549 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15550 msgid ""
15551 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15552 "volumes created in this volume group."
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../src/guestfs-actions.pod:6600
15557 msgid ""
15558 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15559 "associate logical volumes and volume groups."
15560 msgstr ""
15561
15562 # type: textblock
15563 #: ../src/guestfs-actions.pod:6603
15564 msgid "See also C<guestfs_vgpvuuids>."
15565 msgstr ""
15566
15567 # type: =head2
15568 #: ../src/guestfs-actions.pod:6611
15569 msgid "guestfs_vgpvuuids"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #: ../src/guestfs-actions.pod:6613
15574 #, no-wrap
15575 msgid ""
15576 " char **\n"
15577 " guestfs_vgpvuuids (guestfs_h *g,\n"
15578 "                    const char *vgname);\n"
15579 "\n"
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15584 msgid ""
15585 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15586 "volumes that this volume group resides on."
15587 msgstr ""
15588
15589 # type: textblock
15590 #: ../src/guestfs-actions.pod:6620
15591 msgid ""
15592 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15593 "associate physical volumes and volume groups."
15594 msgstr ""
15595
15596 # type: textblock
15597 #: ../src/guestfs-actions.pod:6623
15598 msgid "See also C<guestfs_vglvuuids>."
15599 msgstr ""
15600
15601 # type: =head2
15602 #: ../src/guestfs-actions.pod:6631
15603 msgid "guestfs_vgremove"
15604 msgstr ""
15605
15606 # type: verbatim
15607 #: ../src/guestfs-actions.pod:6633
15608 #, no-wrap
15609 msgid ""
15610 " int\n"
15611 " guestfs_vgremove (guestfs_h *g,\n"
15612 "                   const char *vgname);\n"
15613 "\n"
15614 msgstr ""
15615
15616 # type: textblock
15617 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15618 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15619 msgstr ""
15620
15621 # type: textblock
15622 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15623 msgid ""
15624 "This also forcibly removes all logical volumes in the volume group (if any)."
15625 msgstr ""
15626
15627 # type: =head2
15628 #: ../src/guestfs-actions.pod:6646
15629 msgid "guestfs_vgrename"
15630 msgstr ""
15631
15632 # type: verbatim
15633 #: ../src/guestfs-actions.pod:6648
15634 #, no-wrap
15635 msgid ""
15636 " int\n"
15637 " guestfs_vgrename (guestfs_h *g,\n"
15638 "                   const char *volgroup,\n"
15639 "                   const char *newvolgroup);\n"
15640 "\n"
15641 msgstr ""
15642
15643 # type: textblock
15644 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15645 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15646 msgstr ""
15647
15648 # type: =head2
15649 #: ../src/guestfs-actions.pod:6659
15650 msgid "guestfs_vgs"
15651 msgstr ""
15652
15653 # type: verbatim
15654 #: ../src/guestfs-actions.pod:6661
15655 #, no-wrap
15656 msgid ""
15657 " char **\n"
15658 " guestfs_vgs (guestfs_h *g);\n"
15659 "\n"
15660 msgstr ""
15661
15662 # type: textblock
15663 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15664 msgid ""
15665 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15666 "> command."
15667 msgstr ""
15668
15669 # type: textblock
15670 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15671 msgid ""
15672 "This returns a list of just the volume group names that were detected (eg. "
15673 "C<VolGroup00>)."
15674 msgstr ""
15675
15676 # type: textblock
15677 #: ../src/guestfs-actions.pod:6670
15678 msgid "See also C<guestfs_vgs_full>."
15679 msgstr ""
15680
15681 # type: =head2
15682 #: ../src/guestfs-actions.pod:6678
15683 msgid "guestfs_vgs_full"
15684 msgstr ""
15685
15686 # type: verbatim
15687 #: ../src/guestfs-actions.pod:6680
15688 #, no-wrap
15689 msgid ""
15690 " struct guestfs_lvm_vg_list *\n"
15691 " guestfs_vgs_full (guestfs_h *g);\n"
15692 "\n"
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15697 msgid ""
15698 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15699 "> command.  The \"full\" version includes all fields."
15700 msgstr ""
15701
15702 # type: textblock
15703 #: ../src/guestfs-actions.pod:6686
15704 msgid ""
15705 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15706 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15707 msgstr ""
15708
15709 # type: =head2
15710 #: ../src/guestfs-actions.pod:6692
15711 msgid "guestfs_vgscan"
15712 msgstr ""
15713
15714 # type: verbatim
15715 #: ../src/guestfs-actions.pod:6694
15716 #, no-wrap
15717 msgid ""
15718 " int\n"
15719 " guestfs_vgscan (guestfs_h *g);\n"
15720 "\n"
15721 msgstr ""
15722
15723 # type: textblock
15724 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15725 msgid ""
15726 "This rescans all block devices and rebuilds the list of LVM physical "
15727 "volumes, volume groups and logical volumes."
15728 msgstr ""
15729
15730 # type: =head2
15731 #: ../src/guestfs-actions.pod:6704
15732 msgid "guestfs_vguuid"
15733 msgstr ""
15734
15735 # type: verbatim
15736 #: ../src/guestfs-actions.pod:6706
15737 #, no-wrap
15738 msgid ""
15739 " char *\n"
15740 " guestfs_vguuid (guestfs_h *g,\n"
15741 "                 const char *vgname);\n"
15742 "\n"
15743 msgstr ""
15744
15745 # type: textblock
15746 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15747 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15748 msgstr ""
15749
15750 # type: =head2
15751 #: ../src/guestfs-actions.pod:6717
15752 msgid "guestfs_wait_ready"
15753 msgstr ""
15754
15755 # type: verbatim
15756 #: ../src/guestfs-actions.pod:6719
15757 #, no-wrap
15758 msgid ""
15759 " int\n"
15760 " guestfs_wait_ready (guestfs_h *g);\n"
15761 "\n"
15762 msgstr ""
15763
15764 # type: textblock
15765 #: ../src/guestfs-actions.pod:6722
15766 msgid "This function is a no op."
15767 msgstr ""
15768
15769 # type: textblock
15770 #: ../src/guestfs-actions.pod:6724
15771 msgid ""
15772 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15773 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15774 "is no longer necessary because C<guestfs_launch> now does the waiting."
15775 msgstr ""
15776
15777 # type: textblock
15778 #: ../src/guestfs-actions.pod:6729
15779 msgid ""
15780 "If you see any calls to this function in code then you can just remove them, "
15781 "unless you want to retain compatibility with older versions of the API."
15782 msgstr ""
15783
15784 # type: =head2
15785 #: ../src/guestfs-actions.pod:6737
15786 msgid "guestfs_wc_c"
15787 msgstr ""
15788
15789 # type: verbatim
15790 #: ../src/guestfs-actions.pod:6739
15791 #, no-wrap
15792 msgid ""
15793 " int\n"
15794 " guestfs_wc_c (guestfs_h *g,\n"
15795 "               const char *path);\n"
15796 "\n"
15797 msgstr ""
15798
15799 # type: textblock
15800 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15801 msgid ""
15802 "This command counts the characters in a file, using the C<wc -c> external "
15803 "command."
15804 msgstr ""
15805
15806 # type: =head2
15807 #: ../src/guestfs-actions.pod:6750
15808 msgid "guestfs_wc_l"
15809 msgstr ""
15810
15811 # type: verbatim
15812 #: ../src/guestfs-actions.pod:6752
15813 #, no-wrap
15814 msgid ""
15815 " int\n"
15816 " guestfs_wc_l (guestfs_h *g,\n"
15817 "               const char *path);\n"
15818 "\n"
15819 msgstr ""
15820
15821 # type: textblock
15822 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15823 msgid ""
15824 "This command counts the lines in a file, using the C<wc -l> external command."
15825 msgstr ""
15826
15827 # type: =head2
15828 #: ../src/guestfs-actions.pod:6763
15829 msgid "guestfs_wc_w"
15830 msgstr ""
15831
15832 # type: verbatim
15833 #: ../src/guestfs-actions.pod:6765
15834 #, no-wrap
15835 msgid ""
15836 " int\n"
15837 " guestfs_wc_w (guestfs_h *g,\n"
15838 "               const char *path);\n"
15839 "\n"
15840 msgstr ""
15841
15842 # type: textblock
15843 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15844 msgid ""
15845 "This command counts the words in a file, using the C<wc -w> external command."
15846 msgstr ""
15847
15848 # type: =head2
15849 #: ../src/guestfs-actions.pod:6776
15850 msgid "guestfs_write"
15851 msgstr ""
15852
15853 # type: verbatim
15854 #: ../src/guestfs-actions.pod:6778
15855 #, no-wrap
15856 msgid ""
15857 " int\n"
15858 " guestfs_write (guestfs_h *g,\n"
15859 "                const char *path,\n"
15860 "                const char *content,\n"
15861 "                size_t content_size);\n"
15862 "\n"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15867 msgid ""
15868 "This call creates a file called C<path>.  The content of the file is the "
15869 "string C<content> (which can contain any 8 bit data)."
15870 msgstr ""
15871
15872 # type: =head2
15873 #: ../src/guestfs-actions.pod:6794
15874 msgid "guestfs_write_file"
15875 msgstr ""
15876
15877 # type: verbatim
15878 #: ../src/guestfs-actions.pod:6796
15879 #, no-wrap
15880 msgid ""
15881 " int\n"
15882 " guestfs_write_file (guestfs_h *g,\n"
15883 "                     const char *path,\n"
15884 "                     const char *content,\n"
15885 "                     int size);\n"
15886 "\n"
15887 msgstr ""
15888
15889 # type: textblock
15890 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15891 msgid ""
15892 "This call creates a file called C<path>.  The contents of the file is the "
15893 "string C<content> (which can contain any 8 bit data), with length C<size>."
15894 msgstr ""
15895
15896 # type: textblock
15897 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15898 msgid ""
15899 "As a special case, if C<size> is C<0> then the length is calculated using "
15900 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15901 msgstr ""
15902
15903 # type: textblock
15904 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15905 msgid ""
15906 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15907 "I<not> work, even if the length is specified."
15908 msgstr ""
15909
15910 # type: textblock
15911 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15912 msgid ""
15913 "This function is deprecated.  In new code, use the C<write> call instead."
15914 msgstr ""
15915
15916 # type: =head2
15917 #: ../src/guestfs-actions.pod:6827
15918 msgid "guestfs_zegrep"
15919 msgstr ""
15920
15921 # type: verbatim
15922 #: ../src/guestfs-actions.pod:6829
15923 #, no-wrap
15924 msgid ""
15925 " char **\n"
15926 " guestfs_zegrep (guestfs_h *g,\n"
15927 "                 const char *regex,\n"
15928 "                 const char *path);\n"
15929 "\n"
15930 msgstr ""
15931
15932 # type: textblock
15933 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15934 msgid ""
15935 "This calls the external C<zegrep> program and returns the matching lines."
15936 msgstr ""
15937
15938 # type: =head2
15939 #: ../src/guestfs-actions.pod:6846
15940 msgid "guestfs_zegrepi"
15941 msgstr ""
15942
15943 # type: verbatim
15944 #: ../src/guestfs-actions.pod:6848
15945 #, no-wrap
15946 msgid ""
15947 " char **\n"
15948 " guestfs_zegrepi (guestfs_h *g,\n"
15949 "                  const char *regex,\n"
15950 "                  const char *path);\n"
15951 "\n"
15952 msgstr ""
15953
15954 # type: textblock
15955 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15956 msgid ""
15957 "This calls the external C<zegrep -i> program and returns the matching lines."
15958 msgstr ""
15959
15960 # type: =head2
15961 #: ../src/guestfs-actions.pod:6865
15962 msgid "guestfs_zero"
15963 msgstr ""
15964
15965 # type: verbatim
15966 #: ../src/guestfs-actions.pod:6867
15967 #, no-wrap
15968 msgid ""
15969 " int\n"
15970 " guestfs_zero (guestfs_h *g,\n"
15971 "               const char *device);\n"
15972 "\n"
15973 msgstr ""
15974
15975 # type: textblock
15976 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15977 msgid "This command writes zeroes over the first few blocks of C<device>."
15978 msgstr ""
15979
15980 # type: textblock
15981 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15982 msgid ""
15983 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15984 "securely wipe the device).  It should be sufficient to remove any partition "
15985 "tables, filesystem superblocks and so on."
15986 msgstr ""
15987
15988 # type: textblock
15989 #: ../src/guestfs-actions.pod:6877
15990 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15991 msgstr ""
15992
15993 # type: =head2
15994 #: ../src/guestfs-actions.pod:6888
15995 msgid "guestfs_zero_device"
15996 msgstr ""
15997
15998 # type: verbatim
15999 #: ../src/guestfs-actions.pod:6890
16000 #, no-wrap
16001 msgid ""
16002 " int\n"
16003 " guestfs_zero_device (guestfs_h *g,\n"
16004 "                      const char *device);\n"
16005 "\n"
16006 msgstr ""
16007
16008 # type: textblock
16009 #: ../src/guestfs-actions.pod:6894
16010 msgid ""
16011 "This command writes zeroes over the entire C<device>.  Compare with "
16012 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../src/guestfs-actions.pod:6908
16017 msgid "(Added in 1.3.1)"
16018 msgstr ""
16019
16020 # type: =head2
16021 #: ../src/guestfs-actions.pod:6910
16022 msgid "guestfs_zerofree"
16023 msgstr ""
16024
16025 # type: verbatim
16026 #: ../src/guestfs-actions.pod:6912
16027 #, no-wrap
16028 msgid ""
16029 " int\n"
16030 " guestfs_zerofree (guestfs_h *g,\n"
16031 "                   const char *device);\n"
16032 "\n"
16033 msgstr ""
16034
16035 # type: textblock
16036 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
16037 msgid ""
16038 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16039 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16040 "possible to compress the filesystem more effectively."
16041 msgstr ""
16042
16043 # type: textblock
16044 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
16045 msgid "You should B<not> run this program if the filesystem is mounted."
16046 msgstr ""
16047
16048 # type: textblock
16049 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
16050 msgid ""
16051 "It is possible that using this program can damage the filesystem or data on "
16052 "the filesystem."
16053 msgstr ""
16054
16055 # type: =head2
16056 #: ../src/guestfs-actions.pod:6931
16057 msgid "guestfs_zfgrep"
16058 msgstr ""
16059
16060 # type: verbatim
16061 #: ../src/guestfs-actions.pod:6933
16062 #, no-wrap
16063 msgid ""
16064 " char **\n"
16065 " guestfs_zfgrep (guestfs_h *g,\n"
16066 "                 const char *pattern,\n"
16067 "                 const char *path);\n"
16068 "\n"
16069 msgstr ""
16070
16071 # type: textblock
16072 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
16073 msgid ""
16074 "This calls the external C<zfgrep> program and returns the matching lines."
16075 msgstr ""
16076
16077 # type: =head2
16078 #: ../src/guestfs-actions.pod:6950
16079 msgid "guestfs_zfgrepi"
16080 msgstr ""
16081
16082 # type: verbatim
16083 #: ../src/guestfs-actions.pod:6952
16084 #, no-wrap
16085 msgid ""
16086 " char **\n"
16087 " guestfs_zfgrepi (guestfs_h *g,\n"
16088 "                  const char *pattern,\n"
16089 "                  const char *path);\n"
16090 "\n"
16091 msgstr ""
16092
16093 # type: textblock
16094 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
16095 msgid ""
16096 "This calls the external C<zfgrep -i> program and returns the matching lines."
16097 msgstr ""
16098
16099 # type: =head2
16100 #: ../src/guestfs-actions.pod:6969
16101 msgid "guestfs_zfile"
16102 msgstr ""
16103
16104 # type: verbatim
16105 #: ../src/guestfs-actions.pod:6971
16106 #, no-wrap
16107 msgid ""
16108 " char *\n"
16109 " guestfs_zfile (guestfs_h *g,\n"
16110 "                const char *meth,\n"
16111 "                const char *path);\n"
16112 "\n"
16113 msgstr ""
16114
16115 # type: textblock
16116 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
16117 msgid ""
16118 "This command runs C<file> after first decompressing C<path> using C<method>."
16119 msgstr ""
16120
16121 # type: textblock
16122 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
16123 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16124 msgstr ""
16125
16126 # type: textblock
16127 #: ../src/guestfs-actions.pod:6981
16128 msgid ""
16129 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16130 "files."
16131 msgstr ""
16132
16133 # type: textblock
16134 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
16135 msgid ""
16136 "This function is deprecated.  In new code, use the C<file> call instead."
16137 msgstr ""
16138
16139 # type: =head2
16140 #: ../src/guestfs-actions.pod:6996
16141 msgid "guestfs_zgrep"
16142 msgstr ""
16143
16144 # type: verbatim
16145 #: ../src/guestfs-actions.pod:6998
16146 #, no-wrap
16147 msgid ""
16148 " char **\n"
16149 " guestfs_zgrep (guestfs_h *g,\n"
16150 "                const char *regex,\n"
16151 "                const char *path);\n"
16152 "\n"
16153 msgstr ""
16154
16155 # type: textblock
16156 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
16157 msgid ""
16158 "This calls the external C<zgrep> program and returns the matching lines."
16159 msgstr ""
16160
16161 # type: =head2
16162 #: ../src/guestfs-actions.pod:7015
16163 msgid "guestfs_zgrepi"
16164 msgstr ""
16165
16166 # type: verbatim
16167 #: ../src/guestfs-actions.pod:7017
16168 #, no-wrap
16169 msgid ""
16170 " char **\n"
16171 " guestfs_zgrepi (guestfs_h *g,\n"
16172 "                 const char *regex,\n"
16173 "                 const char *path);\n"
16174 "\n"
16175 msgstr ""
16176
16177 # type: textblock
16178 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
16179 msgid ""
16180 "This calls the external C<zgrep -i> program and returns the matching lines."
16181 msgstr ""
16182
16183 # type: =item
16184 #: ../src/guestfs-availability.pod:3
16185 msgid "B<augeas>"
16186 msgstr ""
16187
16188 # type: textblock
16189 #: ../src/guestfs-availability.pod:5
16190 msgid ""
16191 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16192 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16193 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16194 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16195 "L</guestfs_aug_save> L</guestfs_aug_set>"
16196 msgstr ""
16197
16198 # type: =item
16199 #: ../src/guestfs-availability.pod:21
16200 msgid "B<inotify>"
16201 msgstr ""
16202
16203 # type: textblock
16204 #: ../src/guestfs-availability.pod:23
16205 msgid ""
16206 "The following functions: L</guestfs_inotify_add_watch> L</"
16207 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16208 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16209 msgstr ""
16210
16211 # type: =item
16212 #: ../src/guestfs-availability.pod:31
16213 msgid "B<linuxfsuuid>"
16214 msgstr ""
16215
16216 # type: textblock
16217 #: ../src/guestfs-availability.pod:33
16218 msgid ""
16219 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16220 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16221 msgstr ""
16222
16223 # type: =item
16224 #: ../src/guestfs-availability.pod:40
16225 msgid "B<linuxmodules>"
16226 msgstr ""
16227
16228 # type: textblock
16229 #: ../src/guestfs-availability.pod:42
16230 msgid "The following functions: L</guestfs_modprobe>"
16231 msgstr ""
16232
16233 # type: =item
16234 #: ../src/guestfs-availability.pod:45
16235 msgid "B<linuxxattrs>"
16236 msgstr ""
16237
16238 # type: textblock
16239 #: ../src/guestfs-availability.pod:47
16240 msgid ""
16241 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16242 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16243 "guestfs_removexattr> L</guestfs_setxattr>"
16244 msgstr ""
16245
16246 # type: =item
16247 #: ../src/guestfs-availability.pod:56
16248 msgid "B<luks>"
16249 msgstr ""
16250
16251 # type: textblock
16252 #: ../src/guestfs-availability.pod:58
16253 msgid ""
16254 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16255 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16256 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16257 msgstr ""
16258
16259 # type: =item
16260 #: ../src/guestfs-availability.pod:67
16261 msgid "B<lvm2>"
16262 msgstr ""
16263
16264 # type: textblock
16265 #: ../src/guestfs-availability.pod:69
16266 msgid ""
16267 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16268 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16269 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16270 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16271 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16272 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16273 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16274 msgstr ""
16275
16276 # type: =item
16277 #: ../src/guestfs-availability.pod:92
16278 msgid "B<mknod>"
16279 msgstr ""
16280
16281 # type: textblock
16282 #: ../src/guestfs-availability.pod:94
16283 msgid ""
16284 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16285 "guestfs_mknod_b> L</guestfs_mknod_c>"
16286 msgstr ""
16287
16288 # type: =item
16289 #: ../src/guestfs-availability.pod:100
16290 msgid "B<ntfs3g>"
16291 msgstr ""
16292
16293 # type: textblock
16294 #: ../src/guestfs-availability.pod:102
16295 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16296 msgstr ""
16297
16298 # type: =item
16299 #: ../src/guestfs-availability.pod:105
16300 msgid "B<ntfsprogs>"
16301 msgstr ""
16302
16303 # type: textblock
16304 #: ../src/guestfs-availability.pod:107
16305 msgid ""
16306 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16307 msgstr ""
16308
16309 # type: =item
16310 #: ../src/guestfs-availability.pod:111
16311 msgid "B<realpath>"
16312 msgstr ""
16313
16314 # type: textblock
16315 #: ../src/guestfs-availability.pod:113
16316 msgid "The following functions: L</guestfs_realpath>"
16317 msgstr ""
16318
16319 # type: =item
16320 #: ../src/guestfs-availability.pod:116
16321 msgid "B<scrub>"
16322 msgstr ""
16323
16324 # type: textblock
16325 #: ../src/guestfs-availability.pod:118
16326 msgid ""
16327 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16328 "guestfs_scrub_freespace>"
16329 msgstr ""
16330
16331 # type: =item
16332 #: ../src/guestfs-availability.pod:123
16333 msgid "B<selinux>"
16334 msgstr ""
16335
16336 # type: textblock
16337 #: ../src/guestfs-availability.pod:125
16338 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16339 msgstr ""
16340
16341 # type: =item
16342 #: ../src/guestfs-availability.pod:129
16343 msgid "B<xz>"
16344 msgstr ""
16345
16346 # type: textblock
16347 #: ../src/guestfs-availability.pod:131
16348 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16349 msgstr ""
16350
16351 # type: =item
16352 #: ../src/guestfs-availability.pod:135
16353 msgid "B<zerofree>"
16354 msgstr ""
16355
16356 # type: textblock
16357 #: ../src/guestfs-availability.pod:137
16358 msgid "The following functions: L</guestfs_zerofree>"
16359 msgstr ""
16360
16361 # type: =head2
16362 #: ../src/guestfs-structs.pod:1
16363 msgid "guestfs_int_bool"
16364 msgstr ""
16365
16366 # type: verbatim
16367 #: ../src/guestfs-structs.pod:3
16368 #, no-wrap
16369 msgid ""
16370 " struct guestfs_int_bool {\n"
16371 "   int32_t i;\n"
16372 "   int32_t b;\n"
16373 " };\n"
16374 " \n"
16375 msgstr ""
16376
16377 # type: verbatim
16378 #: ../src/guestfs-structs.pod:8
16379 #, no-wrap
16380 msgid ""
16381 " struct guestfs_int_bool_list {\n"
16382 "   uint32_t len; /* Number of elements in list. */\n"
16383 "   struct guestfs_int_bool *val; /* Elements. */\n"
16384 " };\n"
16385 " \n"
16386 msgstr ""
16387
16388 # type: verbatim
16389 #: ../src/guestfs-structs.pod:13
16390 #, no-wrap
16391 msgid ""
16392 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16393 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16394 "\n"
16395 msgstr ""
16396
16397 # type: =head2
16398 #: ../src/guestfs-structs.pod:16
16399 msgid "guestfs_lvm_pv"
16400 msgstr ""
16401
16402 # type: verbatim
16403 #: ../src/guestfs-structs.pod:18
16404 #, no-wrap
16405 msgid ""
16406 " struct guestfs_lvm_pv {\n"
16407 "   char *pv_name;\n"
16408 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16409 "   char pv_uuid[32];\n"
16410 "   char *pv_fmt;\n"
16411 "   uint64_t pv_size;\n"
16412 "   uint64_t dev_size;\n"
16413 "   uint64_t pv_free;\n"
16414 "   uint64_t pv_used;\n"
16415 "   char *pv_attr;\n"
16416 "   int64_t pv_pe_count;\n"
16417 "   int64_t pv_pe_alloc_count;\n"
16418 "   char *pv_tags;\n"
16419 "   uint64_t pe_start;\n"
16420 "   int64_t pv_mda_count;\n"
16421 "   uint64_t pv_mda_free;\n"
16422 " };\n"
16423 " \n"
16424 msgstr ""
16425
16426 # type: verbatim
16427 #: ../src/guestfs-structs.pod:36
16428 #, no-wrap
16429 msgid ""
16430 " struct guestfs_lvm_pv_list {\n"
16431 "   uint32_t len; /* Number of elements in list. */\n"
16432 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16433 " };\n"
16434 " \n"
16435 msgstr ""
16436
16437 # type: verbatim
16438 #: ../src/guestfs-structs.pod:41
16439 #, no-wrap
16440 msgid ""
16441 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16442 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16443 "\n"
16444 msgstr ""
16445
16446 # type: =head2
16447 #: ../src/guestfs-structs.pod:44
16448 msgid "guestfs_lvm_vg"
16449 msgstr ""
16450
16451 # type: verbatim
16452 #: ../src/guestfs-structs.pod:46
16453 #, no-wrap
16454 msgid ""
16455 " struct guestfs_lvm_vg {\n"
16456 "   char *vg_name;\n"
16457 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16458 "   char vg_uuid[32];\n"
16459 "   char *vg_fmt;\n"
16460 "   char *vg_attr;\n"
16461 "   uint64_t vg_size;\n"
16462 "   uint64_t vg_free;\n"
16463 "   char *vg_sysid;\n"
16464 "   uint64_t vg_extent_size;\n"
16465 "   int64_t vg_extent_count;\n"
16466 "   int64_t vg_free_count;\n"
16467 "   int64_t max_lv;\n"
16468 "   int64_t max_pv;\n"
16469 "   int64_t pv_count;\n"
16470 "   int64_t lv_count;\n"
16471 "   int64_t snap_count;\n"
16472 "   int64_t vg_seqno;\n"
16473 "   char *vg_tags;\n"
16474 "   int64_t vg_mda_count;\n"
16475 "   uint64_t vg_mda_free;\n"
16476 " };\n"
16477 " \n"
16478 msgstr ""
16479
16480 # type: verbatim
16481 #: ../src/guestfs-structs.pod:69
16482 #, no-wrap
16483 msgid ""
16484 " struct guestfs_lvm_vg_list {\n"
16485 "   uint32_t len; /* Number of elements in list. */\n"
16486 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16487 " };\n"
16488 " \n"
16489 msgstr ""
16490
16491 # type: verbatim
16492 #: ../src/guestfs-structs.pod:74
16493 #, no-wrap
16494 msgid ""
16495 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16496 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16497 "\n"
16498 msgstr ""
16499
16500 # type: =head2
16501 #: ../src/guestfs-structs.pod:77
16502 msgid "guestfs_lvm_lv"
16503 msgstr ""
16504
16505 # type: verbatim
16506 #: ../src/guestfs-structs.pod:79
16507 #, no-wrap
16508 msgid ""
16509 " struct guestfs_lvm_lv {\n"
16510 "   char *lv_name;\n"
16511 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16512 "   char lv_uuid[32];\n"
16513 "   char *lv_attr;\n"
16514 "   int64_t lv_major;\n"
16515 "   int64_t lv_minor;\n"
16516 "   int64_t lv_kernel_major;\n"
16517 "   int64_t lv_kernel_minor;\n"
16518 "   uint64_t lv_size;\n"
16519 "   int64_t seg_count;\n"
16520 "   char *origin;\n"
16521 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16522 "   float snap_percent;\n"
16523 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16524 "   float copy_percent;\n"
16525 "   char *move_pv;\n"
16526 "   char *lv_tags;\n"
16527 "   char *mirror_log;\n"
16528 "   char *modules;\n"
16529 " };\n"
16530 " \n"
16531 msgstr ""
16532
16533 # type: verbatim
16534 #: ../src/guestfs-structs.pod:101
16535 #, no-wrap
16536 msgid ""
16537 " struct guestfs_lvm_lv_list {\n"
16538 "   uint32_t len; /* Number of elements in list. */\n"
16539 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16540 " };\n"
16541 " \n"
16542 msgstr ""
16543
16544 # type: verbatim
16545 #: ../src/guestfs-structs.pod:106
16546 #, no-wrap
16547 msgid ""
16548 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16549 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16550 "\n"
16551 msgstr ""
16552
16553 # type: verbatim
16554 #: ../src/guestfs-structs.pod:111
16555 #, no-wrap
16556 msgid ""
16557 " struct guestfs_stat {\n"
16558 "   int64_t dev;\n"
16559 "   int64_t ino;\n"
16560 "   int64_t mode;\n"
16561 "   int64_t nlink;\n"
16562 "   int64_t uid;\n"
16563 "   int64_t gid;\n"
16564 "   int64_t rdev;\n"
16565 "   int64_t size;\n"
16566 "   int64_t blksize;\n"
16567 "   int64_t blocks;\n"
16568 "   int64_t atime;\n"
16569 "   int64_t mtime;\n"
16570 "   int64_t ctime;\n"
16571 " };\n"
16572 " \n"
16573 msgstr ""
16574
16575 # type: verbatim
16576 #: ../src/guestfs-structs.pod:127
16577 #, no-wrap
16578 msgid ""
16579 " struct guestfs_stat_list {\n"
16580 "   uint32_t len; /* Number of elements in list. */\n"
16581 "   struct guestfs_stat *val; /* Elements. */\n"
16582 " };\n"
16583 " \n"
16584 msgstr ""
16585
16586 # type: verbatim
16587 #: ../src/guestfs-structs.pod:132
16588 #, no-wrap
16589 msgid ""
16590 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16591 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16592 "\n"
16593 msgstr ""
16594
16595 # type: verbatim
16596 #: ../src/guestfs-structs.pod:137
16597 #, no-wrap
16598 msgid ""
16599 " struct guestfs_statvfs {\n"
16600 "   int64_t bsize;\n"
16601 "   int64_t frsize;\n"
16602 "   int64_t blocks;\n"
16603 "   int64_t bfree;\n"
16604 "   int64_t bavail;\n"
16605 "   int64_t files;\n"
16606 "   int64_t ffree;\n"
16607 "   int64_t favail;\n"
16608 "   int64_t fsid;\n"
16609 "   int64_t flag;\n"
16610 "   int64_t namemax;\n"
16611 " };\n"
16612 " \n"
16613 msgstr ""
16614
16615 # type: verbatim
16616 #: ../src/guestfs-structs.pod:151
16617 #, no-wrap
16618 msgid ""
16619 " struct guestfs_statvfs_list {\n"
16620 "   uint32_t len; /* Number of elements in list. */\n"
16621 "   struct guestfs_statvfs *val; /* Elements. */\n"
16622 " };\n"
16623 " \n"
16624 msgstr ""
16625
16626 # type: verbatim
16627 #: ../src/guestfs-structs.pod:156
16628 #, no-wrap
16629 msgid ""
16630 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16631 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16632 "\n"
16633 msgstr ""
16634
16635 # type: =head2
16636 #: ../src/guestfs-structs.pod:159
16637 msgid "guestfs_dirent"
16638 msgstr ""
16639
16640 # type: verbatim
16641 #: ../src/guestfs-structs.pod:161
16642 #, no-wrap
16643 msgid ""
16644 " struct guestfs_dirent {\n"
16645 "   int64_t ino;\n"
16646 "   char ftyp;\n"
16647 "   char *name;\n"
16648 " };\n"
16649 " \n"
16650 msgstr ""
16651
16652 # type: verbatim
16653 #: ../src/guestfs-structs.pod:167
16654 #, no-wrap
16655 msgid ""
16656 " struct guestfs_dirent_list {\n"
16657 "   uint32_t len; /* Number of elements in list. */\n"
16658 "   struct guestfs_dirent *val; /* Elements. */\n"
16659 " };\n"
16660 " \n"
16661 msgstr ""
16662
16663 # type: verbatim
16664 #: ../src/guestfs-structs.pod:172
16665 #, no-wrap
16666 msgid ""
16667 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16668 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16669 "\n"
16670 msgstr ""
16671
16672 # type: verbatim
16673 #: ../src/guestfs-structs.pod:177
16674 #, no-wrap
16675 msgid ""
16676 " struct guestfs_version {\n"
16677 "   int64_t major;\n"
16678 "   int64_t minor;\n"
16679 "   int64_t release;\n"
16680 "   char *extra;\n"
16681 " };\n"
16682 " \n"
16683 msgstr ""
16684
16685 # type: verbatim
16686 #: ../src/guestfs-structs.pod:184
16687 #, no-wrap
16688 msgid ""
16689 " struct guestfs_version_list {\n"
16690 "   uint32_t len; /* Number of elements in list. */\n"
16691 "   struct guestfs_version *val; /* Elements. */\n"
16692 " };\n"
16693 " \n"
16694 msgstr ""
16695
16696 # type: verbatim
16697 #: ../src/guestfs-structs.pod:189
16698 #, no-wrap
16699 msgid ""
16700 " void guestfs_free_version (struct guestfs_free_version *);\n"
16701 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16702 "\n"
16703 msgstr ""
16704
16705 # type: =head2
16706 #: ../src/guestfs-structs.pod:192
16707 msgid "guestfs_xattr"
16708 msgstr ""
16709
16710 # type: verbatim
16711 #: ../src/guestfs-structs.pod:194
16712 #, no-wrap
16713 msgid ""
16714 " struct guestfs_xattr {\n"
16715 "   char *attrname;\n"
16716 "   /* The next two fields describe a byte array. */\n"
16717 "   uint32_t attrval_len;\n"
16718 "   char *attrval;\n"
16719 " };\n"
16720 " \n"
16721 msgstr ""
16722
16723 # type: verbatim
16724 #: ../src/guestfs-structs.pod:201
16725 #, no-wrap
16726 msgid ""
16727 " struct guestfs_xattr_list {\n"
16728 "   uint32_t len; /* Number of elements in list. */\n"
16729 "   struct guestfs_xattr *val; /* Elements. */\n"
16730 " };\n"
16731 " \n"
16732 msgstr ""
16733
16734 # type: verbatim
16735 #: ../src/guestfs-structs.pod:206
16736 #, no-wrap
16737 msgid ""
16738 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16739 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16740 "\n"
16741 msgstr ""
16742
16743 # type: =head2
16744 #: ../src/guestfs-structs.pod:209
16745 msgid "guestfs_inotify_event"
16746 msgstr ""
16747
16748 # type: verbatim
16749 #: ../src/guestfs-structs.pod:211
16750 #, no-wrap
16751 msgid ""
16752 " struct guestfs_inotify_event {\n"
16753 "   int64_t in_wd;\n"
16754 "   uint32_t in_mask;\n"
16755 "   uint32_t in_cookie;\n"
16756 "   char *in_name;\n"
16757 " };\n"
16758 " \n"
16759 msgstr ""
16760
16761 # type: verbatim
16762 #: ../src/guestfs-structs.pod:218
16763 #, no-wrap
16764 msgid ""
16765 " struct guestfs_inotify_event_list {\n"
16766 "   uint32_t len; /* Number of elements in list. */\n"
16767 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16768 " };\n"
16769 " \n"
16770 msgstr ""
16771
16772 # type: verbatim
16773 #: ../src/guestfs-structs.pod:223
16774 #, no-wrap
16775 msgid ""
16776 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16777 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16778 "\n"
16779 msgstr ""
16780
16781 # type: =head2
16782 #: ../src/guestfs-structs.pod:226
16783 msgid "guestfs_partition"
16784 msgstr ""
16785
16786 # type: verbatim
16787 #: ../src/guestfs-structs.pod:228
16788 #, no-wrap
16789 msgid ""
16790 " struct guestfs_partition {\n"
16791 "   int32_t part_num;\n"
16792 "   uint64_t part_start;\n"
16793 "   uint64_t part_end;\n"
16794 "   uint64_t part_size;\n"
16795 " };\n"
16796 " \n"
16797 msgstr ""
16798
16799 # type: verbatim
16800 #: ../src/guestfs-structs.pod:235
16801 #, no-wrap
16802 msgid ""
16803 " struct guestfs_partition_list {\n"
16804 "   uint32_t len; /* Number of elements in list. */\n"
16805 "   struct guestfs_partition *val; /* Elements. */\n"
16806 " };\n"
16807 " \n"
16808 msgstr ""
16809
16810 # type: verbatim
16811 #: ../src/guestfs-structs.pod:240
16812 #, no-wrap
16813 msgid ""
16814 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16815 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16816 "\n"
16817 msgstr ""
16818
16819 # type: =head2
16820 #: ../src/guestfs-structs.pod:243
16821 msgid "guestfs_application"
16822 msgstr ""
16823
16824 # type: verbatim
16825 #: ../src/guestfs-structs.pod:245
16826 #, no-wrap
16827 msgid ""
16828 " struct guestfs_application {\n"
16829 "   char *app_name;\n"
16830 "   char *app_display_name;\n"
16831 "   int32_t app_epoch;\n"
16832 "   char *app_version;\n"
16833 "   char *app_release;\n"
16834 "   char *app_install_path;\n"
16835 "   char *app_trans_path;\n"
16836 "   char *app_publisher;\n"
16837 "   char *app_url;\n"
16838 "   char *app_source_package;\n"
16839 "   char *app_summary;\n"
16840 "   char *app_description;\n"
16841 " };\n"
16842 " \n"
16843 msgstr ""
16844
16845 # type: verbatim
16846 #: ../src/guestfs-structs.pod:260
16847 #, no-wrap
16848 msgid ""
16849 " struct guestfs_application_list {\n"
16850 "   uint32_t len; /* Number of elements in list. */\n"
16851 "   struct guestfs_application *val; /* Elements. */\n"
16852 " };\n"
16853 " \n"
16854 msgstr ""
16855
16856 # type: verbatim
16857 #: ../src/guestfs-structs.pod:265
16858 #, no-wrap
16859 msgid ""
16860 " void guestfs_free_application (struct guestfs_free_application *);\n"
16861 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16862 "\n"
16863 msgstr ""
16864
16865 # type: textblock
16866 #: ../fish/guestfish.pod:5
16867 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16868 msgstr ""
16869
16870 # type: verbatim
16871 #: ../fish/guestfish.pod:9
16872 #, no-wrap
16873 msgid ""
16874 " guestfish [--options] [commands]\n"
16875 "\n"
16876 msgstr ""
16877
16878 # type: verbatim
16879 #: ../fish/guestfish.pod:11
16880 #, no-wrap
16881 msgid ""
16882 " guestfish\n"
16883 "\n"
16884 msgstr ""
16885
16886 # type: verbatim
16887 #: ../fish/guestfish.pod:13
16888 #, no-wrap
16889 msgid ""
16890 " guestfish [--ro|--rw] -a disk.img\n"
16891 "\n"
16892 msgstr ""
16893
16894 # type: verbatim
16895 #: ../fish/guestfish.pod:15
16896 #, no-wrap
16897 msgid ""
16898 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16899 "\n"
16900 msgstr ""
16901
16902 # type: verbatim
16903 #: ../fish/guestfish.pod:17
16904 #, no-wrap
16905 msgid ""
16906 " guestfish -d libvirt-domain\n"
16907 "\n"
16908 msgstr ""
16909
16910 # type: verbatim
16911 #: ../fish/guestfish.pod:19
16912 #, no-wrap
16913 msgid ""
16914 " guestfish [--ro|--rw] -a disk.img -i\n"
16915 "\n"
16916 msgstr ""
16917
16918 # type: verbatim
16919 #: ../fish/guestfish.pod:21
16920 #, no-wrap
16921 msgid ""
16922 " guestfish -d libvirt-domain -i\n"
16923 "\n"
16924 msgstr ""
16925
16926 # type: =head1
16927 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16928 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16929 #: ../tools/virt-rescue.pl:41
16930 msgid "WARNING"
16931 msgstr ""
16932
16933 # type: textblock
16934 #: ../fish/guestfish.pod:25
16935 msgid ""
16936 "Using guestfish in read/write mode on live virtual machines can be "
16937 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16938 "option to use guestfish safely if the disk image or virtual machine might be "
16939 "live."
16940 msgstr ""
16941
16942 # type: textblock
16943 #: ../fish/guestfish.pod:32
16944 msgid ""
16945 "Guestfish is a shell and command-line tool for examining and modifying "
16946 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16947 "functionality of the guestfs API, see L<guestfs(3)>."
16948 msgstr ""
16949
16950 # type: textblock
16951 #: ../fish/guestfish.pod:36
16952 msgid ""
16953 "Guestfish gives you structured access to the libguestfs API, from shell "
16954 "scripts or the command line or interactively.  If you want to rescue a "
16955 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16956 "command."
16957 msgstr ""
16958
16959 # type: =head1
16960 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847
16961 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16962 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16963 msgid "EXAMPLES"
16964 msgstr ""
16965
16966 # type: =head2
16967 #: ../fish/guestfish.pod:43
16968 msgid "As an interactive shell"
16969 msgstr ""
16970
16971 # type: verbatim
16972 #: ../fish/guestfish.pod:45
16973 #, no-wrap
16974 msgid ""
16975 " $ guestfish\n"
16976 " \n"
16977 msgstr ""
16978
16979 # type: verbatim
16980 #: ../fish/guestfish.pod:47
16981 #, no-wrap
16982 msgid ""
16983 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16984 " editing virtual machine filesystems.\n"
16985 " \n"
16986 msgstr ""
16987
16988 # type: verbatim
16989 #: ../fish/guestfish.pod:50
16990 #, no-wrap
16991 msgid ""
16992 " Type: 'help' for a list of commands\n"
16993 "       'man' to read the manual\n"
16994 "       'quit' to quit the shell\n"
16995 " \n"
16996 msgstr ""
16997
16998 # type: verbatim
16999 #: ../fish/guestfish.pod:54
17000 #, no-wrap
17001 msgid ""
17002 " ><fs> add-ro disk.img\n"
17003 " ><fs> run\n"
17004 " ><fs> list-filesystems\n"
17005 " /dev/sda1: ext4\n"
17006 " /dev/vg_guest/lv_root: ext4\n"
17007 " /dev/vg_guest/lv_swap: swap\n"
17008 " ><fs> mount /dev/vg_guest/lv_root /\n"
17009 " ><fs> cat /etc/fstab\n"
17010 " # /etc/fstab\n"
17011 " # Created by anaconda\n"
17012 " [...]\n"
17013 " ><fs> exit\n"
17014 "\n"
17015 msgstr ""
17016
17017 # type: =head2
17018 #: ../fish/guestfish.pod:67
17019 msgid "From shell scripts"
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:69
17024 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17025 msgstr ""
17026
17027 # type: verbatim
17028 #: ../fish/guestfish.pod:71
17029 #, no-wrap
17030 msgid ""
17031 " guestfish <<_EOF_\n"
17032 " add disk.img\n"
17033 " run\n"
17034 " mount /dev/vg_guest/lv_root /\n"
17035 " write /etc/motd \"Welcome, new users\"\n"
17036 " _EOF_\n"
17037 "\n"
17038 msgstr ""
17039
17040 # type: textblock
17041 #: ../fish/guestfish.pod:78
17042 msgid "List the LVM logical volumes in a disk image:"
17043 msgstr ""
17044
17045 # type: verbatim
17046 #: ../fish/guestfish.pod:80
17047 #, no-wrap
17048 msgid ""
17049 " guestfish -a disk.img --ro <<_EOF_\n"
17050 " run\n"
17051 " lvs\n"
17052 " _EOF_\n"
17053 "\n"
17054 msgstr ""
17055
17056 # type: textblock
17057 #: ../fish/guestfish.pod:85
17058 msgid "List all the filesystems in a disk image:"
17059 msgstr ""
17060
17061 # type: verbatim
17062 #: ../fish/guestfish.pod:87
17063 #, no-wrap
17064 msgid ""
17065 " guestfish -a disk.img --ro <<_EOF_\n"
17066 " run\n"
17067 " list-filesystems\n"
17068 " _EOF_\n"
17069 "\n"
17070 msgstr ""
17071
17072 # type: =head2
17073 #: ../fish/guestfish.pod:92
17074 msgid "On one command line"
17075 msgstr ""
17076
17077 # type: textblock
17078 #: ../fish/guestfish.pod:94
17079 msgid "Update C</etc/resolv.conf> in a guest:"
17080 msgstr ""
17081
17082 # type: verbatim
17083 #: ../fish/guestfish.pod:96
17084 #, no-wrap
17085 msgid ""
17086 " guestfish \\\n"
17087 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17088 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17089 "\n"
17090 msgstr ""
17091
17092 # type: textblock
17093 #: ../fish/guestfish.pod:100
17094 msgid "Edit C</boot/grub/grub.conf> interactively:"
17095 msgstr ""
17096
17097 # type: verbatim
17098 #: ../fish/guestfish.pod:102
17099 #, no-wrap
17100 msgid ""
17101 " guestfish --rw --add disk.img \\\n"
17102 "   --mount /dev/vg_guest/lv_root \\\n"
17103 "   --mount /dev/sda1:/boot \\\n"
17104 "   edit /boot/grub/grub.conf\n"
17105 "\n"
17106 msgstr ""
17107
17108 # type: =head2
17109 #: ../fish/guestfish.pod:107
17110 msgid "Mount disks automatically"
17111 msgstr ""
17112
17113 # type: textblock
17114 #: ../fish/guestfish.pod:109
17115 msgid ""
17116 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17117 msgstr ""
17118
17119 # type: verbatim
17120 #: ../fish/guestfish.pod:112
17121 #, no-wrap
17122 msgid ""
17123 " guestfish --ro -a disk.img -i cat /etc/group\n"
17124 "\n"
17125 msgstr ""
17126
17127 # type: verbatim
17128 #: ../fish/guestfish.pod:114
17129 #, no-wrap
17130 msgid ""
17131 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17132 "\n"
17133 msgstr ""
17134
17135 # type: textblock
17136 #: ../fish/guestfish.pod:116
17137 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17138 msgstr ""
17139
17140 # type: verbatim
17141 #: ../fish/guestfish.pod:118
17142 #, no-wrap
17143 msgid ""
17144 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17145 "\n"
17146 msgstr ""
17147
17148 # type: =head2
17149 #: ../fish/guestfish.pod:120
17150 msgid "As a script interpreter"
17151 msgstr ""
17152
17153 # type: textblock
17154 #: ../fish/guestfish.pod:122
17155 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17156 msgstr ""
17157
17158 # type: verbatim
17159 #: ../fish/guestfish.pod:124
17160 #, no-wrap
17161 msgid ""
17162 " #!/usr/bin/guestfish -f\n"
17163 " sparse test1.img 100M\n"
17164 " run\n"
17165 " part-disk /dev/sda mbr\n"
17166 " mkfs ext2 /dev/sda1\n"
17167 "\n"
17168 msgstr ""
17169
17170 # type: =head2
17171 #: ../fish/guestfish.pod:130
17172 msgid "Start with a prepared disk"
17173 msgstr ""
17174
17175 # type: textblock
17176 #: ../fish/guestfish.pod:132
17177 msgid ""
17178 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17179 "single ext2-formatted partition:"
17180 msgstr ""
17181
17182 # type: verbatim
17183 #: ../fish/guestfish.pod:135
17184 #, no-wrap
17185 msgid ""
17186 " guestfish -N fs\n"
17187 "\n"
17188 msgstr ""
17189
17190 # type: textblock
17191 #: ../fish/guestfish.pod:137
17192 msgid "To list what is available do:"
17193 msgstr ""
17194
17195 # type: verbatim
17196 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
17197 #, no-wrap
17198 msgid ""
17199 " guestfish -N help | less\n"
17200 "\n"
17201 msgstr ""
17202
17203 # type: =head2
17204 #: ../fish/guestfish.pod:141
17205 msgid "Remote control"
17206 msgstr ""
17207
17208 # type: verbatim
17209 #: ../fish/guestfish.pod:143
17210 #, no-wrap
17211 msgid ""
17212 " eval \"`guestfish --listen`\"\n"
17213 " guestfish --remote add-ro disk.img\n"
17214 " guestfish --remote run\n"
17215 " guestfish --remote lvs\n"
17216 "\n"
17217 msgstr ""
17218
17219 # type: =head1
17220 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17221 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17222 #: ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71
17223 #: ../tools/virt-resize.pl:256 ../tools/virt-list-filesystems.pl:53
17224 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
17225 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17226 msgid "OPTIONS"
17227 msgstr ""
17228
17229 # type: =item
17230 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17231 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17232 #: ../tools/virt-df.pl:79 ../tools/virt-resize.pl:264
17233 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:106
17234 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
17235 #: ../tools/virt-list-partitions.pl:62
17236 msgid "B<--help>"
17237 msgstr ""
17238
17239 # type: textblock
17240 #: ../fish/guestfish.pod:154
17241 msgid "Displays general help on options."
17242 msgstr ""
17243
17244 # type: =item
17245 #: ../fish/guestfish.pod:156
17246 msgid "B<-h> | B<--cmd-help>"
17247 msgstr ""
17248
17249 # type: textblock
17250 #: ../fish/guestfish.pod:158
17251 msgid "Lists all available guestfish commands."
17252 msgstr ""
17253
17254 # type: =item
17255 #: ../fish/guestfish.pod:160
17256 msgid "B<-h cmd> | B<--cmd-help cmd>"
17257 msgstr ""
17258
17259 # type: textblock
17260 #: ../fish/guestfish.pod:162
17261 msgid "Displays detailed help on a single command C<cmd>."
17262 msgstr ""
17263
17264 # type: =item
17265 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17266 msgid "B<-a image> | B<--add image>"
17267 msgstr ""
17268
17269 # type: textblock
17270 #: ../fish/guestfish.pod:166
17271 msgid "Add a block device or virtual machine image to the shell."
17272 msgstr ""
17273
17274 # type: textblock
17275 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17276 msgid ""
17277 "The format of the disk image is auto-detected.  To override this and force a "
17278 "particular format use the I<--format=..> option."
17279 msgstr ""
17280
17281 # type: =item
17282 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17283 msgid "B<-c URI> | B<--connect URI>"
17284 msgstr ""
17285
17286 # type: textblock
17287 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17288 msgid ""
17289 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17290 "URI to use.  The default is to use the default libvirt connection."
17291 msgstr ""
17292
17293 # type: =item
17294 #: ../fish/guestfish.pod:177
17295 msgid "B<--csh>"
17296 msgstr ""
17297
17298 # type: textblock
17299 #: ../fish/guestfish.pod:179
17300 msgid ""
17301 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17302 "section L</REMOTE CONTROL AND CSH> below."
17303 msgstr ""
17304
17305 # type: =item
17306 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17307 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17308 msgstr ""
17309
17310 # type: textblock
17311 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17312 msgid ""
17313 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17314 "used, then any libvirt domain can be used.  However in write mode, only "
17315 "libvirt domains which are shut down can be named here."
17316 msgstr ""
17317
17318 # type: =item
17319 #: ../fish/guestfish.pod:188
17320 msgid "B<-D> | B<--no-dest-paths>"
17321 msgstr ""
17322
17323 # type: textblock
17324 #: ../fish/guestfish.pod:190
17325 msgid ""
17326 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17327 "to hit the tab key to complete paths on the guest filesystem, but this "
17328 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17329 "allow this feature to be disabled."
17330 msgstr ""
17331
17332 # type: =item
17333 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17334 msgid "B<--echo-keys>"
17335 msgstr ""
17336
17337 # type: textblock
17338 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17339 msgid ""
17340 "When prompting for keys and passphrases, guestfish normally turns echoing "
17341 "off so you cannot see what you are typing.  If you are not worried about "
17342 "Tempest attacks and there is no one else in the room you can specify this "
17343 "flag to see what you are typing."
17344 msgstr ""
17345
17346 # type: =item
17347 #: ../fish/guestfish.pod:202
17348 msgid "B<-f file> | B<--file file>"
17349 msgstr ""
17350
17351 # type: textblock
17352 #: ../fish/guestfish.pod:204
17353 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17354 msgstr ""
17355
17356 # type: verbatim
17357 #: ../fish/guestfish.pod:207
17358 #, no-wrap
17359 msgid ""
17360 " #!/usr/bin/guestfish -f\n"
17361 "\n"
17362 msgstr ""
17363
17364 # type: =item
17365 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17366 msgid "B<--format=raw|qcow2|..> | B<--format>"
17367 msgstr ""
17368
17369 # type: textblock
17370 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17371 msgid ""
17372 "The default for the I<-a> option is to auto-detect the format of the disk "
17373 "image.  Using this forces the disk format for I<-a> options which follow on "
17374 "the command line.  Using I<--format> with no argument switches back to auto-"
17375 "detection for subsequent I<-a> options."
17376 msgstr ""
17377
17378 # type: textblock
17379 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17380 msgid "For example:"
17381 msgstr ""
17382
17383 # type: verbatim
17384 #: ../fish/guestfish.pod:218
17385 #, no-wrap
17386 msgid ""
17387 " guestfish --format=raw -a disk.img\n"
17388 "\n"
17389 msgstr ""
17390
17391 # type: textblock
17392 #: ../fish/guestfish.pod:220
17393 msgid "forces raw format (no auto-detection) for C<disk.img>."
17394 msgstr ""
17395
17396 # type: verbatim
17397 #: ../fish/guestfish.pod:222
17398 #, no-wrap
17399 msgid ""
17400 " guestfish --format=raw -a disk.img --format -a another.img\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: textblock
17405 #: ../fish/guestfish.pod:224
17406 msgid ""
17407 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17408 "detection for C<another.img>."
17409 msgstr ""
17410
17411 # type: textblock
17412 #: ../fish/guestfish.pod:227
17413 msgid ""
17414 "If you have untrusted raw-format guest disk images, you should use this "
17415 "option to specify the disk format.  This avoids a possible security problem "
17416 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17417 msgstr ""
17418
17419 # type: =item
17420 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17421 msgid "B<-i> | B<--inspector>"
17422 msgstr ""
17423
17424 # type: textblock
17425 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17426 msgid ""
17427 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17428 "system and mount filesystems as they would be mounted on the real virtual "
17429 "machine."
17430 msgstr ""
17431
17432 # type: textblock
17433 #: ../fish/guestfish.pod:238
17434 msgid "Typical usage is either:"
17435 msgstr ""
17436
17437 # type: verbatim
17438 #: ../fish/guestfish.pod:240
17439 #, no-wrap
17440 msgid ""
17441 " guestfish -d myguest -i\n"
17442 "\n"
17443 msgstr ""
17444
17445 # type: textblock
17446 #: ../fish/guestfish.pod:242
17447 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17448 msgstr ""
17449
17450 # type: verbatim
17451 #: ../fish/guestfish.pod:244
17452 #, no-wrap
17453 msgid ""
17454 " guestfish --ro -d myguest -i\n"
17455 "\n"
17456 msgstr ""
17457
17458 # type: textblock
17459 #: ../fish/guestfish.pod:246
17460 msgid "(for active domains, readonly), or specify the block device directly:"
17461 msgstr ""
17462
17463 # type: verbatim
17464 #: ../fish/guestfish.pod:248
17465 #, no-wrap
17466 msgid ""
17467 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17468 "\n"
17469 msgstr ""
17470
17471 # type: textblock
17472 #: ../fish/guestfish.pod:250
17473 msgid ""
17474 "Note that the command line syntax changed slightly over older versions of "
17475 "guestfish.  You can still use the old syntax:"
17476 msgstr ""
17477
17478 # type: verbatim
17479 #: ../fish/guestfish.pod:253
17480 #, no-wrap
17481 msgid ""
17482 " guestfish [--ro] -i disk.img\n"
17483 "\n"
17484 msgstr ""
17485
17486 # type: verbatim
17487 #: ../fish/guestfish.pod:255
17488 #, no-wrap
17489 msgid ""
17490 " guestfish [--ro] -i libvirt-domain\n"
17491 "\n"
17492 msgstr ""
17493
17494 # type: =item
17495 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17496 msgid "B<--keys-from-stdin>"
17497 msgstr ""
17498
17499 # type: textblock
17500 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17501 msgid ""
17502 "Read key or passphrase parameters from stdin.  The default is to try to read "
17503 "passphrases from the user by opening C</dev/tty>."
17504 msgstr ""
17505
17506 # type: =item
17507 #: ../fish/guestfish.pod:262
17508 msgid "B<--listen>"
17509 msgstr ""
17510
17511 # type: textblock
17512 #: ../fish/guestfish.pod:264
17513 msgid ""
17514 "Fork into the background and listen for remote commands.  See section L</"
17515 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17516 msgstr ""
17517
17518 # type: =item
17519 #: ../fish/guestfish.pod:267
17520 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17521 msgstr ""
17522
17523 # type: textblock
17524 #: ../fish/guestfish.pod:269
17525 msgid "Mount the named partition or logical volume on the given mountpoint."
17526 msgstr ""
17527
17528 # type: textblock
17529 #: ../fish/guestfish.pod:271
17530 msgid "If the mountpoint is omitted, it defaults to C</>."
17531 msgstr ""
17532
17533 # type: textblock
17534 #: ../fish/guestfish.pod:273
17535 msgid "You have to mount something on C</> before most commands will work."
17536 msgstr ""
17537
17538 # type: textblock
17539 #: ../fish/guestfish.pod:275
17540 msgid ""
17541 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17542 "launched."
17543 msgstr ""
17544
17545 # type: textblock
17546 #: ../fish/guestfish.pod:278
17547 msgid ""
17548 "If you don't know what filesystems a disk image contains, you can either run "
17549 "guestfish without this option, then list the partitions, filesystems and LVs "
17550 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17551 "commands), or you can use the L<virt-filesystems(1)> program."
17552 msgstr ""
17553
17554 # type: =item
17555 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17556 msgid "B<-n> | B<--no-sync>"
17557 msgstr ""
17558
17559 # type: textblock
17560 #: ../fish/guestfish.pod:286
17561 msgid ""
17562 "Disable autosync.  This is enabled by default.  See the discussion of "
17563 "autosync in the L<guestfs(3)> manpage."
17564 msgstr ""
17565
17566 # type: =item
17567 #: ../fish/guestfish.pod:289
17568 msgid "B<-N type> | B<--new type> | B<-N help>"
17569 msgstr ""
17570
17571 # type: textblock
17572 #: ../fish/guestfish.pod:291
17573 msgid ""
17574 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17575 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17576 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17577 "IMAGES> below."
17578 msgstr ""
17579
17580 # type: =item
17581 #: ../fish/guestfish.pod:296
17582 msgid "B<--progress-bars>"
17583 msgstr ""
17584
17585 # type: textblock
17586 #: ../fish/guestfish.pod:298
17587 msgid "Enable progress bars, even when guestfish is used non-interactively."
17588 msgstr ""
17589
17590 # type: textblock
17591 #: ../fish/guestfish.pod:300
17592 msgid ""
17593 "Progress bars are enabled by default when guestfish is used as an "
17594 "interactive shell."
17595 msgstr ""
17596
17597 # type: =item
17598 #: ../fish/guestfish.pod:303
17599 msgid "B<--no-progress-bars>"
17600 msgstr ""
17601
17602 # type: textblock
17603 #: ../fish/guestfish.pod:305
17604 msgid "Disable progress bars."
17605 msgstr ""
17606
17607 # type: =item
17608 #: ../fish/guestfish.pod:307
17609 msgid "B<--remote[=pid]>"
17610 msgstr ""
17611
17612 # type: textblock
17613 #: ../fish/guestfish.pod:309
17614 msgid ""
17615 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17616 "CONTROL GUESTFISH OVER A SOCKET> below."
17617 msgstr ""
17618
17619 # type: =item
17620 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17621 msgid "B<-r> | B<--ro>"
17622 msgstr ""
17623
17624 # type: textblock
17625 #: ../fish/guestfish.pod:314
17626 msgid ""
17627 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17628 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17629 msgstr ""
17630
17631 # type: textblock
17632 #: ../fish/guestfish.pod:317 ../tools/virt-rescue.pl:187
17633 msgid ""
17634 "The option must always be used if the disk image or virtual machine might be "
17635 "running, and is generally recommended in cases where you don't need write "
17636 "access to the disk."
17637 msgstr ""
17638
17639 # type: textblock
17640 #: ../fish/guestfish.pod:321
17641 msgid ""
17642 "Note that prepared disk images created with I<-N> are not affected by the "
17643 "I<--ro> option."
17644 msgstr ""
17645
17646 # type: textblock
17647 #: ../fish/guestfish.pod:324
17648 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17649 msgstr ""
17650
17651 # type: =item
17652 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17653 #: ../tools/virt-rescue.pl:195
17654 msgid "B<--selinux>"
17655 msgstr ""
17656
17657 # type: textblock
17658 #: ../fish/guestfish.pod:328
17659 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17660 msgstr ""
17661
17662 # type: =item
17663 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17664 msgid "B<-v> | B<--verbose>"
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish.pod:332
17669 msgid ""
17670 "Enable very verbose messages.  This is particularly useful if you find a bug."
17671 msgstr ""
17672
17673 # type: =item
17674 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17675 msgid "B<-V> | B<--version>"
17676 msgstr ""
17677
17678 # type: textblock
17679 #: ../fish/guestfish.pod:337
17680 msgid "Display the guestfish / libguestfs version number and exit."
17681 msgstr ""
17682
17683 # type: =item
17684 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17685 msgid "B<-w> | B<--rw>"
17686 msgstr ""
17687
17688 # type: textblock
17689 #: ../fish/guestfish.pod:341
17690 msgid ""
17691 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17692 "WRITE> below."
17693 msgstr ""
17694
17695 # type: =item
17696 #: ../fish/guestfish.pod:344
17697 msgid "B<-x>"
17698 msgstr ""
17699
17700 # type: textblock
17701 #: ../fish/guestfish.pod:346
17702 msgid "Echo each command before executing it."
17703 msgstr ""
17704
17705 # type: =head1
17706 #: ../fish/guestfish.pod:350
17707 msgid "COMMANDS ON COMMAND LINE"
17708 msgstr ""
17709
17710 # type: textblock
17711 #: ../fish/guestfish.pod:352
17712 msgid ""
17713 "Any additional (non-option) arguments are treated as commands to execute."
17714 msgstr ""
17715
17716 # type: textblock
17717 #: ../fish/guestfish.pod:355
17718 msgid ""
17719 "Commands to execute should be separated by a colon (C<:>), where the colon "
17720 "is a separate parameter.  Thus:"
17721 msgstr ""
17722
17723 # type: verbatim
17724 #: ../fish/guestfish.pod:358
17725 #, no-wrap
17726 msgid ""
17727 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17728 "\n"
17729 msgstr ""
17730
17731 # type: textblock
17732 #: ../fish/guestfish.pod:360
17733 msgid ""
17734 "If there are no additional arguments, then we enter a shell, either an "
17735 "interactive shell with a prompt (if the input is a terminal) or a non-"
17736 "interactive shell."
17737 msgstr ""
17738
17739 # type: textblock
17740 #: ../fish/guestfish.pod:364
17741 msgid ""
17742 "In either command line mode or non-interactive shell, the first command that "
17743 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17744 "prompt) if a command fails, you can continue to enter commands."
17745 msgstr ""
17746
17747 # type: =head1
17748 #: ../fish/guestfish.pod:369
17749 msgid "USING launch (OR run)"
17750 msgstr ""
17751
17752 # type: textblock
17753 #: ../fish/guestfish.pod:371
17754 msgid ""
17755 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17756 "then launch it, then mount any disks you need, and finally issue actions/"
17757 "commands.  So the general order of the day is:"
17758 msgstr ""
17759
17760 # type: textblock
17761 #: ../fish/guestfish.pod:379
17762 msgid "add or -a/--add"
17763 msgstr ""
17764
17765 # type: textblock
17766 #: ../fish/guestfish.pod:383
17767 msgid "launch (aka run)"
17768 msgstr ""
17769
17770 # type: textblock
17771 #: ../fish/guestfish.pod:387
17772 msgid "mount or -m/--mount"
17773 msgstr ""
17774
17775 # type: textblock
17776 #: ../fish/guestfish.pod:391
17777 msgid "any other commands"
17778 msgstr ""
17779
17780 # type: textblock
17781 #: ../fish/guestfish.pod:395
17782 msgid ""
17783 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17784 "guest before mounting or performing any other commands."
17785 msgstr ""
17786
17787 # type: textblock
17788 #: ../fish/guestfish.pod:398
17789 msgid ""
17790 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17791 "I<--new> options were given then C<run> is done automatically, simply "
17792 "because guestfish can't perform the action you asked for without doing this."
17793 msgstr ""
17794
17795 # type: =head1
17796 #: ../fish/guestfish.pod:403
17797 msgid "OPENING DISKS FOR READ AND WRITE"
17798 msgstr ""
17799
17800 # type: textblock
17801 #: ../fish/guestfish.pod:405
17802 msgid ""
17803 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17804 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17805 "open disk images read-only or for writing."
17806 msgstr ""
17807
17808 # type: textblock
17809 #: ../fish/guestfish.pod:409
17810 msgid ""
17811 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17812 "disk images supplied on the command line for write.  To open a disk image "
17813 "read-only you have to do I<-a image --ro>."
17814 msgstr ""
17815
17816 # type: textblock
17817 #: ../fish/guestfish.pod:413
17818 msgid ""
17819 "This matters: If you accidentally open a live VM disk image writable then "
17820 "you will cause irreversible disk corruption."
17821 msgstr ""
17822
17823 # type: textblock
17824 #: ../fish/guestfish.pod:416
17825 msgid ""
17826 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17827 "images will be opened read-only.  You will have to either specify "
17828 "I<guestfish --rw> or change a configuration file in order to get write "
17829 "access for disk images specified by those other command line options."
17830 msgstr ""
17831
17832 # type: textblock
17833 #: ../fish/guestfish.pod:421
17834 msgid ""
17835 "This version of guestfish has a I<--rw> option which does nothing (it is "
17836 "already the default).  However it is highly recommended that you use this "
17837 "option to indicate that guestfish needs write access, and to prepare your "
17838 "scripts for the day when this option will be required for write access."
17839 msgstr ""
17840
17841 # type: textblock
17842 #: ../fish/guestfish.pod:427
17843 msgid ""
17844 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17845 "other libguestfs program apart from guestfish and guestmount."
17846 msgstr ""
17847
17848 # type: =head1
17849 #: ../fish/guestfish.pod:430
17850 msgid "QUOTING"
17851 msgstr ""
17852
17853 # type: textblock
17854 #: ../fish/guestfish.pod:432
17855 msgid ""
17856 "You can quote ordinary parameters using either single or double quotes.  For "
17857 "example:"
17858 msgstr ""
17859
17860 # type: verbatim
17861 #: ../fish/guestfish.pod:435
17862 #, no-wrap
17863 msgid ""
17864 " add \"file with a space.img\"\n"
17865 "\n"
17866 msgstr ""
17867
17868 # type: verbatim
17869 #: ../fish/guestfish.pod:437
17870 #, no-wrap
17871 msgid ""
17872 " rm '/file name'\n"
17873 "\n"
17874 msgstr ""
17875
17876 # type: verbatim
17877 #: ../fish/guestfish.pod:439
17878 #, no-wrap
17879 msgid ""
17880 " rm '/\"'\n"
17881 "\n"
17882 msgstr ""
17883
17884 # type: textblock
17885 #: ../fish/guestfish.pod:441
17886 msgid ""
17887 "A few commands require a list of strings to be passed.  For these, use a "
17888 "whitespace-separated list, enclosed in quotes.  Strings containing "
17889 "whitespace to be passed through must be enclosed in single quotes.  A "
17890 "literal single quote must be escaped with a backslash."
17891 msgstr ""
17892
17893 # type: verbatim
17894 #: ../fish/guestfish.pod:446
17895 #, no-wrap
17896 msgid ""
17897 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17898 " command \"/bin/echo 'foo      bar'\"\n"
17899 " command \"/bin/echo \\'foo\\'\"\n"
17900 "\n"
17901 msgstr ""
17902
17903 # type: =head1
17904 #: ../fish/guestfish.pod:450
17905 msgid "OPTIONAL ARGUMENTS"
17906 msgstr ""
17907
17908 # type: textblock
17909 #: ../fish/guestfish.pod:452
17910 msgid ""
17911 "Some commands take optional arguments.  These arguments appear in this "
17912 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17913 msgstr ""
17914
17915 # type: verbatim
17916 #: ../fish/guestfish.pod:456
17917 #, no-wrap
17918 msgid ""
17919 " add-drive-opts filename\n"
17920 "\n"
17921 msgstr ""
17922
17923 # type: verbatim
17924 #: ../fish/guestfish.pod:458
17925 #, no-wrap
17926 msgid ""
17927 " add-drive-opts filename readonly:true\n"
17928 "\n"
17929 msgstr ""
17930
17931 # type: verbatim
17932 #: ../fish/guestfish.pod:460
17933 #, no-wrap
17934 msgid ""
17935 " add-drive-opts filename format:qcow2 readonly:false\n"
17936 "\n"
17937 msgstr ""
17938
17939 # type: textblock
17940 #: ../fish/guestfish.pod:462
17941 msgid ""
17942 "Each optional argument can appear at most once.  All optional arguments must "
17943 "appear after the required ones."
17944 msgstr ""
17945
17946 # type: =head1
17947 #: ../fish/guestfish.pod:465
17948 msgid "NUMBERS"
17949 msgstr ""
17950
17951 # type: textblock
17952 #: ../fish/guestfish.pod:467
17953 msgid ""
17954 "This section applies to all commands which can take integers as parameters."
17955 msgstr ""
17956
17957 # type: =head2
17958 #: ../fish/guestfish.pod:470
17959 msgid "SIZE SUFFIX"
17960 msgstr ""
17961
17962 # type: textblock
17963 #: ../fish/guestfish.pod:472
17964 msgid ""
17965 "When the command takes a parameter measured in bytes, you can use one of the "
17966 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17967 msgstr ""
17968
17969 # type: =item
17970 #: ../fish/guestfish.pod:478
17971 msgid "B<k> or B<K> or B<KiB>"
17972 msgstr ""
17973
17974 # type: textblock
17975 #: ../fish/guestfish.pod:480
17976 msgid "The size in kilobytes (multiplied by 1024)."
17977 msgstr ""
17978
17979 # type: =item
17980 #: ../fish/guestfish.pod:482
17981 msgid "B<KB>"
17982 msgstr ""
17983
17984 # type: textblock
17985 #: ../fish/guestfish.pod:484
17986 msgid "The size in SI 1000 byte units."
17987 msgstr ""
17988
17989 # type: =item
17990 #: ../fish/guestfish.pod:486
17991 msgid "B<M> or B<MiB>"
17992 msgstr ""
17993
17994 # type: textblock
17995 #: ../fish/guestfish.pod:488
17996 msgid "The size in megabytes (multiplied by 1048576)."
17997 msgstr ""
17998
17999 # type: =item
18000 #: ../fish/guestfish.pod:490
18001 msgid "B<MB>"
18002 msgstr ""
18003
18004 # type: textblock
18005 #: ../fish/guestfish.pod:492
18006 msgid "The size in SI 1000000 byte units."
18007 msgstr ""
18008
18009 # type: =item
18010 #: ../fish/guestfish.pod:494
18011 msgid "B<G> or B<GiB>"
18012 msgstr ""
18013
18014 # type: textblock
18015 #: ../fish/guestfish.pod:496
18016 msgid "The size in gigabytes (multiplied by 2**30)."
18017 msgstr ""
18018
18019 # type: =item
18020 #: ../fish/guestfish.pod:498
18021 msgid "B<GB>"
18022 msgstr ""
18023
18024 # type: textblock
18025 #: ../fish/guestfish.pod:500
18026 msgid "The size in SI 10**9 byte units."
18027 msgstr ""
18028
18029 # type: =item
18030 #: ../fish/guestfish.pod:502
18031 msgid "B<T> or B<TiB>"
18032 msgstr ""
18033
18034 # type: textblock
18035 #: ../fish/guestfish.pod:504
18036 msgid "The size in terabytes (multiplied by 2**40)."
18037 msgstr ""
18038
18039 # type: =item
18040 #: ../fish/guestfish.pod:506
18041 msgid "B<TB>"
18042 msgstr ""
18043
18044 # type: textblock
18045 #: ../fish/guestfish.pod:508
18046 msgid "The size in SI 10**12 byte units."
18047 msgstr ""
18048
18049 # type: =item
18050 #: ../fish/guestfish.pod:510
18051 msgid "B<P> or B<PiB>"
18052 msgstr ""
18053
18054 # type: textblock
18055 #: ../fish/guestfish.pod:512
18056 msgid "The size in petabytes (multiplied by 2**50)."
18057 msgstr ""
18058
18059 # type: =item
18060 #: ../fish/guestfish.pod:514
18061 msgid "B<PB>"
18062 msgstr ""
18063
18064 # type: textblock
18065 #: ../fish/guestfish.pod:516
18066 msgid "The size in SI 10**15 byte units."
18067 msgstr ""
18068
18069 # type: =item
18070 #: ../fish/guestfish.pod:518
18071 msgid "B<E> or B<EiB>"
18072 msgstr ""
18073
18074 # type: textblock
18075 #: ../fish/guestfish.pod:520
18076 msgid "The size in exabytes (multiplied by 2**60)."
18077 msgstr ""
18078
18079 # type: =item
18080 #: ../fish/guestfish.pod:522
18081 msgid "B<EB>"
18082 msgstr ""
18083
18084 # type: textblock
18085 #: ../fish/guestfish.pod:524
18086 msgid "The size in SI 10**18 byte units."
18087 msgstr ""
18088
18089 # type: =item
18090 #: ../fish/guestfish.pod:526
18091 msgid "B<Z> or B<ZiB>"
18092 msgstr ""
18093
18094 # type: textblock
18095 #: ../fish/guestfish.pod:528
18096 msgid "The size in zettabytes (multiplied by 2**70)."
18097 msgstr ""
18098
18099 # type: =item
18100 #: ../fish/guestfish.pod:530
18101 msgid "B<ZB>"
18102 msgstr ""
18103
18104 # type: textblock
18105 #: ../fish/guestfish.pod:532
18106 msgid "The size in SI 10**21 byte units."
18107 msgstr ""
18108
18109 # type: =item
18110 #: ../fish/guestfish.pod:534
18111 msgid "B<Y> or B<YiB>"
18112 msgstr ""
18113
18114 # type: textblock
18115 #: ../fish/guestfish.pod:536
18116 msgid "The size in yottabytes (multiplied by 2**80)."
18117 msgstr ""
18118
18119 # type: =item
18120 #: ../fish/guestfish.pod:538
18121 msgid "B<YB>"
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish.pod:540
18126 msgid "The size in SI 10**24 byte units."
18127 msgstr ""
18128
18129 # type: verbatim
18130 #: ../fish/guestfish.pod:546
18131 #, no-wrap
18132 msgid ""
18133 " truncate-size /file 1G\n"
18134 "\n"
18135 msgstr ""
18136
18137 # type: textblock
18138 #: ../fish/guestfish.pod:548
18139 msgid "would truncate the file to 1 gigabyte."
18140 msgstr ""
18141
18142 # type: textblock
18143 #: ../fish/guestfish.pod:550
18144 msgid ""
18145 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18146 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18147 "suffix will probably not do what you expect."
18148 msgstr ""
18149
18150 # type: =head2
18151 #: ../fish/guestfish.pod:554
18152 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18153 msgstr ""
18154
18155 # type: textblock
18156 #: ../fish/guestfish.pod:556
18157 msgid ""
18158 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18159 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18160 msgstr ""
18161
18162 # type: verbatim
18163 #: ../fish/guestfish.pod:559
18164 #, no-wrap
18165 msgid ""
18166 " 1234      decimal number 1234\n"
18167 " 02322     octal number, equivalent to decimal 1234\n"
18168 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18169 "\n"
18170 msgstr ""
18171
18172 # type: textblock
18173 #: ../fish/guestfish.pod:563
18174 msgid ""
18175 "When using the C<chmod> command, you almost always want to specify an octal "
18176 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18177 "L<chmod(1)> program):"
18178 msgstr ""
18179
18180 # type: verbatim
18181 #: ../fish/guestfish.pod:567
18182 #, no-wrap
18183 msgid ""
18184 " chmod 0777 /public  # OK\n"
18185 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18186 "\n"
18187 msgstr ""
18188
18189 # type: textblock
18190 #: ../fish/guestfish.pod:570
18191 msgid ""
18192 "Commands that return numbers usually print them in decimal, but some "
18193 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18194 "octal, preceeded by C<0>)."
18195 msgstr ""
18196
18197 # type: =head1
18198 #: ../fish/guestfish.pod:574
18199 msgid "WILDCARDS AND GLOBBING"
18200 msgstr ""
18201
18202 # type: textblock
18203 #: ../fish/guestfish.pod:576
18204 msgid ""
18205 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18206 "(globbing) by default.  So for example the following will not do what you "
18207 "expect:"
18208 msgstr ""
18209
18210 # type: verbatim
18211 #: ../fish/guestfish.pod:580
18212 #, no-wrap
18213 msgid ""
18214 " rm-rf /home/*\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: textblock
18219 #: ../fish/guestfish.pod:582
18220 msgid ""
18221 "Assuming you don't have a directory called literally C</home/*> then the "
18222 "above command will return an error."
18223 msgstr ""
18224
18225 # type: textblock
18226 #: ../fish/guestfish.pod:585
18227 msgid "To perform wildcard expansion, use the C<glob> command."
18228 msgstr ""
18229
18230 # type: verbatim
18231 #: ../fish/guestfish.pod:587
18232 #, no-wrap
18233 msgid ""
18234 " glob rm-rf /home/*\n"
18235 "\n"
18236 msgstr ""
18237
18238 # type: textblock
18239 #: ../fish/guestfish.pod:589
18240 msgid ""
18241 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18242 "many times), equivalent to:"
18243 msgstr ""
18244
18245 # type: verbatim
18246 #: ../fish/guestfish.pod:592
18247 #, no-wrap
18248 msgid ""
18249 " rm-rf /home/jim\n"
18250 " rm-rf /home/joe\n"
18251 " rm-rf /home/mary\n"
18252 "\n"
18253 msgstr ""
18254
18255 # type: textblock
18256 #: ../fish/guestfish.pod:596
18257 msgid "C<glob> only works on simple guest paths and not on device names."
18258 msgstr ""
18259
18260 # type: textblock
18261 #: ../fish/guestfish.pod:598
18262 msgid ""
18263 "If you have several parameters, each containing a wildcard, then glob will "
18264 "perform a Cartesian product."
18265 msgstr ""
18266
18267 # type: =head1
18268 #: ../fish/guestfish.pod:601
18269 msgid "COMMENTS"
18270 msgstr ""
18271
18272 # type: textblock
18273 #: ../fish/guestfish.pod:603
18274 msgid ""
18275 "Any line which starts with a I<#> character is treated as a comment and "
18276 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18277 "a command.  For example:"
18278 msgstr ""
18279
18280 # type: verbatim
18281 #: ../fish/guestfish.pod:607
18282 #, no-wrap
18283 msgid ""
18284 " # this is a comment\n"
18285 "         # this is a comment\n"
18286 " foo # NOT a comment\n"
18287 "\n"
18288 msgstr ""
18289
18290 # type: textblock
18291 #: ../fish/guestfish.pod:611
18292 msgid "Blank lines are also ignored."
18293 msgstr ""
18294
18295 # type: =head1
18296 #: ../fish/guestfish.pod:613
18297 msgid "RUNNING COMMANDS LOCALLY"
18298 msgstr ""
18299
18300 # type: textblock
18301 #: ../fish/guestfish.pod:615
18302 msgid ""
18303 "Any line which starts with a I<!> character is treated as a command sent to "
18304 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18305 msgstr ""
18306
18307 # type: verbatim
18308 #: ../fish/guestfish.pod:619
18309 #, no-wrap
18310 msgid ""
18311 " !mkdir local\n"
18312 " tgz-out /remote local/remote-data.tar.gz\n"
18313 "\n"
18314 msgstr ""
18315
18316 # type: textblock
18317 #: ../fish/guestfish.pod:622
18318 msgid ""
18319 "will create a directory C<local> on the host, and then export the contents "
18320 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18321 "(See C<tgz-out>)."
18322 msgstr ""
18323
18324 # type: textblock
18325 #: ../fish/guestfish.pod:626
18326 msgid ""
18327 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18328 "effect, due to the way that subprocesses work in Unix."
18329 msgstr ""
18330
18331 # type: =head1
18332 #: ../fish/guestfish.pod:629
18333 msgid "PIPES"
18334 msgstr ""
18335
18336 # type: textblock
18337 #: ../fish/guestfish.pod:631
18338 msgid ""
18339 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18340 "command (a guestfish command) to the second command (any host command).  For "
18341 "example:"
18342 msgstr ""
18343
18344 # type: verbatim
18345 #: ../fish/guestfish.pod:635
18346 #, no-wrap
18347 msgid ""
18348 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18349 "\n"
18350 msgstr ""
18351
18352 # type: textblock
18353 #: ../fish/guestfish.pod:637
18354 msgid ""
18355 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18356 "program).  The above command would list all accounts in the guest filesystem "
18357 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18358 msgstr ""
18359
18360 # type: verbatim
18361 #: ../fish/guestfish.pod:642
18362 #, no-wrap
18363 msgid ""
18364 " hexdump /bin/ls | head\n"
18365 " list-devices | tail -1\n"
18366 " tgz-out / - | tar ztf -\n"
18367 "\n"
18368 msgstr ""
18369
18370 # type: textblock
18371 #: ../fish/guestfish.pod:646
18372 msgid ""
18373 "The space before the pipe symbol is required, any space after the pipe "
18374 "symbol is optional.  Everything after the pipe symbol is just passed "
18375 "straight to the host shell, so it can contain redirections, globs and "
18376 "anything else that makes sense on the host side."
18377 msgstr ""
18378
18379 # type: textblock
18380 #: ../fish/guestfish.pod:651
18381 msgid ""
18382 "To use a literal argument which begins with a pipe symbol, you have to quote "
18383 "it, eg:"
18384 msgstr ""
18385
18386 # type: verbatim
18387 #: ../fish/guestfish.pod:654
18388 #, no-wrap
18389 msgid ""
18390 " echo \"|\"\n"
18391 "\n"
18392 msgstr ""
18393
18394 # type: =head1
18395 #: ../fish/guestfish.pod:656
18396 msgid "HOME DIRECTORIES"
18397 msgstr ""
18398
18399 # type: textblock
18400 #: ../fish/guestfish.pod:658
18401 msgid ""
18402 "If a parameter starts with the character C<~> then the tilde may be expanded "
18403 "as a home directory path (either C<~> for the current user's home directory, "
18404 "or C<~user> for another user)."
18405 msgstr ""
18406
18407 # type: textblock
18408 #: ../fish/guestfish.pod:662
18409 msgid ""
18410 "Note that home directory expansion happens for users known I<on the host>, "
18411 "not in the guest filesystem."
18412 msgstr ""
18413
18414 # type: textblock
18415 #: ../fish/guestfish.pod:665
18416 msgid ""
18417 "To use a literal argument which begins with a tilde, you have to quote it, "
18418 "eg:"
18419 msgstr ""
18420
18421 # type: verbatim
18422 #: ../fish/guestfish.pod:668
18423 #, no-wrap
18424 msgid ""
18425 " echo \"~\"\n"
18426 "\n"
18427 msgstr ""
18428
18429 # type: textblock
18430 #: ../fish/guestfish.pod:672
18431 msgid ""
18432 "Libguestfs has some support for Linux guests encrypted according to the "
18433 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18434 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18435 "LUKS is supported."
18436 msgstr ""
18437
18438 # type: textblock
18439 #: ../fish/guestfish.pod:677
18440 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18441 msgstr ""
18442
18443 # type: verbatim
18444 #: ../fish/guestfish.pod:679
18445 #, no-wrap
18446 msgid ""
18447 " ><fs> vfs-type /dev/sda2\n"
18448 " crypto_LUKS\n"
18449 "\n"
18450 msgstr ""
18451
18452 # type: textblock
18453 #: ../fish/guestfish.pod:682
18454 msgid ""
18455 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18456 "device called C</dev/mapper/luksdev>."
18457 msgstr ""
18458
18459 # type: verbatim
18460 #: ../fish/guestfish.pod:685
18461 #, no-wrap
18462 msgid ""
18463 " ><fs> luks-open /dev/sda2 luksdev\n"
18464 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18465 "\n"
18466 msgstr ""
18467
18468 # type: textblock
18469 #: ../fish/guestfish.pod:688
18470 msgid ""
18471 "Finally you have to tell LVM to scan for volume groups on the newly created "
18472 "mapper device:"
18473 msgstr ""
18474
18475 # type: verbatim
18476 #: ../fish/guestfish.pod:691
18477 #, no-wrap
18478 msgid ""
18479 " vgscan\n"
18480 " vg-activate-all true\n"
18481 "\n"
18482 msgstr ""
18483
18484 # type: textblock
18485 #: ../fish/guestfish.pod:694
18486 msgid "The logical volume(s) can now be mounted in the usual way."
18487 msgstr ""
18488
18489 # type: textblock
18490 #: ../fish/guestfish.pod:696
18491 msgid ""
18492 "Before closing a LUKS device you must unmount any logical volumes on it and "
18493 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18494 "one.  Then you can close the mapper device:"
18495 msgstr ""
18496
18497 # type: verbatim
18498 #: ../fish/guestfish.pod:700
18499 #, no-wrap
18500 msgid ""
18501 " vg-activate false /dev/VG\n"
18502 " luks-close /dev/mapper/luksdev\n"
18503 "\n"
18504 msgstr ""
18505
18506 # type: =head1
18507 #: ../fish/guestfish.pod:703
18508 msgid "WINDOWS PATHS"
18509 msgstr ""
18510
18511 # type: textblock
18512 #: ../fish/guestfish.pod:705
18513 msgid ""
18514 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18515 "(with some limitations).  The following commands are equivalent:"
18516 msgstr ""
18517
18518 # type: verbatim
18519 #: ../fish/guestfish.pod:708
18520 #, no-wrap
18521 msgid ""
18522 " file /WINDOWS/system32/config/system.LOG\n"
18523 "\n"
18524 msgstr ""
18525
18526 # type: verbatim
18527 #: ../fish/guestfish.pod:710
18528 #, no-wrap
18529 msgid ""
18530 " file win:/windows/system32/config/system.log\n"
18531 "\n"
18532 msgstr ""
18533
18534 # type: verbatim
18535 #: ../fish/guestfish.pod:712
18536 #, no-wrap
18537 msgid ""
18538 " file win:\\windows\\system32\\config\\system.log\n"
18539 "\n"
18540 msgstr ""
18541
18542 # type: verbatim
18543 #: ../fish/guestfish.pod:714
18544 #, no-wrap
18545 msgid ""
18546 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18547 "\n"
18548 msgstr ""
18549
18550 # type: textblock
18551 #: ../fish/guestfish.pod:716
18552 msgid ""
18553 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18554 "handles case insensitivity like Windows would.  This only works in argument "
18555 "positions that expect a path."
18556 msgstr ""
18557
18558 # type: =head1
18559 #: ../fish/guestfish.pod:720
18560 msgid "UPLOADING AND DOWNLOADING FILES"
18561 msgstr ""
18562
18563 # type: textblock
18564 #: ../fish/guestfish.pod:722
18565 msgid ""
18566 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18567 "others which upload from or download to a local file, you can use the "
18568 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18569 msgstr ""
18570
18571 # type: verbatim
18572 #: ../fish/guestfish.pod:726
18573 #, no-wrap
18574 msgid ""
18575 " upload - /foo\n"
18576 "\n"
18577 msgstr ""
18578
18579 # type: textblock
18580 #: ../fish/guestfish.pod:728
18581 msgid ""
18582 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18583 msgstr ""
18584
18585 # type: verbatim
18586 #: ../fish/guestfish.pod:731
18587 #, no-wrap
18588 msgid ""
18589 " tar-out /etc - | tar tf -\n"
18590 "\n"
18591 msgstr ""
18592
18593 # type: textblock
18594 #: ../fish/guestfish.pod:733
18595 msgid ""
18596 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18597 "command (see L</PIPES>)."
18598 msgstr ""
18599
18600 # type: textblock
18601 #: ../fish/guestfish.pod:736
18602 msgid ""
18603 "When using C<-> to read from stdin, the input is read up to the end of "
18604 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18605 "some arbitrary end marker:"
18606 msgstr ""
18607
18608 # type: verbatim
18609 #: ../fish/guestfish.pod:740
18610 #, no-wrap
18611 msgid ""
18612 " upload -<<END /foo\n"
18613 " input line 1\n"
18614 " input line 2\n"
18615 " input line 3\n"
18616 " END\n"
18617 "\n"
18618 msgstr ""
18619
18620 # type: textblock
18621 #: ../fish/guestfish.pod:746
18622 msgid ""
18623 "Any string of characters can be used instead of C<END>.  The end marker must "
18624 "appear on a line of its own, without any preceeding or following characters "
18625 "(not even spaces)."
18626 msgstr ""
18627
18628 # type: textblock
18629 #: ../fish/guestfish.pod:750
18630 msgid ""
18631 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18632 "upload local files (so-called \"FileIn\" parameters in the generator)."
18633 msgstr ""
18634
18635 # type: =head1
18636 #: ../fish/guestfish.pod:753
18637 msgid "EXIT ON ERROR BEHAVIOUR"
18638 msgstr ""
18639
18640 # type: textblock
18641 #: ../fish/guestfish.pod:755
18642 msgid ""
18643 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18644 "taking commands from a human over a tty), and will exit on the first error "
18645 "in non-interactive mode (scripts, commands given on the command line)."
18646 msgstr ""
18647
18648 # type: textblock
18649 #: ../fish/guestfish.pod:760
18650 msgid ""
18651 "If you prefix a command with a I<-> character, then that command will not "
18652 "cause guestfish to exit, even if that (one) command returns an error."
18653 msgstr ""
18654
18655 # type: =head1
18656 #: ../fish/guestfish.pod:764
18657 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18658 msgstr ""
18659
18660 # type: textblock
18661 #: ../fish/guestfish.pod:766
18662 msgid ""
18663 "Guestfish can be remote-controlled over a socket.  This is useful "
18664 "particularly in shell scripts where you want to make several different "
18665 "changes to a filesystem, but you don't want the overhead of starting up a "
18666 "guestfish process each time."
18667 msgstr ""
18668
18669 # type: textblock
18670 #: ../fish/guestfish.pod:771
18671 msgid "Start a guestfish server process using:"
18672 msgstr ""
18673
18674 # type: verbatim
18675 #: ../fish/guestfish.pod:773
18676 #, no-wrap
18677 msgid ""
18678 " eval \"`guestfish --listen`\"\n"
18679 "\n"
18680 msgstr ""
18681
18682 # type: textblock
18683 #: ../fish/guestfish.pod:775
18684 msgid "and then send it commands by doing:"
18685 msgstr ""
18686
18687 # type: verbatim
18688 #: ../fish/guestfish.pod:777
18689 #, no-wrap
18690 msgid ""
18691 " guestfish --remote cmd [...]\n"
18692 "\n"
18693 msgstr ""
18694
18695 # type: textblock
18696 #: ../fish/guestfish.pod:779
18697 msgid "To cause the server to exit, send it the exit command:"
18698 msgstr ""
18699
18700 # type: verbatim
18701 #: ../fish/guestfish.pod:781
18702 #, no-wrap
18703 msgid ""
18704 " guestfish --remote exit\n"
18705 "\n"
18706 msgstr ""
18707
18708 # type: textblock
18709 #: ../fish/guestfish.pod:783
18710 msgid ""
18711 "Note that the server will normally exit if there is an error in a command.  "
18712 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18713 "BEHAVIOUR>."
18714 msgstr ""
18715
18716 # type: =head2
18717 #: ../fish/guestfish.pod:787
18718 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18719 msgstr ""
18720
18721 # type: textblock
18722 #: ../fish/guestfish.pod:789
18723 msgid ""
18724 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18725 "is how the I<--remote> option knows where to send the commands.  You can "
18726 "have several guestfish listener processes running using:"
18727 msgstr ""
18728
18729 # type: verbatim
18730 #: ../fish/guestfish.pod:793
18731 #, no-wrap
18732 msgid ""
18733 " eval \"`guestfish --listen`\"\n"
18734 " pid1=$GUESTFISH_PID\n"
18735 " eval \"`guestfish --listen`\"\n"
18736 " pid2=$GUESTFISH_PID\n"
18737 " ...\n"
18738 " guestfish --remote=$pid1 cmd\n"
18739 " guestfish --remote=$pid2 cmd\n"
18740 "\n"
18741 msgstr ""
18742
18743 # type: =head2
18744 #: ../fish/guestfish.pod:801
18745 msgid "REMOTE CONTROL AND CSH"
18746 msgstr ""
18747
18748 # type: textblock
18749 #: ../fish/guestfish.pod:803
18750 msgid ""
18751 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18752 "option:"
18753 msgstr ""
18754
18755 # type: verbatim
18756 #: ../fish/guestfish.pod:806
18757 #, no-wrap
18758 msgid ""
18759 " eval \"`guestfish --listen --csh`\"\n"
18760 "\n"
18761 msgstr ""
18762
18763 # type: =head2
18764 #: ../fish/guestfish.pod:808
18765 msgid "REMOTE CONTROL DETAILS"
18766 msgstr ""
18767
18768 # type: textblock
18769 #: ../fish/guestfish.pod:810
18770 msgid ""
18771 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18772 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18773 "and C<$PID> is the process ID of the server."
18774 msgstr ""
18775
18776 # type: textblock
18777 #: ../fish/guestfish.pod:814
18778 msgid "Guestfish client and server versions must match exactly."
18779 msgstr ""
18780
18781 # type: =head1
18782 #: ../fish/guestfish.pod:816
18783 msgid "PREPARED DISK IMAGES"
18784 msgstr ""
18785
18786 # type: textblock
18787 #: ../fish/guestfish.pod:818
18788 msgid ""
18789 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18790 "preformatted disk images that guestfish can make for you to save typing.  "
18791 "This is particularly useful for testing purposes.  This option is used "
18792 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18793 "can be mixed with I<-a>)."
18794 msgstr ""
18795
18796 # type: textblock
18797 #: ../fish/guestfish.pod:824
18798 msgid ""
18799 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18800 "the second and so on.  Existing files in the current directory are "
18801 "I<overwritten>."
18802 msgstr ""
18803
18804 # type: textblock
18805 #: ../fish/guestfish.pod:828
18806 msgid ""
18807 "The type briefly describes how the disk should be sized, partitioned, how "
18808 "filesystem(s) should be created, and how content should be added.  "
18809 "Optionally the type can be followed by extra parameters, separated by C<:> "
18810 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18811 "allocated disk, containing a single partition, with the partition formatted "
18812 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18813 "disk instead."
18814 msgstr ""
18815
18816 # type: textblock
18817 #: ../fish/guestfish.pod:836
18818 msgid "To list the available types and any extra parameters they take, run:"
18819 msgstr ""
18820
18821 # type: textblock
18822 #: ../fish/guestfish.pod:840
18823 msgid ""
18824 "Note that the prepared filesystem is not mounted.  You would usually have to "
18825 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18826 msgstr ""
18827
18828 # type: textblock
18829 #: ../fish/guestfish.pod:844
18830 msgid ""
18831 "If any I<-N> or I<--new> options are given, the guest is automatically "
18832 "launched."
18833 msgstr ""
18834
18835 # type: textblock
18836 #: ../fish/guestfish.pod:849
18837 msgid "Create a 100MB disk with an ext4-formatted partition:"
18838 msgstr ""
18839
18840 # type: verbatim
18841 #: ../fish/guestfish.pod:851
18842 #, no-wrap
18843 msgid ""
18844 " guestfish -N fs:ext4\n"
18845 "\n"
18846 msgstr ""
18847
18848 # type: textblock
18849 #: ../fish/guestfish.pod:853
18850 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18851 msgstr ""
18852
18853 # type: verbatim
18854 #: ../fish/guestfish.pod:855
18855 #, no-wrap
18856 msgid ""
18857 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18858 "\n"
18859 msgstr ""
18860
18861 # type: textblock
18862 #: ../fish/guestfish.pod:857
18863 msgid "Create a blank 200MB disk:"
18864 msgstr ""
18865
18866 # type: verbatim
18867 #: ../fish/guestfish.pod:859
18868 #, no-wrap
18869 msgid ""
18870 " guestfish -N disk:200M\n"
18871 "\n"
18872 msgstr ""
18873
18874 # type: =head1
18875 #: ../fish/guestfish.pod:861
18876 msgid "PROGRESS BARS"
18877 msgstr ""
18878
18879 # type: textblock
18880 #: ../fish/guestfish.pod:863
18881 msgid ""
18882 "Some (not all) long-running commands send progress notification messages as "
18883 "they are running.  Guestfish turns these messages into progress bars."
18884 msgstr ""
18885
18886 # type: textblock
18887 #: ../fish/guestfish.pod:867
18888 msgid ""
18889 "When a command that supports progress bars takes longer than two seconds to "
18890 "run, and if progress bars are enabled, then you will see one appearing below "
18891 "the command:"
18892 msgstr ""
18893
18894 # type: verbatim
18895 #: ../fish/guestfish.pod:871
18896 #, no-wrap
18897 msgid ""
18898 " ><fs> copy-size /large-file /another-file 2048M\n"
18899 " / 10% [#####-----------------------------------------] 00:30\n"
18900 "\n"
18901 msgstr ""
18902
18903 # type: textblock
18904 #: ../fish/guestfish.pod:874
18905 msgid ""
18906 "The spinner on the left hand side moves round once for every progress "
18907 "notification received from the backend.  This is a (reasonably) golden "
18908 "assurance that the command is \"doing something\" even if the progress bar "
18909 "is not moving, because the command is able to send the progress "
18910 "notifications.  When the bar reaches 100% and the command finishes, the "
18911 "spinner disappears."
18912 msgstr ""
18913
18914 # type: textblock
18915 #: ../fish/guestfish.pod:881
18916 msgid ""
18917 "Progress bars are enabled by default when guestfish is used interactively.  "
18918 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18919 "and you can disable them completely using I<--no-progress-bars>."
18920 msgstr ""
18921
18922 # type: =head1
18923 #: ../fish/guestfish.pod:886
18924 msgid "GUESTFISH COMMANDS"
18925 msgstr ""
18926
18927 # type: textblock
18928 #: ../fish/guestfish.pod:888
18929 msgid ""
18930 "The commands in this section are guestfish convenience commands, in other "
18931 "words, they are not part of the L<guestfs(3)> API."
18932 msgstr ""
18933
18934 # type: =head2
18935 #: ../fish/guestfish.pod:891
18936 msgid "help"
18937 msgstr ""
18938
18939 # type: verbatim
18940 #: ../fish/guestfish.pod:893
18941 #, no-wrap
18942 msgid ""
18943 " help\n"
18944 " help cmd\n"
18945 "\n"
18946 msgstr ""
18947
18948 # type: textblock
18949 #: ../fish/guestfish.pod:896
18950 msgid "Without any parameter, this provides general help."
18951 msgstr ""
18952
18953 # type: textblock
18954 #: ../fish/guestfish.pod:898
18955 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18956 msgstr ""
18957
18958 # type: =head2
18959 #: ../fish/guestfish.pod:900
18960 msgid "quit | exit"
18961 msgstr ""
18962
18963 # type: textblock
18964 #: ../fish/guestfish.pod:902
18965 msgid "This exits guestfish.  You can also use C<^D> key."
18966 msgstr ""
18967
18968 # type: textblock
18969 #: ../fish/guestfish.pod:904
18970 msgid "@FISH_COMMANDS@"
18971 msgstr ""
18972
18973 # type: =head1
18974 #: ../fish/guestfish.pod:906
18975 msgid "COMMANDS"
18976 msgstr ""
18977
18978 # type: =head1
18979 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18980 msgid "EXIT CODE"
18981 msgstr ""
18982
18983 # type: textblock
18984 #: ../fish/guestfish.pod:912
18985 msgid ""
18986 "guestfish returns 0 if the commands completed without error, or 1 if there "
18987 "was an error."
18988 msgstr ""
18989
18990 # type: =item
18991 #: ../fish/guestfish.pod:919
18992 msgid "EDITOR"
18993 msgstr ""
18994
18995 # type: textblock
18996 #: ../fish/guestfish.pod:921
18997 msgid ""
18998 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18999 "C<vi>."
19000 msgstr ""
19001
19002 # type: =item
19003 #: ../fish/guestfish.pod:924
19004 msgid "GUESTFISH_PID"
19005 msgstr ""
19006
19007 # type: textblock
19008 #: ../fish/guestfish.pod:926
19009 msgid ""
19010 "Used with the I<--remote> option to specify the remote guestfish process to "
19011 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19012 msgstr ""
19013
19014 # type: =item
19015 #: ../fish/guestfish.pod:930
19016 msgid "HEXEDITOR"
19017 msgstr ""
19018
19019 # type: textblock
19020 #: ../fish/guestfish.pod:932
19021 msgid ""
19022 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19023 "not specified, the external L<hexedit(1)> program is used."
19024 msgstr ""
19025
19026 # type: =item
19027 #: ../fish/guestfish.pod:936
19028 msgid "HOME"
19029 msgstr ""
19030
19031 # type: textblock
19032 #: ../fish/guestfish.pod:938
19033 msgid ""
19034 "If compiled with GNU readline support, various files in the home directory "
19035 "can be used.  See L</FILES>."
19036 msgstr ""
19037
19038 # type: textblock
19039 #: ../fish/guestfish.pod:947
19040 msgid ""
19041 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19042 "effect as using the B<-v> option."
19043 msgstr ""
19044
19045 # type: textblock
19046 #: ../fish/guestfish.pod:959
19047 msgid ""
19048 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19049 "the discussion of paths in L<guestfs(3)>."
19050 msgstr ""
19051
19052 # type: textblock
19053 #: ../fish/guestfish.pod:970
19054 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19055 msgstr ""
19056
19057 # type: =item
19058 #: ../fish/guestfish.pod:972
19059 msgid "PAGER"
19060 msgstr ""
19061
19062 # type: textblock
19063 #: ../fish/guestfish.pod:974
19064 msgid ""
19065 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19066 "C<more>."
19067 msgstr ""
19068
19069 # type: =head1
19070 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
19071 msgid "FILES"
19072 msgstr ""
19073
19074 # type: =item
19075 #: ../fish/guestfish.pod:993
19076 msgid "$HOME/.guestfish"
19077 msgstr ""
19078
19079 # type: textblock
19080 #: ../fish/guestfish.pod:995
19081 msgid ""
19082 "If compiled with GNU readline support, then the command history is saved in "
19083 "this file."
19084 msgstr ""
19085
19086 # type: =item
19087 #: ../fish/guestfish.pod:998
19088 msgid "$HOME/.inputrc"
19089 msgstr ""
19090
19091 # type: =item
19092 #: ../fish/guestfish.pod:1000
19093 msgid "/etc/inputrc"
19094 msgstr ""
19095
19096 # type: textblock
19097 #: ../fish/guestfish.pod:1002
19098 msgid ""
19099 "If compiled with GNU readline support, then these files can be used to "
19100 "configure readline.  For further information, please see L<readline(3)/"
19101 "INITIALIZATION FILE>."
19102 msgstr ""
19103
19104 # type: textblock
19105 #: ../fish/guestfish.pod:1006
19106 msgid "To write rules which only apply to guestfish, use:"
19107 msgstr ""
19108
19109 # type: verbatim
19110 #: ../fish/guestfish.pod:1008
19111 #, no-wrap
19112 msgid ""
19113 " $if guestfish\n"
19114 " ...\n"
19115 " $endif\n"
19116 "\n"
19117 msgstr ""
19118
19119 # type: textblock
19120 #: ../fish/guestfish.pod:1012
19121 msgid ""
19122 "Variables that you can set in inputrc that change the behaviour of guestfish "
19123 "in useful ways include:"
19124 msgstr ""
19125
19126 # type: =item
19127 #: ../fish/guestfish.pod:1017
19128 msgid "completion-ignore-case (default: on)"
19129 msgstr ""
19130
19131 # type: textblock
19132 #: ../fish/guestfish.pod:1019
19133 msgid ""
19134 "By default, guestfish will ignore case when tab-completing paths on the "
19135 "disk.  Use:"
19136 msgstr ""
19137
19138 # type: verbatim
19139 #: ../fish/guestfish.pod:1022
19140 #, no-wrap
19141 msgid ""
19142 " set completion-ignore-case off\n"
19143 "\n"
19144 msgstr ""
19145
19146 # type: textblock
19147 #: ../fish/guestfish.pod:1024
19148 msgid "to make guestfish case sensitive."
19149 msgstr ""
19150
19151 # type: =item
19152 #: ../fish/guestfish.pod:1028
19153 msgid "test1.img"
19154 msgstr ""
19155
19156 # type: =item
19157 #: ../fish/guestfish.pod:1030
19158 msgid "test2.img (etc)"
19159 msgstr ""
19160
19161 # type: textblock
19162 #: ../fish/guestfish.pod:1032
19163 msgid ""
19164 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19165 "will be created in the file C<test1.img> in the current directory.  The "
19166 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19167 "the same name will be overwritten."
19168 msgstr ""
19169
19170 # type: textblock
19171 #: ../fish/guestfish.pod:1041
19172 msgid ""
19173 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19174 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19175 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19176 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19177 "L<hexedit(1)>."
19178 msgstr ""
19179
19180 # type: textblock
19181 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124
19182 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19183 #: ../tools/virt-win-reg.pl:518 ../tools/virt-df.pl:657
19184 #: ../tools/virt-resize.pl:1514 ../tools/virt-list-filesystems.pl:210
19185 #: ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285
19186 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19187 msgid ""
19188 "This program is free software; you can redistribute it and/or modify it "
19189 "under the terms of the GNU General Public License as published by the Free "
19190 "Software Foundation; either version 2 of the License, or (at your option) "
19191 "any later version."
19192 msgstr ""
19193
19194 # type: textblock
19195 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129
19196 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19197 #: ../tools/virt-win-reg.pl:523 ../tools/virt-df.pl:662
19198 #: ../tools/virt-resize.pl:1519 ../tools/virt-list-filesystems.pl:215
19199 #: ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290
19200 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19201 msgid ""
19202 "This program is distributed in the hope that it will be useful, but WITHOUT "
19203 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19204 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19205 "more details."
19206 msgstr ""
19207
19208 # type: textblock
19209 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134
19210 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19211 #: ../tools/virt-win-reg.pl:528 ../tools/virt-df.pl:667
19212 #: ../tools/virt-resize.pl:1524 ../tools/virt-list-filesystems.pl:220
19213 #: ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295
19214 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19215 msgid ""
19216 "You should have received a copy of the GNU General Public License along with "
19217 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19218 "Ave, Cambridge, MA 02139, USA."
19219 msgstr ""
19220
19221 # type: =head2
19222 #: ../fish/guestfish-actions.pod:1
19223 msgid "add-cdrom"
19224 msgstr ""
19225
19226 # type: verbatim
19227 #: ../fish/guestfish-actions.pod:3
19228 #, no-wrap
19229 msgid ""
19230 " add-cdrom filename\n"
19231 "\n"
19232 msgstr ""
19233
19234 # type: textblock
19235 #: ../fish/guestfish-actions.pod:15
19236 msgid ""
19237 "This call checks for the existence of C<filename>.  This stops you from "
19238 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19239 "and C<http:> URLs.  To specify those, use the general L</config> call "
19240 "instead."
19241 msgstr ""
19242
19243 # type: textblock
19244 #: ../fish/guestfish-actions.pod:22
19245 msgid ""
19246 "If you just want to add an ISO file (often you use this as an efficient way "
19247 "to transfer large files into the guest), then you should probably use L</add-"
19248 "drive-ro> instead."
19249 msgstr ""
19250
19251 # type: =head2
19252 #: ../fish/guestfish-actions.pod:35
19253 msgid "add-domain"
19254 msgstr ""
19255
19256 # type: =head2
19257 #: ../fish/guestfish-actions.pod:37
19258 msgid "domain"
19259 msgstr ""
19260
19261 # type: verbatim
19262 #: ../fish/guestfish-actions.pod:39
19263 #, no-wrap
19264 msgid ""
19265 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19266 "\n"
19267 msgstr ""
19268
19269 # type: textblock
19270 #: ../fish/guestfish-actions.pod:41
19271 msgid ""
19272 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19273 "It works by connecting to libvirt, requesting the domain and domain XML from "
19274 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19275 msgstr ""
19276
19277 # type: textblock
19278 #: ../fish/guestfish-actions.pod:58
19279 msgid ""
19280 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19281 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19282 "libvirt URI (or one set through an environment variable, see the libvirt "
19283 "documentation for full details).  If you are using the C API directly then "
19284 "it is more flexible to create the libvirt connection object yourself, get "
19285 "the domain object, and call L</add-libvirt-dom>."
19286 msgstr ""
19287
19288 # type: textblock
19289 #: ../fish/guestfish-actions.pod:66
19290 msgid ""
19291 "The other optional parameters are passed directly through to L</add-drive-"
19292 "opts>."
19293 msgstr ""
19294
19295 # type: textblock
19296 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19297 msgid ""
19298 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19299 msgstr ""
19300
19301 # type: =head2
19302 #: ../fish/guestfish-actions.pod:71
19303 msgid "add-drive"
19304 msgstr ""
19305
19306 # type: verbatim
19307 #: ../fish/guestfish-actions.pod:73
19308 #, no-wrap
19309 msgid ""
19310 " add-drive filename\n"
19311 "\n"
19312 msgstr ""
19313
19314 # type: textblock
19315 #: ../fish/guestfish-actions.pod:75
19316 msgid ""
19317 "This function is the equivalent of calling L</add-drive-opts> with no "
19318 "optional parameters, so the disk is added writable, with the format being "
19319 "detected automatically."
19320 msgstr ""
19321
19322 # type: textblock
19323 #: ../fish/guestfish-actions.pod:79
19324 msgid ""
19325 "Automatic detection of the format opens you up to a potential security hole "
19326 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19327 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19328 "you should think about replacing calls to this function with calls to L</add-"
19329 "drive-opts>, and specifying the format."
19330 msgstr ""
19331
19332 # type: =head2
19333 #: ../fish/guestfish-actions.pod:86
19334 msgid "add-drive-opts"
19335 msgstr ""
19336
19337 # type: =head2
19338 #: ../fish/guestfish-actions.pod:88
19339 msgid "add"
19340 msgstr ""
19341
19342 # type: verbatim
19343 #: ../fish/guestfish-actions.pod:90
19344 #, no-wrap
19345 msgid ""
19346 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19347 "\n"
19348 msgstr ""
19349
19350 # type: textblock
19351 #: ../fish/guestfish-actions.pod:117
19352 msgid ""
19353 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19354 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19355 "include C<raw> and C<qcow2>."
19356 msgstr ""
19357
19358 # type: textblock
19359 #: ../fish/guestfish-actions.pod:128
19360 msgid ""
19361 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19362 "add-drive-with-if> call (q.v.)"
19363 msgstr ""
19364
19365 # type: =head2
19366 #: ../fish/guestfish-actions.pod:135
19367 msgid "add-drive-ro"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:137
19372 msgid "add-ro"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:139
19377 #, no-wrap
19378 msgid ""
19379 " add-drive-ro filename\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: textblock
19384 #: ../fish/guestfish-actions.pod:141
19385 msgid ""
19386 "This function is the equivalent of calling L</add-drive-opts> with the "
19387 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19388 "is added read-only, with the format being detected automatically."
19389 msgstr ""
19390
19391 # type: =head2
19392 #: ../fish/guestfish-actions.pod:146
19393 msgid "add-drive-ro-with-if"
19394 msgstr ""
19395
19396 # type: verbatim
19397 #: ../fish/guestfish-actions.pod:148
19398 #, no-wrap
19399 msgid ""
19400 " add-drive-ro-with-if filename iface\n"
19401 "\n"
19402 msgstr ""
19403
19404 # type: textblock
19405 #: ../fish/guestfish-actions.pod:150
19406 msgid ""
19407 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19408 "interface emulation to use at run time."
19409 msgstr ""
19410
19411 # type: =head2
19412 #: ../fish/guestfish-actions.pod:160
19413 msgid "add-drive-with-if"
19414 msgstr ""
19415
19416 # type: verbatim
19417 #: ../fish/guestfish-actions.pod:162
19418 #, no-wrap
19419 msgid ""
19420 " add-drive-with-if filename iface\n"
19421 "\n"
19422 msgstr ""
19423
19424 # type: textblock
19425 #: ../fish/guestfish-actions.pod:164
19426 msgid ""
19427 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19428 "interface emulation to use at run time."
19429 msgstr ""
19430
19431 # type: =head2
19432 #: ../fish/guestfish-actions.pod:174
19433 msgid "aug-clear"
19434 msgstr ""
19435
19436 # type: verbatim
19437 #: ../fish/guestfish-actions.pod:176
19438 #, no-wrap
19439 msgid ""
19440 " aug-clear augpath\n"
19441 "\n"
19442 msgstr ""
19443
19444 # type: =head2
19445 #: ../fish/guestfish-actions.pod:181
19446 msgid "aug-close"
19447 msgstr ""
19448
19449 # type: verbatim
19450 #: ../fish/guestfish-actions.pod:183
19451 #, no-wrap
19452 msgid ""
19453 " aug-close\n"
19454 "\n"
19455 msgstr ""
19456
19457 # type: textblock
19458 #: ../fish/guestfish-actions.pod:185
19459 msgid ""
19460 "Close the current Augeas handle and free up any resources used by it.  After "
19461 "calling this, you have to call L</aug-init> again before you can use any "
19462 "other Augeas functions."
19463 msgstr ""
19464
19465 # type: =head2
19466 #: ../fish/guestfish-actions.pod:190
19467 msgid "aug-defnode"
19468 msgstr ""
19469
19470 # type: verbatim
19471 #: ../fish/guestfish-actions.pod:192
19472 #, no-wrap
19473 msgid ""
19474 " aug-defnode name expr val\n"
19475 "\n"
19476 msgstr ""
19477
19478 # type: textblock
19479 #: ../fish/guestfish-actions.pod:197
19480 msgid ""
19481 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19482 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19483 "containing that single node."
19484 msgstr ""
19485
19486 # type: =head2
19487 #: ../fish/guestfish-actions.pod:205
19488 msgid "aug-defvar"
19489 msgstr ""
19490
19491 # type: verbatim
19492 #: ../fish/guestfish-actions.pod:207
19493 #, no-wrap
19494 msgid ""
19495 " aug-defvar name expr\n"
19496 "\n"
19497 msgstr ""
19498
19499 # type: =head2
19500 #: ../fish/guestfish-actions.pod:216
19501 msgid "aug-get"
19502 msgstr ""
19503
19504 # type: verbatim
19505 #: ../fish/guestfish-actions.pod:218
19506 #, no-wrap
19507 msgid ""
19508 " aug-get augpath\n"
19509 "\n"
19510 msgstr ""
19511
19512 # type: =head2
19513 #: ../fish/guestfish-actions.pod:223
19514 msgid "aug-init"
19515 msgstr ""
19516
19517 # type: verbatim
19518 #: ../fish/guestfish-actions.pod:225
19519 #, no-wrap
19520 msgid ""
19521 " aug-init root flags\n"
19522 "\n"
19523 msgstr ""
19524
19525 # type: textblock
19526 #: ../fish/guestfish-actions.pod:231
19527 msgid "You must call this before using any other L</aug-*> commands."
19528 msgstr ""
19529
19530 # type: textblock
19531 #: ../fish/guestfish-actions.pod:266
19532 msgid "Do not load the tree in L</aug-init>."
19533 msgstr ""
19534
19535 # type: textblock
19536 #: ../fish/guestfish-actions.pod:270
19537 msgid "To close the handle, you can call L</aug-close>."
19538 msgstr ""
19539
19540 # type: =head2
19541 #: ../fish/guestfish-actions.pod:274
19542 msgid "aug-insert"
19543 msgstr ""
19544
19545 # type: verbatim
19546 #: ../fish/guestfish-actions.pod:276
19547 #, no-wrap
19548 msgid ""
19549 " aug-insert augpath label true|false\n"
19550 "\n"
19551 msgstr ""
19552
19553 # type: =head2
19554 #: ../fish/guestfish-actions.pod:286
19555 msgid "aug-load"
19556 msgstr ""
19557
19558 # type: verbatim
19559 #: ../fish/guestfish-actions.pod:288
19560 #, no-wrap
19561 msgid ""
19562 " aug-load\n"
19563 "\n"
19564 msgstr ""
19565
19566 # type: =head2
19567 #: ../fish/guestfish-actions.pod:295
19568 msgid "aug-ls"
19569 msgstr ""
19570
19571 # type: verbatim
19572 #: ../fish/guestfish-actions.pod:297
19573 #, no-wrap
19574 msgid ""
19575 " aug-ls augpath\n"
19576 "\n"
19577 msgstr ""
19578
19579 # type: textblock
19580 #: ../fish/guestfish-actions.pod:299
19581 msgid ""
19582 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19583 "resulting nodes into alphabetical order."
19584 msgstr ""
19585
19586 # type: =head2
19587 #: ../fish/guestfish-actions.pod:302
19588 msgid "aug-match"
19589 msgstr ""
19590
19591 # type: verbatim
19592 #: ../fish/guestfish-actions.pod:304
19593 #, no-wrap
19594 msgid ""
19595 " aug-match augpath\n"
19596 "\n"
19597 msgstr ""
19598
19599 # type: =head2
19600 #: ../fish/guestfish-actions.pod:310
19601 msgid "aug-mv"
19602 msgstr ""
19603
19604 # type: verbatim
19605 #: ../fish/guestfish-actions.pod:312
19606 #, no-wrap
19607 msgid ""
19608 " aug-mv src dest\n"
19609 "\n"
19610 msgstr ""
19611
19612 # type: =head2
19613 #: ../fish/guestfish-actions.pod:317
19614 msgid "aug-rm"
19615 msgstr ""
19616
19617 # type: verbatim
19618 #: ../fish/guestfish-actions.pod:319
19619 #, no-wrap
19620 msgid ""
19621 " aug-rm augpath\n"
19622 "\n"
19623 msgstr ""
19624
19625 # type: =head2
19626 #: ../fish/guestfish-actions.pod:325
19627 msgid "aug-save"
19628 msgstr ""
19629
19630 # type: verbatim
19631 #: ../fish/guestfish-actions.pod:327
19632 #, no-wrap
19633 msgid ""
19634 " aug-save\n"
19635 "\n"
19636 msgstr ""
19637
19638 # type: textblock
19639 #: ../fish/guestfish-actions.pod:331
19640 msgid ""
19641 "The flags which were passed to L</aug-init> affect exactly how files are "
19642 "saved."
19643 msgstr ""
19644
19645 # type: =head2
19646 #: ../fish/guestfish-actions.pod:334
19647 msgid "aug-set"
19648 msgstr ""
19649
19650 # type: verbatim
19651 #: ../fish/guestfish-actions.pod:336
19652 #, no-wrap
19653 msgid ""
19654 " aug-set augpath val\n"
19655 "\n"
19656 msgstr ""
19657
19658 # type: textblock
19659 #: ../fish/guestfish-actions.pod:340
19660 msgid ""
19661 "In the Augeas API, it is possible to clear a node by setting the value to "
19662 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19663 "this call.  Instead you must use the L</aug-clear> call."
19664 msgstr ""
19665
19666 # type: =head2
19667 #: ../fish/guestfish-actions.pod:345
19668 msgid "available"
19669 msgstr ""
19670
19671 # type: verbatim
19672 #: ../fish/guestfish-actions.pod:347
19673 #, no-wrap
19674 msgid ""
19675 " available 'groups ...'\n"
19676 "\n"
19677 msgstr ""
19678
19679 # type: textblock
19680 #: ../fish/guestfish-actions.pod:353
19681 msgid ""
19682 "The libguestfs groups, and the functions that those groups correspond to, "
19683 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19684 "runtime by calling L</available-all-groups>."
19685 msgstr ""
19686
19687 # type: textblock
19688 #: ../fish/guestfish-actions.pod:377
19689 msgid "You must call L</launch> before calling this function."
19690 msgstr ""
19691
19692 # type: textblock
19693 #: ../fish/guestfish-actions.pod:399
19694 msgid ""
19695 "This call was added in version C<1.0.80>.  In previous versions of "
19696 "libguestfs all you could do would be to speculatively execute a command to "
19697 "find out if the daemon implemented it.  See also L</version>."
19698 msgstr ""
19699
19700 # type: =head2
19701 #: ../fish/guestfish-actions.pod:406
19702 msgid "available-all-groups"
19703 msgstr ""
19704
19705 # type: verbatim
19706 #: ../fish/guestfish-actions.pod:408
19707 #, no-wrap
19708 msgid ""
19709 " available-all-groups\n"
19710 "\n"
19711 msgstr ""
19712
19713 # type: textblock
19714 #: ../fish/guestfish-actions.pod:410
19715 msgid ""
19716 "This command returns a list of all optional groups that this daemon knows "
19717 "about.  Note this returns both supported and unsupported groups.  To find "
19718 "out which ones the daemon can actually support you have to call L</"
19719 "available> on each member of the returned list."
19720 msgstr ""
19721
19722 # type: textblock
19723 #: ../fish/guestfish-actions.pod:416
19724 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19725 msgstr ""
19726
19727 # type: =head2
19728 #: ../fish/guestfish-actions.pod:418
19729 msgid "base64-in"
19730 msgstr ""
19731
19732 # type: verbatim
19733 #: ../fish/guestfish-actions.pod:420
19734 #, no-wrap
19735 msgid ""
19736 " base64-in (base64file|-) filename\n"
19737 "\n"
19738 msgstr ""
19739
19740 # type: textblock
19741 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19742 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19743 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19744 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19745 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19746 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19747 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19748 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19749 msgstr ""
19750
19751 # type: =head2
19752 #: ../fish/guestfish-actions.pod:427
19753 msgid "base64-out"
19754 msgstr ""
19755
19756 # type: verbatim
19757 #: ../fish/guestfish-actions.pod:429
19758 #, no-wrap
19759 msgid ""
19760 " base64-out filename (base64file|-)\n"
19761 "\n"
19762 msgstr ""
19763
19764 # type: =head2
19765 #: ../fish/guestfish-actions.pod:436
19766 msgid "blockdev-flushbufs"
19767 msgstr ""
19768
19769 # type: verbatim
19770 #: ../fish/guestfish-actions.pod:438
19771 #, no-wrap
19772 msgid ""
19773 " blockdev-flushbufs device\n"
19774 "\n"
19775 msgstr ""
19776
19777 # type: =head2
19778 #: ../fish/guestfish-actions.pod:445
19779 msgid "blockdev-getbsz"
19780 msgstr ""
19781
19782 # type: verbatim
19783 #: ../fish/guestfish-actions.pod:447
19784 #, no-wrap
19785 msgid ""
19786 " blockdev-getbsz device\n"
19787 "\n"
19788 msgstr ""
19789
19790 # type: =head2
19791 #: ../fish/guestfish-actions.pod:456
19792 msgid "blockdev-getro"
19793 msgstr ""
19794
19795 # type: verbatim
19796 #: ../fish/guestfish-actions.pod:458
19797 #, no-wrap
19798 msgid ""
19799 " blockdev-getro device\n"
19800 "\n"
19801 msgstr ""
19802
19803 # type: =head2
19804 #: ../fish/guestfish-actions.pod:465
19805 msgid "blockdev-getsize64"
19806 msgstr ""
19807
19808 # type: verbatim
19809 #: ../fish/guestfish-actions.pod:467
19810 #, no-wrap
19811 msgid ""
19812 " blockdev-getsize64 device\n"
19813 "\n"
19814 msgstr ""
19815
19816 # type: textblock
19817 #: ../fish/guestfish-actions.pod:471
19818 msgid "See also L</blockdev-getsz>."
19819 msgstr ""
19820
19821 # type: =head2
19822 #: ../fish/guestfish-actions.pod:475
19823 msgid "blockdev-getss"
19824 msgstr ""
19825
19826 # type: verbatim
19827 #: ../fish/guestfish-actions.pod:477
19828 #, no-wrap
19829 msgid ""
19830 " blockdev-getss device\n"
19831 "\n"
19832 msgstr ""
19833
19834 # type: textblock
19835 #: ../fish/guestfish-actions.pod:482
19836 msgid ""
19837 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19838 msgstr ""
19839
19840 # type: =head2
19841 #: ../fish/guestfish-actions.pod:487
19842 msgid "blockdev-getsz"
19843 msgstr ""
19844
19845 # type: verbatim
19846 #: ../fish/guestfish-actions.pod:489
19847 #, no-wrap
19848 msgid ""
19849 " blockdev-getsz device\n"
19850 "\n"
19851 msgstr ""
19852
19853 # type: textblock
19854 #: ../fish/guestfish-actions.pod:494
19855 msgid ""
19856 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19857 "blockdev-getsize64> for the more useful I<size in bytes>."
19858 msgstr ""
19859
19860 # type: =head2
19861 #: ../fish/guestfish-actions.pod:500
19862 msgid "blockdev-rereadpt"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #: ../fish/guestfish-actions.pod:502
19867 #, no-wrap
19868 msgid ""
19869 " blockdev-rereadpt device\n"
19870 "\n"
19871 msgstr ""
19872
19873 # type: =head2
19874 #: ../fish/guestfish-actions.pod:508
19875 msgid "blockdev-setbsz"
19876 msgstr ""
19877
19878 # type: verbatim
19879 #: ../fish/guestfish-actions.pod:510
19880 #, no-wrap
19881 msgid ""
19882 " blockdev-setbsz device blocksize\n"
19883 "\n"
19884 msgstr ""
19885
19886 # type: =head2
19887 #: ../fish/guestfish-actions.pod:519
19888 msgid "blockdev-setro"
19889 msgstr ""
19890
19891 # type: verbatim
19892 #: ../fish/guestfish-actions.pod:521
19893 #, no-wrap
19894 msgid ""
19895 " blockdev-setro device\n"
19896 "\n"
19897 msgstr ""
19898
19899 # type: =head2
19900 #: ../fish/guestfish-actions.pod:527
19901 msgid "blockdev-setrw"
19902 msgstr ""
19903
19904 # type: verbatim
19905 #: ../fish/guestfish-actions.pod:529
19906 #, no-wrap
19907 msgid ""
19908 " blockdev-setrw device\n"
19909 "\n"
19910 msgstr ""
19911
19912 # type: =head2
19913 #: ../fish/guestfish-actions.pod:535
19914 msgid "case-sensitive-path"
19915 msgstr ""
19916
19917 # type: verbatim
19918 #: ../fish/guestfish-actions.pod:537
19919 #, no-wrap
19920 msgid ""
19921 " case-sensitive-path path\n"
19922 "\n"
19923 msgstr ""
19924
19925 # type: textblock
19926 #: ../fish/guestfish-actions.pod:561
19927 msgid ""
19928 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19929 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19930 "the directories were originally created under Windows)."
19931 msgstr ""
19932
19933 # type: textblock
19934 #: ../fish/guestfish-actions.pod:569
19935 msgid "See also L</realpath>."
19936 msgstr ""
19937
19938 # type: =head2
19939 #: ../fish/guestfish-actions.pod:571
19940 msgid "cat"
19941 msgstr ""
19942
19943 # type: verbatim
19944 #: ../fish/guestfish-actions.pod:573
19945 #, no-wrap
19946 msgid ""
19947 " cat path\n"
19948 "\n"
19949 msgstr ""
19950
19951 # type: textblock
19952 #: ../fish/guestfish-actions.pod:577
19953 msgid ""
19954 "Note that this function cannot correctly handle binary files (specifically, "
19955 "files containing C<\\0> character which is treated as end of string).  For "
19956 "those you need to use the L</read-file> or L</download> functions which have "
19957 "a more complex interface."
19958 msgstr ""
19959
19960 # type: =head2
19961 #: ../fish/guestfish-actions.pod:585
19962 msgid "checksum"
19963 msgstr ""
19964
19965 # type: verbatim
19966 #: ../fish/guestfish-actions.pod:587
19967 #, no-wrap
19968 msgid ""
19969 " checksum csumtype path\n"
19970 "\n"
19971 msgstr ""
19972
19973 # type: textblock
19974 #: ../fish/guestfish-actions.pod:630
19975 msgid "To get the checksum for a device, use L</checksum-device>."
19976 msgstr ""
19977
19978 # type: textblock
19979 #: ../fish/guestfish-actions.pod:632
19980 msgid "To get the checksums for many files, use L</checksums-out>."
19981 msgstr ""
19982
19983 # type: =head2
19984 #: ../fish/guestfish-actions.pod:634
19985 msgid "checksum-device"
19986 msgstr ""
19987
19988 # type: verbatim
19989 #: ../fish/guestfish-actions.pod:636
19990 #, no-wrap
19991 msgid ""
19992 " checksum-device csumtype device\n"
19993 "\n"
19994 msgstr ""
19995
19996 # type: textblock
19997 #: ../fish/guestfish-actions.pod:638
19998 msgid ""
19999 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20000 "device named C<device>.  For the types of checksums supported see the L</"
20001 "checksum> command."
20002 msgstr ""
20003
20004 # type: =head2
20005 #: ../fish/guestfish-actions.pod:642
20006 msgid "checksums-out"
20007 msgstr ""
20008
20009 # type: verbatim
20010 #: ../fish/guestfish-actions.pod:644
20011 #, no-wrap
20012 msgid ""
20013 " checksums-out csumtype directory (sumsfile|-)\n"
20014 "\n"
20015 msgstr ""
20016
20017 # type: =head2
20018 #: ../fish/guestfish-actions.pod:660
20019 msgid "chmod"
20020 msgstr ""
20021
20022 # type: verbatim
20023 #: ../fish/guestfish-actions.pod:662
20024 #, no-wrap
20025 msgid ""
20026 " chmod mode path\n"
20027 "\n"
20028 msgstr ""
20029
20030 # type: =head2
20031 #: ../fish/guestfish-actions.pod:673
20032 msgid "chown"
20033 msgstr ""
20034
20035 # type: verbatim
20036 #: ../fish/guestfish-actions.pod:675
20037 #, no-wrap
20038 msgid ""
20039 " chown owner group path\n"
20040 "\n"
20041 msgstr ""
20042
20043 # type: =head2
20044 #: ../fish/guestfish-actions.pod:683
20045 msgid "command"
20046 msgstr ""
20047
20048 # type: verbatim
20049 #: ../fish/guestfish-actions.pod:685
20050 #, no-wrap
20051 msgid ""
20052 " command 'arguments ...'\n"
20053 "\n"
20054 msgstr ""
20055
20056 # type: textblock
20057 #: ../fish/guestfish-actions.pod:692
20058 msgid ""
20059 "The single parameter is an argv-style list of arguments.  The first element "
20060 "is the name of the program to run.  Subsequent elements are parameters.  The "
20061 "list must be non-empty (ie. must contain a program name).  Note that the "
20062 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20063 msgstr ""
20064
20065 # type: =head2
20066 #: ../fish/guestfish-actions.pod:720
20067 msgid "command-lines"
20068 msgstr ""
20069
20070 # type: verbatim
20071 #: ../fish/guestfish-actions.pod:722
20072 #, no-wrap
20073 msgid ""
20074 " command-lines 'arguments ...'\n"
20075 "\n"
20076 msgstr ""
20077
20078 # type: textblock
20079 #: ../fish/guestfish-actions.pod:724
20080 msgid ""
20081 "This is the same as L</command>, but splits the result into a list of lines."
20082 msgstr ""
20083
20084 # type: textblock
20085 #: ../fish/guestfish-actions.pod:727
20086 msgid "See also: L</sh-lines>"
20087 msgstr ""
20088
20089 # type: =head2
20090 #: ../fish/guestfish-actions.pod:732
20091 msgid "config"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #: ../fish/guestfish-actions.pod:734
20096 #, no-wrap
20097 msgid ""
20098 " config qemuparam qemuvalue\n"
20099 "\n"
20100 msgstr ""
20101
20102 # type: =head2
20103 #: ../fish/guestfish-actions.pod:745
20104 msgid "copy-size"
20105 msgstr ""
20106
20107 # type: verbatim
20108 #: ../fish/guestfish-actions.pod:747
20109 #, no-wrap
20110 msgid ""
20111 " copy-size src dest size\n"
20112 "\n"
20113 msgstr ""
20114
20115 # type: =head2
20116 #: ../fish/guestfish-actions.pod:755
20117 msgid "cp"
20118 msgstr ""
20119
20120 # type: verbatim
20121 #: ../fish/guestfish-actions.pod:757
20122 #, no-wrap
20123 msgid ""
20124 " cp src dest\n"
20125 "\n"
20126 msgstr ""
20127
20128 # type: =head2
20129 #: ../fish/guestfish-actions.pod:762
20130 msgid "cp-a"
20131 msgstr ""
20132
20133 # type: verbatim
20134 #: ../fish/guestfish-actions.pod:764
20135 #, no-wrap
20136 msgid ""
20137 " cp-a src dest\n"
20138 "\n"
20139 msgstr ""
20140
20141 # type: =head2
20142 #: ../fish/guestfish-actions.pod:769
20143 msgid "dd"
20144 msgstr ""
20145
20146 # type: verbatim
20147 #: ../fish/guestfish-actions.pod:771
20148 #, no-wrap
20149 msgid ""
20150 " dd src dest\n"
20151 "\n"
20152 msgstr ""
20153
20154 # type: textblock
20155 #: ../fish/guestfish-actions.pod:778
20156 msgid ""
20157 "If the destination is a device, it must be as large or larger than the "
20158 "source file or device, otherwise the copy will fail.  This command cannot do "
20159 "partial copies (see L</copy-size>)."
20160 msgstr ""
20161
20162 # type: =head2
20163 #: ../fish/guestfish-actions.pod:782
20164 msgid "df"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #: ../fish/guestfish-actions.pod:784
20169 #, no-wrap
20170 msgid ""
20171 " df\n"
20172 "\n"
20173 msgstr ""
20174
20175 # type: =head2
20176 #: ../fish/guestfish-actions.pod:792
20177 msgid "df-h"
20178 msgstr ""
20179
20180 # type: verbatim
20181 #: ../fish/guestfish-actions.pod:794
20182 #, no-wrap
20183 msgid ""
20184 " df-h\n"
20185 "\n"
20186 msgstr ""
20187
20188 # type: =head2
20189 #: ../fish/guestfish-actions.pod:803
20190 msgid "dmesg"
20191 msgstr ""
20192
20193 # type: verbatim
20194 #: ../fish/guestfish-actions.pod:805
20195 #, no-wrap
20196 msgid ""
20197 " dmesg\n"
20198 "\n"
20199 msgstr ""
20200
20201 # type: textblock
20202 #: ../fish/guestfish-actions.pod:811
20203 msgid ""
20204 "Another way to get the same information is to enable verbose messages with "
20205 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20206 "before running the program."
20207 msgstr ""
20208
20209 # type: =head2
20210 #: ../fish/guestfish-actions.pod:816
20211 msgid "download"
20212 msgstr ""
20213
20214 # type: verbatim
20215 #: ../fish/guestfish-actions.pod:818
20216 #, no-wrap
20217 msgid ""
20218 " download remotefilename (filename|-)\n"
20219 "\n"
20220 msgstr ""
20221
20222 # type: textblock
20223 #: ../fish/guestfish-actions.pod:825
20224 msgid "See also L</upload>, L</cat>."
20225 msgstr ""
20226
20227 # type: =head2
20228 #: ../fish/guestfish-actions.pod:829
20229 msgid "download-offset"
20230 msgstr ""
20231
20232 # type: verbatim
20233 #: ../fish/guestfish-actions.pod:831
20234 #, no-wrap
20235 msgid ""
20236 " download-offset remotefilename (filename|-) offset size\n"
20237 "\n"
20238 msgstr ""
20239
20240 # type: textblock
20241 #: ../fish/guestfish-actions.pod:839
20242 msgid ""
20243 "Note that there is no limit on the amount of data that can be downloaded "
20244 "with this call, unlike with L</pread>, and this call always reads the full "
20245 "amount unless an error occurs."
20246 msgstr ""
20247
20248 # type: textblock
20249 #: ../fish/guestfish-actions.pod:844
20250 msgid "See also L</download>, L</pread>."
20251 msgstr ""
20252
20253 # type: =head2
20254 #: ../fish/guestfish-actions.pod:848
20255 msgid "drop-caches"
20256 msgstr ""
20257
20258 # type: verbatim
20259 #: ../fish/guestfish-actions.pod:850
20260 #, no-wrap
20261 msgid ""
20262 " drop-caches whattodrop\n"
20263 "\n"
20264 msgstr ""
20265
20266 # type: =head2
20267 #: ../fish/guestfish-actions.pod:862
20268 msgid "du"
20269 msgstr ""
20270
20271 # type: verbatim
20272 #: ../fish/guestfish-actions.pod:864
20273 #, no-wrap
20274 msgid ""
20275 " du path\n"
20276 "\n"
20277 msgstr ""
20278
20279 # type: =head2
20280 #: ../fish/guestfish-actions.pod:876
20281 msgid "e2fsck-f"
20282 msgstr ""
20283
20284 # type: verbatim
20285 #: ../fish/guestfish-actions.pod:878
20286 #, no-wrap
20287 msgid ""
20288 " e2fsck-f device\n"
20289 "\n"
20290 msgstr ""
20291
20292 # type: textblock
20293 #: ../fish/guestfish-actions.pod:884
20294 msgid ""
20295 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20296 "should use L</fsck>."
20297 msgstr ""
20298
20299 # type: =head2
20300 #: ../fish/guestfish-actions.pod:887
20301 msgid "echo-daemon"
20302 msgstr ""
20303
20304 # type: verbatim
20305 #: ../fish/guestfish-actions.pod:889
20306 #, no-wrap
20307 msgid ""
20308 " echo-daemon 'words ...'\n"
20309 "\n"
20310 msgstr ""
20311
20312 # type: textblock
20313 #: ../fish/guestfish-actions.pod:896
20314 msgid "See also L</ping-daemon>."
20315 msgstr ""
20316
20317 # type: =head2
20318 #: ../fish/guestfish-actions.pod:898
20319 msgid "egrep"
20320 msgstr ""
20321
20322 # type: verbatim
20323 #: ../fish/guestfish-actions.pod:900
20324 #, no-wrap
20325 msgid ""
20326 " egrep regex path\n"
20327 "\n"
20328 msgstr ""
20329
20330 # type: =head2
20331 #: ../fish/guestfish-actions.pod:908
20332 msgid "egrepi"
20333 msgstr ""
20334
20335 # type: verbatim
20336 #: ../fish/guestfish-actions.pod:910
20337 #, no-wrap
20338 msgid ""
20339 " egrepi regex path\n"
20340 "\n"
20341 msgstr ""
20342
20343 # type: =head2
20344 #: ../fish/guestfish-actions.pod:918
20345 msgid "equal"
20346 msgstr ""
20347
20348 # type: verbatim
20349 #: ../fish/guestfish-actions.pod:920
20350 #, no-wrap
20351 msgid ""
20352 " equal file1 file2\n"
20353 "\n"
20354 msgstr ""
20355
20356 # type: =head2
20357 #: ../fish/guestfish-actions.pod:927
20358 msgid "exists"
20359 msgstr ""
20360
20361 # type: verbatim
20362 #: ../fish/guestfish-actions.pod:929
20363 #, no-wrap
20364 msgid ""
20365 " exists path\n"
20366 "\n"
20367 msgstr ""
20368
20369 # type: textblock
20370 #: ../fish/guestfish-actions.pod:934
20371 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20372 msgstr ""
20373
20374 # type: =head2
20375 #: ../fish/guestfish-actions.pod:936
20376 msgid "fallocate"
20377 msgstr ""
20378
20379 # type: verbatim
20380 #: ../fish/guestfish-actions.pod:938
20381 #, no-wrap
20382 msgid ""
20383 " fallocate path len\n"
20384 "\n"
20385 msgstr ""
20386
20387 # type: =head2
20388 #: ../fish/guestfish-actions.pod:955
20389 msgid "fallocate64"
20390 msgstr ""
20391
20392 # type: verbatim
20393 #: ../fish/guestfish-actions.pod:957
20394 #, no-wrap
20395 msgid ""
20396 " fallocate64 path len\n"
20397 "\n"
20398 msgstr ""
20399
20400 # type: textblock
20401 #: ../fish/guestfish-actions.pod:963
20402 msgid ""
20403 "Note that this call allocates disk blocks for the file.  To create a sparse "
20404 "file use L</truncate-size> instead."
20405 msgstr ""
20406
20407 # type: textblock
20408 #: ../fish/guestfish-actions.pod:966
20409 msgid ""
20410 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20411 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20412 "maximum size of files created through that call to 1GB."
20413 msgstr ""
20414
20415 # type: =head2
20416 #: ../fish/guestfish-actions.pod:975
20417 msgid "fgrep"
20418 msgstr ""
20419
20420 # type: verbatim
20421 #: ../fish/guestfish-actions.pod:977
20422 #, no-wrap
20423 msgid ""
20424 " fgrep pattern path\n"
20425 "\n"
20426 msgstr ""
20427
20428 # type: =head2
20429 #: ../fish/guestfish-actions.pod:985
20430 msgid "fgrepi"
20431 msgstr ""
20432
20433 # type: verbatim
20434 #: ../fish/guestfish-actions.pod:987
20435 #, no-wrap
20436 msgid ""
20437 " fgrepi pattern path\n"
20438 "\n"
20439 msgstr ""
20440
20441 # type: =head2
20442 #: ../fish/guestfish-actions.pod:995
20443 msgid "file"
20444 msgstr ""
20445
20446 # type: verbatim
20447 #: ../fish/guestfish-actions.pod:997
20448 #, no-wrap
20449 msgid ""
20450 " file path\n"
20451 "\n"
20452 msgstr ""
20453
20454 # type: textblock
20455 #: ../fish/guestfish-actions.pod:1009
20456 msgid ""
20457 "This command can also be used on C</dev/> devices (and partitions, LV "
20458 "names).  You can for example use this to determine if a device contains a "
20459 "filesystem, although it's usually better to use L</vfs-type>."
20460 msgstr ""
20461
20462 # type: =head2
20463 #: ../fish/guestfish-actions.pod:1019
20464 msgid "file-architecture"
20465 msgstr ""
20466
20467 # type: verbatim
20468 #: ../fish/guestfish-actions.pod:1021
20469 #, no-wrap
20470 msgid ""
20471 " file-architecture filename\n"
20472 "\n"
20473 msgstr ""
20474
20475 # type: =head2
20476 #: ../fish/guestfish-actions.pod:1124
20477 msgid "filesize"
20478 msgstr ""
20479
20480 # type: verbatim
20481 #: ../fish/guestfish-actions.pod:1126
20482 #, no-wrap
20483 msgid ""
20484 " filesize file\n"
20485 "\n"
20486 msgstr ""
20487
20488 # type: textblock
20489 #: ../fish/guestfish-actions.pod:1130
20490 msgid ""
20491 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20492 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20493 msgstr ""
20494
20495 # type: =head2
20496 #: ../fish/guestfish-actions.pod:1134
20497 msgid "fill"
20498 msgstr ""
20499
20500 # type: verbatim
20501 #: ../fish/guestfish-actions.pod:1136
20502 #, no-wrap
20503 msgid ""
20504 " fill c len path\n"
20505 "\n"
20506 msgstr ""
20507
20508 # type: textblock
20509 #: ../fish/guestfish-actions.pod:1142
20510 msgid ""
20511 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20512 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20513 "L</fill-pattern>."
20514 msgstr ""
20515
20516 # type: =head2
20517 #: ../fish/guestfish-actions.pod:1147
20518 msgid "fill-pattern"
20519 msgstr ""
20520
20521 # type: verbatim
20522 #: ../fish/guestfish-actions.pod:1149
20523 #, no-wrap
20524 msgid ""
20525 " fill-pattern pattern len path\n"
20526 "\n"
20527 msgstr ""
20528
20529 # type: textblock
20530 #: ../fish/guestfish-actions.pod:1151
20531 msgid ""
20532 "This function is like L</fill> except that it creates a new file of length "
20533 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20534 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20535 "bytes."
20536 msgstr ""
20537
20538 # type: =head2
20539 #: ../fish/guestfish-actions.pod:1156
20540 msgid "find"
20541 msgstr ""
20542
20543 # type: verbatim
20544 #: ../fish/guestfish-actions.pod:1158
20545 #, no-wrap
20546 msgid ""
20547 " find directory\n"
20548 "\n"
20549 msgstr ""
20550
20551 # type: textblock
20552 #: ../fish/guestfish-actions.pod:1172
20553 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20554 msgstr ""
20555
20556 # type: textblock
20557 #: ../fish/guestfish-actions.pod:1185
20558 msgid "See also L</find0>."
20559 msgstr ""
20560
20561 # type: =head2
20562 #: ../fish/guestfish-actions.pod:1190
20563 msgid "find0"
20564 msgstr ""
20565
20566 # type: verbatim
20567 #: ../fish/guestfish-actions.pod:1192
20568 #, no-wrap
20569 msgid ""
20570 " find0 directory (files|-)\n"
20571 "\n"
20572 msgstr ""
20573
20574 # type: textblock
20575 #: ../fish/guestfish-actions.pod:1198
20576 msgid ""
20577 "This command works the same way as L</find> with the following exceptions:"
20578 msgstr ""
20579
20580 # type: =head2
20581 #: ../fish/guestfish-actions.pod:1225
20582 msgid "findfs-label"
20583 msgstr ""
20584
20585 # type: verbatim
20586 #: ../fish/guestfish-actions.pod:1227
20587 #, no-wrap
20588 msgid ""
20589 " findfs-label label\n"
20590 "\n"
20591 msgstr ""
20592
20593 # type: textblock
20594 #: ../fish/guestfish-actions.pod:1233
20595 msgid "To find the label of a filesystem, use L</vfs-label>."
20596 msgstr ""
20597
20598 # type: =head2
20599 #: ../fish/guestfish-actions.pod:1235
20600 msgid "findfs-uuid"
20601 msgstr ""
20602
20603 # type: verbatim
20604 #: ../fish/guestfish-actions.pod:1237
20605 #, no-wrap
20606 msgid ""
20607 " findfs-uuid uuid\n"
20608 "\n"
20609 msgstr ""
20610
20611 # type: textblock
20612 #: ../fish/guestfish-actions.pod:1243
20613 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20614 msgstr ""
20615
20616 # type: =head2
20617 #: ../fish/guestfish-actions.pod:1245
20618 msgid "fsck"
20619 msgstr ""
20620
20621 # type: verbatim
20622 #: ../fish/guestfish-actions.pod:1247
20623 #, no-wrap
20624 msgid ""
20625 " fsck fstype device\n"
20626 "\n"
20627 msgstr ""
20628
20629 # type: =head2
20630 #: ../fish/guestfish-actions.pod:1277
20631 msgid "get-append"
20632 msgstr ""
20633
20634 # type: verbatim
20635 #: ../fish/guestfish-actions.pod:1279
20636 #, no-wrap
20637 msgid ""
20638 " get-append\n"
20639 "\n"
20640 msgstr ""
20641
20642 # type: =head2
20643 #: ../fish/guestfish-actions.pod:1286
20644 msgid "get-autosync"
20645 msgstr ""
20646
20647 # type: verbatim
20648 #: ../fish/guestfish-actions.pod:1288
20649 #, no-wrap
20650 msgid ""
20651 " get-autosync\n"
20652 "\n"
20653 msgstr ""
20654
20655 # type: =head2
20656 #: ../fish/guestfish-actions.pod:1292
20657 msgid "get-direct"
20658 msgstr ""
20659
20660 # type: verbatim
20661 #: ../fish/guestfish-actions.pod:1294
20662 #, no-wrap
20663 msgid ""
20664 " get-direct\n"
20665 "\n"
20666 msgstr ""
20667
20668 # type: =head2
20669 #: ../fish/guestfish-actions.pod:1298
20670 msgid "get-e2label"
20671 msgstr ""
20672
20673 # type: verbatim
20674 #: ../fish/guestfish-actions.pod:1300
20675 #, no-wrap
20676 msgid ""
20677 " get-e2label device\n"
20678 "\n"
20679 msgstr ""
20680
20681 # type: =head2
20682 #: ../fish/guestfish-actions.pod:1312
20683 msgid "get-e2uuid"
20684 msgstr ""
20685
20686 # type: verbatim
20687 #: ../fish/guestfish-actions.pod:1314
20688 #, no-wrap
20689 msgid ""
20690 " get-e2uuid device\n"
20691 "\n"
20692 msgstr ""
20693
20694 # type: =head2
20695 #: ../fish/guestfish-actions.pod:1326
20696 msgid "get-memsize"
20697 msgstr ""
20698
20699 # type: verbatim
20700 #: ../fish/guestfish-actions.pod:1328
20701 #, no-wrap
20702 msgid ""
20703 " get-memsize\n"
20704 "\n"
20705 msgstr ""
20706
20707 # type: textblock
20708 #: ../fish/guestfish-actions.pod:1333
20709 msgid ""
20710 "If L</set-memsize> was not called on this handle, and if "
20711 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20712 "value for memsize."
20713 msgstr ""
20714
20715 # type: =head2
20716 #: ../fish/guestfish-actions.pod:1340
20717 msgid "get-network"
20718 msgstr ""
20719
20720 # type: verbatim
20721 #: ../fish/guestfish-actions.pod:1342
20722 #, no-wrap
20723 msgid ""
20724 " get-network\n"
20725 "\n"
20726 msgstr ""
20727
20728 # type: =head2
20729 #: ../fish/guestfish-actions.pod:1346
20730 msgid "get-path"
20731 msgstr ""
20732
20733 # type: verbatim
20734 #: ../fish/guestfish-actions.pod:1348
20735 #, no-wrap
20736 msgid ""
20737 " get-path\n"
20738 "\n"
20739 msgstr ""
20740
20741 # type: =head2
20742 #: ../fish/guestfish-actions.pod:1355
20743 msgid "get-pid"
20744 msgstr ""
20745
20746 # type: =head2
20747 #: ../fish/guestfish-actions.pod:1357
20748 msgid "pid"
20749 msgstr ""
20750
20751 # type: verbatim
20752 #: ../fish/guestfish-actions.pod:1359
20753 #, no-wrap
20754 msgid ""
20755 " get-pid\n"
20756 "\n"
20757 msgstr ""
20758
20759 # type: =head2
20760 #: ../fish/guestfish-actions.pod:1366
20761 msgid "get-qemu"
20762 msgstr ""
20763
20764 # type: verbatim
20765 #: ../fish/guestfish-actions.pod:1368
20766 #, no-wrap
20767 msgid ""
20768 " get-qemu\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: =head2
20773 #: ../fish/guestfish-actions.pod:1375
20774 msgid "get-recovery-proc"
20775 msgstr ""
20776
20777 # type: verbatim
20778 #: ../fish/guestfish-actions.pod:1377
20779 #, no-wrap
20780 msgid ""
20781 " get-recovery-proc\n"
20782 "\n"
20783 msgstr ""
20784
20785 # type: =head2
20786 #: ../fish/guestfish-actions.pod:1381
20787 msgid "get-selinux"
20788 msgstr ""
20789
20790 # type: verbatim
20791 #: ../fish/guestfish-actions.pod:1383
20792 #, no-wrap
20793 msgid ""
20794 " get-selinux\n"
20795 "\n"
20796 msgstr ""
20797
20798 # type: textblock
20799 #: ../fish/guestfish-actions.pod:1385
20800 msgid ""
20801 "This returns the current setting of the selinux flag which is passed to the "
20802 "appliance at boot time.  See L</set-selinux>."
20803 msgstr ""
20804
20805 # type: =head2
20806 #: ../fish/guestfish-actions.pod:1391
20807 msgid "get-state"
20808 msgstr ""
20809
20810 # type: verbatim
20811 #: ../fish/guestfish-actions.pod:1393
20812 #, no-wrap
20813 msgid ""
20814 " get-state\n"
20815 "\n"
20816 msgstr ""
20817
20818 # type: =head2
20819 #: ../fish/guestfish-actions.pod:1400
20820 msgid "get-trace"
20821 msgstr ""
20822
20823 # type: verbatim
20824 #: ../fish/guestfish-actions.pod:1402
20825 #, no-wrap
20826 msgid ""
20827 " get-trace\n"
20828 "\n"
20829 msgstr ""
20830
20831 # type: =head2
20832 #: ../fish/guestfish-actions.pod:1406
20833 msgid "get-umask"
20834 msgstr ""
20835
20836 # type: verbatim
20837 #: ../fish/guestfish-actions.pod:1408
20838 #, no-wrap
20839 msgid ""
20840 " get-umask\n"
20841 "\n"
20842 msgstr ""
20843
20844 # type: textblock
20845 #: ../fish/guestfish-actions.pod:1410
20846 msgid ""
20847 "Return the current umask.  By default the umask is C<022> unless it has been "
20848 "set by calling L</umask>."
20849 msgstr ""
20850
20851 # type: =head2
20852 #: ../fish/guestfish-actions.pod:1413
20853 msgid "get-verbose"
20854 msgstr ""
20855
20856 # type: verbatim
20857 #: ../fish/guestfish-actions.pod:1415
20858 #, no-wrap
20859 msgid ""
20860 " get-verbose\n"
20861 "\n"
20862 msgstr ""
20863
20864 # type: =head2
20865 #: ../fish/guestfish-actions.pod:1419
20866 msgid "getcon"
20867 msgstr ""
20868
20869 # type: verbatim
20870 #: ../fish/guestfish-actions.pod:1421
20871 #, no-wrap
20872 msgid ""
20873 " getcon\n"
20874 "\n"
20875 msgstr ""
20876
20877 # type: textblock
20878 #: ../fish/guestfish-actions.pod:1425
20879 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20880 msgstr ""
20881
20882 # type: =head2
20883 #: ../fish/guestfish-actions.pod:1428
20884 msgid "getxattrs"
20885 msgstr ""
20886
20887 # type: verbatim
20888 #: ../fish/guestfish-actions.pod:1430
20889 #, no-wrap
20890 msgid ""
20891 " getxattrs path\n"
20892 "\n"
20893 msgstr ""
20894
20895 # type: textblock
20896 #: ../fish/guestfish-actions.pod:1438
20897 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20898 msgstr ""
20899
20900 # type: =head2
20901 #: ../fish/guestfish-actions.pod:1440
20902 msgid "glob-expand"
20903 msgstr ""
20904
20905 # type: verbatim
20906 #: ../fish/guestfish-actions.pod:1442
20907 #, no-wrap
20908 msgid ""
20909 " glob-expand pattern\n"
20910 "\n"
20911 msgstr ""
20912
20913 # type: =head2
20914 #: ../fish/guestfish-actions.pod:1455
20915 msgid "grep"
20916 msgstr ""
20917
20918 # type: verbatim
20919 #: ../fish/guestfish-actions.pod:1457
20920 #, no-wrap
20921 msgid ""
20922 " grep regex path\n"
20923 "\n"
20924 msgstr ""
20925
20926 # type: =head2
20927 #: ../fish/guestfish-actions.pod:1465
20928 msgid "grepi"
20929 msgstr ""
20930
20931 # type: verbatim
20932 #: ../fish/guestfish-actions.pod:1467
20933 #, no-wrap
20934 msgid ""
20935 " grepi regex path\n"
20936 "\n"
20937 msgstr ""
20938
20939 # type: =head2
20940 #: ../fish/guestfish-actions.pod:1475
20941 msgid "grub-install"
20942 msgstr ""
20943
20944 # type: verbatim
20945 #: ../fish/guestfish-actions.pod:1477
20946 #, no-wrap
20947 msgid ""
20948 " grub-install root device\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: =head2
20953 #: ../fish/guestfish-actions.pod:1493
20954 msgid "head"
20955 msgstr ""
20956
20957 # type: verbatim
20958 #: ../fish/guestfish-actions.pod:1495
20959 #, no-wrap
20960 msgid ""
20961 " head path\n"
20962 "\n"
20963 msgstr ""
20964
20965 # type: =head2
20966 #: ../fish/guestfish-actions.pod:1503
20967 msgid "head-n"
20968 msgstr ""
20969
20970 # type: verbatim
20971 #: ../fish/guestfish-actions.pod:1505
20972 #, no-wrap
20973 msgid ""
20974 " head-n nrlines path\n"
20975 "\n"
20976 msgstr ""
20977
20978 # type: =head2
20979 #: ../fish/guestfish-actions.pod:1518
20980 msgid "hexdump"
20981 msgstr ""
20982
20983 # type: verbatim
20984 #: ../fish/guestfish-actions.pod:1520
20985 #, no-wrap
20986 msgid ""
20987 " hexdump path\n"
20988 "\n"
20989 msgstr ""
20990
20991 # type: =head2
20992 #: ../fish/guestfish-actions.pod:1528
20993 msgid "initrd-cat"
20994 msgstr ""
20995
20996 # type: verbatim
20997 #: ../fish/guestfish-actions.pod:1530
20998 #, no-wrap
20999 msgid ""
21000 " initrd-cat initrdpath filename\n"
21001 "\n"
21002 msgstr ""
21003
21004 # type: textblock
21005 #: ../fish/guestfish-actions.pod:1542
21006 msgid "See also L</initrd-list>."
21007 msgstr ""
21008
21009 # type: =head2
21010 #: ../fish/guestfish-actions.pod:1547
21011 msgid "initrd-list"
21012 msgstr ""
21013
21014 # type: verbatim
21015 #: ../fish/guestfish-actions.pod:1549
21016 #, no-wrap
21017 msgid ""
21018 " initrd-list path\n"
21019 "\n"
21020 msgstr ""
21021
21022 # type: =head2
21023 #: ../fish/guestfish-actions.pod:1561
21024 msgid "inotify-add-watch"
21025 msgstr ""
21026
21027 # type: verbatim
21028 #: ../fish/guestfish-actions.pod:1563
21029 #, no-wrap
21030 msgid ""
21031 " inotify-add-watch path mask\n"
21032 "\n"
21033 msgstr ""
21034
21035 # type: =head2
21036 #: ../fish/guestfish-actions.pod:1575
21037 msgid "inotify-close"
21038 msgstr ""
21039
21040 # type: verbatim
21041 #: ../fish/guestfish-actions.pod:1577
21042 #, no-wrap
21043 msgid ""
21044 " inotify-close\n"
21045 "\n"
21046 msgstr ""
21047
21048 # type: =head2
21049 #: ../fish/guestfish-actions.pod:1583
21050 msgid "inotify-files"
21051 msgstr ""
21052
21053 # type: verbatim
21054 #: ../fish/guestfish-actions.pod:1585
21055 #, no-wrap
21056 msgid ""
21057 " inotify-files\n"
21058 "\n"
21059 msgstr ""
21060
21061 # type: textblock
21062 #: ../fish/guestfish-actions.pod:1587
21063 msgid ""
21064 "This function is a helpful wrapper around L</inotify-read> which just "
21065 "returns a list of pathnames of objects that were touched.  The returned "
21066 "pathnames are sorted and deduplicated."
21067 msgstr ""
21068
21069 # type: =head2
21070 #: ../fish/guestfish-actions.pod:1591
21071 msgid "inotify-init"
21072 msgstr ""
21073
21074 # type: verbatim
21075 #: ../fish/guestfish-actions.pod:1593
21076 #, no-wrap
21077 msgid ""
21078 " inotify-init maxevents\n"
21079 "\n"
21080 msgstr ""
21081
21082 # type: textblock
21083 #: ../fish/guestfish-actions.pod:1599
21084 msgid ""
21085 "C<maxevents> is the maximum number of events which will be queued up between "
21086 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21087 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21088 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21089 "but records the fact that it threw them away by setting a flag "
21090 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21091 msgstr ""
21092
21093 # type: textblock
21094 #: ../fish/guestfish-actions.pod:1609
21095 msgid ""
21096 "Before any events are generated, you have to add some watches to the "
21097 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21098 "L</inotify-watch-all>."
21099 msgstr ""
21100
21101 # type: textblock
21102 #: ../fish/guestfish-actions.pod:1615
21103 msgid ""
21104 "Queued up events should be read periodically by calling L</inotify-read> (or "
21105 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21106 "If you don't read the events out often enough then you risk the internal "
21107 "queue overflowing."
21108 msgstr ""
21109
21110 # type: textblock
21111 #: ../fish/guestfish-actions.pod:1622
21112 msgid ""
21113 "The handle should be closed after use by calling L</inotify-close>.  This "
21114 "also removes any watches automatically."
21115 msgstr ""
21116
21117 # type: =head2
21118 #: ../fish/guestfish-actions.pod:1631
21119 msgid "inotify-read"
21120 msgstr ""
21121
21122 # type: verbatim
21123 #: ../fish/guestfish-actions.pod:1633
21124 #, no-wrap
21125 msgid ""
21126 " inotify-read\n"
21127 "\n"
21128 msgstr ""
21129
21130 # type: =head2
21131 #: ../fish/guestfish-actions.pod:1646
21132 msgid "inotify-rm-watch"
21133 msgstr ""
21134
21135 # type: verbatim
21136 #: ../fish/guestfish-actions.pod:1648
21137 #, no-wrap
21138 msgid ""
21139 " inotify-rm-watch wd\n"
21140 "\n"
21141 msgstr ""
21142
21143 # type: textblock
21144 #: ../fish/guestfish-actions.pod:1650
21145 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21146 msgstr ""
21147
21148 # type: =head2
21149 #: ../fish/guestfish-actions.pod:1653
21150 msgid "inspect-get-arch"
21151 msgstr ""
21152
21153 # type: verbatim
21154 #: ../fish/guestfish-actions.pod:1655
21155 #, no-wrap
21156 msgid ""
21157 " inspect-get-arch root\n"
21158 "\n"
21159 msgstr ""
21160
21161 # type: textblock
21162 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21163 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21164 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21165 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21166 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21167 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21168 #: ../fish/guestfish-actions.pod:1966
21169 msgid ""
21170 "This function should only be called with a root device string as returned by "
21171 "L</inspect-os>."
21172 msgstr ""
21173
21174 # type: textblock
21175 #: ../fish/guestfish-actions.pod:1660
21176 msgid ""
21177 "This returns the architecture of the inspected operating system.  The "
21178 "possible return values are listed under L</file-architecture>."
21179 msgstr ""
21180
21181 # type: =head2
21182 #: ../fish/guestfish-actions.pod:1669
21183 msgid "inspect-get-distro"
21184 msgstr ""
21185
21186 # type: verbatim
21187 #: ../fish/guestfish-actions.pod:1671
21188 #, no-wrap
21189 msgid ""
21190 " inspect-get-distro root\n"
21191 "\n"
21192 msgstr ""
21193
21194 # type: =head2
21195 #: ../fish/guestfish-actions.pod:1743
21196 msgid "inspect-get-filesystems"
21197 msgstr ""
21198
21199 # type: verbatim
21200 #: ../fish/guestfish-actions.pod:1745
21201 #, no-wrap
21202 msgid ""
21203 " inspect-get-filesystems root\n"
21204 "\n"
21205 msgstr ""
21206
21207 # type: textblock
21208 #: ../fish/guestfish-actions.pod:1758
21209 msgid ""
21210 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21211 "get-mountpoints>."
21212 msgstr ""
21213
21214 # type: =head2
21215 #: ../fish/guestfish-actions.pod:1761
21216 msgid "inspect-get-hostname"
21217 msgstr ""
21218
21219 # type: verbatim
21220 #: ../fish/guestfish-actions.pod:1763
21221 #, no-wrap
21222 msgid ""
21223 " inspect-get-hostname root\n"
21224 "\n"
21225 msgstr ""
21226
21227 # type: =head2
21228 #: ../fish/guestfish-actions.pod:1776
21229 msgid "inspect-get-major-version"
21230 msgstr ""
21231
21232 # type: verbatim
21233 #: ../fish/guestfish-actions.pod:1778
21234 #, no-wrap
21235 msgid ""
21236 " inspect-get-major-version root\n"
21237 "\n"
21238 msgstr ""
21239
21240 # type: =head2
21241 #: ../fish/guestfish-actions.pod:1797
21242 msgid "inspect-get-minor-version"
21243 msgstr ""
21244
21245 # type: verbatim
21246 #: ../fish/guestfish-actions.pod:1799
21247 #, no-wrap
21248 msgid ""
21249 " inspect-get-minor-version root\n"
21250 "\n"
21251 msgstr ""
21252
21253 # type: textblock
21254 #: ../fish/guestfish-actions.pod:1809
21255 msgid ""
21256 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21257 "get-major-version>."
21258 msgstr ""
21259
21260 # type: =head2
21261 #: ../fish/guestfish-actions.pod:1812
21262 msgid "inspect-get-mountpoints"
21263 msgstr ""
21264
21265 # type: verbatim
21266 #: ../fish/guestfish-actions.pod:1814
21267 #, no-wrap
21268 msgid ""
21269 " inspect-get-mountpoints root\n"
21270 "\n"
21271 msgstr ""
21272
21273 # type: textblock
21274 #: ../fish/guestfish-actions.pod:1832
21275 msgid ""
21276 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21277 "get-filesystems>."
21278 msgstr ""
21279
21280 # type: =head2
21281 #: ../fish/guestfish-actions.pod:1835
21282 msgid "inspect-get-package-format"
21283 msgstr ""
21284
21285 # type: verbatim
21286 #: ../fish/guestfish-actions.pod:1837
21287 #, no-wrap
21288 msgid ""
21289 " inspect-get-package-format root\n"
21290 "\n"
21291 msgstr ""
21292
21293 # type: textblock
21294 #: ../fish/guestfish-actions.pod:1842
21295 msgid ""
21296 "This function and L</inspect-get-package-management> return the package "
21297 "format and package management tool used by the inspected operating system.  "
21298 "For example for Fedora these functions would return C<rpm> (package format) "
21299 "and C<yum> (package management)."
21300 msgstr ""
21301
21302 # type: =head2
21303 #: ../fish/guestfish-actions.pod:1857
21304 msgid "inspect-get-package-management"
21305 msgstr ""
21306
21307 # type: verbatim
21308 #: ../fish/guestfish-actions.pod:1859
21309 #, no-wrap
21310 msgid ""
21311 " inspect-get-package-management root\n"
21312 "\n"
21313 msgstr ""
21314
21315 # type: textblock
21316 #: ../fish/guestfish-actions.pod:1864
21317 msgid ""
21318 "L</inspect-get-package-format> and this function return the package format "
21319 "and package management tool used by the inspected operating system.  For "
21320 "example for Fedora these functions would return C<rpm> (package format) and "
21321 "C<yum> (package management)."
21322 msgstr ""
21323
21324 # type: =head2
21325 #: ../fish/guestfish-actions.pod:1881
21326 msgid "inspect-get-product-name"
21327 msgstr ""
21328
21329 # type: verbatim
21330 #: ../fish/guestfish-actions.pod:1883
21331 #, no-wrap
21332 msgid ""
21333 " inspect-get-product-name root\n"
21334 "\n"
21335 msgstr ""
21336
21337 # type: =head2
21338 #: ../fish/guestfish-actions.pod:1898
21339 msgid "inspect-get-roots"
21340 msgstr ""
21341
21342 # type: verbatim
21343 #: ../fish/guestfish-actions.pod:1900
21344 #, no-wrap
21345 msgid ""
21346 " inspect-get-roots\n"
21347 "\n"
21348 msgstr ""
21349
21350 # type: textblock
21351 #: ../fish/guestfish-actions.pod:1902
21352 msgid ""
21353 "This function is a convenient way to get the list of root devices, as "
21354 "returned from a previous call to L</inspect-os>, but without redoing the "
21355 "whole inspection process."
21356 msgstr ""
21357
21358 # type: textblock
21359 #: ../fish/guestfish-actions.pod:1906
21360 msgid ""
21361 "This returns an empty list if either no root devices were found or the "
21362 "caller has not called L</inspect-os>."
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:1911
21367 msgid "inspect-get-type"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:1913
21372 #, no-wrap
21373 msgid ""
21374 " inspect-get-type root\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: =head2
21379 #: ../fish/guestfish-actions.pod:1946
21380 msgid "inspect-get-windows-systemroot"
21381 msgstr ""
21382
21383 # type: verbatim
21384 #: ../fish/guestfish-actions.pod:1948
21385 #, no-wrap
21386 msgid ""
21387 " inspect-get-windows-systemroot root\n"
21388 "\n"
21389 msgstr ""
21390
21391 # type: =head2
21392 #: ../fish/guestfish-actions.pod:1962
21393 msgid "inspect-list-applications"
21394 msgstr ""
21395
21396 # type: verbatim
21397 #: ../fish/guestfish-actions.pod:1964
21398 #, no-wrap
21399 msgid ""
21400 " inspect-list-applications root\n"
21401 "\n"
21402 msgstr ""
21403
21404 # type: textblock
21405 #: ../fish/guestfish-actions.pod:1971
21406 msgid ""
21407 "I<Note:> This call works differently from other parts of the inspection "
21408 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21409 "then mount up the disks, before calling this.  Listing applications is a "
21410 "significantly more difficult operation which requires access to the full "
21411 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21412 "are just returning data cached in the libguestfs handle, this call actually "
21413 "reads parts of the mounted filesystems during the call."
21414 msgstr ""
21415
21416 # type: =head2
21417 #: ../fish/guestfish-actions.pod:2061
21418 msgid "inspect-os"
21419 msgstr ""
21420
21421 # type: verbatim
21422 #: ../fish/guestfish-actions.pod:2063
21423 #, no-wrap
21424 msgid ""
21425 " inspect-os\n"
21426 "\n"
21427 msgstr ""
21428
21429 # type: textblock
21430 #: ../fish/guestfish-actions.pod:2078
21431 msgid ""
21432 "You can pass the root string(s) returned to other L</inspect-get-*> "
21433 "functions in order to query further information about each operating system, "
21434 "such as the name and version."
21435 msgstr ""
21436
21437 # type: textblock
21438 #: ../fish/guestfish-actions.pod:2083
21439 msgid ""
21440 "This function uses other libguestfs features such as L</mount-ro> and L</"
21441 "umount-all> in order to mount and unmount filesystems and look at the "
21442 "contents.  This should be called with no disks currently mounted.  The "
21443 "function may also use Augeas, so any existing Augeas handle will be closed."
21444 msgstr ""
21445
21446 # type: textblock
21447 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21448 #: ../fish/guestfish-actions.pod:2297
21449 msgid "See also L</list-filesystems>."
21450 msgstr ""
21451
21452 # type: =head2
21453 #: ../fish/guestfish-actions.pod:2097
21454 msgid "is-blockdev"
21455 msgstr ""
21456
21457 # type: verbatim
21458 #: ../fish/guestfish-actions.pod:2099
21459 #, no-wrap
21460 msgid ""
21461 " is-blockdev path\n"
21462 "\n"
21463 msgstr ""
21464
21465 # type: textblock
21466 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21467 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21468 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21469 #: ../fish/guestfish-actions.pod:2203
21470 msgid "See also L</stat>."
21471 msgstr ""
21472
21473 # type: =head2
21474 #: ../fish/guestfish-actions.pod:2106
21475 msgid "is-busy"
21476 msgstr ""
21477
21478 # type: verbatim
21479 #: ../fish/guestfish-actions.pod:2108
21480 #, no-wrap
21481 msgid ""
21482 " is-busy\n"
21483 "\n"
21484 msgstr ""
21485
21486 # type: =head2
21487 #: ../fish/guestfish-actions.pod:2115
21488 msgid "is-chardev"
21489 msgstr ""
21490
21491 # type: verbatim
21492 #: ../fish/guestfish-actions.pod:2117
21493 #, no-wrap
21494 msgid ""
21495 " is-chardev path\n"
21496 "\n"
21497 msgstr ""
21498
21499 # type: =head2
21500 #: ../fish/guestfish-actions.pod:2124
21501 msgid "is-config"
21502 msgstr ""
21503
21504 # type: verbatim
21505 #: ../fish/guestfish-actions.pod:2126
21506 #, no-wrap
21507 msgid ""
21508 " is-config\n"
21509 "\n"
21510 msgstr ""
21511
21512 # type: =head2
21513 #: ../fish/guestfish-actions.pod:2133
21514 msgid "is-dir"
21515 msgstr ""
21516
21517 # type: verbatim
21518 #: ../fish/guestfish-actions.pod:2135
21519 #, no-wrap
21520 msgid ""
21521 " is-dir path\n"
21522 "\n"
21523 msgstr ""
21524
21525 # type: =head2
21526 #: ../fish/guestfish-actions.pod:2143
21527 msgid "is-fifo"
21528 msgstr ""
21529
21530 # type: verbatim
21531 #: ../fish/guestfish-actions.pod:2145
21532 #, no-wrap
21533 msgid ""
21534 " is-fifo path\n"
21535 "\n"
21536 msgstr ""
21537
21538 # type: =head2
21539 #: ../fish/guestfish-actions.pod:2152
21540 msgid "is-file"
21541 msgstr ""
21542
21543 # type: verbatim
21544 #: ../fish/guestfish-actions.pod:2154
21545 #, no-wrap
21546 msgid ""
21547 " is-file path\n"
21548 "\n"
21549 msgstr ""
21550
21551 # type: =head2
21552 #: ../fish/guestfish-actions.pod:2162
21553 msgid "is-launching"
21554 msgstr ""
21555
21556 # type: verbatim
21557 #: ../fish/guestfish-actions.pod:2164
21558 #, no-wrap
21559 msgid ""
21560 " is-launching\n"
21561 "\n"
21562 msgstr ""
21563
21564 # type: =head2
21565 #: ../fish/guestfish-actions.pod:2171
21566 msgid "is-lv"
21567 msgstr ""
21568
21569 # type: verbatim
21570 #: ../fish/guestfish-actions.pod:2173
21571 #, no-wrap
21572 msgid ""
21573 " is-lv device\n"
21574 "\n"
21575 msgstr ""
21576
21577 # type: =head2
21578 #: ../fish/guestfish-actions.pod:2178
21579 msgid "is-ready"
21580 msgstr ""
21581
21582 # type: verbatim
21583 #: ../fish/guestfish-actions.pod:2180
21584 #, no-wrap
21585 msgid ""
21586 " is-ready\n"
21587 "\n"
21588 msgstr ""
21589
21590 # type: =head2
21591 #: ../fish/guestfish-actions.pod:2187
21592 msgid "is-socket"
21593 msgstr ""
21594
21595 # type: verbatim
21596 #: ../fish/guestfish-actions.pod:2189
21597 #, no-wrap
21598 msgid ""
21599 " is-socket path\n"
21600 "\n"
21601 msgstr ""
21602
21603 # type: =head2
21604 #: ../fish/guestfish-actions.pod:2196
21605 msgid "is-symlink"
21606 msgstr ""
21607
21608 # type: verbatim
21609 #: ../fish/guestfish-actions.pod:2198
21610 #, no-wrap
21611 msgid ""
21612 " is-symlink path\n"
21613 "\n"
21614 msgstr ""
21615
21616 # type: =head2
21617 #: ../fish/guestfish-actions.pod:2205
21618 msgid "kill-subprocess"
21619 msgstr ""
21620
21621 # type: verbatim
21622 #: ../fish/guestfish-actions.pod:2207
21623 #, no-wrap
21624 msgid ""
21625 " kill-subprocess\n"
21626 "\n"
21627 msgstr ""
21628
21629 # type: =head2
21630 #: ../fish/guestfish-actions.pod:2211
21631 msgid "launch"
21632 msgstr ""
21633
21634 # type: =head2
21635 #: ../fish/guestfish-actions.pod:2213
21636 msgid "run"
21637 msgstr ""
21638
21639 # type: verbatim
21640 #: ../fish/guestfish-actions.pod:2215
21641 #, no-wrap
21642 msgid ""
21643 " launch\n"
21644 "\n"
21645 msgstr ""
21646
21647 # type: =head2
21648 #: ../fish/guestfish-actions.pod:2223
21649 msgid "lchown"
21650 msgstr ""
21651
21652 # type: verbatim
21653 #: ../fish/guestfish-actions.pod:2225
21654 #, no-wrap
21655 msgid ""
21656 " lchown owner group path\n"
21657 "\n"
21658 msgstr ""
21659
21660 # type: textblock
21661 #: ../fish/guestfish-actions.pod:2227
21662 msgid ""
21663 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21664 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21665 "target."
21666 msgstr ""
21667
21668 # type: =head2
21669 #: ../fish/guestfish-actions.pod:2235
21670 msgid "lgetxattrs"
21671 msgstr ""
21672
21673 # type: verbatim
21674 #: ../fish/guestfish-actions.pod:2237
21675 #, no-wrap
21676 msgid ""
21677 " lgetxattrs path\n"
21678 "\n"
21679 msgstr ""
21680
21681 # type: textblock
21682 #: ../fish/guestfish-actions.pod:2239
21683 msgid ""
21684 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21685 "it returns the extended attributes of the link itself."
21686 msgstr ""
21687
21688 # type: =head2
21689 #: ../fish/guestfish-actions.pod:2243
21690 msgid "list-devices"
21691 msgstr ""
21692
21693 # type: verbatim
21694 #: ../fish/guestfish-actions.pod:2245
21695 #, no-wrap
21696 msgid ""
21697 " list-devices\n"
21698 "\n"
21699 msgstr ""
21700
21701 # type: =head2
21702 #: ../fish/guestfish-actions.pod:2253
21703 msgid "list-filesystems"
21704 msgstr ""
21705
21706 # type: verbatim
21707 #: ../fish/guestfish-actions.pod:2255
21708 #, no-wrap
21709 msgid ""
21710 " list-filesystems\n"
21711 "\n"
21712 msgstr ""
21713
21714 # type: textblock
21715 #: ../fish/guestfish-actions.pod:2274
21716 msgid ""
21717 "This command runs other libguestfs commands, which might include L</mount> "
21718 "and L</umount>, and therefore you should use this soon after launch and only "
21719 "when nothing is mounted."
21720 msgstr ""
21721
21722 # type: textblock
21723 #: ../fish/guestfish-actions.pod:2278
21724 msgid ""
21725 "Not all of the filesystems returned will be mountable.  In particular, swap "
21726 "partitions are returned in the list.  Also this command does not check that "
21727 "each filesystem found is valid and mountable, and some filesystems might be "
21728 "mountable but require special options.  Filesystems may not all belong to a "
21729 "single logical operating system (use L</inspect-os> to look for OSes)."
21730 msgstr ""
21731
21732 # type: =head2
21733 #: ../fish/guestfish-actions.pod:2286
21734 msgid "list-partitions"
21735 msgstr ""
21736
21737 # type: verbatim
21738 #: ../fish/guestfish-actions.pod:2288
21739 #, no-wrap
21740 msgid ""
21741 " list-partitions\n"
21742 "\n"
21743 msgstr ""
21744
21745 # type: textblock
21746 #: ../fish/guestfish-actions.pod:2294
21747 msgid ""
21748 "This does not return logical volumes.  For that you will need to call L</"
21749 "lvs>."
21750 msgstr ""
21751
21752 # type: =head2
21753 #: ../fish/guestfish-actions.pod:2299
21754 msgid "ll"
21755 msgstr ""
21756
21757 # type: verbatim
21758 #: ../fish/guestfish-actions.pod:2301
21759 #, no-wrap
21760 msgid ""
21761 " ll directory\n"
21762 "\n"
21763 msgstr ""
21764
21765 # type: =head2
21766 #: ../fish/guestfish-actions.pod:2309
21767 msgid "ln"
21768 msgstr ""
21769
21770 # type: verbatim
21771 #: ../fish/guestfish-actions.pod:2311
21772 #, no-wrap
21773 msgid ""
21774 " ln target linkname\n"
21775 "\n"
21776 msgstr ""
21777
21778 # type: =head2
21779 #: ../fish/guestfish-actions.pod:2315
21780 msgid "ln-f"
21781 msgstr ""
21782
21783 # type: verbatim
21784 #: ../fish/guestfish-actions.pod:2317
21785 #, no-wrap
21786 msgid ""
21787 " ln-f target linkname\n"
21788 "\n"
21789 msgstr ""
21790
21791 # type: =head2
21792 #: ../fish/guestfish-actions.pod:2322
21793 msgid "ln-s"
21794 msgstr ""
21795
21796 # type: verbatim
21797 #: ../fish/guestfish-actions.pod:2324
21798 #, no-wrap
21799 msgid ""
21800 " ln-s target linkname\n"
21801 "\n"
21802 msgstr ""
21803
21804 # type: =head2
21805 #: ../fish/guestfish-actions.pod:2328
21806 msgid "ln-sf"
21807 msgstr ""
21808
21809 # type: verbatim
21810 #: ../fish/guestfish-actions.pod:2330
21811 #, no-wrap
21812 msgid ""
21813 " ln-sf target linkname\n"
21814 "\n"
21815 msgstr ""
21816
21817 # type: =head2
21818 #: ../fish/guestfish-actions.pod:2335
21819 msgid "lremovexattr"
21820 msgstr ""
21821
21822 # type: verbatim
21823 #: ../fish/guestfish-actions.pod:2337
21824 #, no-wrap
21825 msgid ""
21826 " lremovexattr xattr path\n"
21827 "\n"
21828 msgstr ""
21829
21830 # type: textblock
21831 #: ../fish/guestfish-actions.pod:2339
21832 msgid ""
21833 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21834 "it removes an extended attribute of the link itself."
21835 msgstr ""
21836
21837 # type: =head2
21838 #: ../fish/guestfish-actions.pod:2343
21839 msgid "ls"
21840 msgstr ""
21841
21842 # type: verbatim
21843 #: ../fish/guestfish-actions.pod:2345
21844 #, no-wrap
21845 msgid ""
21846 " ls directory\n"
21847 "\n"
21848 msgstr ""
21849
21850 # type: textblock
21851 #: ../fish/guestfish-actions.pod:2351
21852 msgid ""
21853 "This command is mostly useful for interactive sessions.  Programs should "
21854 "probably use L</readdir> instead."
21855 msgstr ""
21856
21857 # type: =head2
21858 #: ../fish/guestfish-actions.pod:2354
21859 msgid "lsetxattr"
21860 msgstr ""
21861
21862 # type: verbatim
21863 #: ../fish/guestfish-actions.pod:2356
21864 #, no-wrap
21865 msgid ""
21866 " lsetxattr xattr val vallen path\n"
21867 "\n"
21868 msgstr ""
21869
21870 # type: textblock
21871 #: ../fish/guestfish-actions.pod:2358
21872 msgid ""
21873 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21874 "sets an extended attribute of the link itself."
21875 msgstr ""
21876
21877 # type: =head2
21878 #: ../fish/guestfish-actions.pod:2362
21879 msgid "lstat"
21880 msgstr ""
21881
21882 # type: verbatim
21883 #: ../fish/guestfish-actions.pod:2364
21884 #, no-wrap
21885 msgid ""
21886 " lstat path\n"
21887 "\n"
21888 msgstr ""
21889
21890 # type: textblock
21891 #: ../fish/guestfish-actions.pod:2368
21892 msgid ""
21893 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21894 "the link is stat-ed, not the file it refers to."
21895 msgstr ""
21896
21897 # type: =head2
21898 #: ../fish/guestfish-actions.pod:2374
21899 msgid "lstatlist"
21900 msgstr ""
21901
21902 # type: verbatim
21903 #: ../fish/guestfish-actions.pod:2376
21904 #, no-wrap
21905 msgid ""
21906 " lstatlist path 'names ...'\n"
21907 "\n"
21908 msgstr ""
21909
21910 # type: textblock
21911 #: ../fish/guestfish-actions.pod:2378
21912 msgid ""
21913 "This call allows you to perform the L</lstat> operation on multiple files, "
21914 "where all files are in the directory C<path>.  C<names> is the list of files "
21915 "from this directory."
21916 msgstr ""
21917
21918 # type: textblock
21919 #: ../fish/guestfish-actions.pod:2387
21920 msgid ""
21921 "This call is intended for programs that want to efficiently list a directory "
21922 "contents without making many round-trips.  See also L</lxattrlist> for a "
21923 "similarly efficient call for getting extended attributes.  Very long "
21924 "directory listings might cause the protocol message size to be exceeded, "
21925 "causing this call to fail.  The caller must split up such requests into "
21926 "smaller groups of names."
21927 msgstr ""
21928
21929 # type: =head2
21930 #: ../fish/guestfish-actions.pod:2395
21931 msgid "luks-add-key"
21932 msgstr ""
21933
21934 # type: verbatim
21935 #: ../fish/guestfish-actions.pod:2397
21936 #, no-wrap
21937 msgid ""
21938 " luks-add-key device keyslot\n"
21939 "\n"
21940 msgstr ""
21941
21942 # type: textblock
21943 #: ../fish/guestfish-actions.pod:2404
21944 msgid ""
21945 "Note that if C<keyslot> already contains a key, then this command will "
21946 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21947 msgstr ""
21948
21949 # type: textblock
21950 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21951 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21952 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21953 msgid ""
21954 "This command has one or more key or passphrase parameters.  Guestfish will "
21955 "prompt for these separately."
21956 msgstr ""
21957
21958 # type: =head2
21959 #: ../fish/guestfish-actions.pod:2411
21960 msgid "luks-close"
21961 msgstr ""
21962
21963 # type: verbatim
21964 #: ../fish/guestfish-actions.pod:2413
21965 #, no-wrap
21966 msgid ""
21967 " luks-close device\n"
21968 "\n"
21969 msgstr ""
21970
21971 # type: textblock
21972 #: ../fish/guestfish-actions.pod:2415
21973 msgid ""
21974 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21975 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21976 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21977 "block device."
21978 msgstr ""
21979
21980 # type: =head2
21981 #: ../fish/guestfish-actions.pod:2421
21982 msgid "luks-format"
21983 msgstr ""
21984
21985 # type: verbatim
21986 #: ../fish/guestfish-actions.pod:2423
21987 #, no-wrap
21988 msgid ""
21989 " luks-format device keyslot\n"
21990 "\n"
21991 msgstr ""
21992
21993 # type: =head2
21994 #: ../fish/guestfish-actions.pod:2436
21995 msgid "luks-format-cipher"
21996 msgstr ""
21997
21998 # type: verbatim
21999 #: ../fish/guestfish-actions.pod:2438
22000 #, no-wrap
22001 msgid ""
22002 " luks-format-cipher device keyslot cipher\n"
22003 "\n"
22004 msgstr ""
22005
22006 # type: textblock
22007 #: ../fish/guestfish-actions.pod:2440
22008 msgid ""
22009 "This command is the same as L</luks-format> but it also allows you to set "
22010 "the C<cipher> used."
22011 msgstr ""
22012
22013 # type: =head2
22014 #: ../fish/guestfish-actions.pod:2449
22015 msgid "luks-kill-slot"
22016 msgstr ""
22017
22018 # type: verbatim
22019 #: ../fish/guestfish-actions.pod:2451
22020 #, no-wrap
22021 msgid ""
22022 " luks-kill-slot device keyslot\n"
22023 "\n"
22024 msgstr ""
22025
22026 # type: =head2
22027 #: ../fish/guestfish-actions.pod:2460
22028 msgid "luks-open"
22029 msgstr ""
22030
22031 # type: verbatim
22032 #: ../fish/guestfish-actions.pod:2462
22033 #, no-wrap
22034 msgid ""
22035 " luks-open device mapname\n"
22036 "\n"
22037 msgstr ""
22038
22039 # type: textblock
22040 #: ../fish/guestfish-actions.pod:2476
22041 msgid ""
22042 "If this block device contains LVM volume groups, then calling L</vgscan> "
22043 "followed by L</vg-activate-all> will make them visible."
22044 msgstr ""
22045
22046 # type: =head2
22047 #: ../fish/guestfish-actions.pod:2483
22048 msgid "luks-open-ro"
22049 msgstr ""
22050
22051 # type: verbatim
22052 #: ../fish/guestfish-actions.pod:2485
22053 #, no-wrap
22054 msgid ""
22055 " luks-open-ro device mapname\n"
22056 "\n"
22057 msgstr ""
22058
22059 # type: textblock
22060 #: ../fish/guestfish-actions.pod:2487
22061 msgid ""
22062 "This is the same as L</luks-open> except that a read-only mapping is created."
22063 msgstr ""
22064
22065 # type: =head2
22066 #: ../fish/guestfish-actions.pod:2493
22067 msgid "lvcreate"
22068 msgstr ""
22069
22070 # type: verbatim
22071 #: ../fish/guestfish-actions.pod:2495
22072 #, no-wrap
22073 msgid ""
22074 " lvcreate logvol volgroup mbytes\n"
22075 "\n"
22076 msgstr ""
22077
22078 # type: =head2
22079 #: ../fish/guestfish-actions.pod:2500
22080 msgid "lvm-canonical-lv-name"
22081 msgstr ""
22082
22083 # type: verbatim
22084 #: ../fish/guestfish-actions.pod:2502
22085 #, no-wrap
22086 msgid ""
22087 " lvm-canonical-lv-name lvname\n"
22088 "\n"
22089 msgstr ""
22090
22091 # type: textblock
22092 #: ../fish/guestfish-actions.pod:2511
22093 msgid "See also L</is-lv>."
22094 msgstr ""
22095
22096 # type: =head2
22097 #: ../fish/guestfish-actions.pod:2513
22098 msgid "lvm-clear-filter"
22099 msgstr ""
22100
22101 # type: verbatim
22102 #: ../fish/guestfish-actions.pod:2515
22103 #, no-wrap
22104 msgid ""
22105 " lvm-clear-filter\n"
22106 "\n"
22107 msgstr ""
22108
22109 # type: textblock
22110 #: ../fish/guestfish-actions.pod:2517
22111 msgid ""
22112 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22113 "block device."
22114 msgstr ""
22115
22116 # type: =head2
22117 #: ../fish/guestfish-actions.pod:2523
22118 msgid "lvm-remove-all"
22119 msgstr ""
22120
22121 # type: verbatim
22122 #: ../fish/guestfish-actions.pod:2525
22123 #, no-wrap
22124 msgid ""
22125 " lvm-remove-all\n"
22126 "\n"
22127 msgstr ""
22128
22129 # type: =head2
22130 #: ../fish/guestfish-actions.pod:2533
22131 msgid "lvm-set-filter"
22132 msgstr ""
22133
22134 # type: verbatim
22135 #: ../fish/guestfish-actions.pod:2535
22136 #, no-wrap
22137 msgid ""
22138 " lvm-set-filter 'devices ...'\n"
22139 "\n"
22140 msgstr ""
22141
22142 # type: =head2
22143 #: ../fish/guestfish-actions.pod:2560
22144 msgid "lvremove"
22145 msgstr ""
22146
22147 # type: verbatim
22148 #: ../fish/guestfish-actions.pod:2562
22149 #, no-wrap
22150 msgid ""
22151 " lvremove device\n"
22152 "\n"
22153 msgstr ""
22154
22155 # type: =head2
22156 #: ../fish/guestfish-actions.pod:2570
22157 msgid "lvrename"
22158 msgstr ""
22159
22160 # type: verbatim
22161 #: ../fish/guestfish-actions.pod:2572
22162 #, no-wrap
22163 msgid ""
22164 " lvrename logvol newlogvol\n"
22165 "\n"
22166 msgstr ""
22167
22168 # type: =head2
22169 #: ../fish/guestfish-actions.pod:2576
22170 msgid "lvresize"
22171 msgstr ""
22172
22173 # type: verbatim
22174 #: ../fish/guestfish-actions.pod:2578
22175 #, no-wrap
22176 msgid ""
22177 " lvresize device mbytes\n"
22178 "\n"
22179 msgstr ""
22180
22181 # type: =head2
22182 #: ../fish/guestfish-actions.pod:2584
22183 msgid "lvresize-free"
22184 msgstr ""
22185
22186 # type: verbatim
22187 #: ../fish/guestfish-actions.pod:2586
22188 #, no-wrap
22189 msgid ""
22190 " lvresize-free lv percent\n"
22191 "\n"
22192 msgstr ""
22193
22194 # type: =head2
22195 #: ../fish/guestfish-actions.pod:2594
22196 msgid "lvs"
22197 msgstr ""
22198
22199 # type: verbatim
22200 #: ../fish/guestfish-actions.pod:2596
22201 #, no-wrap
22202 msgid ""
22203 " lvs\n"
22204 "\n"
22205 msgstr ""
22206
22207 # type: textblock
22208 #: ../fish/guestfish-actions.pod:2604
22209 msgid "See also L</lvs-full>, L</list-filesystems>."
22210 msgstr ""
22211
22212 # type: =head2
22213 #: ../fish/guestfish-actions.pod:2606
22214 msgid "lvs-full"
22215 msgstr ""
22216
22217 # type: verbatim
22218 #: ../fish/guestfish-actions.pod:2608
22219 #, no-wrap
22220 msgid ""
22221 " lvs-full\n"
22222 "\n"
22223 msgstr ""
22224
22225 # type: =head2
22226 #: ../fish/guestfish-actions.pod:2613
22227 msgid "lvuuid"
22228 msgstr ""
22229
22230 # type: verbatim
22231 #: ../fish/guestfish-actions.pod:2615
22232 #, no-wrap
22233 msgid ""
22234 " lvuuid device\n"
22235 "\n"
22236 msgstr ""
22237
22238 # type: =head2
22239 #: ../fish/guestfish-actions.pod:2619
22240 msgid "lxattrlist"
22241 msgstr ""
22242
22243 # type: verbatim
22244 #: ../fish/guestfish-actions.pod:2621
22245 #, no-wrap
22246 msgid ""
22247 " lxattrlist path 'names ...'\n"
22248 "\n"
22249 msgstr ""
22250
22251 # type: textblock
22252 #: ../fish/guestfish-actions.pod:2637
22253 msgid ""
22254 "This call is intended for programs that want to efficiently list a directory "
22255 "contents without making many round-trips.  See also L</lstatlist> for a "
22256 "similarly efficient call for getting standard stats.  Very long directory "
22257 "listings might cause the protocol message size to be exceeded, causing this "
22258 "call to fail.  The caller must split up such requests into smaller groups of "
22259 "names."
22260 msgstr ""
22261
22262 # type: =head2
22263 #: ../fish/guestfish-actions.pod:2645
22264 msgid "mkdir"
22265 msgstr ""
22266
22267 # type: verbatim
22268 #: ../fish/guestfish-actions.pod:2647
22269 #, no-wrap
22270 msgid ""
22271 " mkdir path\n"
22272 "\n"
22273 msgstr ""
22274
22275 # type: =head2
22276 #: ../fish/guestfish-actions.pod:2651
22277 msgid "mkdir-mode"
22278 msgstr ""
22279
22280 # type: verbatim
22281 #: ../fish/guestfish-actions.pod:2653
22282 #, no-wrap
22283 msgid ""
22284 " mkdir-mode path mode\n"
22285 "\n"
22286 msgstr ""
22287
22288 # type: textblock
22289 #: ../fish/guestfish-actions.pod:2662
22290 msgid "See also L</mkdir>, L</umask>"
22291 msgstr ""
22292
22293 # type: =head2
22294 #: ../fish/guestfish-actions.pod:2664
22295 msgid "mkdir-p"
22296 msgstr ""
22297
22298 # type: verbatim
22299 #: ../fish/guestfish-actions.pod:2666
22300 #, no-wrap
22301 msgid ""
22302 " mkdir-p path\n"
22303 "\n"
22304 msgstr ""
22305
22306 # type: =head2
22307 #: ../fish/guestfish-actions.pod:2671
22308 msgid "mkdtemp"
22309 msgstr ""
22310
22311 # type: verbatim
22312 #: ../fish/guestfish-actions.pod:2673
22313 #, no-wrap
22314 msgid ""
22315 " mkdtemp template\n"
22316 "\n"
22317 msgstr ""
22318
22319 # type: =head2
22320 #: ../fish/guestfish-actions.pod:2694
22321 msgid "mke2fs-J"
22322 msgstr ""
22323
22324 # type: verbatim
22325 #: ../fish/guestfish-actions.pod:2696
22326 #, no-wrap
22327 msgid ""
22328 " mke2fs-J fstype blocksize device journal\n"
22329 "\n"
22330 msgstr ""
22331
22332 # type: textblock
22333 #: ../fish/guestfish-actions.pod:2704
22334 msgid "See also L</mke2journal>."
22335 msgstr ""
22336
22337 # type: =head2
22338 #: ../fish/guestfish-actions.pod:2706
22339 msgid "mke2fs-JL"
22340 msgstr ""
22341
22342 # type: verbatim
22343 #: ../fish/guestfish-actions.pod:2708
22344 #, no-wrap
22345 msgid ""
22346 " mke2fs-JL fstype blocksize device label\n"
22347 "\n"
22348 msgstr ""
22349
22350 # type: textblock
22351 #: ../fish/guestfish-actions.pod:2713
22352 msgid "See also L</mke2journal-L>."
22353 msgstr ""
22354
22355 # type: =head2
22356 #: ../fish/guestfish-actions.pod:2715
22357 msgid "mke2fs-JU"
22358 msgstr ""
22359
22360 # type: verbatim
22361 #: ../fish/guestfish-actions.pod:2717
22362 #, no-wrap
22363 msgid ""
22364 " mke2fs-JU fstype blocksize device uuid\n"
22365 "\n"
22366 msgstr ""
22367
22368 # type: textblock
22369 #: ../fish/guestfish-actions.pod:2722
22370 msgid "See also L</mke2journal-U>."
22371 msgstr ""
22372
22373 # type: =head2
22374 #: ../fish/guestfish-actions.pod:2724
22375 msgid "mke2journal"
22376 msgstr ""
22377
22378 # type: verbatim
22379 #: ../fish/guestfish-actions.pod:2726
22380 #, no-wrap
22381 msgid ""
22382 " mke2journal blocksize device\n"
22383 "\n"
22384 msgstr ""
22385
22386 # type: =head2
22387 #: ../fish/guestfish-actions.pod:2733
22388 msgid "mke2journal-L"
22389 msgstr ""
22390
22391 # type: verbatim
22392 #: ../fish/guestfish-actions.pod:2735
22393 #, no-wrap
22394 msgid ""
22395 " mke2journal-L blocksize label device\n"
22396 "\n"
22397 msgstr ""
22398
22399 # type: =head2
22400 #: ../fish/guestfish-actions.pod:2739
22401 msgid "mke2journal-U"
22402 msgstr ""
22403
22404 # type: verbatim
22405 #: ../fish/guestfish-actions.pod:2741
22406 #, no-wrap
22407 msgid ""
22408 " mke2journal-U blocksize uuid device\n"
22409 "\n"
22410 msgstr ""
22411
22412 # type: =head2
22413 #: ../fish/guestfish-actions.pod:2745
22414 msgid "mkfifo"
22415 msgstr ""
22416
22417 # type: verbatim
22418 #: ../fish/guestfish-actions.pod:2747
22419 #, no-wrap
22420 msgid ""
22421 " mkfifo mode path\n"
22422 "\n"
22423 msgstr ""
22424
22425 # type: textblock
22426 #: ../fish/guestfish-actions.pod:2749
22427 msgid ""
22428 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22429 "is just a convenient wrapper around L</mknod>."
22430 msgstr ""
22431
22432 # type: =head2
22433 #: ../fish/guestfish-actions.pod:2755
22434 msgid "mkfs"
22435 msgstr ""
22436
22437 # type: verbatim
22438 #: ../fish/guestfish-actions.pod:2757
22439 #, no-wrap
22440 msgid ""
22441 " mkfs fstype device\n"
22442 "\n"
22443 msgstr ""
22444
22445 # type: =head2
22446 #: ../fish/guestfish-actions.pod:2763
22447 msgid "mkfs-b"
22448 msgstr ""
22449
22450 # type: verbatim
22451 #: ../fish/guestfish-actions.pod:2765
22452 #, no-wrap
22453 msgid ""
22454 " mkfs-b fstype blocksize device\n"
22455 "\n"
22456 msgstr ""
22457
22458 # type: textblock
22459 #: ../fish/guestfish-actions.pod:2767
22460 msgid ""
22461 "This call is similar to L</mkfs>, but it allows you to control the block "
22462 "size of the resulting filesystem.  Supported block sizes depend on the "
22463 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22464 msgstr ""
22465
22466 # type: =head2
22467 #: ../fish/guestfish-actions.pod:2775
22468 msgid "mkmountpoint"
22469 msgstr ""
22470
22471 # type: verbatim
22472 #: ../fish/guestfish-actions.pod:2777
22473 #, no-wrap
22474 msgid ""
22475 " mkmountpoint exemptpath\n"
22476 "\n"
22477 msgstr ""
22478
22479 # type: textblock
22480 #: ../fish/guestfish-actions.pod:2779
22481 msgid ""
22482 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22483 "to create extra mountpoints before mounting the first filesystem."
22484 msgstr ""
22485
22486 # type: textblock
22487 #: ../fish/guestfish-actions.pod:2803
22488 msgid ""
22489 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22490 "unexpected errors if you try to mix these calls.  It is safest to manually "
22491 "unmount filesystems and remove mountpoints after use."
22492 msgstr ""
22493
22494 # type: textblock
22495 #: ../fish/guestfish-actions.pod:2807
22496 msgid ""
22497 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22498 "for this to work for manual mountpoints, you must ensure that the innermost "
22499 "mountpoints have the longest pathnames, as in the example code above."
22500 msgstr ""
22501
22502 # type: textblock
22503 #: ../fish/guestfish-actions.pod:2814
22504 msgid ""
22505 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22506 "that L</umount-all> is called when the handle is closed which can also "
22507 "trigger these issues."
22508 msgstr ""
22509
22510 # type: =head2
22511 #: ../fish/guestfish-actions.pod:2818
22512 msgid "mknod"
22513 msgstr ""
22514
22515 # type: verbatim
22516 #: ../fish/guestfish-actions.pod:2820
22517 #, no-wrap
22518 msgid ""
22519 " mknod mode devmajor devminor path\n"
22520 "\n"
22521 msgstr ""
22522
22523 # type: textblock
22524 #: ../fish/guestfish-actions.pod:2830
22525 msgid ""
22526 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22527 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22528 "regular file).  These constants are available in the standard Linux header "
22529 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22530 "wrappers around this command which bitwise OR in the appropriate constant "
22531 "for you."
22532 msgstr ""
22533
22534 # type: =head2
22535 #: ../fish/guestfish-actions.pod:2840
22536 msgid "mknod-b"
22537 msgstr ""
22538
22539 # type: verbatim
22540 #: ../fish/guestfish-actions.pod:2842
22541 #, no-wrap
22542 msgid ""
22543 " mknod-b mode devmajor devminor path\n"
22544 "\n"
22545 msgstr ""
22546
22547 # type: textblock
22548 #: ../fish/guestfish-actions.pod:2844
22549 msgid ""
22550 "This call creates a block device node called C<path> with mode C<mode> and "
22551 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22552 "wrapper around L</mknod>."
22553 msgstr ""
22554
22555 # type: =head2
22556 #: ../fish/guestfish-actions.pod:2850
22557 msgid "mknod-c"
22558 msgstr ""
22559
22560 # type: verbatim
22561 #: ../fish/guestfish-actions.pod:2852
22562 #, no-wrap
22563 msgid ""
22564 " mknod-c mode devmajor devminor path\n"
22565 "\n"
22566 msgstr ""
22567
22568 # type: textblock
22569 #: ../fish/guestfish-actions.pod:2854
22570 msgid ""
22571 "This call creates a char device node called C<path> with mode C<mode> and "
22572 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22573 "wrapper around L</mknod>."
22574 msgstr ""
22575
22576 # type: =head2
22577 #: ../fish/guestfish-actions.pod:2860
22578 msgid "mkswap"
22579 msgstr ""
22580
22581 # type: verbatim
22582 #: ../fish/guestfish-actions.pod:2862
22583 #, no-wrap
22584 msgid ""
22585 " mkswap device\n"
22586 "\n"
22587 msgstr ""
22588
22589 # type: =head2
22590 #: ../fish/guestfish-actions.pod:2866
22591 msgid "mkswap-L"
22592 msgstr ""
22593
22594 # type: verbatim
22595 #: ../fish/guestfish-actions.pod:2868
22596 #, no-wrap
22597 msgid ""
22598 " mkswap-L label device\n"
22599 "\n"
22600 msgstr ""
22601
22602 # type: =head2
22603 #: ../fish/guestfish-actions.pod:2876
22604 msgid "mkswap-U"
22605 msgstr ""
22606
22607 # type: verbatim
22608 #: ../fish/guestfish-actions.pod:2878
22609 #, no-wrap
22610 msgid ""
22611 " mkswap-U uuid device\n"
22612 "\n"
22613 msgstr ""
22614
22615 # type: =head2
22616 #: ../fish/guestfish-actions.pod:2882
22617 msgid "mkswap-file"
22618 msgstr ""
22619
22620 # type: verbatim
22621 #: ../fish/guestfish-actions.pod:2884
22622 #, no-wrap
22623 msgid ""
22624 " mkswap-file path\n"
22625 "\n"
22626 msgstr ""
22627
22628 # type: textblock
22629 #: ../fish/guestfish-actions.pod:2888
22630 msgid ""
22631 "This command just writes a swap file signature to an existing file.  To "
22632 "create the file itself, use something like L</fallocate>."
22633 msgstr ""
22634
22635 # type: =head2
22636 #: ../fish/guestfish-actions.pod:2891
22637 msgid "modprobe"
22638 msgstr ""
22639
22640 # type: verbatim
22641 #: ../fish/guestfish-actions.pod:2893
22642 #, no-wrap
22643 msgid ""
22644 " modprobe modulename\n"
22645 "\n"
22646 msgstr ""
22647
22648 # type: =head2
22649 #: ../fish/guestfish-actions.pod:2900
22650 msgid "mount"
22651 msgstr ""
22652
22653 # type: verbatim
22654 #: ../fish/guestfish-actions.pod:2902
22655 #, no-wrap
22656 msgid ""
22657 " mount device mountpoint\n"
22658 "\n"
22659 msgstr ""
22660
22661 # type: textblock
22662 #: ../fish/guestfish-actions.pod:2918
22663 msgid ""
22664 "B<Important note:> When you use this call, the filesystem options C<sync> "
22665 "and C<noatime> are set implicitly.  This was originally done because we "
22666 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22667 "very large negative performance impact and negligible effect on "
22668 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22669 "code that needs performance, and instead use L</mount-options> (use an empty "
22670 "string for the first parameter if you don't want any options)."
22671 msgstr ""
22672
22673 # type: =head2
22674 #: ../fish/guestfish-actions.pod:2928
22675 msgid "mount-loop"
22676 msgstr ""
22677
22678 # type: verbatim
22679 #: ../fish/guestfish-actions.pod:2930
22680 #, no-wrap
22681 msgid ""
22682 " mount-loop file mountpoint\n"
22683 "\n"
22684 msgstr ""
22685
22686 # type: =head2
22687 #: ../fish/guestfish-actions.pod:2936
22688 msgid "mount-options"
22689 msgstr ""
22690
22691 # type: verbatim
22692 #: ../fish/guestfish-actions.pod:2938
22693 #, no-wrap
22694 msgid ""
22695 " mount-options options device mountpoint\n"
22696 "\n"
22697 msgstr ""
22698
22699 # type: textblock
22700 #: ../fish/guestfish-actions.pod:2940
22701 msgid ""
22702 "This is the same as the L</mount> command, but it allows you to set the "
22703 "mount options as for the L<mount(8)> I<-o> flag."
22704 msgstr ""
22705
22706 # type: =head2
22707 #: ../fish/guestfish-actions.pod:2948
22708 msgid "mount-ro"
22709 msgstr ""
22710
22711 # type: verbatim
22712 #: ../fish/guestfish-actions.pod:2950
22713 #, no-wrap
22714 msgid ""
22715 " mount-ro device mountpoint\n"
22716 "\n"
22717 msgstr ""
22718
22719 # type: textblock
22720 #: ../fish/guestfish-actions.pod:2952
22721 msgid ""
22722 "This is the same as the L</mount> command, but it mounts the filesystem with "
22723 "the read-only (I<-o ro>) flag."
22724 msgstr ""
22725
22726 # type: =head2
22727 #: ../fish/guestfish-actions.pod:2955
22728 msgid "mount-vfs"
22729 msgstr ""
22730
22731 # type: verbatim
22732 #: ../fish/guestfish-actions.pod:2957
22733 #, no-wrap
22734 msgid ""
22735 " mount-vfs options vfstype device mountpoint\n"
22736 "\n"
22737 msgstr ""
22738
22739 # type: textblock
22740 #: ../fish/guestfish-actions.pod:2959
22741 msgid ""
22742 "This is the same as the L</mount> command, but it allows you to set both the "
22743 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22744 msgstr ""
22745
22746 # type: =head2
22747 #: ../fish/guestfish-actions.pod:2963
22748 msgid "mountpoints"
22749 msgstr ""
22750
22751 # type: verbatim
22752 #: ../fish/guestfish-actions.pod:2965
22753 #, no-wrap
22754 msgid ""
22755 " mountpoints\n"
22756 "\n"
22757 msgstr ""
22758
22759 # type: textblock
22760 #: ../fish/guestfish-actions.pod:2967
22761 msgid ""
22762 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22763 "This one returns a hash table (map) of device name to directory where the "
22764 "device is mounted."
22765 msgstr ""
22766
22767 # type: =head2
22768 #: ../fish/guestfish-actions.pod:2971
22769 msgid "mounts"
22770 msgstr ""
22771
22772 # type: verbatim
22773 #: ../fish/guestfish-actions.pod:2973
22774 #, no-wrap
22775 msgid ""
22776 " mounts\n"
22777 "\n"
22778 msgstr ""
22779
22780 # type: textblock
22781 #: ../fish/guestfish-actions.pod:2980
22782 msgid "See also: L</mountpoints>"
22783 msgstr ""
22784
22785 # type: =head2
22786 #: ../fish/guestfish-actions.pod:2982
22787 msgid "mv"
22788 msgstr ""
22789
22790 # type: verbatim
22791 #: ../fish/guestfish-actions.pod:2984
22792 #, no-wrap
22793 msgid ""
22794 " mv src dest\n"
22795 "\n"
22796 msgstr ""
22797
22798 # type: =head2
22799 #: ../fish/guestfish-actions.pod:2989
22800 msgid "ntfs-3g-probe"
22801 msgstr ""
22802
22803 # type: verbatim
22804 #: ../fish/guestfish-actions.pod:2991
22805 #, no-wrap
22806 msgid ""
22807 " ntfs-3g-probe true|false device\n"
22808 "\n"
22809 msgstr ""
22810
22811 # type: =head2
22812 #: ../fish/guestfish-actions.pod:3005
22813 msgid "ntfsresize"
22814 msgstr ""
22815
22816 # type: verbatim
22817 #: ../fish/guestfish-actions.pod:3007
22818 #, no-wrap
22819 msgid ""
22820 " ntfsresize device\n"
22821 "\n"
22822 msgstr ""
22823
22824 # type: =head2
22825 #: ../fish/guestfish-actions.pod:3013
22826 msgid "ntfsresize-size"
22827 msgstr ""
22828
22829 # type: verbatim
22830 #: ../fish/guestfish-actions.pod:3015
22831 #, no-wrap
22832 msgid ""
22833 " ntfsresize-size device size\n"
22834 "\n"
22835 msgstr ""
22836
22837 # type: textblock
22838 #: ../fish/guestfish-actions.pod:3017
22839 msgid ""
22840 "This command is the same as L</ntfsresize> except that it allows you to "
22841 "specify the new size (in bytes) explicitly."
22842 msgstr ""
22843
22844 # type: =head2
22845 #: ../fish/guestfish-actions.pod:3020
22846 msgid "part-add"
22847 msgstr ""
22848
22849 # type: verbatim
22850 #: ../fish/guestfish-actions.pod:3022
22851 #, no-wrap
22852 msgid ""
22853 " part-add device prlogex startsect endsect\n"
22854 "\n"
22855 msgstr ""
22856
22857 # type: textblock
22858 #: ../fish/guestfish-actions.pod:3024
22859 msgid ""
22860 "This command adds a partition to C<device>.  If there is no partition table "
22861 "on the device, call L</part-init> first."
22862 msgstr ""
22863
22864 # type: textblock
22865 #: ../fish/guestfish-actions.pod:3036
22866 msgid ""
22867 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22868 "part-disk> to do that."
22869 msgstr ""
22870
22871 # type: =head2
22872 #: ../fish/guestfish-actions.pod:3039
22873 msgid "part-del"
22874 msgstr ""
22875
22876 # type: verbatim
22877 #: ../fish/guestfish-actions.pod:3041
22878 #, no-wrap
22879 msgid ""
22880 " part-del device partnum\n"
22881 "\n"
22882 msgstr ""
22883
22884 # type: =head2
22885 #: ../fish/guestfish-actions.pod:3049
22886 msgid "part-disk"
22887 msgstr ""
22888
22889 # type: verbatim
22890 #: ../fish/guestfish-actions.pod:3051
22891 #, no-wrap
22892 msgid ""
22893 " part-disk device parttype\n"
22894 "\n"
22895 msgstr ""
22896
22897 # type: textblock
22898 #: ../fish/guestfish-actions.pod:3053
22899 msgid ""
22900 "This command is simply a combination of L</part-init> followed by L</part-"
22901 "add> to create a single primary partition covering the whole disk."
22902 msgstr ""
22903
22904 # type: textblock
22905 #: ../fish/guestfish-actions.pod:3057
22906 msgid ""
22907 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22908 "possible values are described in L</part-init>."
22909 msgstr ""
22910
22911 # type: =head2
22912 #: ../fish/guestfish-actions.pod:3063
22913 msgid "part-get-bootable"
22914 msgstr ""
22915
22916 # type: verbatim
22917 #: ../fish/guestfish-actions.pod:3065
22918 #, no-wrap
22919 msgid ""
22920 " part-get-bootable device partnum\n"
22921 "\n"
22922 msgstr ""
22923
22924 # type: textblock
22925 #: ../fish/guestfish-actions.pod:3070
22926 msgid "See also L</part-set-bootable>."
22927 msgstr ""
22928
22929 # type: =head2
22930 #: ../fish/guestfish-actions.pod:3072
22931 msgid "part-get-mbr-id"
22932 msgstr ""
22933
22934 # type: verbatim
22935 #: ../fish/guestfish-actions.pod:3074
22936 #, no-wrap
22937 msgid ""
22938 " part-get-mbr-id device partnum\n"
22939 "\n"
22940 msgstr ""
22941
22942 # type: textblock
22943 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22944 msgid ""
22945 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22946 "undefined results for other partition table types (see L</part-get-"
22947 "parttype>)."
22948 msgstr ""
22949
22950 # type: =head2
22951 #: ../fish/guestfish-actions.pod:3083
22952 msgid "part-get-parttype"
22953 msgstr ""
22954
22955 # type: verbatim
22956 #: ../fish/guestfish-actions.pod:3085
22957 #, no-wrap
22958 msgid ""
22959 " part-get-parttype device\n"
22960 "\n"
22961 msgstr ""
22962
22963 # type: textblock
22964 #: ../fish/guestfish-actions.pod:3090
22965 msgid ""
22966 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22967 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22968 "possible, although unusual.  See L</part-init> for a full list."
22969 msgstr ""
22970
22971 # type: =head2
22972 #: ../fish/guestfish-actions.pod:3095
22973 msgid "part-init"
22974 msgstr ""
22975
22976 # type: verbatim
22977 #: ../fish/guestfish-actions.pod:3097
22978 #, no-wrap
22979 msgid ""
22980 " part-init device parttype\n"
22981 "\n"
22982 msgstr ""
22983
22984 # type: textblock
22985 #: ../fish/guestfish-actions.pod:3103
22986 msgid ""
22987 "Initially there are no partitions.  Following this, you should call L</part-"
22988 "add> for each partition required."
22989 msgstr ""
22990
22991 # type: =head2
22992 #: ../fish/guestfish-actions.pod:3166
22993 msgid "part-list"
22994 msgstr ""
22995
22996 # type: verbatim
22997 #: ../fish/guestfish-actions.pod:3168
22998 #, no-wrap
22999 msgid ""
23000 " part-list device\n"
23001 "\n"
23002 msgstr ""
23003
23004 # type: textblock
23005 #: ../fish/guestfish-actions.pod:3183
23006 msgid ""
23007 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23008 "the device's sector size, see L</blockdev-getss>."
23009 msgstr ""
23010
23011 # type: =head2
23012 #: ../fish/guestfish-actions.pod:3196
23013 msgid "part-set-bootable"
23014 msgstr ""
23015
23016 # type: verbatim
23017 #: ../fish/guestfish-actions.pod:3198
23018 #, no-wrap
23019 msgid ""
23020 " part-set-bootable device partnum true|false\n"
23021 "\n"
23022 msgstr ""
23023
23024 # type: =head2
23025 #: ../fish/guestfish-actions.pod:3207
23026 msgid "part-set-mbr-id"
23027 msgstr ""
23028
23029 # type: verbatim
23030 #: ../fish/guestfish-actions.pod:3209
23031 #, no-wrap
23032 msgid ""
23033 " part-set-mbr-id device partnum idbyte\n"
23034 "\n"
23035 msgstr ""
23036
23037 # type: =head2
23038 #: ../fish/guestfish-actions.pod:3221
23039 msgid "part-set-name"
23040 msgstr ""
23041
23042 # type: verbatim
23043 #: ../fish/guestfish-actions.pod:3223
23044 #, no-wrap
23045 msgid ""
23046 " part-set-name device partnum name\n"
23047 "\n"
23048 msgstr ""
23049
23050 # type: =head2
23051 #: ../fish/guestfish-actions.pod:3231
23052 msgid "part-to-dev"
23053 msgstr ""
23054
23055 # type: verbatim
23056 #: ../fish/guestfish-actions.pod:3233
23057 #, no-wrap
23058 msgid ""
23059 " part-to-dev partition\n"
23060 "\n"
23061 msgstr ""
23062
23063 # type: textblock
23064 #: ../fish/guestfish-actions.pod:3239
23065 msgid ""
23066 "The named partition must exist, for example as a string returned from L</"
23067 "list-partitions>."
23068 msgstr ""
23069
23070 # type: =head2
23071 #: ../fish/guestfish-actions.pod:3242
23072 msgid "ping-daemon"
23073 msgstr ""
23074
23075 # type: verbatim
23076 #: ../fish/guestfish-actions.pod:3244
23077 #, no-wrap
23078 msgid ""
23079 " ping-daemon\n"
23080 "\n"
23081 msgstr ""
23082
23083 # type: =head2
23084 #: ../fish/guestfish-actions.pod:3251
23085 msgid "pread"
23086 msgstr ""
23087
23088 # type: verbatim
23089 #: ../fish/guestfish-actions.pod:3253
23090 #, no-wrap
23091 msgid ""
23092 " pread path count offset\n"
23093 "\n"
23094 msgstr ""
23095
23096 # type: textblock
23097 #: ../fish/guestfish-actions.pod:3261
23098 msgid "See also L</pwrite>, L</pread-device>."
23099 msgstr ""
23100
23101 # type: =head2
23102 #: ../fish/guestfish-actions.pod:3266
23103 msgid "pread-device"
23104 msgstr ""
23105
23106 # type: verbatim
23107 #: ../fish/guestfish-actions.pod:3268
23108 #, no-wrap
23109 msgid ""
23110 " pread-device device count offset\n"
23111 "\n"
23112 msgstr ""
23113
23114 # type: textblock
23115 #: ../fish/guestfish-actions.pod:3276
23116 msgid "See also L</pread>."
23117 msgstr ""
23118
23119 # type: =head2
23120 #: ../fish/guestfish-actions.pod:3281
23121 msgid "pvcreate"
23122 msgstr ""
23123
23124 # type: verbatim
23125 #: ../fish/guestfish-actions.pod:3283
23126 #, no-wrap
23127 msgid ""
23128 " pvcreate device\n"
23129 "\n"
23130 msgstr ""
23131
23132 # type: =head2
23133 #: ../fish/guestfish-actions.pod:3289
23134 msgid "pvremove"
23135 msgstr ""
23136
23137 # type: verbatim
23138 #: ../fish/guestfish-actions.pod:3291
23139 #, no-wrap
23140 msgid ""
23141 " pvremove device\n"
23142 "\n"
23143 msgstr ""
23144
23145 # type: =head2
23146 #: ../fish/guestfish-actions.pod:3300
23147 msgid "pvresize"
23148 msgstr ""
23149
23150 # type: verbatim
23151 #: ../fish/guestfish-actions.pod:3302
23152 #, no-wrap
23153 msgid ""
23154 " pvresize device\n"
23155 "\n"
23156 msgstr ""
23157
23158 # type: =head2
23159 #: ../fish/guestfish-actions.pod:3307
23160 msgid "pvresize-size"
23161 msgstr ""
23162
23163 # type: verbatim
23164 #: ../fish/guestfish-actions.pod:3309
23165 #, no-wrap
23166 msgid ""
23167 " pvresize-size device size\n"
23168 "\n"
23169 msgstr ""
23170
23171 # type: textblock
23172 #: ../fish/guestfish-actions.pod:3311
23173 msgid ""
23174 "This command is the same as L</pvresize> except that it allows you to "
23175 "specify the new size (in bytes) explicitly."
23176 msgstr ""
23177
23178 # type: =head2
23179 #: ../fish/guestfish-actions.pod:3314
23180 msgid "pvs"
23181 msgstr ""
23182
23183 # type: verbatim
23184 #: ../fish/guestfish-actions.pod:3316
23185 #, no-wrap
23186 msgid ""
23187 " pvs\n"
23188 "\n"
23189 msgstr ""
23190
23191 # type: textblock
23192 #: ../fish/guestfish-actions.pod:3324
23193 msgid "See also L</pvs-full>."
23194 msgstr ""
23195
23196 # type: =head2
23197 #: ../fish/guestfish-actions.pod:3326
23198 msgid "pvs-full"
23199 msgstr ""
23200
23201 # type: verbatim
23202 #: ../fish/guestfish-actions.pod:3328
23203 #, no-wrap
23204 msgid ""
23205 " pvs-full\n"
23206 "\n"
23207 msgstr ""
23208
23209 # type: =head2
23210 #: ../fish/guestfish-actions.pod:3333
23211 msgid "pvuuid"
23212 msgstr ""
23213
23214 # type: verbatim
23215 #: ../fish/guestfish-actions.pod:3335
23216 #, no-wrap
23217 msgid ""
23218 " pvuuid device\n"
23219 "\n"
23220 msgstr ""
23221
23222 # type: =head2
23223 #: ../fish/guestfish-actions.pod:3339
23224 msgid "pwrite"
23225 msgstr ""
23226
23227 # type: verbatim
23228 #: ../fish/guestfish-actions.pod:3341
23229 #, no-wrap
23230 msgid ""
23231 " pwrite path content offset\n"
23232 "\n"
23233 msgstr ""
23234
23235 # type: textblock
23236 #: ../fish/guestfish-actions.pod:3352
23237 msgid "See also L</pread>, L</pwrite-device>."
23238 msgstr ""
23239
23240 # type: =head2
23241 #: ../fish/guestfish-actions.pod:3357
23242 msgid "pwrite-device"
23243 msgstr ""
23244
23245 # type: verbatim
23246 #: ../fish/guestfish-actions.pod:3359
23247 #, no-wrap
23248 msgid ""
23249 " pwrite-device device content offset\n"
23250 "\n"
23251 msgstr ""
23252
23253 # type: textblock
23254 #: ../fish/guestfish-actions.pod:3369
23255 msgid "See also L</pwrite>."
23256 msgstr ""
23257
23258 # type: =head2
23259 #: ../fish/guestfish-actions.pod:3374
23260 msgid "read-file"
23261 msgstr ""
23262
23263 # type: verbatim
23264 #: ../fish/guestfish-actions.pod:3376
23265 #, no-wrap
23266 msgid ""
23267 " read-file path\n"
23268 "\n"
23269 msgstr ""
23270
23271 # type: textblock
23272 #: ../fish/guestfish-actions.pod:3381
23273 msgid ""
23274 "Unlike L</cat>, this function can correctly handle files that contain "
23275 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23276 "is limited in the total size of file that can be handled."
23277 msgstr ""
23278
23279 # type: =head2
23280 #: ../fish/guestfish-actions.pod:3389
23281 msgid "read-lines"
23282 msgstr ""
23283
23284 # type: verbatim
23285 #: ../fish/guestfish-actions.pod:3391
23286 #, no-wrap
23287 msgid ""
23288 " read-lines path\n"
23289 "\n"
23290 msgstr ""
23291
23292 # type: textblock
23293 #: ../fish/guestfish-actions.pod:3398
23294 msgid ""
23295 "Note that this function cannot correctly handle binary files (specifically, "
23296 "files containing C<\\0> character which is treated as end of line).  For "
23297 "those you need to use the L</read-file> function which has a more complex "
23298 "interface."
23299 msgstr ""
23300
23301 # type: =head2
23302 #: ../fish/guestfish-actions.pod:3403
23303 msgid "readdir"
23304 msgstr ""
23305
23306 # type: verbatim
23307 #: ../fish/guestfish-actions.pod:3405
23308 #, no-wrap
23309 msgid ""
23310 " readdir dir\n"
23311 "\n"
23312 msgstr ""
23313
23314 # type: textblock
23315 #: ../fish/guestfish-actions.pod:3457
23316 msgid ""
23317 "This function is primarily intended for use by programs.  To get a simple "
23318 "list of names, use L</ls>.  To get a printable directory for human "
23319 "consumption, use L</ll>."
23320 msgstr ""
23321
23322 # type: =head2
23323 #: ../fish/guestfish-actions.pod:3461
23324 msgid "readlink"
23325 msgstr ""
23326
23327 # type: verbatim
23328 #: ../fish/guestfish-actions.pod:3463
23329 #, no-wrap
23330 msgid ""
23331 " readlink path\n"
23332 "\n"
23333 msgstr ""
23334
23335 # type: =head2
23336 #: ../fish/guestfish-actions.pod:3467
23337 msgid "readlinklist"
23338 msgstr ""
23339
23340 # type: verbatim
23341 #: ../fish/guestfish-actions.pod:3469
23342 #, no-wrap
23343 msgid ""
23344 " readlinklist path 'names ...'\n"
23345 "\n"
23346 msgstr ""
23347
23348 # type: =head2
23349 #: ../fish/guestfish-actions.pod:3493
23350 msgid "realpath"
23351 msgstr ""
23352
23353 # type: verbatim
23354 #: ../fish/guestfish-actions.pod:3495
23355 #, no-wrap
23356 msgid ""
23357 " realpath path\n"
23358 "\n"
23359 msgstr ""
23360
23361 # type: =head2
23362 #: ../fish/guestfish-actions.pod:3500
23363 msgid "removexattr"
23364 msgstr ""
23365
23366 # type: verbatim
23367 #: ../fish/guestfish-actions.pod:3502
23368 #, no-wrap
23369 msgid ""
23370 " removexattr xattr path\n"
23371 "\n"
23372 msgstr ""
23373
23374 # type: textblock
23375 #: ../fish/guestfish-actions.pod:3507
23376 msgid "See also: L</lremovexattr>, L<attr(5)>."
23377 msgstr ""
23378
23379 # type: =head2
23380 #: ../fish/guestfish-actions.pod:3509
23381 msgid "resize2fs"
23382 msgstr ""
23383
23384 # type: verbatim
23385 #: ../fish/guestfish-actions.pod:3511
23386 #, no-wrap
23387 msgid ""
23388 " resize2fs device\n"
23389 "\n"
23390 msgstr ""
23391
23392 # type: textblock
23393 #: ../fish/guestfish-actions.pod:3516
23394 msgid ""
23395 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23396 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23397 "gives an error about this and sometimes not.  In any case, it is always safe "
23398 "to call L</e2fsck-f> before calling this function."
23399 msgstr ""
23400
23401 # type: =head2
23402 #: ../fish/guestfish-actions.pod:3522
23403 msgid "resize2fs-size"
23404 msgstr ""
23405
23406 # type: verbatim
23407 #: ../fish/guestfish-actions.pod:3524
23408 #, no-wrap
23409 msgid ""
23410 " resize2fs-size device size\n"
23411 "\n"
23412 msgstr ""
23413
23414 # type: textblock
23415 #: ../fish/guestfish-actions.pod:3526
23416 msgid ""
23417 "This command is the same as L</resize2fs> except that it allows you to "
23418 "specify the new size (in bytes) explicitly."
23419 msgstr ""
23420
23421 # type: =head2
23422 #: ../fish/guestfish-actions.pod:3529
23423 msgid "rm"
23424 msgstr ""
23425
23426 # type: verbatim
23427 #: ../fish/guestfish-actions.pod:3531
23428 #, no-wrap
23429 msgid ""
23430 " rm path\n"
23431 "\n"
23432 msgstr ""
23433
23434 # type: =head2
23435 #: ../fish/guestfish-actions.pod:3535
23436 msgid "rm-rf"
23437 msgstr ""
23438
23439 # type: verbatim
23440 #: ../fish/guestfish-actions.pod:3537
23441 #, no-wrap
23442 msgid ""
23443 " rm-rf path\n"
23444 "\n"
23445 msgstr ""
23446
23447 # type: =head2
23448 #: ../fish/guestfish-actions.pod:3543
23449 msgid "rmdir"
23450 msgstr ""
23451
23452 # type: verbatim
23453 #: ../fish/guestfish-actions.pod:3545
23454 #, no-wrap
23455 msgid ""
23456 " rmdir path\n"
23457 "\n"
23458 msgstr ""
23459
23460 # type: =head2
23461 #: ../fish/guestfish-actions.pod:3549
23462 msgid "rmmountpoint"
23463 msgstr ""
23464
23465 # type: verbatim
23466 #: ../fish/guestfish-actions.pod:3551
23467 #, no-wrap
23468 msgid ""
23469 " rmmountpoint exemptpath\n"
23470 "\n"
23471 msgstr ""
23472
23473 # type: textblock
23474 #: ../fish/guestfish-actions.pod:3553
23475 msgid ""
23476 "This calls removes a mountpoint that was previously created with L</"
23477 "mkmountpoint>.  See L</mkmountpoint> for full details."
23478 msgstr ""
23479
23480 # type: =head2
23481 #: ../fish/guestfish-actions.pod:3557
23482 msgid "scrub-device"
23483 msgstr ""
23484
23485 # type: verbatim
23486 #: ../fish/guestfish-actions.pod:3559
23487 #, no-wrap
23488 msgid ""
23489 " scrub-device device\n"
23490 "\n"
23491 msgstr ""
23492
23493 # type: =head2
23494 #: ../fish/guestfish-actions.pod:3570
23495 msgid "scrub-file"
23496 msgstr ""
23497
23498 # type: verbatim
23499 #: ../fish/guestfish-actions.pod:3572
23500 #, no-wrap
23501 msgid ""
23502 " scrub-file file\n"
23503 "\n"
23504 msgstr ""
23505
23506 # type: =head2
23507 #: ../fish/guestfish-actions.pod:3582
23508 msgid "scrub-freespace"
23509 msgstr ""
23510
23511 # type: verbatim
23512 #: ../fish/guestfish-actions.pod:3584
23513 #, no-wrap
23514 msgid ""
23515 " scrub-freespace dir\n"
23516 "\n"
23517 msgstr ""
23518
23519 # type: textblock
23520 #: ../fish/guestfish-actions.pod:3586
23521 msgid ""
23522 "This command creates the directory C<dir> and then fills it with files until "
23523 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23524 "deletes them.  The intention is to scrub any free space on the partition "
23525 "containing C<dir>."
23526 msgstr ""
23527
23528 # type: =head2
23529 #: ../fish/guestfish-actions.pod:3595
23530 msgid "set-append"
23531 msgstr ""
23532
23533 # type: =head2
23534 #: ../fish/guestfish-actions.pod:3597
23535 msgid "append"
23536 msgstr ""
23537
23538 # type: verbatim
23539 #: ../fish/guestfish-actions.pod:3599
23540 #, no-wrap
23541 msgid ""
23542 " set-append append\n"
23543 "\n"
23544 msgstr ""
23545
23546 # type: =head2
23547 #: ../fish/guestfish-actions.pod:3610
23548 msgid "set-autosync"
23549 msgstr ""
23550
23551 # type: =head2
23552 #: ../fish/guestfish-actions.pod:3612
23553 msgid "autosync"
23554 msgstr ""
23555
23556 # type: verbatim
23557 #: ../fish/guestfish-actions.pod:3614
23558 #, no-wrap
23559 msgid ""
23560 " set-autosync true|false\n"
23561 "\n"
23562 msgstr ""
23563
23564 # type: textblock
23565 #: ../fish/guestfish-actions.pod:3616
23566 msgid ""
23567 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23568 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23569 "closed (also if the program exits without closing handles)."
23570 msgstr ""
23571
23572 # type: =head2
23573 #: ../fish/guestfish-actions.pod:3624
23574 msgid "set-direct"
23575 msgstr ""
23576
23577 # type: =head2
23578 #: ../fish/guestfish-actions.pod:3626
23579 msgid "direct"
23580 msgstr ""
23581
23582 # type: verbatim
23583 #: ../fish/guestfish-actions.pod:3628
23584 #, no-wrap
23585 msgid ""
23586 " set-direct true|false\n"
23587 "\n"
23588 msgstr ""
23589
23590 # type: textblock
23591 #: ../fish/guestfish-actions.pod:3634
23592 msgid ""
23593 "One consequence of this is that log messages aren't caught by the library "
23594 "and handled by L</set-log-message-callback>, but go straight to stdout."
23595 msgstr ""
23596
23597 # type: =head2
23598 #: ../fish/guestfish-actions.pod:3643
23599 msgid "set-e2label"
23600 msgstr ""
23601
23602 # type: verbatim
23603 #: ../fish/guestfish-actions.pod:3645
23604 #, no-wrap
23605 msgid ""
23606 " set-e2label device label\n"
23607 "\n"
23608 msgstr ""
23609
23610 # type: textblock
23611 #: ../fish/guestfish-actions.pod:3651
23612 msgid ""
23613 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23614 "label on a filesystem."
23615 msgstr ""
23616
23617 # type: =head2
23618 #: ../fish/guestfish-actions.pod:3654
23619 msgid "set-e2uuid"
23620 msgstr ""
23621
23622 # type: verbatim
23623 #: ../fish/guestfish-actions.pod:3656
23624 #, no-wrap
23625 msgid ""
23626 " set-e2uuid device uuid\n"
23627 "\n"
23628 msgstr ""
23629
23630 # type: textblock
23631 #: ../fish/guestfish-actions.pod:3663
23632 msgid ""
23633 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23634 "UUID of a filesystem."
23635 msgstr ""
23636
23637 # type: =head2
23638 #: ../fish/guestfish-actions.pod:3666
23639 msgid "set-memsize"
23640 msgstr ""
23641
23642 # type: =head2
23643 #: ../fish/guestfish-actions.pod:3668
23644 msgid "memsize"
23645 msgstr ""
23646
23647 # type: verbatim
23648 #: ../fish/guestfish-actions.pod:3670
23649 #, no-wrap
23650 msgid ""
23651 " set-memsize memsize\n"
23652 "\n"
23653 msgstr ""
23654
23655 # type: textblock
23656 #: ../fish/guestfish-actions.pod:3672
23657 msgid ""
23658 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23659 "This only has any effect if called before L</launch>."
23660 msgstr ""
23661
23662 # type: =head2
23663 #: ../fish/guestfish-actions.pod:3683
23664 msgid "set-network"
23665 msgstr ""
23666
23667 # type: =head2
23668 #: ../fish/guestfish-actions.pod:3685
23669 msgid "network"
23670 msgstr ""
23671
23672 # type: verbatim
23673 #: ../fish/guestfish-actions.pod:3687
23674 #, no-wrap
23675 msgid ""
23676 " set-network true|false\n"
23677 "\n"
23678 msgstr ""
23679
23680 # type: textblock
23681 #: ../fish/guestfish-actions.pod:3695
23682 msgid ""
23683 "You must call this before calling L</launch>, otherwise it has no effect."
23684 msgstr ""
23685
23686 # type: =head2
23687 #: ../fish/guestfish-actions.pod:3698
23688 msgid "set-path"
23689 msgstr ""
23690
23691 # type: =head2
23692 #: ../fish/guestfish-actions.pod:3700
23693 msgid "path"
23694 msgstr ""
23695
23696 # type: verbatim
23697 #: ../fish/guestfish-actions.pod:3702
23698 #, no-wrap
23699 msgid ""
23700 " set-path searchpath\n"
23701 "\n"
23702 msgstr ""
23703
23704 # type: =head2
23705 #: ../fish/guestfish-actions.pod:3711
23706 msgid "set-qemu"
23707 msgstr ""
23708
23709 # type: =head2
23710 #: ../fish/guestfish-actions.pod:3713
23711 msgid "qemu"
23712 msgstr ""
23713
23714 # type: verbatim
23715 #: ../fish/guestfish-actions.pod:3715
23716 #, no-wrap
23717 msgid ""
23718 " set-qemu qemu\n"
23719 "\n"
23720 msgstr ""
23721
23722 # type: =head2
23723 #: ../fish/guestfish-actions.pod:3735
23724 msgid "set-recovery-proc"
23725 msgstr ""
23726
23727 # type: =head2
23728 #: ../fish/guestfish-actions.pod:3737
23729 msgid "recovery-proc"
23730 msgstr ""
23731
23732 # type: verbatim
23733 #: ../fish/guestfish-actions.pod:3739
23734 #, no-wrap
23735 msgid ""
23736 " set-recovery-proc true|false\n"
23737 "\n"
23738 msgstr ""
23739
23740 # type: textblock
23741 #: ../fish/guestfish-actions.pod:3741
23742 msgid ""
23743 "If this is called with the parameter C<false> then L</launch> does not "
23744 "create a recovery process.  The purpose of the recovery process is to stop "
23745 "runaway qemu processes in the case where the main program aborts abruptly."
23746 msgstr ""
23747
23748 # type: textblock
23749 #: ../fish/guestfish-actions.pod:3746
23750 msgid ""
23751 "This only has any effect if called before L</launch>, and the default is "
23752 "true."
23753 msgstr ""
23754
23755 # type: =head2
23756 #: ../fish/guestfish-actions.pod:3755
23757 msgid "set-selinux"
23758 msgstr ""
23759
23760 # type: =head2
23761 #: ../fish/guestfish-actions.pod:3757
23762 msgid "selinux"
23763 msgstr ""
23764
23765 # type: verbatim
23766 #: ../fish/guestfish-actions.pod:3759
23767 #, no-wrap
23768 msgid ""
23769 " set-selinux true|false\n"
23770 "\n"
23771 msgstr ""
23772
23773 # type: =head2
23774 #: ../fish/guestfish-actions.pod:3770
23775 msgid "set-trace"
23776 msgstr ""
23777
23778 # type: =head2
23779 #: ../fish/guestfish-actions.pod:3772
23780 msgid "trace"
23781 msgstr ""
23782
23783 # type: verbatim
23784 #: ../fish/guestfish-actions.pod:3774
23785 #, no-wrap
23786 msgid ""
23787 " set-trace true|false\n"
23788 "\n"
23789 msgstr ""
23790
23791 # type: =head2
23792 #: ../fish/guestfish-actions.pod:3790
23793 msgid "set-verbose"
23794 msgstr ""
23795
23796 # type: =head2
23797 #: ../fish/guestfish-actions.pod:3792
23798 msgid "verbose"
23799 msgstr ""
23800
23801 # type: verbatim
23802 #: ../fish/guestfish-actions.pod:3794
23803 #, no-wrap
23804 msgid ""
23805 " set-verbose true|false\n"
23806 "\n"
23807 msgstr ""
23808
23809 # type: =head2
23810 #: ../fish/guestfish-actions.pod:3801
23811 msgid "setcon"
23812 msgstr ""
23813
23814 # type: verbatim
23815 #: ../fish/guestfish-actions.pod:3803
23816 #, no-wrap
23817 msgid ""
23818 " setcon context\n"
23819 "\n"
23820 msgstr ""
23821
23822 # type: =head2
23823 #: ../fish/guestfish-actions.pod:3810
23824 msgid "setxattr"
23825 msgstr ""
23826
23827 # type: verbatim
23828 #: ../fish/guestfish-actions.pod:3812
23829 #, no-wrap
23830 msgid ""
23831 " setxattr xattr val vallen path\n"
23832 "\n"
23833 msgstr ""
23834
23835 # type: textblock
23836 #: ../fish/guestfish-actions.pod:3818
23837 msgid "See also: L</lsetxattr>, L<attr(5)>."
23838 msgstr ""
23839
23840 # type: =head2
23841 #: ../fish/guestfish-actions.pod:3820
23842 msgid "sfdisk"
23843 msgstr ""
23844
23845 # type: verbatim
23846 #: ../fish/guestfish-actions.pod:3822
23847 #, no-wrap
23848 msgid ""
23849 " sfdisk device cyls heads sectors 'lines ...'\n"
23850 "\n"
23851 msgstr ""
23852
23853 # type: textblock
23854 #: ../fish/guestfish-actions.pod:3844
23855 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23856 msgstr ""
23857
23858 # type: =head2
23859 #: ../fish/guestfish-actions.pod:3850
23860 msgid "sfdiskM"
23861 msgstr ""
23862
23863 # type: verbatim
23864 #: ../fish/guestfish-actions.pod:3852
23865 #, no-wrap
23866 msgid ""
23867 " sfdiskM device 'lines ...'\n"
23868 "\n"
23869 msgstr ""
23870
23871 # type: textblock
23872 #: ../fish/guestfish-actions.pod:3854
23873 msgid ""
23874 "This is a simplified interface to the L</sfdisk> command, where partition "
23875 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23876 "you don't need to specify the cyls, heads and sectors parameters which were "
23877 "rarely if ever used anyway."
23878 msgstr ""
23879
23880 # type: textblock
23881 #: ../fish/guestfish-actions.pod:3860
23882 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23883 msgstr ""
23884
23885 # type: =head2
23886 #: ../fish/guestfish-actions.pod:3866
23887 msgid "sfdisk-N"
23888 msgstr ""
23889
23890 # type: verbatim
23891 #: ../fish/guestfish-actions.pod:3868
23892 #, no-wrap
23893 msgid ""
23894 " sfdisk-N device partnum cyls heads sectors line\n"
23895 "\n"
23896 msgstr ""
23897
23898 # type: textblock
23899 #: ../fish/guestfish-actions.pod:3873
23900 msgid ""
23901 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23902 "cyls/heads/sectors parameters."
23903 msgstr ""
23904
23905 # type: textblock
23906 #: ../fish/guestfish-actions.pod:3876
23907 msgid "See also: L</part-add>"
23908 msgstr ""
23909
23910 # type: =head2
23911 #: ../fish/guestfish-actions.pod:3881
23912 msgid "sfdisk-disk-geometry"
23913 msgstr ""
23914
23915 # type: verbatim
23916 #: ../fish/guestfish-actions.pod:3883
23917 #, no-wrap
23918 msgid ""
23919 " sfdisk-disk-geometry device\n"
23920 "\n"
23921 msgstr ""
23922
23923 # type: textblock
23924 #: ../fish/guestfish-actions.pod:3885
23925 msgid ""
23926 "This displays the disk geometry of C<device> read from the partition table.  "
23927 "Especially in the case where the underlying block device has been resized, "
23928 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23929 "kernel-geometry>)."
23930 msgstr ""
23931
23932 # type: =head2
23933 #: ../fish/guestfish-actions.pod:3893
23934 msgid "sfdisk-kernel-geometry"
23935 msgstr ""
23936
23937 # type: verbatim
23938 #: ../fish/guestfish-actions.pod:3895
23939 #, no-wrap
23940 msgid ""
23941 " sfdisk-kernel-geometry device\n"
23942 "\n"
23943 msgstr ""
23944
23945 # type: =head2
23946 #: ../fish/guestfish-actions.pod:3902
23947 msgid "sfdisk-l"
23948 msgstr ""
23949
23950 # type: verbatim
23951 #: ../fish/guestfish-actions.pod:3904
23952 #, no-wrap
23953 msgid ""
23954 " sfdisk-l device\n"
23955 "\n"
23956 msgstr ""
23957
23958 # type: textblock
23959 #: ../fish/guestfish-actions.pod:3910
23960 msgid "See also: L</part-list>"
23961 msgstr ""
23962
23963 # type: =head2
23964 #: ../fish/guestfish-actions.pod:3912
23965 msgid "sh"
23966 msgstr ""
23967
23968 # type: verbatim
23969 #: ../fish/guestfish-actions.pod:3914
23970 #, no-wrap
23971 msgid ""
23972 " sh command\n"
23973 "\n"
23974 msgstr ""
23975
23976 # type: textblock
23977 #: ../fish/guestfish-actions.pod:3919
23978 msgid "This is like L</command>, but passes the command to:"
23979 msgstr ""
23980
23981 # type: textblock
23982 #: ../fish/guestfish-actions.pod:3927
23983 msgid "All the provisos about L</command> apply to this call."
23984 msgstr ""
23985
23986 # type: =head2
23987 #: ../fish/guestfish-actions.pod:3929
23988 msgid "sh-lines"
23989 msgstr ""
23990
23991 # type: verbatim
23992 #: ../fish/guestfish-actions.pod:3931
23993 #, no-wrap
23994 msgid ""
23995 " sh-lines command\n"
23996 "\n"
23997 msgstr ""
23998
23999 # type: textblock
24000 #: ../fish/guestfish-actions.pod:3933
24001 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24002 msgstr ""
24003
24004 # type: textblock
24005 #: ../fish/guestfish-actions.pod:3936
24006 msgid "See also: L</command-lines>"
24007 msgstr ""
24008
24009 # type: =head2
24010 #: ../fish/guestfish-actions.pod:3938
24011 msgid "sleep"
24012 msgstr ""
24013
24014 # type: verbatim
24015 #: ../fish/guestfish-actions.pod:3940
24016 #, no-wrap
24017 msgid ""
24018 " sleep secs\n"
24019 "\n"
24020 msgstr ""
24021
24022 # type: =head2
24023 #: ../fish/guestfish-actions.pod:3944
24024 msgid "stat"
24025 msgstr ""
24026
24027 # type: verbatim
24028 #: ../fish/guestfish-actions.pod:3946
24029 #, no-wrap
24030 msgid ""
24031 " stat path\n"
24032 "\n"
24033 msgstr ""
24034
24035 # type: =head2
24036 #: ../fish/guestfish-actions.pod:3952
24037 msgid "statvfs"
24038 msgstr ""
24039
24040 # type: verbatim
24041 #: ../fish/guestfish-actions.pod:3954
24042 #, no-wrap
24043 msgid ""
24044 " statvfs path\n"
24045 "\n"
24046 msgstr ""
24047
24048 # type: =head2
24049 #: ../fish/guestfish-actions.pod:3962
24050 msgid "strings"
24051 msgstr ""
24052
24053 # type: verbatim
24054 #: ../fish/guestfish-actions.pod:3964
24055 #, no-wrap
24056 msgid ""
24057 " strings path\n"
24058 "\n"
24059 msgstr ""
24060
24061 # type: =head2
24062 #: ../fish/guestfish-actions.pod:3972
24063 msgid "strings-e"
24064 msgstr ""
24065
24066 # type: verbatim
24067 #: ../fish/guestfish-actions.pod:3974
24068 #, no-wrap
24069 msgid ""
24070 " strings-e encoding path\n"
24071 "\n"
24072 msgstr ""
24073
24074 # type: textblock
24075 #: ../fish/guestfish-actions.pod:3976
24076 msgid ""
24077 "This is like the L</strings> command, but allows you to specify the encoding "
24078 "of strings that are looked for in the source file C<path>."
24079 msgstr ""
24080
24081 # type: textblock
24082 #: ../fish/guestfish-actions.pod:3986
24083 msgid ""
24084 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24085 "ISO-8859-X (this is what L</strings> uses)."
24086 msgstr ""
24087
24088 # type: =head2
24089 #: ../fish/guestfish-actions.pod:4018
24090 msgid "swapoff-device"
24091 msgstr ""
24092
24093 # type: verbatim
24094 #: ../fish/guestfish-actions.pod:4020
24095 #, no-wrap
24096 msgid ""
24097 " swapoff-device device\n"
24098 "\n"
24099 msgstr ""
24100
24101 # type: textblock
24102 #: ../fish/guestfish-actions.pod:4022
24103 msgid ""
24104 "This command disables the libguestfs appliance swap device or partition "
24105 "named C<device>.  See L</swapon-device>."
24106 msgstr ""
24107
24108 # type: =head2
24109 #: ../fish/guestfish-actions.pod:4026
24110 msgid "swapoff-file"
24111 msgstr ""
24112
24113 # type: verbatim
24114 #: ../fish/guestfish-actions.pod:4028
24115 #, no-wrap
24116 msgid ""
24117 " swapoff-file file\n"
24118 "\n"
24119 msgstr ""
24120
24121 # type: =head2
24122 #: ../fish/guestfish-actions.pod:4032
24123 msgid "swapoff-label"
24124 msgstr ""
24125
24126 # type: verbatim
24127 #: ../fish/guestfish-actions.pod:4034
24128 #, no-wrap
24129 msgid ""
24130 " swapoff-label label\n"
24131 "\n"
24132 msgstr ""
24133
24134 # type: =head2
24135 #: ../fish/guestfish-actions.pod:4039
24136 msgid "swapoff-uuid"
24137 msgstr ""
24138
24139 # type: verbatim
24140 #: ../fish/guestfish-actions.pod:4041
24141 #, no-wrap
24142 msgid ""
24143 " swapoff-uuid uuid\n"
24144 "\n"
24145 msgstr ""
24146
24147 # type: =head2
24148 #: ../fish/guestfish-actions.pod:4046
24149 msgid "swapon-device"
24150 msgstr ""
24151
24152 # type: verbatim
24153 #: ../fish/guestfish-actions.pod:4048
24154 #, no-wrap
24155 msgid ""
24156 " swapon-device device\n"
24157 "\n"
24158 msgstr ""
24159
24160 # type: textblock
24161 #: ../fish/guestfish-actions.pod:4050
24162 msgid ""
24163 "This command enables the libguestfs appliance to use the swap device or "
24164 "partition named C<device>.  The increased memory is made available for all "
24165 "commands, for example those run using L</command> or L</sh>."
24166 msgstr ""
24167
24168 # type: =head2
24169 #: ../fish/guestfish-actions.pod:4062
24170 msgid "swapon-file"
24171 msgstr ""
24172
24173 # type: verbatim
24174 #: ../fish/guestfish-actions.pod:4064
24175 #, no-wrap
24176 msgid ""
24177 " swapon-file file\n"
24178 "\n"
24179 msgstr ""
24180
24181 # type: textblock
24182 #: ../fish/guestfish-actions.pod:4066
24183 msgid ""
24184 "This command enables swap to a file.  See L</swapon-device> for other notes."
24185 msgstr ""
24186
24187 # type: =head2
24188 #: ../fish/guestfish-actions.pod:4069
24189 msgid "swapon-label"
24190 msgstr ""
24191
24192 # type: verbatim
24193 #: ../fish/guestfish-actions.pod:4071
24194 #, no-wrap
24195 msgid ""
24196 " swapon-label label\n"
24197 "\n"
24198 msgstr ""
24199
24200 # type: textblock
24201 #: ../fish/guestfish-actions.pod:4073
24202 msgid ""
24203 "This command enables swap to a labeled swap partition.  See L</swapon-"
24204 "device> for other notes."
24205 msgstr ""
24206
24207 # type: =head2
24208 #: ../fish/guestfish-actions.pod:4076
24209 msgid "swapon-uuid"
24210 msgstr ""
24211
24212 # type: verbatim
24213 #: ../fish/guestfish-actions.pod:4078
24214 #, no-wrap
24215 msgid ""
24216 " swapon-uuid uuid\n"
24217 "\n"
24218 msgstr ""
24219
24220 # type: textblock
24221 #: ../fish/guestfish-actions.pod:4080
24222 msgid ""
24223 "This command enables swap to a swap partition with the given UUID.  See L</"
24224 "swapon-device> for other notes."
24225 msgstr ""
24226
24227 # type: =head2
24228 #: ../fish/guestfish-actions.pod:4083
24229 msgid "sync"
24230 msgstr ""
24231
24232 # type: verbatim
24233 #: ../fish/guestfish-actions.pod:4085
24234 #, no-wrap
24235 msgid ""
24236 " sync\n"
24237 "\n"
24238 msgstr ""
24239
24240 # type: =head2
24241 #: ../fish/guestfish-actions.pod:4093
24242 msgid "tail"
24243 msgstr ""
24244
24245 # type: verbatim
24246 #: ../fish/guestfish-actions.pod:4095
24247 #, no-wrap
24248 msgid ""
24249 " tail path\n"
24250 "\n"
24251 msgstr ""
24252
24253 # type: =head2
24254 #: ../fish/guestfish-actions.pod:4103
24255 msgid "tail-n"
24256 msgstr ""
24257
24258 # type: verbatim
24259 #: ../fish/guestfish-actions.pod:4105
24260 #, no-wrap
24261 msgid ""
24262 " tail-n nrlines path\n"
24263 "\n"
24264 msgstr ""
24265
24266 # type: =head2
24267 #: ../fish/guestfish-actions.pod:4118
24268 msgid "tar-in"
24269 msgstr ""
24270
24271 # type: verbatim
24272 #: ../fish/guestfish-actions.pod:4120
24273 #, no-wrap
24274 msgid ""
24275 " tar-in (tarfile|-) directory\n"
24276 "\n"
24277 msgstr ""
24278
24279 # type: textblock
24280 #: ../fish/guestfish-actions.pod:4125
24281 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24282 msgstr ""
24283
24284 # type: =head2
24285 #: ../fish/guestfish-actions.pod:4130
24286 msgid "tar-out"
24287 msgstr ""
24288
24289 # type: verbatim
24290 #: ../fish/guestfish-actions.pod:4132
24291 #, no-wrap
24292 msgid ""
24293 " tar-out directory (tarfile|-)\n"
24294 "\n"
24295 msgstr ""
24296
24297 # type: textblock
24298 #: ../fish/guestfish-actions.pod:4137
24299 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24300 msgstr ""
24301
24302 # type: =head2
24303 #: ../fish/guestfish-actions.pod:4142
24304 msgid "tgz-in"
24305 msgstr ""
24306
24307 # type: verbatim
24308 #: ../fish/guestfish-actions.pod:4144
24309 #, no-wrap
24310 msgid ""
24311 " tgz-in (tarball|-) directory\n"
24312 "\n"
24313 msgstr ""
24314
24315 # type: textblock
24316 #: ../fish/guestfish-actions.pod:4149
24317 msgid "To upload an uncompressed tarball, use L</tar-in>."
24318 msgstr ""
24319
24320 # type: =head2
24321 #: ../fish/guestfish-actions.pod:4153
24322 msgid "tgz-out"
24323 msgstr ""
24324
24325 # type: verbatim
24326 #: ../fish/guestfish-actions.pod:4155
24327 #, no-wrap
24328 msgid ""
24329 " tgz-out directory (tarball|-)\n"
24330 "\n"
24331 msgstr ""
24332
24333 # type: textblock
24334 #: ../fish/guestfish-actions.pod:4160
24335 msgid "To download an uncompressed tarball, use L</tar-out>."
24336 msgstr ""
24337
24338 # type: =head2
24339 #: ../fish/guestfish-actions.pod:4164
24340 msgid "touch"
24341 msgstr ""
24342
24343 # type: verbatim
24344 #: ../fish/guestfish-actions.pod:4166
24345 #, no-wrap
24346 msgid ""
24347 " touch path\n"
24348 "\n"
24349 msgstr ""
24350
24351 # type: =head2
24352 #: ../fish/guestfish-actions.pod:4175
24353 msgid "truncate"
24354 msgstr ""
24355
24356 # type: verbatim
24357 #: ../fish/guestfish-actions.pod:4177
24358 #, no-wrap
24359 msgid ""
24360 " truncate path\n"
24361 "\n"
24362 msgstr ""
24363
24364 # type: =head2
24365 #: ../fish/guestfish-actions.pod:4182
24366 msgid "truncate-size"
24367 msgstr ""
24368
24369 # type: verbatim
24370 #: ../fish/guestfish-actions.pod:4184
24371 #, no-wrap
24372 msgid ""
24373 " truncate-size path size\n"
24374 "\n"
24375 msgstr ""
24376
24377 # type: textblock
24378 #: ../fish/guestfish-actions.pod:4189
24379 msgid ""
24380 "If the current file size is less than C<size> then the file is extended to "
24381 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24382 "blocks are not allocated for the file until you write to it).  To create a "
24383 "non-sparse file of zeroes, use L</fallocate64> instead."
24384 msgstr ""
24385
24386 # type: =head2
24387 #: ../fish/guestfish-actions.pod:4195
24388 msgid "tune2fs-l"
24389 msgstr ""
24390
24391 # type: verbatim
24392 #: ../fish/guestfish-actions.pod:4197
24393 #, no-wrap
24394 msgid ""
24395 " tune2fs-l device\n"
24396 "\n"
24397 msgstr ""
24398
24399 # type: =head2
24400 #: ../fish/guestfish-actions.pod:4207
24401 msgid "txz-in"
24402 msgstr ""
24403
24404 # type: verbatim
24405 #: ../fish/guestfish-actions.pod:4209
24406 #, no-wrap
24407 msgid ""
24408 " txz-in (tarball|-) directory\n"
24409 "\n"
24410 msgstr ""
24411
24412 # type: =head2
24413 #: ../fish/guestfish-actions.pod:4216
24414 msgid "txz-out"
24415 msgstr ""
24416
24417 # type: verbatim
24418 #: ../fish/guestfish-actions.pod:4218
24419 #, no-wrap
24420 msgid ""
24421 " txz-out directory (tarball|-)\n"
24422 "\n"
24423 msgstr ""
24424
24425 # type: =head2
24426 #: ../fish/guestfish-actions.pod:4225
24427 msgid "umask"
24428 msgstr ""
24429
24430 # type: verbatim
24431 #: ../fish/guestfish-actions.pod:4227
24432 #, no-wrap
24433 msgid ""
24434 " umask mask\n"
24435 "\n"
24436 msgstr ""
24437
24438 # type: textblock
24439 #: ../fish/guestfish-actions.pod:4241
24440 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24441 msgstr ""
24442
24443 # type: =head2
24444 #: ../fish/guestfish-actions.pod:4246
24445 msgid "umount"
24446 msgstr ""
24447
24448 # type: =head2
24449 #: ../fish/guestfish-actions.pod:4248
24450 msgid "unmount"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #: ../fish/guestfish-actions.pod:4250
24455 #, no-wrap
24456 msgid ""
24457 " umount pathordevice\n"
24458 "\n"
24459 msgstr ""
24460
24461 # type: =head2
24462 #: ../fish/guestfish-actions.pod:4256
24463 msgid "umount-all"
24464 msgstr ""
24465
24466 # type: =head2
24467 #: ../fish/guestfish-actions.pod:4258
24468 msgid "unmount-all"
24469 msgstr ""
24470
24471 # type: verbatim
24472 #: ../fish/guestfish-actions.pod:4260
24473 #, no-wrap
24474 msgid ""
24475 " umount-all\n"
24476 "\n"
24477 msgstr ""
24478
24479 # type: =head2
24480 #: ../fish/guestfish-actions.pod:4266
24481 msgid "upload"
24482 msgstr ""
24483
24484 # type: verbatim
24485 #: ../fish/guestfish-actions.pod:4268
24486 #, no-wrap
24487 msgid ""
24488 " upload (filename|-) remotefilename\n"
24489 "\n"
24490 msgstr ""
24491
24492 # type: textblock
24493 #: ../fish/guestfish-actions.pod:4275
24494 msgid "See also L</download>."
24495 msgstr ""
24496
24497 # type: =head2
24498 #: ../fish/guestfish-actions.pod:4279
24499 msgid "upload-offset"
24500 msgstr ""
24501
24502 # type: verbatim
24503 #: ../fish/guestfish-actions.pod:4281
24504 #, no-wrap
24505 msgid ""
24506 " upload-offset (filename|-) remotefilename offset\n"
24507 "\n"
24508 msgstr ""
24509
24510 # type: textblock
24511 #: ../fish/guestfish-actions.pod:4293
24512 msgid ""
24513 "Note that there is no limit on the amount of data that can be uploaded with "
24514 "this call, unlike with L</pwrite>, and this call always writes the full "
24515 "amount unless an error occurs."
24516 msgstr ""
24517
24518 # type: textblock
24519 #: ../fish/guestfish-actions.pod:4298
24520 msgid "See also L</upload>, L</pwrite>."
24521 msgstr ""
24522
24523 # type: =head2
24524 #: ../fish/guestfish-actions.pod:4302
24525 msgid "utimens"
24526 msgstr ""
24527
24528 # type: verbatim
24529 #: ../fish/guestfish-actions.pod:4304
24530 #, no-wrap
24531 msgid ""
24532 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24533 "\n"
24534 msgstr ""
24535
24536 # type: =head2
24537 #: ../fish/guestfish-actions.pod:4323
24538 msgid "version"
24539 msgstr ""
24540
24541 # type: verbatim
24542 #: ../fish/guestfish-actions.pod:4325
24543 #, no-wrap
24544 msgid ""
24545 " version\n"
24546 "\n"
24547 msgstr ""
24548
24549 # type: textblock
24550 #: ../fish/guestfish-actions.pod:4352
24551 msgid ""
24552 "I<Note:> Don't use this call to test for availability of features.  In "
24553 "enterprise distributions we backport features from later versions into "
24554 "earlier versions, making this an unreliable way to test for features.  Use "
24555 "L</available> instead."
24556 msgstr ""
24557
24558 # type: =head2
24559 #: ../fish/guestfish-actions.pod:4358
24560 msgid "vfs-label"
24561 msgstr ""
24562
24563 # type: verbatim
24564 #: ../fish/guestfish-actions.pod:4360
24565 #, no-wrap
24566 msgid ""
24567 " vfs-label device\n"
24568 "\n"
24569 msgstr ""
24570
24571 # type: textblock
24572 #: ../fish/guestfish-actions.pod:4367
24573 msgid "To find a filesystem from the label, use L</findfs-label>."
24574 msgstr ""
24575
24576 # type: =head2
24577 #: ../fish/guestfish-actions.pod:4369
24578 msgid "vfs-type"
24579 msgstr ""
24580
24581 # type: verbatim
24582 #: ../fish/guestfish-actions.pod:4371
24583 #, no-wrap
24584 msgid ""
24585 " vfs-type device\n"
24586 "\n"
24587 msgstr ""
24588
24589 # type: =head2
24590 #: ../fish/guestfish-actions.pod:4381
24591 msgid "vfs-uuid"
24592 msgstr ""
24593
24594 # type: verbatim
24595 #: ../fish/guestfish-actions.pod:4383
24596 #, no-wrap
24597 msgid ""
24598 " vfs-uuid device\n"
24599 "\n"
24600 msgstr ""
24601
24602 # type: textblock
24603 #: ../fish/guestfish-actions.pod:4390
24604 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24605 msgstr ""
24606
24607 # type: =head2
24608 #: ../fish/guestfish-actions.pod:4392
24609 msgid "vg-activate"
24610 msgstr ""
24611
24612 # type: verbatim
24613 #: ../fish/guestfish-actions.pod:4394
24614 #, no-wrap
24615 msgid ""
24616 " vg-activate true|false 'volgroups ...'\n"
24617 "\n"
24618 msgstr ""
24619
24620 # type: =head2
24621 #: ../fish/guestfish-actions.pod:4407
24622 msgid "vg-activate-all"
24623 msgstr ""
24624
24625 # type: verbatim
24626 #: ../fish/guestfish-actions.pod:4409
24627 #, no-wrap
24628 msgid ""
24629 " vg-activate-all true|false\n"
24630 "\n"
24631 msgstr ""
24632
24633 # type: =head2
24634 #: ../fish/guestfish-actions.pod:4419
24635 msgid "vgcreate"
24636 msgstr ""
24637
24638 # type: verbatim
24639 #: ../fish/guestfish-actions.pod:4421
24640 #, no-wrap
24641 msgid ""
24642 " vgcreate volgroup 'physvols ...'\n"
24643 "\n"
24644 msgstr ""
24645
24646 # type: =head2
24647 #: ../fish/guestfish-actions.pod:4426
24648 msgid "vglvuuids"
24649 msgstr ""
24650
24651 # type: verbatim
24652 #: ../fish/guestfish-actions.pod:4428
24653 #, no-wrap
24654 msgid ""
24655 " vglvuuids vgname\n"
24656 "\n"
24657 msgstr ""
24658
24659 # type: textblock
24660 #: ../fish/guestfish-actions.pod:4433
24661 msgid ""
24662 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24663 "logical volumes and volume groups."
24664 msgstr ""
24665
24666 # type: textblock
24667 #: ../fish/guestfish-actions.pod:4436
24668 msgid "See also L</vgpvuuids>."
24669 msgstr ""
24670
24671 # type: =head2
24672 #: ../fish/guestfish-actions.pod:4438
24673 msgid "vgpvuuids"
24674 msgstr ""
24675
24676 # type: verbatim
24677 #: ../fish/guestfish-actions.pod:4440
24678 #, no-wrap
24679 msgid ""
24680 " vgpvuuids vgname\n"
24681 "\n"
24682 msgstr ""
24683
24684 # type: textblock
24685 #: ../fish/guestfish-actions.pod:4445
24686 msgid ""
24687 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24688 "physical volumes and volume groups."
24689 msgstr ""
24690
24691 # type: textblock
24692 #: ../fish/guestfish-actions.pod:4448
24693 msgid "See also L</vglvuuids>."
24694 msgstr ""
24695
24696 # type: =head2
24697 #: ../fish/guestfish-actions.pod:4450
24698 msgid "vgremove"
24699 msgstr ""
24700
24701 # type: verbatim
24702 #: ../fish/guestfish-actions.pod:4452
24703 #, no-wrap
24704 msgid ""
24705 " vgremove vgname\n"
24706 "\n"
24707 msgstr ""
24708
24709 # type: =head2
24710 #: ../fish/guestfish-actions.pod:4459
24711 msgid "vgrename"
24712 msgstr ""
24713
24714 # type: verbatim
24715 #: ../fish/guestfish-actions.pod:4461
24716 #, no-wrap
24717 msgid ""
24718 " vgrename volgroup newvolgroup\n"
24719 "\n"
24720 msgstr ""
24721
24722 # type: =head2
24723 #: ../fish/guestfish-actions.pod:4465
24724 msgid "vgs"
24725 msgstr ""
24726
24727 # type: verbatim
24728 #: ../fish/guestfish-actions.pod:4467
24729 #, no-wrap
24730 msgid ""
24731 " vgs\n"
24732 "\n"
24733 msgstr ""
24734
24735 # type: textblock
24736 #: ../fish/guestfish-actions.pod:4475
24737 msgid "See also L</vgs-full>."
24738 msgstr ""
24739
24740 # type: =head2
24741 #: ../fish/guestfish-actions.pod:4477
24742 msgid "vgs-full"
24743 msgstr ""
24744
24745 # type: verbatim
24746 #: ../fish/guestfish-actions.pod:4479
24747 #, no-wrap
24748 msgid ""
24749 " vgs-full\n"
24750 "\n"
24751 msgstr ""
24752
24753 # type: =head2
24754 #: ../fish/guestfish-actions.pod:4484
24755 msgid "vgscan"
24756 msgstr ""
24757
24758 # type: verbatim
24759 #: ../fish/guestfish-actions.pod:4486
24760 #, no-wrap
24761 msgid ""
24762 " vgscan\n"
24763 "\n"
24764 msgstr ""
24765
24766 # type: =head2
24767 #: ../fish/guestfish-actions.pod:4491
24768 msgid "vguuid"
24769 msgstr ""
24770
24771 # type: verbatim
24772 #: ../fish/guestfish-actions.pod:4493
24773 #, no-wrap
24774 msgid ""
24775 " vguuid vgname\n"
24776 "\n"
24777 msgstr ""
24778
24779 # type: =head2
24780 #: ../fish/guestfish-actions.pod:4497
24781 msgid "wc-c"
24782 msgstr ""
24783
24784 # type: verbatim
24785 #: ../fish/guestfish-actions.pod:4499
24786 #, no-wrap
24787 msgid ""
24788 " wc-c path\n"
24789 "\n"
24790 msgstr ""
24791
24792 # type: =head2
24793 #: ../fish/guestfish-actions.pod:4504
24794 msgid "wc-l"
24795 msgstr ""
24796
24797 # type: verbatim
24798 #: ../fish/guestfish-actions.pod:4506
24799 #, no-wrap
24800 msgid ""
24801 " wc-l path\n"
24802 "\n"
24803 msgstr ""
24804
24805 # type: =head2
24806 #: ../fish/guestfish-actions.pod:4511
24807 msgid "wc-w"
24808 msgstr ""
24809
24810 # type: verbatim
24811 #: ../fish/guestfish-actions.pod:4513
24812 #, no-wrap
24813 msgid ""
24814 " wc-w path\n"
24815 "\n"
24816 msgstr ""
24817
24818 # type: =head2
24819 #: ../fish/guestfish-actions.pod:4518
24820 msgid "write"
24821 msgstr ""
24822
24823 # type: verbatim
24824 #: ../fish/guestfish-actions.pod:4520
24825 #, no-wrap
24826 msgid ""
24827 " write path content\n"
24828 "\n"
24829 msgstr ""
24830
24831 # type: =head2
24832 #: ../fish/guestfish-actions.pod:4528
24833 msgid "write-file"
24834 msgstr ""
24835
24836 # type: verbatim
24837 #: ../fish/guestfish-actions.pod:4530
24838 #, no-wrap
24839 msgid ""
24840 " write-file path content size\n"
24841 "\n"
24842 msgstr ""
24843
24844 # type: =head2
24845 #: ../fish/guestfish-actions.pod:4553
24846 msgid "zegrep"
24847 msgstr ""
24848
24849 # type: verbatim
24850 #: ../fish/guestfish-actions.pod:4555
24851 #, no-wrap
24852 msgid ""
24853 " zegrep regex path\n"
24854 "\n"
24855 msgstr ""
24856
24857 # type: =head2
24858 #: ../fish/guestfish-actions.pod:4563
24859 msgid "zegrepi"
24860 msgstr ""
24861
24862 # type: verbatim
24863 #: ../fish/guestfish-actions.pod:4565
24864 #, no-wrap
24865 msgid ""
24866 " zegrepi regex path\n"
24867 "\n"
24868 msgstr ""
24869
24870 # type: =head2
24871 #: ../fish/guestfish-actions.pod:4573
24872 msgid "zero"
24873 msgstr ""
24874
24875 # type: verbatim
24876 #: ../fish/guestfish-actions.pod:4575
24877 #, no-wrap
24878 msgid ""
24879 " zero device\n"
24880 "\n"
24881 msgstr ""
24882
24883 # type: textblock
24884 #: ../fish/guestfish-actions.pod:4583
24885 msgid "See also: L</zero-device>, L</scrub-device>."
24886 msgstr ""
24887
24888 # type: =head2
24889 #: ../fish/guestfish-actions.pod:4585
24890 msgid "zero-device"
24891 msgstr ""
24892
24893 # type: verbatim
24894 #: ../fish/guestfish-actions.pod:4587
24895 #, no-wrap
24896 msgid ""
24897 " zero-device device\n"
24898 "\n"
24899 msgstr ""
24900
24901 # type: textblock
24902 #: ../fish/guestfish-actions.pod:4589
24903 msgid ""
24904 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24905 "which just zeroes the first few blocks of a device."
24906 msgstr ""
24907
24908 # type: =head2
24909 #: ../fish/guestfish-actions.pod:4596
24910 msgid "zerofree"
24911 msgstr ""
24912
24913 # type: verbatim
24914 #: ../fish/guestfish-actions.pod:4598
24915 #, no-wrap
24916 msgid ""
24917 " zerofree device\n"
24918 "\n"
24919 msgstr ""
24920
24921 # type: =head2
24922 #: ../fish/guestfish-actions.pod:4611
24923 msgid "zfgrep"
24924 msgstr ""
24925
24926 # type: verbatim
24927 #: ../fish/guestfish-actions.pod:4613
24928 #, no-wrap
24929 msgid ""
24930 " zfgrep pattern path\n"
24931 "\n"
24932 msgstr ""
24933
24934 # type: =head2
24935 #: ../fish/guestfish-actions.pod:4621
24936 msgid "zfgrepi"
24937 msgstr ""
24938
24939 # type: verbatim
24940 #: ../fish/guestfish-actions.pod:4623
24941 #, no-wrap
24942 msgid ""
24943 " zfgrepi pattern path\n"
24944 "\n"
24945 msgstr ""
24946
24947 # type: =head2
24948 #: ../fish/guestfish-actions.pod:4631
24949 msgid "zfile"
24950 msgstr ""
24951
24952 # type: verbatim
24953 #: ../fish/guestfish-actions.pod:4633
24954 #, no-wrap
24955 msgid ""
24956 " zfile meth path\n"
24957 "\n"
24958 msgstr ""
24959
24960 # type: textblock
24961 #: ../fish/guestfish-actions.pod:4640
24962 msgid ""
24963 "Since 1.0.63, use L</file> instead which can now process compressed files."
24964 msgstr ""
24965
24966 # type: =head2
24967 #: ../fish/guestfish-actions.pod:4650
24968 msgid "zgrep"
24969 msgstr ""
24970
24971 # type: verbatim
24972 #: ../fish/guestfish-actions.pod:4652
24973 #, no-wrap
24974 msgid ""
24975 " zgrep regex path\n"
24976 "\n"
24977 msgstr ""
24978
24979 # type: =head2
24980 #: ../fish/guestfish-actions.pod:4660
24981 msgid "zgrepi"
24982 msgstr ""
24983
24984 # type: verbatim
24985 #: ../fish/guestfish-actions.pod:4662
24986 #, no-wrap
24987 msgid ""
24988 " zgrepi regex path\n"
24989 "\n"
24990 msgstr ""
24991
24992 # type: =head2
24993 #: ../fish/guestfish-commands.pod:1
24994 msgid "alloc"
24995 msgstr ""
24996
24997 # type: =head2
24998 #: ../fish/guestfish-commands.pod:3
24999 msgid "allocate"
25000 msgstr ""
25001
25002 # type: verbatim
25003 #: ../fish/guestfish-commands.pod:5
25004 #, no-wrap
25005 msgid ""
25006 " alloc filename size\n"
25007 "\n"
25008 msgstr ""
25009
25010 # type: textblock
25011 #: ../fish/guestfish-commands.pod:7
25012 msgid ""
25013 "This creates an empty (zeroed) file of the given size, and then adds so it "
25014 "can be further examined."
25015 msgstr ""
25016
25017 # type: textblock
25018 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25019 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25020 msgstr ""
25021
25022 # type: textblock
25023 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25024 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25025 msgstr ""
25026
25027 # type: textblock
25028 #: ../fish/guestfish-commands.pod:14
25029 msgid ""
25030 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25031 "image, see L</PREPARED DISK IMAGES>."
25032 msgstr ""
25033
25034 # type: =head2
25035 #: ../fish/guestfish-commands.pod:17
25036 msgid "copy-in"
25037 msgstr ""
25038
25039 # type: verbatim
25040 #: ../fish/guestfish-commands.pod:19
25041 #, no-wrap
25042 msgid ""
25043 " copy-in local [local ...] /remotedir\n"
25044 "\n"
25045 msgstr ""
25046
25047 # type: textblock
25048 #: ../fish/guestfish-commands.pod:21
25049 msgid ""
25050 "C<copy-in> copies local files or directories recursively into the disk "
25051 "image, placing them in the directory called C</remotedir> (which must "
25052 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25053 "other commands as necessary."
25054 msgstr ""
25055
25056 # type: textblock
25057 #: ../fish/guestfish-commands.pod:26
25058 msgid ""
25059 "Multiple local files and directories can be specified, but the last "
25060 "parameter must always be a remote directory.  Wildcards cannot be used."
25061 msgstr ""
25062
25063 # type: =head2
25064 #: ../fish/guestfish-commands.pod:30
25065 msgid "copy-out"
25066 msgstr ""
25067
25068 # type: verbatim
25069 #: ../fish/guestfish-commands.pod:32
25070 #, no-wrap
25071 msgid ""
25072 " copy-out remote [remote ...] localdir\n"
25073 "\n"
25074 msgstr ""
25075
25076 # type: textblock
25077 #: ../fish/guestfish-commands.pod:34
25078 msgid ""
25079 "C<copy-out> copies remote files or directories recursively out of the disk "
25080 "image, placing them on the host disk in a local directory called C<localdir> "
25081 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25082 "download>, L</tar-out> and other commands as necessary."
25083 msgstr ""
25084
25085 # type: textblock
25086 #: ../fish/guestfish-commands.pod:40
25087 msgid ""
25088 "Multiple remote files and directories can be specified, but the last "
25089 "parameter must always be a local directory.  To download to the current "
25090 "directory, use C<.> as in:"
25091 msgstr ""
25092
25093 # type: verbatim
25094 #: ../fish/guestfish-commands.pod:44
25095 #, no-wrap
25096 msgid ""
25097 " copy-out /home .\n"
25098 "\n"
25099 msgstr ""
25100
25101 # type: textblock
25102 #: ../fish/guestfish-commands.pod:46
25103 msgid ""
25104 "Wildcards cannot be used in the ordinary command, but you can use them with "
25105 "the help of L</glob> like this:"
25106 msgstr ""
25107
25108 # type: verbatim
25109 #: ../fish/guestfish-commands.pod:49
25110 #, no-wrap
25111 msgid ""
25112 " glob copy-out /home/* .\n"
25113 "\n"
25114 msgstr ""
25115
25116 # type: =head2
25117 #: ../fish/guestfish-commands.pod:51
25118 msgid "echo"
25119 msgstr ""
25120
25121 # type: verbatim
25122 #: ../fish/guestfish-commands.pod:53
25123 #, no-wrap
25124 msgid ""
25125 " echo [params ...]\n"
25126 "\n"
25127 msgstr ""
25128
25129 # type: textblock
25130 #: ../fish/guestfish-commands.pod:55
25131 msgid "This echos the parameters to the terminal."
25132 msgstr ""
25133
25134 # type: =head2
25135 #: ../fish/guestfish-commands.pod:57
25136 msgid "edit"
25137 msgstr ""
25138
25139 # type: =head2
25140 #: ../fish/guestfish-commands.pod:59
25141 msgid "vi"
25142 msgstr ""
25143
25144 # type: =head2
25145 #: ../fish/guestfish-commands.pod:61
25146 msgid "emacs"
25147 msgstr ""
25148
25149 # type: verbatim
25150 #: ../fish/guestfish-commands.pod:63
25151 #, no-wrap
25152 msgid ""
25153 " edit filename\n"
25154 "\n"
25155 msgstr ""
25156
25157 # type: textblock
25158 #: ../fish/guestfish-commands.pod:65
25159 msgid ""
25160 "This is used to edit a file.  It downloads the file, edits it locally using "
25161 "your editor, then uploads the result."
25162 msgstr ""
25163
25164 # type: textblock
25165 #: ../fish/guestfish-commands.pod:68
25166 msgid ""
25167 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25168 "or C<emacs> you will get those corresponding editors."
25169 msgstr ""
25170
25171 # type: =head2
25172 #: ../fish/guestfish-commands.pod:72
25173 msgid "glob"
25174 msgstr ""
25175
25176 # type: verbatim
25177 #: ../fish/guestfish-commands.pod:74
25178 #, no-wrap
25179 msgid ""
25180 " glob command args...\n"
25181 "\n"
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../fish/guestfish-commands.pod:76
25186 msgid ""
25187 "Expand wildcards in any paths in the args list, and run C<command> "
25188 "repeatedly on each matching path."
25189 msgstr ""
25190
25191 # type: textblock
25192 #: ../fish/guestfish-commands.pod:79
25193 msgid "See L</WILDCARDS AND GLOBBING>."
25194 msgstr ""
25195
25196 # type: =head2
25197 #: ../fish/guestfish-commands.pod:81
25198 msgid "hexedit"
25199 msgstr ""
25200
25201 # type: verbatim
25202 #: ../fish/guestfish-commands.pod:83
25203 #, no-wrap
25204 msgid ""
25205 " hexedit <filename|device>\n"
25206 " hexedit <filename|device> <max>\n"
25207 " hexedit <filename|device> <start> <max>\n"
25208 "\n"
25209 msgstr ""
25210
25211 # type: textblock
25212 #: ../fish/guestfish-commands.pod:87
25213 msgid ""
25214 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25215 "device."
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../fish/guestfish-commands.pod:90
25220 msgid ""
25221 "This command works by downloading potentially the whole file or device, "
25222 "editing it locally, then uploading it.  If the file or device is large, you "
25223 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25224 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25225 "usual modifiers allowed such as C<1M> (1 megabyte)."
25226 msgstr ""
25227
25228 # type: textblock
25229 #: ../fish/guestfish-commands.pod:97
25230 msgid "For example to edit the first few sectors of a disk you might do:"
25231 msgstr ""
25232
25233 # type: verbatim
25234 #: ../fish/guestfish-commands.pod:100
25235 #, no-wrap
25236 msgid ""
25237 " hexedit /dev/sda 1M\n"
25238 "\n"
25239 msgstr ""
25240
25241 # type: textblock
25242 #: ../fish/guestfish-commands.pod:102
25243 msgid ""
25244 "which would allow you to edit anywhere within the first megabyte of the disk."
25245 msgstr ""
25246
25247 # type: textblock
25248 #: ../fish/guestfish-commands.pod:105
25249 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25250 msgstr ""
25251
25252 # type: verbatim
25253 #: ../fish/guestfish-commands.pod:107
25254 #, no-wrap
25255 msgid ""
25256 " hexedit /dev/sda1 0x400 0x400\n"
25257 "\n"
25258 msgstr ""
25259
25260 # type: textblock
25261 #: ../fish/guestfish-commands.pod:109
25262 msgid "(assuming the superblock is in the standard location)."
25263 msgstr ""
25264
25265 # type: textblock
25266 #: ../fish/guestfish-commands.pod:111
25267 msgid ""
25268 "This command requires the external L<hexedit(1)> program.  You can specify "
25269 "another program to use by setting the C<HEXEDITOR> environment variable."
25270 msgstr ""
25271
25272 # type: textblock
25273 #: ../fish/guestfish-commands.pod:115
25274 msgid "See also L</hexdump>."
25275 msgstr ""
25276
25277 # type: =head2
25278 #: ../fish/guestfish-commands.pod:117
25279 msgid "lcd"
25280 msgstr ""
25281
25282 # type: verbatim
25283 #: ../fish/guestfish-commands.pod:119
25284 #, no-wrap
25285 msgid ""
25286 " lcd directory\n"
25287 "\n"
25288 msgstr ""
25289
25290 # type: textblock
25291 #: ../fish/guestfish-commands.pod:121
25292 msgid ""
25293 "Change the local directory, ie. the current directory of guestfish itself."
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../fish/guestfish-commands.pod:124
25298 msgid "Note that C<!cd> won't do what you might expect."
25299 msgstr ""
25300
25301 # type: =head2
25302 #: ../fish/guestfish-commands.pod:126
25303 msgid "man"
25304 msgstr ""
25305
25306 # type: =head2
25307 #: ../fish/guestfish-commands.pod:128
25308 msgid "manual"
25309 msgstr ""
25310
25311 # type: verbatim
25312 #: ../fish/guestfish-commands.pod:130
25313 #, no-wrap
25314 msgid ""
25315 "  man\n"
25316 "\n"
25317 msgstr ""
25318
25319 # type: textblock
25320 #: ../fish/guestfish-commands.pod:132
25321 msgid "Opens the manual page for guestfish."
25322 msgstr ""
25323
25324 # type: =head2
25325 #: ../fish/guestfish-commands.pod:134
25326 msgid "more"
25327 msgstr ""
25328
25329 # type: =head2
25330 #: ../fish/guestfish-commands.pod:136
25331 msgid "less"
25332 msgstr ""
25333
25334 # type: verbatim
25335 #: ../fish/guestfish-commands.pod:138
25336 #, no-wrap
25337 msgid ""
25338 " more filename\n"
25339 "\n"
25340 msgstr ""
25341
25342 # type: verbatim
25343 #: ../fish/guestfish-commands.pod:140
25344 #, no-wrap
25345 msgid ""
25346 " less filename\n"
25347 "\n"
25348 msgstr ""
25349
25350 # type: textblock
25351 #: ../fish/guestfish-commands.pod:142
25352 msgid "This is used to view a file."
25353 msgstr ""
25354
25355 # type: textblock
25356 #: ../fish/guestfish-commands.pod:144
25357 msgid ""
25358 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25359 "C<less> you will get the C<less> command specifically."
25360 msgstr ""
25361
25362 # type: =head2
25363 #: ../fish/guestfish-commands.pod:147
25364 msgid "reopen"
25365 msgstr ""
25366
25367 # type: verbatim
25368 #: ../fish/guestfish-commands.pod:149
25369 #, no-wrap
25370 msgid ""
25371 "  reopen\n"
25372 "\n"
25373 msgstr ""
25374
25375 # type: textblock
25376 #: ../fish/guestfish-commands.pod:151
25377 msgid ""
25378 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25379 "normally, because the handle is closed properly when guestfish exits.  "
25380 "However this is occasionally useful for testing."
25381 msgstr ""
25382
25383 # type: =head2
25384 #: ../fish/guestfish-commands.pod:155
25385 msgid "sparse"
25386 msgstr ""
25387
25388 # type: verbatim
25389 #: ../fish/guestfish-commands.pod:157
25390 #, no-wrap
25391 msgid ""
25392 " sparse filename size\n"
25393 "\n"
25394 msgstr ""
25395
25396 # type: textblock
25397 #: ../fish/guestfish-commands.pod:159
25398 msgid ""
25399 "This creates an empty sparse file of the given size, and then adds so it can "
25400 "be further examined."
25401 msgstr ""
25402
25403 # type: textblock
25404 #: ../fish/guestfish-commands.pod:162
25405 msgid ""
25406 "In all respects it works the same as the L</alloc> command, except that the "
25407 "image file is allocated sparsely, which means that disk blocks are not "
25408 "assigned to the file until they are needed.  Sparse disk files only use "
25409 "space when written to, but they are slower and there is a danger you could "
25410 "run out of real disk space during a write operation."
25411 msgstr ""
25412
25413 # type: =head2
25414 #: ../fish/guestfish-commands.pod:172
25415 msgid "supported"
25416 msgstr ""
25417
25418 # type: verbatim
25419 #: ../fish/guestfish-commands.pod:174
25420 #, no-wrap
25421 msgid ""
25422 " supported\n"
25423 "\n"
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../fish/guestfish-commands.pod:176
25428 msgid ""
25429 "This command returns a list of the optional groups known to the daemon, and "
25430 "indicates which ones are supported by this build of the libguestfs appliance."
25431 msgstr ""
25432
25433 # type: textblock
25434 #: ../fish/guestfish-commands.pod:180
25435 msgid "See also L<guestfs(3)/AVAILABILITY>."
25436 msgstr ""
25437
25438 # type: =head2
25439 #: ../fish/guestfish-commands.pod:182
25440 msgid "time"
25441 msgstr ""
25442
25443 # type: verbatim
25444 #: ../fish/guestfish-commands.pod:184
25445 #, no-wrap
25446 msgid ""
25447 " time command args...\n"
25448 "\n"
25449 msgstr ""
25450
25451 # type: textblock
25452 #: ../fish/guestfish-commands.pod:186
25453 msgid ""
25454 "Run the command as usual, but print the elapsed time afterwards.  This can "
25455 "be useful for benchmarking operations."
25456 msgstr ""
25457
25458 # type: textblock
25459 #: ../test-tool/libguestfs-test-tool.pod:5
25460 msgid "libguestfs-test-tool - End user tests for libguestfs"
25461 msgstr ""
25462
25463 # type: verbatim
25464 #: ../test-tool/libguestfs-test-tool.pod:9
25465 #, no-wrap
25466 msgid ""
25467 " libguestfs-test-tool [--options]\n"
25468 "\n"
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../test-tool/libguestfs-test-tool.pod:13
25473 msgid ""
25474 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25475 "and developers, to allow them to check basic libguestfs functionality is "
25476 "working.  This is needed because libguestfs occasionally breaks for reasons "
25477 "beyond our control: usually because of changes in the underlying qemu or "
25478 "kernel packages, or the host environment."
25479 msgstr ""
25480
25481 # type: textblock
25482 #: ../test-tool/libguestfs-test-tool.pod:20
25483 msgid "If you suspect a problem in libguestfs, then just run:"
25484 msgstr ""
25485
25486 # type: verbatim
25487 #: ../test-tool/libguestfs-test-tool.pod:22
25488 #, no-wrap
25489 msgid ""
25490 " libguestfs-test-tool\n"
25491 "\n"
25492 msgstr ""
25493
25494 # type: textblock
25495 #: ../test-tool/libguestfs-test-tool.pod:24
25496 msgid "It will print lots of diagnostic messages."
25497 msgstr ""
25498
25499 # type: textblock
25500 #: ../test-tool/libguestfs-test-tool.pod:26
25501 msgid "If it runs to completion successfully, you will see this near the end:"
25502 msgstr ""
25503
25504 # type: verbatim
25505 #: ../test-tool/libguestfs-test-tool.pod:28
25506 #, no-wrap
25507 msgid ""
25508 " ===== TEST FINISHED OK =====\n"
25509 "\n"
25510 msgstr ""
25511
25512 # type: textblock
25513 #: ../test-tool/libguestfs-test-tool.pod:30
25514 msgid "and the test tool will exit with code 0."
25515 msgstr ""
25516
25517 # type: textblock
25518 #: ../test-tool/libguestfs-test-tool.pod:32
25519 msgid ""
25520 "If it fails (and/or exits with non-zero error code), please paste the "
25521 "B<complete, unedited> output of the test tool into a bug report.  More "
25522 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25523 "> website."
25524 msgstr ""
25525
25526 # type: =item
25527 #: ../test-tool/libguestfs-test-tool.pod:41
25528 msgid "I<--help>"
25529 msgstr ""
25530
25531 # type: textblock
25532 #: ../test-tool/libguestfs-test-tool.pod:43
25533 msgid "Display short usage information and exit."
25534 msgstr ""
25535
25536 # type: =item
25537 #: ../test-tool/libguestfs-test-tool.pod:45
25538 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../test-tool/libguestfs-test-tool.pod:47
25543 msgid ""
25544 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25545 "normally look in the C<$libexec> directory that was configured when the tool "
25546 "was built."
25547 msgstr ""
25548
25549 # type: =item
25550 #: ../test-tool/libguestfs-test-tool.pod:51
25551 msgid "I<--qemu qemu_binary>"
25552 msgstr ""
25553
25554 # type: textblock
25555 #: ../test-tool/libguestfs-test-tool.pod:53
25556 msgid ""
25557 "If you have downloaded another qemu binary, point this option at the full "
25558 "path of the binary to try it."
25559 msgstr ""
25560
25561 # type: =item
25562 #: ../test-tool/libguestfs-test-tool.pod:56
25563 msgid "I<--qemudir qemu_source_dir>"
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../test-tool/libguestfs-test-tool.pod:58
25568 msgid ""
25569 "If you have compiled qemu from source, point this option at the source "
25570 "directory to try it."
25571 msgstr ""
25572
25573 # type: =item
25574 #: ../test-tool/libguestfs-test-tool.pod:61
25575 msgid "I<--timeout N>"
25576 msgstr ""
25577
25578 # type: textblock
25579 #: ../test-tool/libguestfs-test-tool.pod:63
25580 msgid ""
25581 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25582 "does not usually need to be adjusted unless your machine is very slow."
25583 msgstr ""
25584
25585 # type: =head1
25586 #: ../test-tool/libguestfs-test-tool.pod:69
25587 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25588 msgstr ""
25589
25590 # type: textblock
25591 #: ../test-tool/libguestfs-test-tool.pod:71
25592 msgid ""
25593 "If you have compiled another version of qemu from source and would like to "
25594 "try that, then you can use the I<--qemudir> option to point to the qemu "
25595 "source directory."
25596 msgstr ""
25597
25598 # type: textblock
25599 #: ../test-tool/libguestfs-test-tool.pod:75
25600 msgid ""
25601 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25602 "option to point to the binary."
25603 msgstr ""
25604
25605 # type: textblock
25606 #: ../test-tool/libguestfs-test-tool.pod:78
25607 msgid ""
25608 "When using an alternate qemu with libguestfs, usually you would need to "
25609 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25610 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25611 "use either of the I<--qemudir> or I<--qemu> options."
25612 msgstr ""
25613
25614 # type: textblock
25615 #: ../test-tool/libguestfs-test-tool.pod:85
25616 msgid ""
25617 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25618 "I<1> if there was an error."
25619 msgstr ""
25620
25621 # type: =item
25622 #: ../test-tool/libguestfs-test-tool.pod:92
25623 msgid "/usr/libexec/libguestfs-test-tool-helper"
25624 msgstr ""
25625
25626 # type: textblock
25627 #: ../test-tool/libguestfs-test-tool.pod:94
25628 msgid ""
25629 "This helper program is run inside the appliance and provides additional "
25630 "tests."
25631 msgstr ""
25632
25633 # type: =item
25634 #: ../test-tool/libguestfs-test-tool.pod:97
25635 msgid "/usr/bin/mkisofs"
25636 msgstr ""
25637
25638 # type: textblock
25639 #: ../test-tool/libguestfs-test-tool.pod:99
25640 msgid ""
25641 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25642 "which is used as part of the tests."
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../test-tool/libguestfs-test-tool.pod:106
25647 msgid ""
25648 "For the full list of environment variables which may affect libguestfs, "
25649 "please see the L<guestfs(3)> manual page."
25650 msgstr ""
25651
25652 # type: textblock
25653 #: ../test-tool/libguestfs-test-tool.pod:111
25654 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25655 msgstr ""
25656
25657 # type: textblock
25658 #: ../test-tool/libguestfs-test-tool.pod:121
25659 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25660 msgstr ""
25661
25662 # type: textblock
25663 #: ../fuse/guestmount.pod:5
25664 msgid ""
25665 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25666 msgstr ""
25667
25668 # type: verbatim
25669 #: ../fuse/guestmount.pod:9
25670 #, no-wrap
25671 msgid ""
25672 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25673 "\n"
25674 msgstr ""
25675
25676 # type: verbatim
25677 #: ../fuse/guestmount.pod:11
25678 #, no-wrap
25679 msgid ""
25680 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25681 "\n"
25682 msgstr ""
25683
25684 # type: verbatim
25685 #: ../fuse/guestmount.pod:13
25686 #, no-wrap
25687 msgid ""
25688 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25689 "\n"
25690 msgstr ""
25691
25692 # type: textblock
25693 #: ../fuse/guestmount.pod:17
25694 msgid ""
25695 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25696 "machines.  If you do this, you risk disk corruption in the VM."
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../fuse/guestmount.pod:22
25701 msgid ""
25702 "The guestmount program can be used to mount virtual machine filesystems and "
25703 "other disk images on the host.  It uses libguestfs for access to the guest "
25704 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25705 "a mountable device."
25706 msgstr ""
25707
25708 # type: textblock
25709 #: ../fuse/guestmount.pod:27
25710 msgid ""
25711 "Along with other options, you have to give at least one device (I<-a> "
25712 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25713 "option) or use the I<-i> inspection option.  How this works is better "
25714 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25715 "below."
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../fuse/guestmount.pod:33
25720 msgid ""
25721 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25722 "by you, and the filesystem will not be visible to any other users unless you "
25723 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25724 "the filesystem, use the C<fusermount -u> command."
25725 msgstr ""
25726
25727 # type: textblock
25728 #: ../fuse/guestmount.pod:41
25729 msgid ""
25730 "For a typical Windows guest which has its main filesystem on the first "
25731 "partition:"
25732 msgstr ""
25733
25734 # type: verbatim
25735 #: ../fuse/guestmount.pod:44
25736 #, no-wrap
25737 msgid ""
25738 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25739 "\n"
25740 msgstr ""
25741
25742 # type: textblock
25743 #: ../fuse/guestmount.pod:46
25744 msgid ""
25745 "For a typical Linux guest which has a /boot filesystem on the first "
25746 "partition, and the root filesystem on a logical volume:"
25747 msgstr ""
25748
25749 # type: verbatim
25750 #: ../fuse/guestmount.pod:49
25751 #, no-wrap
25752 msgid ""
25753 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25754 "\n"
25755 msgstr ""
25756
25757 # type: textblock
25758 #: ../fuse/guestmount.pod:51
25759 msgid "To get libguestfs to detect guest mountpoints for you:"
25760 msgstr ""
25761
25762 # type: verbatim
25763 #: ../fuse/guestmount.pod:53
25764 #, no-wrap
25765 msgid ""
25766 " guestmount -a guest.img -i --ro /mnt\n"
25767 "\n"
25768 msgstr ""
25769
25770 # type: textblock
25771 #: ../fuse/guestmount.pod:55
25772 msgid "For a libvirt guest called \"Guest\" you could do:"
25773 msgstr ""
25774
25775 # type: verbatim
25776 #: ../fuse/guestmount.pod:57
25777 #, no-wrap
25778 msgid ""
25779 " guestmount -d Guest -i --ro /mnt\n"
25780 "\n"
25781 msgstr ""
25782
25783 # type: textblock
25784 #: ../fuse/guestmount.pod:59
25785 msgid ""
25786 "If you don't know what filesystems are contained in a guest or disk image, "
25787 "use L<virt-filesystems(1)> first:"
25788 msgstr ""
25789
25790 # type: verbatim
25791 #: ../fuse/guestmount.pod:62
25792 #, no-wrap
25793 msgid ""
25794 " virt-filesystems MyGuest\n"
25795 "\n"
25796 msgstr ""
25797
25798 # type: textblock
25799 #: ../fuse/guestmount.pod:64
25800 msgid ""
25801 "If you want to trace the libguestfs calls but without excessive debugging "
25802 "information, we recommend:"
25803 msgstr ""
25804
25805 # type: verbatim
25806 #: ../fuse/guestmount.pod:67
25807 #, no-wrap
25808 msgid ""
25809 " guestmount [...] --trace /mnt\n"
25810 "\n"
25811 msgstr ""
25812
25813 # type: textblock
25814 #: ../fuse/guestmount.pod:69
25815 msgid "If you want to debug the program, we recommend:"
25816 msgstr ""
25817
25818 # type: verbatim
25819 #: ../fuse/guestmount.pod:71
25820 #, no-wrap
25821 msgid ""
25822 " guestmount [...] --trace --verbose /mnt\n"
25823 "\n"
25824 msgstr ""
25825
25826 # type: textblock
25827 #: ../fuse/guestmount.pod:79
25828 msgid "Add a block device or virtual machine image."
25829 msgstr ""
25830
25831 # type: =item
25832 #: ../fuse/guestmount.pod:96
25833 msgid "B<--dir-cache-timeout N>"
25834 msgstr ""
25835
25836 # type: textblock
25837 #: ../fuse/guestmount.pod:98
25838 msgid ""
25839 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25840 "seconds.  The readdir cache [actually, there are several semi-independent "
25841 "caches] is populated after a readdir(2) call with the stat and extended "
25842 "attributes of the files in the directory, in anticipation that they will be "
25843 "requested soon after."
25844 msgstr ""
25845
25846 # type: textblock
25847 #: ../fuse/guestmount.pod:104
25848 msgid ""
25849 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25850 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25851 "requests, only cache existing ones."
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../fuse/guestmount.pod:122
25856 msgid ""
25857 "If you have untrusted raw-format guest disk images, you should use this "
25858 "option to specify the disk format.  This avoids a possible security problem "
25859 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25860 "guestfs_add_drive_opts>."
25861 msgstr ""
25862
25863 # type: =item
25864 #: ../fuse/guestmount.pod:127
25865 msgid "B<--fuse-help>"
25866 msgstr ""
25867
25868 # type: textblock
25869 #: ../fuse/guestmount.pod:129
25870 msgid "Display help on special FUSE options (see I<-o> below)."
25871 msgstr ""
25872
25873 # type: textblock
25874 #: ../fuse/guestmount.pod:133
25875 msgid "Display brief help and exit."
25876 msgstr ""
25877
25878 # type: =item
25879 #: ../fuse/guestmount.pod:146
25880 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../fuse/guestmount.pod:148
25885 msgid ""
25886 "Mount the named partition or logical volume on the given mountpoint B<in the "
25887 "guest> (this has nothing to do with mountpoints in the host)."
25888 msgstr ""
25889
25890 # type: textblock
25891 #: ../fuse/guestmount.pod:151
25892 msgid ""
25893 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25894 "something on C</>."
25895 msgstr ""
25896
25897 # type: textblock
25898 #: ../fuse/guestmount.pod:156
25899 msgid ""
25900 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25901 "unmounted.  If you specify this option, then we don't attempt to sync the "
25902 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25903 msgstr ""
25904
25905 # type: =item
25906 #: ../fuse/guestmount.pod:161
25907 msgid "B<-o option> | B<--option option>"
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../fuse/guestmount.pod:163
25912 msgid "Pass extra options to FUSE."
25913 msgstr ""
25914
25915 # type: textblock
25916 #: ../fuse/guestmount.pod:165
25917 msgid ""
25918 "To get a list of all the extra options supported by FUSE, use the command "
25919 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25920 "of them are a good idea."
25921 msgstr ""
25922
25923 # type: verbatim
25924 #: ../fuse/guestmount.pod:169
25925 #, no-wrap
25926 msgid ""
25927 " guestmount --fuse-help\n"
25928 "\n"
25929 msgstr ""
25930
25931 # type: textblock
25932 #: ../fuse/guestmount.pod:171
25933 msgid "Some potentially useful FUSE options:"
25934 msgstr ""
25935
25936 # type: =item
25937 #: ../fuse/guestmount.pod:175
25938 msgid "B<-o allow_other>"
25939 msgstr ""
25940
25941 # type: textblock
25942 #: ../fuse/guestmount.pod:177
25943 msgid "Allow other users to see the filesystem."
25944 msgstr ""
25945
25946 # type: =item
25947 #: ../fuse/guestmount.pod:179
25948 msgid "B<-o attr_timeout=N>"
25949 msgstr ""
25950
25951 # type: textblock
25952 #: ../fuse/guestmount.pod:181
25953 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25954 msgstr ""
25955
25956 # type: =item
25957 #: ../fuse/guestmount.pod:183
25958 msgid "B<-o kernel_cache>"
25959 msgstr ""
25960
25961 # type: textblock
25962 #: ../fuse/guestmount.pod:185
25963 msgid ""
25964 "Allow the kernel to cache files (reduces the number of reads that have to go "
25965 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25966 "afford the extra memory usage."
25967 msgstr ""
25968
25969 # type: =item
25970 #: ../fuse/guestmount.pod:189
25971 msgid "B<-o uid=N> B<-o gid=N>"
25972 msgstr ""
25973
25974 # type: textblock
25975 #: ../fuse/guestmount.pod:191
25976 msgid ""
25977 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25978 "the chosen values."
25979 msgstr ""
25980
25981 # type: textblock
25982 #: ../fuse/guestmount.pod:198
25983 msgid ""
25984 "Add devices and mount everything read-only.  Also disallow writes and make "
25985 "the disk appear read-only to FUSE."
25986 msgstr ""
25987
25988 # type: textblock
25989 #: ../fuse/guestmount.pod:201
25990 msgid ""
25991 "This is highly recommended if you are not going to edit the guest disk.  If "
25992 "the guest is running and this option is I<not> supplied, then there is a "
25993 "strong risk of disk corruption in the guest.  We try to prevent this from "
25994 "happening, but it is not always possible."
25995 msgstr ""
25996
25997 # type: textblock
25998 #: ../fuse/guestmount.pod:206
25999 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26000 msgstr ""
26001
26002 # type: textblock
26003 #: ../fuse/guestmount.pod:210
26004 msgid "Enable SELinux support for the guest."
26005 msgstr ""
26006
26007 # type: textblock
26008 #: ../fuse/guestmount.pod:214
26009 msgid "Enable verbose messages from underlying libguestfs."
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../fuse/guestmount.pod:218
26014 msgid "Display the program version and exit."
26015 msgstr ""
26016
26017 # type: textblock
26018 #: ../fuse/guestmount.pod:222
26019 msgid ""
26020 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26021 "FOR READ AND WRITE>."
26022 msgstr ""
26023
26024 # type: =item
26025 #: ../fuse/guestmount.pod:225
26026 msgid "B<-x> | B<--trace>"
26027 msgstr ""
26028
26029 # type: textblock
26030 #: ../fuse/guestmount.pod:227
26031 msgid "Trace libguestfs calls."
26032 msgstr ""
26033
26034 # type: textblock
26035 #: ../fuse/guestmount.pod:229
26036 msgid "This also stops the daemon from forking into the background."
26037 msgstr ""
26038
26039 # type: textblock
26040 #: ../fuse/guestmount.pod:235
26041 msgid ""
26042 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26043 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26044 "net/>."
26045 msgstr ""
26046
26047 # type: textblock
26048 #: ../tools/virt-edit.pl:34
26049 msgid "virt-edit - Edit a file in a virtual machine"
26050 msgstr ""
26051
26052 # type: verbatim
26053 #: ../tools/virt-edit.pl:38
26054 #, no-wrap
26055 msgid ""
26056 " virt-edit [--options] domname file\n"
26057 "\n"
26058 msgstr ""
26059
26060 # type: verbatim
26061 #: ../tools/virt-edit.pl:40
26062 #, no-wrap
26063 msgid ""
26064 " virt-edit [--options] disk.img [disk.img ...] file\n"
26065 "\n"
26066 msgstr ""
26067
26068 # type: verbatim
26069 #: ../tools/virt-edit.pl:42
26070 #, no-wrap
26071 msgid ""
26072 " virt-edit [domname|disk.img] file -e 'expr'\n"
26073 "\n"
26074 msgstr ""
26075
26076 # type: textblock
26077 #: ../tools/virt-edit.pl:46
26078 msgid ""
26079 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26080 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26081 "doing this, but doesn't catch all cases."
26082 msgstr ""
26083
26084 # type: textblock
26085 #: ../tools/virt-edit.pl:52
26086 msgid ""
26087 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26088 "the named virtual machine (or disk image)."
26089 msgstr ""
26090
26091 # type: textblock
26092 #: ../tools/virt-edit.pl:55
26093 msgid ""
26094 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26095 "you should look at the L<guestfish(1)> tool."
26096 msgstr ""
26097
26098 # type: textblock
26099 #: ../tools/virt-edit.pl:60
26100 msgid "Edit the named files interactively:"
26101 msgstr ""
26102
26103 # type: verbatim
26104 #: ../tools/virt-edit.pl:62
26105 #, no-wrap
26106 msgid ""
26107 " virt-edit mydomain /boot/grub/grub.conf\n"
26108 "\n"
26109 msgstr ""
26110
26111 # type: verbatim
26112 #: ../tools/virt-edit.pl:64
26113 #, no-wrap
26114 msgid ""
26115 " virt-edit mydomain /etc/passwd\n"
26116 "\n"
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../tools/virt-edit.pl:66
26121 msgid ""
26122 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26123 "below).  To change the init default level to 5:"
26124 msgstr ""
26125
26126 # type: verbatim
26127 #: ../tools/virt-edit.pl:70
26128 #, no-wrap
26129 msgid ""
26130 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26131 "\n"
26132 msgstr ""
26133
26134 # type: textblock
26135 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26136 #: ../tools/virt-df.pl:81 ../tools/virt-list-filesystems.pl:63
26137 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
26138 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26139 msgid "Display brief help."
26140 msgstr ""
26141
26142 # type: =item
26143 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26144 #: ../tools/virt-df.pl:87 ../tools/virt-resize.pl:272
26145 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114
26146 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
26147 #: ../tools/virt-list-partitions.pl:70
26148 msgid "B<--version>"
26149 msgstr ""
26150
26151 # type: textblock
26152 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26153 #: ../tools/virt-df.pl:89 ../tools/virt-resize.pl:274
26154 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:116
26155 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
26156 #: ../tools/virt-list-partitions.pl:72
26157 msgid "Display version number and exit."
26158 msgstr ""
26159
26160 # type: =item
26161 #: ../tools/virt-edit.pl:96
26162 msgid "B<--backup extension> | B<-b extension>"
26163 msgstr ""
26164
26165 # type: textblock
26166 #: ../tools/virt-edit.pl:98
26167 msgid ""
26168 "Create a backup of the original file I<in the guest disk image>.  The backup "
26169 "has the original filename with C<extension> added."
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-edit.pl:101
26174 msgid ""
26175 "Usually the first character of C<extension> would be a dot C<.> so you would "
26176 "write:"
26177 msgstr ""
26178
26179 # type: verbatim
26180 #: ../tools/virt-edit.pl:104
26181 #, no-wrap
26182 msgid ""
26183 " virt-edit -b .orig [etc]\n"
26184 "\n"
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../tools/virt-edit.pl:106
26189 msgid "By default, no backup file is made."
26190 msgstr ""
26191
26192 # type: =item
26193 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26194 #: ../tools/virt-df.pl:95 ../tools/virt-list-filesystems.pl:77
26195 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
26196 #: ../tools/virt-list-partitions.pl:78
26197 msgid "B<--connect URI> | B<-c URI>"
26198 msgstr ""
26199
26200 # type: textblock
26201 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26202 #: ../tools/virt-df.pl:97 ../tools/virt-list-filesystems.pl:79
26203 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
26204 #: ../tools/virt-list-partitions.pl:80
26205 msgid ""
26206 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26207 "to the default libvirt hypervisor."
26208 msgstr ""
26209
26210 # type: textblock
26211 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26212 #: ../tools/virt-df.pl:100 ../tools/virt-list-filesystems.pl:82
26213 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
26214 #: ../tools/virt-list-partitions.pl:83
26215 msgid ""
26216 "If you specify guest block devices directly, then libvirt is not used at all."
26217 msgstr ""
26218
26219 # type: =item
26220 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26221 #: ../tools/virt-df.pl:117 ../tools/virt-resize.pl:522
26222 #: ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:134
26223 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:90
26224 msgid "B<--format> raw"
26225 msgstr ""
26226
26227 # type: textblock
26228 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26229 #: ../tools/virt-df.pl:119 ../tools/virt-list-filesystems.pl:91
26230 #: ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149
26231 #: ../tools/virt-list-partitions.pl:92
26232 msgid ""
26233 "Specify the format of disk images given on the command line.  If this is "
26234 "omitted then the format is autodetected from the content of the disk image."
26235 msgstr ""
26236
26237 # type: textblock
26238 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26239 #: ../tools/virt-df.pl:123 ../tools/virt-list-filesystems.pl:95
26240 #: ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153
26241 #: ../tools/virt-list-partitions.pl:96
26242 msgid ""
26243 "If disk images are requested from libvirt, then this program asks libvirt "
26244 "for this information.  In this case, the value of the format parameter is "
26245 "ignored."
26246 msgstr ""
26247
26248 # type: textblock
26249 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26250 #: ../tools/virt-df.pl:127 ../tools/virt-resize.pl:527
26251 #: ../tools/virt-resize.pl:542 ../tools/virt-list-filesystems.pl:99
26252 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
26253 #: ../tools/virt-list-partitions.pl:100
26254 msgid ""
26255 "If working with untrusted raw-format guest disk images, you should ensure "
26256 "the format is always specified."
26257 msgstr ""
26258
26259 # type: =item
26260 #: ../tools/virt-edit.pl:141
26261 msgid "B<--expr EXPR> | B<-e EXPR>"
26262 msgstr ""
26263
26264 # type: textblock
26265 #: ../tools/virt-edit.pl:143
26266 msgid ""
26267 "Instead of launching the external editor, non-interactively apply the Perl "
26268 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26269 "EDITING> below."
26270 msgstr ""
26271
26272 # type: textblock
26273 #: ../tools/virt-edit.pl:147
26274 msgid ""
26275 "Be careful to properly quote the expression to prevent it from being altered "
26276 "by the shell."
26277 msgstr ""
26278
26279 # type: =head1
26280 #: ../tools/virt-edit.pl:268
26281 msgid "NON-INTERACTIVE EDITING"
26282 msgstr ""
26283
26284 # type: textblock
26285 #: ../tools/virt-edit.pl:270
26286 msgid ""
26287 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26288 "administrator can interactively edit the file."
26289 msgstr ""
26290
26291 # type: textblock
26292 #: ../tools/virt-edit.pl:273
26293 msgid ""
26294 "There are two ways also to use C<virt-edit> from scripts in order to make "
26295 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26296 "like this, it's less error-prone to write scripts directly using the "
26297 "libguestfs API and Augeas for configuration file editing.)"
26298 msgstr ""
26299
26300 # type: textblock
26301 #: ../tools/virt-edit.pl:279
26302 msgid ""
26303 "The first method is to temporarily set C<$EDITOR> to any script or program "
26304 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26305 "update C<tmpfile> in place however it likes."
26306 msgstr ""
26307
26308 # type: textblock
26309 #: ../tools/virt-edit.pl:283
26310 msgid ""
26311 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26312 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26313 "instances of C<foo> with C<bar> in a file:"
26314 msgstr ""
26315
26316 # type: verbatim
26317 #: ../tools/virt-edit.pl:287
26318 #, no-wrap
26319 msgid ""
26320 " virt-edit domname filename -e 's/foo/bar/'\n"
26321 "\n"
26322 msgstr ""
26323
26324 # type: textblock
26325 #: ../tools/virt-edit.pl:289
26326 msgid ""
26327 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26328 "For example to delete root's password you could do:"
26329 msgstr ""
26330
26331 # type: verbatim
26332 #: ../tools/virt-edit.pl:292
26333 #, no-wrap
26334 msgid ""
26335 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26336 "\n"
26337 msgstr ""
26338
26339 # type: textblock
26340 #: ../tools/virt-edit.pl:294
26341 msgid ""
26342 "What really happens is that the snippet is evaluated as a Perl expression "
26343 "for each line of the file.  The line, including the final C<\\n>, is passed "
26344 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26345 msgstr ""
26346
26347 # type: textblock
26348 #: ../tools/virt-edit.pl:299
26349 msgid ""
26350 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26351 "C<apache> user account from the password file you can do:"
26352 msgstr ""
26353
26354 # type: verbatim
26355 #: ../tools/virt-edit.pl:302
26356 #, no-wrap
26357 msgid ""
26358 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26359 "\n"
26360 msgstr ""
26361
26362 # type: textblock
26363 #: ../tools/virt-edit.pl:304
26364 msgid ""
26365 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26366 "the end of the file is rather difficult this way since there is no concept "
26367 "of \"last line of the file\" - your expression just doesn't get called "
26368 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26369 "want to do this."
26370 msgstr ""
26371
26372 # type: textblock
26373 #: ../tools/virt-edit.pl:310
26374 msgid ""
26375 "The variable C<$lineno> contains the current line number.  As is "
26376 "traditional, the first line in the file is number C<1>."
26377 msgstr ""
26378
26379 # type: textblock
26380 #: ../tools/virt-edit.pl:313
26381 msgid ""
26382 "The return value from the expression is ignored, but the expression may call "
26383 "C<die> in order to abort the whole program, leaving the original file "
26384 "untouched."
26385 msgstr ""
26386
26387 # type: textblock
26388 #: ../tools/virt-edit.pl:317
26389 msgid ""
26390 "Remember when matching the end of a line that C<$_> may contain the final C<"
26391 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26392 "newline then neither of these.  Thus to match or substitute some text at the "
26393 "end of a line, use this regular expression:"
26394 msgstr ""
26395
26396 # type: verbatim
26397 #: ../tools/virt-edit.pl:322
26398 #, no-wrap
26399 msgid ""
26400 " /some text(\\r?\\n)?$/\n"
26401 "\n"
26402 msgstr ""
26403
26404 # type: textblock
26405 #: ../tools/virt-edit.pl:324
26406 msgid ""
26407 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26408 "$_> itself (since that would remove all newlines from the file):"
26409 msgstr ""
26410
26411 # type: verbatim
26412 #: ../tools/virt-edit.pl:328
26413 #, no-wrap
26414 msgid ""
26415 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26416 "\n"
26417 msgstr ""
26418
26419 # type: =item
26420 #: ../tools/virt-edit.pl:334
26421 msgid "C<EDITOR>"
26422 msgstr ""
26423
26424 # type: textblock
26425 #: ../tools/virt-edit.pl:336
26426 msgid ""
26427 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26428 "\"emacs -nw\">"
26429 msgstr ""
26430
26431 # type: textblock
26432 #: ../tools/virt-edit.pl:339
26433 msgid "If not set, C<vi> is used."
26434 msgstr ""
26435
26436 # type: =head2
26437 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26438 #: ../tools/virt-win-reg.pl:477 ../tools/virt-df.pl:633
26439 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:182
26440 #: ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260
26441 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
26442 msgid "SHELL QUOTING"
26443 msgstr ""
26444
26445 # type: textblock
26446 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26447 #: ../tools/virt-df.pl:635 ../tools/virt-resize.pl:1480
26448 #: ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:276
26449 #: ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529
26450 #: ../tools/virt-list-partitions.pl:252
26451 msgid ""
26452 "Libvirt guest names can contain arbitrary characters, some of which have "
26453 "meaning to the shell such as C<#> and space.  You may need to quote or "
26454 "escape these characters on the command line.  See the shell manual page L<sh"
26455 "(1)> for details."
26456 msgstr ""
26457
26458 # type: textblock
26459 #: ../tools/virt-edit.pl:352
26460 msgid ""
26461 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26462 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26463 "L<perlre(1)>."
26464 msgstr ""
26465
26466 # type: =head1
26467 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26468 #: ../tools/virt-df.pl:649 ../tools/virt-resize.pl:1506
26469 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:292
26470 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
26471 #: ../tools/virt-list-partitions.pl:269
26472 msgid "AUTHOR"
26473 msgstr ""
26474
26475 # type: textblock
26476 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26477 #: ../tools/virt-df.pl:651 ../tools/virt-resize.pl:1508
26478 #: ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:294
26479 #: ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561
26480 #: ../tools/virt-list-partitions.pl:271
26481 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26482 msgstr ""
26483
26484 # type: textblock
26485 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26486 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:275
26487 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../tools/virt-win-reg.pl:37
26492 msgid ""
26493 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26494 msgstr ""
26495
26496 # type: verbatim
26497 #: ../tools/virt-win-reg.pl:41
26498 #, no-wrap
26499 msgid ""
26500 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26501 "\n"
26502 msgstr ""
26503
26504 # type: verbatim
26505 #: ../tools/virt-win-reg.pl:43
26506 #, no-wrap
26507 msgid ""
26508 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26509 "\n"
26510 msgstr ""
26511
26512 # type: verbatim
26513 #: ../tools/virt-win-reg.pl:45
26514 #, no-wrap
26515 msgid ""
26516 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26517 "\n"
26518 msgstr ""
26519
26520 # type: verbatim
26521 #: ../tools/virt-win-reg.pl:47
26522 #, no-wrap
26523 msgid ""
26524 " virt-win-reg --merge domname [input.reg ...]\n"
26525 "\n"
26526 msgstr ""
26527
26528 # type: verbatim
26529 #: ../tools/virt-win-reg.pl:49
26530 #, no-wrap
26531 msgid ""
26532 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26533 "\n"
26534 msgstr ""
26535
26536 # type: textblock
26537 #: ../tools/virt-win-reg.pl:53
26538 msgid ""
26539 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26540 "virtual machines.  If you do this, you I<will> get irreversible disk "
26541 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26542 "but doesn't catch all cases."
26543 msgstr ""
26544
26545 # type: textblock
26546 #: ../tools/virt-win-reg.pl:58
26547 msgid ""
26548 "Modifying the Windows Registry is an inherently risky operation.  The format "
26549 "is deliberately obscure and undocumented, and Registry changes can leave the "
26550 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26551 "you have a reliable backup first."
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-win-reg.pl:65
26556 msgid ""
26557 "This program can export and merge Windows Registry entries from a Windows "
26558 "guest."
26559 msgstr ""
26560
26561 # type: textblock
26562 #: ../tools/virt-win-reg.pl:68
26563 msgid ""
26564 "The first parameter is the libvirt guest name or the raw disk image of a "
26565 "Windows guest."
26566 msgstr ""
26567
26568 # type: textblock
26569 #: ../tools/virt-win-reg.pl:71
26570 msgid ""
26571 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26572 "exported (recursively).  For example:"
26573 msgstr ""
26574
26575 # type: verbatim
26576 #: ../tools/virt-win-reg.pl:74
26577 #, no-wrap
26578 msgid ""
26579 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26580 "\n"
26581 msgstr ""
26582
26583 # type: textblock
26584 #: ../tools/virt-win-reg.pl:76
26585 msgid ""
26586 "You can also display single values from within registry keys, for example:"
26587 msgstr ""
26588
26589 # type: verbatim
26590 #: ../tools/virt-win-reg.pl:79
26591 #, no-wrap
26592 msgid ""
26593 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26594 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26595 " Windows 7 Enterprise\n"
26596 "\n"
26597 msgstr ""
26598
26599 # type: textblock
26600 #: ../tools/virt-win-reg.pl:83
26601 msgid ""
26602 "With C<--merge>, you can merge a textual regedit file into the Windows "
26603 "Registry:"
26604 msgstr ""
26605
26606 # type: verbatim
26607 #: ../tools/virt-win-reg.pl:86
26608 #, no-wrap
26609 msgid ""
26610 " $ virt-win-reg --merge Windows7 changes.reg\n"
26611 "\n"
26612 msgstr ""
26613
26614 # type: =head2
26615 #: ../tools/virt-win-reg.pl:88
26616 msgid "SUPPORTED SYSTEMS"
26617 msgstr ""
26618
26619 # type: textblock
26620 #: ../tools/virt-win-reg.pl:90
26621 msgid ""
26622 "The program currently supports Windows NT-derived guests starting with "
26623 "Windows XP through to at least Windows 7."
26624 msgstr ""
26625
26626 # type: textblock
26627 #: ../tools/virt-win-reg.pl:93
26628 msgid ""
26629 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26630 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26631 "and C<HKEY_USERS\\.DEFAULT>."
26632 msgstr ""
26633
26634 # type: textblock
26635 #: ../tools/virt-win-reg.pl:97
26636 msgid ""
26637 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26638 "C<HKEY_USERS>."
26639 msgstr ""
26640
26641 # type: textblock
26642 #: ../tools/virt-win-reg.pl:100
26643 msgid ""
26644 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26645 "time."
26646 msgstr ""
26647
26648 # type: =head2
26649 #: ../tools/virt-win-reg.pl:103
26650 msgid "NOTE"
26651 msgstr ""
26652
26653 # type: textblock
26654 #: ../tools/virt-win-reg.pl:105
26655 msgid ""
26656 "This program is only meant for simple access to the registry.  If you want "
26657 "to do complicated things with the registry, we suggest you download the "
26658 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26659 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26660 "L<hivexregedit(1)>."
26661 msgstr ""
26662
26663 # type: =head2
26664 #: ../tools/virt-win-reg.pl:111
26665 msgid "ENCODING"
26666 msgstr ""
26667
26668 # type: textblock
26669 #: ../tools/virt-win-reg.pl:113
26670 msgid ""
26671 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26672 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26673 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26674 "Windows-style line endings, you may need to reencode the whole file before "
26675 "or after processing."
26676 msgstr ""
26677
26678 # type: textblock
26679 #: ../tools/virt-win-reg.pl:119
26680 msgid ""
26681 "To reencode a file from Windows format to Linux (before processing it with "
26682 "the C<--merge> option), you would do something like this:"
26683 msgstr ""
26684
26685 # type: verbatim
26686 #: ../tools/virt-win-reg.pl:122
26687 #, no-wrap
26688 msgid ""
26689 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26690 "\n"
26691 msgstr ""
26692
26693 # type: textblock
26694 #: ../tools/virt-win-reg.pl:124
26695 msgid ""
26696 "To go in the opposite direction, after exporting and before sending the file "
26697 "to a Windows user, do something like this:"
26698 msgstr ""
26699
26700 # type: verbatim
26701 #: ../tools/virt-win-reg.pl:127
26702 #, no-wrap
26703 msgid ""
26704 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26705 "\n"
26706 msgstr ""
26707
26708 # type: textblock
26709 #: ../tools/virt-win-reg.pl:129
26710 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26711 msgstr ""
26712
26713 # type: textblock
26714 #: ../tools/virt-win-reg.pl:131
26715 msgid ""
26716 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26717 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26718 "style (CRLF) line endings, like this:"
26719 msgstr ""
26720
26721 # type: verbatim
26722 #: ../tools/virt-win-reg.pl:135
26723 #, no-wrap
26724 msgid ""
26725 " $ file software.reg\n"
26726 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26727 " with CRLF line terminators\n"
26728 "\n"
26729 msgstr ""
26730
26731 # type: textblock
26732 #: ../tools/virt-win-reg.pl:139
26733 msgid "This file would need conversion before you could C<--merge> it."
26734 msgstr ""
26735
26736 # type: textblock
26737 #: ../tools/virt-win-reg.pl:143
26738 msgid ""
26739 "Be careful when passing parameters containing C<\\> (backslash) in the "
26740 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26741 "(but not both) to protect them from the shell."
26742 msgstr ""
26743
26744 # type: textblock
26745 #: ../tools/virt-win-reg.pl:147
26746 msgid "Paths and value names are case-insensitive."
26747 msgstr ""
26748
26749 # type: =head2
26750 #: ../tools/virt-win-reg.pl:149
26751 msgid "CurrentControlSet etc."
26752 msgstr ""
26753
26754 # type: textblock
26755 #: ../tools/virt-win-reg.pl:151
26756 msgid ""
26757 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26758 "Registry at the level of the hive file, and therefore you cannot modify "
26759 "these."
26760 msgstr ""
26761
26762 # type: textblock
26763 #: ../tools/virt-win-reg.pl:155
26764 msgid ""
26765 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26766 "circumstances it might refer to another control set.  The way to find out is "
26767 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26768 msgstr ""
26769
26770 # type: verbatim
26771 #: ../tools/virt-win-reg.pl:159
26772 #, no-wrap
26773 msgid ""
26774 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26775 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26776 " \"Current\"=dword:00000001\n"
26777 " \"Default\"=dword:00000001\n"
26778 " \"Failed\"=dword:00000000\n"
26779 " \"LastKnownGood\"=dword:00000002\n"
26780 "\n"
26781 msgstr ""
26782
26783 # type: textblock
26784 #: ../tools/virt-win-reg.pl:166
26785 msgid "\"Current\" is the one which Windows will choose when it boots."
26786 msgstr ""
26787
26788 # type: textblock
26789 #: ../tools/virt-win-reg.pl:168
26790 msgid ""
26791 "Similarly, other C<Current...> keys in the path may need to be replaced."
26792 msgstr ""
26793
26794 # type: =item
26795 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26796 msgid "B<--debug>"
26797 msgstr ""
26798
26799 # type: textblock
26800 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:500
26801 msgid "Enable debugging messages."
26802 msgstr ""
26803
26804 # type: =item
26805 #: ../tools/virt-win-reg.pl:232
26806 msgid "B<--merge>"
26807 msgstr ""
26808
26809 # type: textblock
26810 #: ../tools/virt-win-reg.pl:234
26811 msgid ""
26812 "In merge mode, this merges a textual regedit file into the Windows Registry "
26813 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26814 "displays or exports Registry entries instead."
26815 msgstr ""
26816
26817 # type: textblock
26818 #: ../tools/virt-win-reg.pl:238
26819 msgid ""
26820 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26821 "result in disk corruption.  However exporting (without this flag)  is always "
26822 "safe."
26823 msgstr ""
26824
26825 # type: =item
26826 #: ../tools/virt-win-reg.pl:246
26827 msgid "B<--encoding> UTF-16LE|ASCII"
26828 msgstr ""
26829
26830 # type: textblock
26831 #: ../tools/virt-win-reg.pl:248
26832 msgid ""
26833 "When merging (only), you may need to specify the encoding for strings to be "
26834 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26835 "(3)/ENCODING STRINGS>."
26836 msgstr ""
26837
26838 # type: textblock
26839 #: ../tools/virt-win-reg.pl:252
26840 msgid ""
26841 "The default is to use UTF-16LE, which should work with recent versions of "
26842 "Windows."
26843 msgstr ""
26844
26845 # type: textblock
26846 #: ../tools/virt-win-reg.pl:486
26847 msgid ""
26848 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26849 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26850 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26855 msgid ""
26856 "When reporting bugs, please enable debugging and capture the I<complete> "
26857 "output:"
26858 msgstr ""
26859
26860 # type: verbatim
26861 #: ../tools/virt-win-reg.pl:504
26862 #, no-wrap
26863 msgid ""
26864 " export LIBGUESTFS_DEBUG=1\n"
26865 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26866 "\n"
26867 msgstr ""
26868
26869 # type: textblock
26870 #: ../tools/virt-win-reg.pl:507
26871 msgid ""
26872 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26873 "redhat.com/>"
26874 msgstr ""
26875
26876 # type: textblock
26877 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1512
26878 #: ../tools/virt-make-fs.pl:565
26879 msgid "Copyright (C) 2010 Red Hat Inc."
26880 msgstr ""
26881
26882 # type: textblock
26883 #: ../tools/virt-df.pl:36
26884 msgid "virt-df - Display free space on virtual filesystems"
26885 msgstr ""
26886
26887 # type: verbatim
26888 #: ../tools/virt-df.pl:40
26889 #, no-wrap
26890 msgid ""
26891 " virt-df [--options]\n"
26892 "\n"
26893 msgstr ""
26894
26895 # type: verbatim
26896 #: ../tools/virt-df.pl:42
26897 #, no-wrap
26898 msgid ""
26899 " virt-df [--options] domname\n"
26900 "\n"
26901 msgstr ""
26902
26903 # type: verbatim
26904 #: ../tools/virt-df.pl:44
26905 #, no-wrap
26906 msgid ""
26907 " virt-df [--options] disk.img [disk.img ...]\n"
26908 "\n"
26909 msgstr ""
26910
26911 # type: textblock
26912 #: ../tools/virt-df.pl:48
26913 msgid ""
26914 "C<virt-df> is a command line tool to display free space on virtual machine "
26915 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26916 "space allocated to a virtual machine, but can look inside the virtual "
26917 "machine to see how much space is really being used."
26918 msgstr ""
26919
26920 # type: textblock
26921 #: ../tools/virt-df.pl:53
26922 msgid ""
26923 "It is like the L<df(1)> command, but for virtual machines, except that it "
26924 "also works for Windows virtual machines."
26925 msgstr ""
26926
26927 # type: textblock
26928 #: ../tools/virt-df.pl:56
26929 msgid ""
26930 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26931 "of all active and inactive guests, and performs a C<df>-type operation on "
26932 "each one in turn, printing out the results."
26933 msgstr ""
26934
26935 # type: textblock
26936 #: ../tools/virt-df.pl:60
26937 msgid ""
26938 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26939 "either the single named libvirt domain, or on the disk image(s) listed on "
26940 "the command line (which must all belong to a single VM).  In this mode (with "
26941 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26942 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26943 msgstr ""
26944
26945 # type: textblock
26946 #: ../tools/virt-df.pl:67
26947 msgid ""
26948 "Use the C<--csv> option to get a format which can be easily parsed by other "
26949 "programs.  Other options are mostly similar to standard C<df> options.  See "
26950 "below for the complete list."
26951 msgstr ""
26952
26953 # type: =item
26954 #: ../tools/virt-df.pl:107
26955 msgid "B<--csv>"
26956 msgstr ""
26957
26958 # type: textblock
26959 #: ../tools/virt-df.pl:109
26960 msgid ""
26961 "Write out the results in CSV format (comma-separated values).  This format "
26962 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26963 "ABOUT CSV FORMAT> below."
26964 msgstr ""
26965
26966 # type: =item
26967 #: ../tools/virt-df.pl:134
26968 msgid "B<--human-readable> | B<-h>"
26969 msgstr ""
26970
26971 # type: textblock
26972 #: ../tools/virt-df.pl:136
26973 msgid "Print sizes in human-readable format."
26974 msgstr ""
26975
26976 # type: textblock
26977 #: ../tools/virt-df.pl:138
26978 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26979 msgstr ""
26980
26981 # type: =item
26982 #: ../tools/virt-df.pl:144
26983 msgid "B<--inodes> | B<-i>"
26984 msgstr ""
26985
26986 # type: textblock
26987 #: ../tools/virt-df.pl:146
26988 msgid "Print inodes instead of blocks."
26989 msgstr ""
26990
26991 # type: =item
26992 #: ../tools/virt-df.pl:152
26993 msgid "B<--one-per-guest>"
26994 msgstr ""
26995
26996 # type: textblock
26997 #: ../tools/virt-df.pl:154
26998 msgid ""
26999 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
27000 "disks from several guests to a single libguestfs appliance."
27001 msgstr ""
27002
27003 # type: textblock
27004 #: ../tools/virt-df.pl:157
27005 msgid "You might use this option in the following circumstances:"
27006 msgstr ""
27007
27008 # type: textblock
27009 #: ../tools/virt-df.pl:163
27010 msgid ""
27011 "If you think an untrusted guest might actively try to exploit the libguestfs "
27012 "appliance kernel, then this prevents one guest from interfering with the "
27013 "stats printed for another guest."
27014 msgstr ""
27015
27016 # type: textblock
27017 #: ../tools/virt-df.pl:169
27018 msgid ""
27019 "If the kernel has a bug which stops it from accessing a filesystem in one "
27020 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
27021 "and report stats for further guests."
27022 msgstr ""
27023
27024 # type: =item
27025 #: ../tools/virt-df.pl:180
27026 msgid "B<--uuid>"
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-df.pl:182
27031 msgid ""
27032 "Print UUIDs instead of names.  This is useful for following a guest even "
27033 "when the guest is migrated or renamed, or when two guests happen to have the "
27034 "same name."
27035 msgstr ""
27036
27037 # type: textblock
27038 #: ../tools/virt-df.pl:186
27039 msgid ""
27040 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
27041 "images, we still print the disk image name even when this option is "
27042 "specified."
27043 msgstr ""
27044
27045 # type: =head1
27046 #: ../tools/virt-df.pl:609
27047 msgid "NOTE ABOUT CSV FORMAT"
27048 msgstr ""
27049
27050 # type: textblock
27051 #: ../tools/virt-df.pl:611
27052 msgid ""
27053 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
27054 "should be easy to parse, but it is definitely not easy to parse."
27055 msgstr ""
27056
27057 # type: textblock
27058 #: ../tools/virt-df.pl:614
27059 msgid ""
27060 "Myth: Just split fields at commas.  Reality: This does I<not> work "
27061 "reliably.  This example has two columns:"
27062 msgstr ""
27063
27064 # type: verbatim
27065 #: ../tools/virt-df.pl:617
27066 #, no-wrap
27067 msgid ""
27068 " \"foo,bar\",baz\n"
27069 "\n"
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-df.pl:619
27074 msgid ""
27075 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
27076 "reliably.  This example has one row:"
27077 msgstr ""
27078
27079 # type: verbatim
27080 #: ../tools/virt-df.pl:622
27081 #, no-wrap
27082 msgid ""
27083 " \"foo\n"
27084 " bar\",baz\n"
27085 "\n"
27086 msgstr ""
27087
27088 # type: textblock
27089 #: ../tools/virt-df.pl:625
27090 msgid ""
27091 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
27092 "packaged in major Linux distributions)."
27093 msgstr ""
27094
27095 # type: textblock
27096 #: ../tools/virt-df.pl:628
27097 msgid ""
27098 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
27099 "or Python's built-in csv library)."
27100 msgstr ""
27101
27102 # type: textblock
27103 #: ../tools/virt-df.pl:631
27104 msgid "Most spreadsheets and databases can import CSV directly."
27105 msgstr ""
27106
27107 # type: textblock
27108 #: ../tools/virt-df.pl:642
27109 msgid ""
27110 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27111 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27112 msgstr ""
27113
27114 # type: textblock
27115 #: ../tools/virt-resize.pl:42
27116 msgid "virt-resize - Resize a virtual machine disk"
27117 msgstr ""
27118
27119 # type: verbatim
27120 #: ../tools/virt-resize.pl:46
27121 #, no-wrap
27122 msgid ""
27123 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27124 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27125 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27126 "\n"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:52
27131 msgid ""
27132 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27133 "larger or smaller overall, and resizing or deleting any partitions contained "
27134 "within."
27135 msgstr ""
27136
27137 # type: textblock
27138 #: ../tools/virt-resize.pl:56
27139 msgid ""
27140 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27141 "not> be used on live virtual machines - for consistent results, shut the "
27142 "virtual machine down before resizing it."
27143 msgstr ""
27144
27145 # type: textblock
27146 #: ../tools/virt-resize.pl:60
27147 msgid ""
27148 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
27149 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27150 msgstr ""
27151
27152 # type: textblock
27153 #: ../tools/virt-resize.pl:66
27154 msgid ""
27155 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27156 "fill the extra 5GB of space."
27157 msgstr ""
27158
27159 # type: verbatim
27160 #: ../tools/virt-resize.pl:69
27161 #, no-wrap
27162 msgid ""
27163 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27164 " virt-filesystems --long --h --all -a olddisk\n"
27165 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27166 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27167 "\n"
27168 msgstr ""
27169
27170 # type: textblock
27171 #: ../tools/virt-resize.pl:74
27172 msgid ""
27173 "As above, but make the /boot partition 200MB bigger, while giving the "
27174 "remaining space to /dev/sda2:"
27175 msgstr ""
27176
27177 # type: verbatim
27178 #: ../tools/virt-resize.pl:77
27179 #, no-wrap
27180 msgid ""
27181 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27182 "\n"
27183 msgstr ""
27184
27185 # type: textblock
27186 #: ../tools/virt-resize.pl:79
27187 msgid "As above, but the output format will be uncompressed qcow2:"
27188 msgstr ""
27189
27190 # type: verbatim
27191 #: ../tools/virt-resize.pl:81
27192 #, no-wrap
27193 msgid ""
27194 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27195 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27196 "\n"
27197 msgstr ""
27198
27199 # type: =head1
27200 #: ../tools/virt-resize.pl:84
27201 msgid "DETAILED USAGE"
27202 msgstr ""
27203
27204 # type: =head2
27205 #: ../tools/virt-resize.pl:86
27206 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27207 msgstr ""
27208
27209 # type: =item
27210 #: ../tools/virt-resize.pl:90
27211 msgid "1. Shut down the virtual machine"
27212 msgstr ""
27213
27214 # type: =item
27215 #: ../tools/virt-resize.pl:92
27216 msgid "2. Locate input disk image"
27217 msgstr ""
27218
27219 # type: textblock
27220 #: ../tools/virt-resize.pl:94
27221 msgid ""
27222 "Locate the input disk image (ie. the file or device on the host containing "
27223 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27224 "dumpxml> like this to find the disk image name:"
27225 msgstr ""
27226
27227 # type: verbatim
27228 #: ../tools/virt-resize.pl:98
27229 #, no-wrap
27230 msgid ""
27231 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27232 " Found 1 nodes:\n"
27233 " -- NODE --\n"
27234 " <source dev=\"/dev/vg/lv_guest\" />\n"
27235 "\n"
27236 msgstr ""
27237
27238 # type: =item
27239 #: ../tools/virt-resize.pl:103
27240 msgid "3. Look at current sizing"
27241 msgstr ""
27242
27243 # type: textblock
27244 #: ../tools/virt-resize.pl:105
27245 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27246 msgstr ""
27247
27248 # type: verbatim
27249 #: ../tools/virt-resize.pl:108
27250 #, no-wrap
27251 msgid ""
27252 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27253 " Name       Type       Size  Parent\n"
27254 " /dev/sda1  partition  101M  /dev/sda\n"
27255 " /dev/sda2  partition  7.9G  /dev/sda\n"
27256 " /dev/sda   device     8.0G  -\n"
27257 "\n"
27258 msgstr ""
27259
27260 # type: textblock
27261 #: ../tools/virt-resize.pl:114
27262 msgid ""
27263 "(This example is a virtual machine with an 8 GB disk which we would like to "
27264 "expand up to 10 GB)."
27265 msgstr ""
27266
27267 # type: =item
27268 #: ../tools/virt-resize.pl:117
27269 msgid "4. Create output disk"
27270 msgstr ""
27271
27272 # type: textblock
27273 #: ../tools/virt-resize.pl:119
27274 msgid ""
27275 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27276 "to store the resized output disk."
27277 msgstr ""
27278
27279 # type: textblock
27280 #: ../tools/virt-resize.pl:122
27281 msgid ""
27282 "To store the resized disk image in a file, create a file of a suitable size:"
27283 msgstr ""
27284
27285 # type: verbatim
27286 #: ../tools/virt-resize.pl:125
27287 #, no-wrap
27288 msgid ""
27289 " # rm -f outdisk\n"
27290 " # truncate -s 10G outdisk\n"
27291 "\n"
27292 msgstr ""
27293
27294 # type: textblock
27295 #: ../tools/virt-resize.pl:128
27296 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27297 msgstr ""
27298
27299 # type: verbatim
27300 #: ../tools/virt-resize.pl:130
27301 #, no-wrap
27302 msgid ""
27303 " # lvcreate -L 10G -n lv_name vg_name\n"
27304 "\n"
27305 msgstr ""
27306
27307 # type: textblock
27308 #: ../tools/virt-resize.pl:132
27309 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27310 msgstr ""
27311
27312 # type: verbatim
27313 #: ../tools/virt-resize.pl:134
27314 #, no-wrap
27315 msgid ""
27316 " # virsh pool-list\n"
27317 " # virsh vol-create-as poolname newvol 10G\n"
27318 "\n"
27319 msgstr ""
27320
27321 # type: =item
27322 #: ../tools/virt-resize.pl:137
27323 msgid "5. Resize"
27324 msgstr ""
27325
27326 # type: textblock
27327 #: ../tools/virt-resize.pl:139
27328 msgid ""
27329 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27330 "file) and the output disk.  The output disk is the one created in the "
27331 "previous step."
27332 msgstr ""
27333
27334 # type: verbatim
27335 #: ../tools/virt-resize.pl:143
27336 #, no-wrap
27337 msgid ""
27338 " # virt-resize indisk outdisk\n"
27339 "\n"
27340 msgstr ""
27341
27342 # type: textblock
27343 #: ../tools/virt-resize.pl:145
27344 msgid ""
27345 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27346 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27347 "larger, then an extra, empty partition is created at the end of the disk "
27348 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27349 "error."
27350 msgstr ""
27351
27352 # type: textblock
27353 #: ../tools/virt-resize.pl:151
27354 msgid ""
27355 "More realistically you'd want to expand existing partitions in the disk "
27356 "image by passing extra options (for the full list see the L</OPTIONS> "
27357 "section below)."
27358 msgstr ""
27359
27360 # type: textblock
27361 #: ../tools/virt-resize.pl:155
27362 msgid ""
27363 "L</--expand> is the most useful option.  It expands the named partition "
27364 "within the disk to fill any extra space:"
27365 msgstr ""
27366
27367 # type: verbatim
27368 #: ../tools/virt-resize.pl:158
27369 #, no-wrap
27370 msgid ""
27371 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27372 "\n"
27373 msgstr ""
27374
27375 # type: textblock
27376 #: ../tools/virt-resize.pl:160
27377 msgid ""
27378 "(In this case, an extra partition is I<not> created at the end of the disk, "
27379 "because there will be no unused space)."
27380 msgstr ""
27381
27382 # type: textblock
27383 #: ../tools/virt-resize.pl:163
27384 msgid ""
27385 "L</--resize> is the other commonly used option.  The following would "
27386 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27387 "rest of the available space:"
27388 msgstr ""
27389
27390 # type: verbatim
27391 #: ../tools/virt-resize.pl:167
27392 #, no-wrap
27393 msgid ""
27394 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27395 "     indisk outdisk\n"
27396 "\n"
27397 msgstr ""
27398
27399 # type: textblock
27400 #: ../tools/virt-resize.pl:170
27401 msgid ""
27402 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27403 "if virt-resize knows how, it will resize the contents, the equivalent of "
27404 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27405 ">.  However virt-resize does not know how to resize some filesystems, so you "
27406 "would have to online resize them after booting the guest.  And virt-resize "
27407 "also does not resize anything inside an LVM PV, it just resizes the PV "
27408 "itself and leaves the user to resize any LVs inside that PV as desired."
27409 msgstr ""
27410
27411 # type: textblock
27412 #: ../tools/virt-resize.pl:179
27413 msgid "Other options are covered below."
27414 msgstr ""
27415
27416 # type: =item
27417 #: ../tools/virt-resize.pl:181
27418 msgid "6. Test"
27419 msgstr ""
27420
27421 # type: textblock
27422 #: ../tools/virt-resize.pl:183
27423 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27424 msgstr ""
27425
27426 # type: textblock
27427 #: ../tools/virt-resize.pl:185
27428 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27429 msgstr ""
27430
27431 # type: verbatim
27432 #: ../tools/virt-resize.pl:187
27433 #, no-wrap
27434 msgid ""
27435 " # virsh edit guestname\n"
27436 "\n"
27437 msgstr ""
27438
27439 # type: textblock
27440 #: ../tools/virt-resize.pl:189
27441 msgid ""
27442 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27443 "html#elementsDisks>"
27444 msgstr ""
27445
27446 # type: textblock
27447 #: ../tools/virt-resize.pl:192
27448 msgid "Then start up the domain with the new, resized disk:"
27449 msgstr ""
27450
27451 # type: verbatim
27452 #: ../tools/virt-resize.pl:194
27453 #, no-wrap
27454 msgid ""
27455 " # virsh start guestname\n"
27456 "\n"
27457 msgstr ""
27458
27459 # type: textblock
27460 #: ../tools/virt-resize.pl:196
27461 msgid ""
27462 "and check that it still works.  See also the L</NOTES> section below for "
27463 "additional information."
27464 msgstr ""
27465
27466 # type: =item
27467 #: ../tools/virt-resize.pl:199
27468 msgid "7. Resize LVs etc inside the guest"
27469 msgstr ""
27470
27471 # type: textblock
27472 #: ../tools/virt-resize.pl:201
27473 msgid "(This can also be done offline using L<guestfish(1)>)"
27474 msgstr ""
27475
27476 # type: textblock
27477 #: ../tools/virt-resize.pl:203
27478 msgid ""
27479 "Once the guest has booted you should see the new space available, at least "
27480 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27481 "may need to resize LVs inside PVs, and also resize filesystem types that "
27482 "virt-resize does not know how to expand."
27483 msgstr ""
27484
27485 # type: =head2
27486 #: ../tools/virt-resize.pl:210
27487 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27488 msgstr ""
27489
27490 # type: textblock
27491 #: ../tools/virt-resize.pl:212
27492 msgid ""
27493 "Shrinking is somewhat more complex than expanding, and only an overview is "
27494 "given here."
27495 msgstr ""
27496
27497 # type: textblock
27498 #: ../tools/virt-resize.pl:215
27499 msgid ""
27500 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27501 "filesystems).  The user has to shrink content before passing the disk image "
27502 "to virt-resize, and virt-resize will check that the content has been shrunk "
27503 "properly."
27504 msgstr ""
27505
27506 # type: textblock
27507 #: ../tools/virt-resize.pl:220
27508 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27509 msgstr ""
27510
27511 # type: textblock
27512 #: ../tools/virt-resize.pl:222
27513 msgid ""
27514 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27515 "steps 3 and 4 above to allocate a new disk image."
27516 msgstr ""
27517
27518 # type: textblock
27519 #: ../tools/virt-resize.pl:225
27520 msgid ""
27521 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27522 msgstr ""
27523
27524 # type: =head2
27525 #: ../tools/virt-resize.pl:228
27526 msgid "IGNORING OR DELETING PARTITIONS"
27527 msgstr ""
27528
27529 # type: textblock
27530 #: ../tools/virt-resize.pl:230
27531 msgid ""
27532 "virt-resize also gives a convenient way to ignore or delete partitions when "
27533 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27534 "up the copy where you don't care about the existing contents of a "
27535 "partition.  Deleting a partition removes it completely, but note that it "
27536 "also renumbers any partitions after the one which is deleted, which can "
27537 "leave some guests unbootable."
27538 msgstr ""
27539
27540 # type: =head2
27541 #: ../tools/virt-resize.pl:237
27542 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27543 msgstr ""
27544
27545 # type: textblock
27546 #: ../tools/virt-resize.pl:239
27547 msgid ""
27548 "If the input disk is in qcow2 format, then you may prefer that the output is "
27549 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27550 "the fly.  The output format is simply determined by the format of the empty "
27551 "output container that you provide.  Thus to create qcow2 output, use:"
27552 msgstr ""
27553
27554 # type: verbatim
27555 #: ../tools/virt-resize.pl:245
27556 #, no-wrap
27557 msgid ""
27558 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27559 "\n"
27560 msgstr ""
27561
27562 # type: textblock
27563 #: ../tools/virt-resize.pl:247
27564 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27565 msgstr ""
27566
27567 # type: textblock
27568 #: ../tools/virt-resize.pl:249
27569 msgid "Similarly, to get non-sparse raw output use:"
27570 msgstr ""
27571
27572 # type: verbatim
27573 #: ../tools/virt-resize.pl:251
27574 #, no-wrap
27575 msgid ""
27576 " fallocate -l size outdisk\n"
27577 "\n"
27578 msgstr ""
27579
27580 # type: textblock
27581 #: ../tools/virt-resize.pl:253
27582 msgid ""
27583 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27584 "dev/zero of=outdisk bs=1M count=..>)"
27585 msgstr ""
27586
27587 # type: textblock
27588 #: ../tools/virt-resize.pl:266
27589 msgid "Display help."
27590 msgstr ""
27591
27592 # type: =item
27593 #: ../tools/virt-resize.pl:280
27594 msgid "B<--resize part=size>"
27595 msgstr ""
27596
27597 # type: textblock
27598 #: ../tools/virt-resize.pl:282
27599 msgid ""
27600 "Resize the named partition (expanding or shrinking it) so that it has the "
27601 "given size."
27602 msgstr ""
27603
27604 # type: textblock
27605 #: ../tools/virt-resize.pl:285
27606 msgid ""
27607 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27608 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27609 "Exabytes; or as a percentage of the current size; or as a relative number or "
27610 "percentage.  For example:"
27611 msgstr ""
27612
27613 # type: verbatim
27614 #: ../tools/virt-resize.pl:290
27615 #, no-wrap
27616 msgid ""
27617 " --resize /dev/sda2=10G\n"
27618 "\n"
27619 msgstr ""
27620
27621 # type: verbatim
27622 #: ../tools/virt-resize.pl:292
27623 #, no-wrap
27624 msgid ""
27625 " --resize /dev/sda4=90%\n"
27626 "\n"
27627 msgstr ""
27628
27629 # type: verbatim
27630 #: ../tools/virt-resize.pl:294
27631 #, no-wrap
27632 msgid ""
27633 " --resize /dev/sda2=+1G\n"
27634 "\n"
27635 msgstr ""
27636
27637 # type: verbatim
27638 #: ../tools/virt-resize.pl:296
27639 #, no-wrap
27640 msgid ""
27641 " --resize /dev/sda2=-200M\n"
27642 "\n"
27643 msgstr ""
27644
27645 # type: verbatim
27646 #: ../tools/virt-resize.pl:298
27647 #, no-wrap
27648 msgid ""
27649 " --resize /dev/sda1=+128K\n"
27650 "\n"
27651 msgstr ""
27652
27653 # type: verbatim
27654 #: ../tools/virt-resize.pl:300
27655 #, no-wrap
27656 msgid ""
27657 " --resize /dev/sda1=+10%\n"
27658 "\n"
27659 msgstr ""
27660
27661 # type: verbatim
27662 #: ../tools/virt-resize.pl:302
27663 #, no-wrap
27664 msgid ""
27665 " --resize /dev/sda1=-10%\n"
27666 "\n"
27667 msgstr ""
27668
27669 # type: textblock
27670 #: ../tools/virt-resize.pl:304
27671 msgid ""
27672 "You can increase the size of any partition.  Virt-resize will expand the "
27673 "direct content of the partition if it knows how (see C<--expand> below)."
27674 msgstr ""
27675
27676 # type: textblock
27677 #: ../tools/virt-resize.pl:308
27678 msgid ""
27679 "You can only I<decrease> the size of partitions that contain filesystems or "
27680 "PVs which have already been shrunk.  Virt-resize will check this has been "
27681 "done before proceeding, or else will print an error (see also C<--resize-"
27682 "force>)."
27683 msgstr ""
27684
27685 # type: textblock
27686 #: ../tools/virt-resize.pl:313 ../tools/virt-resize.pl:405
27687 #: ../tools/virt-resize.pl:422
27688 msgid "You can give this option multiple times."
27689 msgstr ""
27690
27691 # type: =item
27692 #: ../tools/virt-resize.pl:319
27693 msgid "B<--resize-force part=size>"
27694 msgstr ""
27695
27696 # type: textblock
27697 #: ../tools/virt-resize.pl:321
27698 msgid ""
27699 "This is the same as C<--resize> except that it will let you decrease the "
27700 "size of any partition.  Generally this means you will lose any data which "
27701 "was at the end of the partition you shrink, but you may not care about that "
27702 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27703 "as a swap partition)."
27704 msgstr ""
27705
27706 # type: textblock
27707 #: ../tools/virt-resize.pl:327
27708 msgid "See also the C<--ignore> option."
27709 msgstr ""
27710
27711 # type: =item
27712 #: ../tools/virt-resize.pl:333
27713 msgid "B<--expand part>"
27714 msgstr ""
27715
27716 # type: textblock
27717 #: ../tools/virt-resize.pl:335
27718 msgid ""
27719 "Expand the named partition so it uses up all extra space (space left over "
27720 "after any other resize changes that you request have been done)."
27721 msgstr ""
27722
27723 # type: textblock
27724 #: ../tools/virt-resize.pl:338
27725 msgid ""
27726 "If virt-resize knows how, it will expand the direct content of the "
27727 "partition.  For example, if the partition is an LVM PV, it will expand the "
27728 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27729 "content it doesn't know about alone."
27730 msgstr ""
27731
27732 # type: textblock
27733 #: ../tools/virt-resize.pl:343
27734 msgid "Currently virt-resize can resize:"
27735 msgstr ""
27736
27737 # type: textblock
27738 #: ../tools/virt-resize.pl:349
27739 msgid ""
27740 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27741 "partition."
27742 msgstr ""
27743
27744 # type: textblock
27745 #: ../tools/virt-resize.pl:354
27746 msgid ""
27747 "NTFS filesystems contained directly in a partition, if libguestfs was "
27748 "compiled with support for NTFS."
27749 msgstr ""
27750
27751 # type: textblock
27752 #: ../tools/virt-resize.pl:357
27753 msgid ""
27754 "The filesystem must have been shut down consistently last time it was used.  "
27755 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27756 "consistency check, so at the first boot after resizing Windows will check "
27757 "the disk."
27758 msgstr ""
27759
27760 # type: textblock
27761 #: ../tools/virt-resize.pl:364
27762 msgid ""
27763 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27764 "inside the PV.  The user will have to resize LVs as desired."
27765 msgstr ""
27766
27767 # type: textblock
27768 #: ../tools/virt-resize.pl:370 ../tools/virt-resize.pl:392
27769 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27770 msgstr ""
27771
27772 # type: =item
27773 #: ../tools/virt-resize.pl:376
27774 msgid "B<--shrink part>"
27775 msgstr ""
27776
27777 # type: textblock
27778 #: ../tools/virt-resize.pl:378
27779 msgid ""
27780 "Shrink the named partition until the overall disk image fits in the "
27781 "destination.  The named partition B<must> contain a filesystem or PV which "
27782 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27783 "online tools).  Virt-resize will check this and give an error if it has not "
27784 "been done."
27785 msgstr ""
27786
27787 # type: textblock
27788 #: ../tools/virt-resize.pl:384
27789 msgid ""
27790 "The amount by which the overall disk must be shrunk (after carrying out all "
27791 "other operations requested by the user) is called the \"deficit\".  For "
27792 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27793 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27794 "would give an error unless the user specified a partition to shrink and that "
27795 "partition had more than a gigabyte of free space."
27796 msgstr ""
27797
27798 # type: =item
27799 #: ../tools/virt-resize.pl:398
27800 msgid "B<--ignore part>"
27801 msgstr ""
27802
27803 # type: textblock
27804 #: ../tools/virt-resize.pl:400
27805 msgid ""
27806 "Ignore the named partition.  Effectively this means the partition is "
27807 "allocated on the destination disk, but the content is not copied across from "
27808 "the source disk.  The content of the partition will be blank (all zero "
27809 "bytes)."
27810 msgstr ""
27811
27812 # type: =item
27813 #: ../tools/virt-resize.pl:411
27814 msgid "B<--delete part>"
27815 msgstr ""
27816
27817 # type: textblock
27818 #: ../tools/virt-resize.pl:413
27819 msgid ""
27820 "Delete the named partition.  It would be more accurate to describe this as "
27821 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27822 "the original disk image is left intact."
27823 msgstr ""
27824
27825 # type: textblock
27826 #: ../tools/virt-resize.pl:417
27827 msgid ""
27828 "Note that when you delete a partition, then anything contained in the "
27829 "partition is also deleted.  Furthermore, this causes any partitions that "
27830 "come after to be I<renumbered>, which can easily make your guest unbootable."
27831 msgstr ""
27832
27833 # type: =item
27834 #: ../tools/virt-resize.pl:428
27835 msgid "B<--LV-expand logvol>"
27836 msgstr ""
27837
27838 # type: textblock
27839 #: ../tools/virt-resize.pl:430
27840 msgid ""
27841 "This takes the logical volume and, as a final step, expands it to fill all "
27842 "the space available in its volume group.  A typical usage, assuming a Linux "
27843 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27844 "lv_root> would be:"
27845 msgstr ""
27846
27847 # type: verbatim
27848 #: ../tools/virt-resize.pl:435
27849 #, no-wrap
27850 msgid ""
27851 " virt-resize indisk outdisk \\\n"
27852 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27853 "\n"
27854 msgstr ""
27855
27856 # type: textblock
27857 #: ../tools/virt-resize.pl:438
27858 msgid ""
27859 "This would first expand the partition (and PV), and then expand the root "
27860 "device to fill the extra space in the PV."
27861 msgstr ""
27862
27863 # type: textblock
27864 #: ../tools/virt-resize.pl:441
27865 msgid ""
27866 "The contents of the LV are also resized if virt-resize knows how to do "
27867 "that.  You can stop virt-resize from trying to expand the content by using "
27868 "the option C<--no-expand-content>."
27869 msgstr ""
27870
27871 # type: textblock
27872 #: ../tools/virt-resize.pl:445
27873 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27874 msgstr ""
27875
27876 # type: textblock
27877 #: ../tools/virt-resize.pl:448
27878 msgid ""
27879 "You can give this option multiple times, I<but> it doesn't make sense to do "
27880 "this unless the logical volumes you specify are all in different volume "
27881 "groups."
27882 msgstr ""
27883
27884 # type: =item
27885 #: ../tools/virt-resize.pl:456
27886 msgid "B<--no-copy-boot-loader>"
27887 msgstr ""
27888
27889 # type: textblock
27890 #: ../tools/virt-resize.pl:458
27891 msgid ""
27892 "By default, virt-resize copies over some sectors at the start of the disk "
27893 "(up to the beginning of the first partition).  Commonly these sectors "
27894 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27895 "in order for the guest to boot correctly."
27896 msgstr ""
27897
27898 # type: textblock
27899 #: ../tools/virt-resize.pl:463
27900 msgid ""
27901 "If you specify this flag, then this initial copy is not done.  You may need "
27902 "to reinstall the boot loader in this case."
27903 msgstr ""
27904
27905 # type: =item
27906 #: ../tools/virt-resize.pl:471
27907 msgid "B<--no-extra-partition>"
27908 msgstr ""
27909
27910 # type: textblock
27911 #: ../tools/virt-resize.pl:473
27912 msgid ""
27913 "By default, virt-resize creates an extra partition if there is any extra, "
27914 "unused space after all resizing has happened.  Use this option to prevent "
27915 "the extra partition from being created.  If you do this then the extra space "
27916 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27917 "tool in the guest."
27918 msgstr ""
27919
27920 # type: textblock
27921 #: ../tools/virt-resize.pl:479
27922 msgid ""
27923 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27924 "will be created."
27925 msgstr ""
27926
27927 # type: =item
27928 #: ../tools/virt-resize.pl:486
27929 msgid "B<--no-expand-content>"
27930 msgstr ""
27931
27932 # type: textblock
27933 #: ../tools/virt-resize.pl:488
27934 msgid ""
27935 "By default, virt-resize will try to expand the direct contents of "
27936 "partitions, if it knows how (see C<--expand> option above)."
27937 msgstr ""
27938
27939 # type: textblock
27940 #: ../tools/virt-resize.pl:491
27941 msgid ""
27942 "If you give the C<--no-expand-content> option then virt-resize will not "
27943 "attempt this."
27944 msgstr ""
27945
27946 # type: =item
27947 #: ../tools/virt-resize.pl:498
27948 msgid "B<-d> | B<--debug>"
27949 msgstr ""
27950
27951 # type: =item
27952 #: ../tools/virt-resize.pl:506
27953 msgid "B<-n> | B<--dryrun>"
27954 msgstr ""
27955
27956 # type: textblock
27957 #: ../tools/virt-resize.pl:508
27958 msgid "Print a summary of what would be done, but don't do anything."
27959 msgstr ""
27960
27961 # type: =item
27962 #: ../tools/virt-resize.pl:514
27963 msgid "B<-q> | B<--quiet>"
27964 msgstr ""
27965
27966 # type: textblock
27967 #: ../tools/virt-resize.pl:516
27968 msgid "Don't print the summary."
27969 msgstr ""
27970
27971 # type: textblock
27972 #: ../tools/virt-resize.pl:524
27973 msgid ""
27974 "Specify the format of the input disk image.  If this flag is not given then "
27975 "it is auto-detected from the image itself."
27976 msgstr ""
27977
27978 # type: textblock
27979 #: ../tools/virt-resize.pl:530
27980 msgid ""
27981 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27982 "AND NON-SPARSE RAW FORMATS>."
27983 msgstr ""
27984
27985 # type: =item
27986 #: ../tools/virt-resize.pl:537
27987 msgid "B<--output-format> raw"
27988 msgstr ""
27989
27990 # type: textblock
27991 #: ../tools/virt-resize.pl:539
27992 msgid ""
27993 "Specify the format of the output disk image.  If this flag is not given then "
27994 "it is auto-detected from the image itself."
27995 msgstr ""
27996
27997 # type: textblock
27998 #: ../tools/virt-resize.pl:545
27999 msgid ""
28000 "Note that you still need to create the output disk with the right format.  "
28001 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28002 msgstr ""
28003
28004 # type: =head1
28005 #: ../tools/virt-resize.pl:1421 ../tools/virt-rescue.pl:90
28006 msgid "NOTES"
28007 msgstr ""
28008
28009 # type: =head2
28010 #: ../tools/virt-resize.pl:1423
28011 msgid "\"Partition 1 does not end on cylinder boundary.\""
28012 msgstr ""
28013
28014 # type: textblock
28015 #: ../tools/virt-resize.pl:1425
28016 msgid ""
28017 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28018 "means the partitions will not be aligned to the ancient CHS geometry.  "
28019 "However CHS geometry is meaningless for disks manufactured since the early "
28020 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28021 "cylinders is not required by any modern operating system."
28022 msgstr ""
28023
28024 # type: =head2
28025 #: ../tools/virt-resize.pl:1432
28026 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28027 msgstr ""
28028
28029 # type: textblock
28030 #: ../tools/virt-resize.pl:1434
28031 msgid ""
28032 "In Windows Vista and later versions, Microsoft switched to using a separate "
28033 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28034 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28035 "the boot partition.  Doing so seems to break the guest completely.  However "
28036 "expanding the second partition (ie. C: drive) should work."
28037 msgstr ""
28038
28039 # type: textblock
28040 #: ../tools/virt-resize.pl:1441
28041 msgid ""
28042 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28043 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28044 "it find errors) is nothing to worry about."
28045 msgstr ""
28046
28047 # type: =head2
28048 #: ../tools/virt-resize.pl:1445
28049 msgid "GUEST BOOT STUCK AT \"GRUB\""
28050 msgstr ""
28051
28052 # type: textblock
28053 #: ../tools/virt-resize.pl:1447
28054 msgid ""
28055 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28056 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28057 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28058 "although we think is to do with partition alignment."
28059 msgstr ""
28060
28061 # type: verbatim
28062 #: ../tools/virt-resize.pl:1452
28063 #, no-wrap
28064 msgid ""
28065 " guestfish -i -a newdisk\n"
28066 " ><fs> cat /boot/grub/device.map\n"
28067 " # check the contents of this file are sensible or\n"
28068 " # edit the file if necessary\n"
28069 " ><fs> grub-install / /dev/vda\n"
28070 " ><fs> exit\n"
28071 "\n"
28072 msgstr ""
28073
28074 # type: textblock
28075 #: ../tools/virt-resize.pl:1459
28076 msgid ""
28077 "For more flexible guest reconfiguration, including if you need to specify "
28078 "other parameters to grub-install, use L<virt-rescue(1)>."
28079 msgstr ""
28080
28081 # type: =head1
28082 #: ../tools/virt-resize.pl:1462
28083 msgid "ALTERNATIVE TOOLS"
28084 msgstr ""
28085
28086 # type: textblock
28087 #: ../tools/virt-resize.pl:1464
28088 msgid ""
28089 "There are several proprietary tools for resizing partitions.  We won't "
28090 "mention any here."
28091 msgstr ""
28092
28093 # type: textblock
28094 #: ../tools/virt-resize.pl:1467
28095 msgid ""
28096 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28097 "operations on disk images.  They can resize and move partitions, but I don't "
28098 "think they can do anything with the contents, and they certainly don't "
28099 "understand LVM."
28100 msgstr ""
28101
28102 # type: textblock
28103 #: ../tools/virt-resize.pl:1472
28104 msgid ""
28105 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28106 "but at a much lower level.  You will probably end up hand-calculating sector "
28107 "offsets, which is something that virt-resize was designed to avoid.  If you "
28108 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28109 "C<--debug> flag."
28110 msgstr ""
28111
28112 # type: textblock
28113 #: ../tools/virt-resize.pl:1487
28114 msgid ""
28115 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
28116 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
28117 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
28118 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
28119 "libguestfs.org/>."
28120 msgstr ""
28121
28122 # type: textblock
28123 #: ../tools/virt-list-filesystems.pl:32
28124 msgid ""
28125 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28126 msgstr ""
28127
28128 # type: verbatim
28129 #: ../tools/virt-list-filesystems.pl:36
28130 #, no-wrap
28131 msgid ""
28132 " virt-list-filesystems [--options] domname\n"
28133 "\n"
28134 msgstr ""
28135
28136 # type: verbatim
28137 #: ../tools/virt-list-filesystems.pl:38
28138 #, no-wrap
28139 msgid ""
28140 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28141 "\n"
28142 msgstr ""
28143
28144 # type: textblock
28145 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
28146 msgid ""
28147 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
28148 "replacement."
28149 msgstr ""
28150
28151 # type: textblock
28152 #: ../tools/virt-list-filesystems.pl:45
28153 msgid ""
28154 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28155 "are contained in a virtual machine or disk image."
28156 msgstr ""
28157
28158 # type: textblock
28159 #: ../tools/virt-list-filesystems.pl:49
28160 msgid ""
28161 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28162 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28163 "> tool."
28164 msgstr ""
28165
28166 # type: =item
28167 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28168 msgid "B<-l> | B<--long>"
28169 msgstr ""
28170
28171 # type: textblock
28172 #: ../tools/virt-list-filesystems.pl:108
28173 msgid ""
28174 "With this option, C<virt-list-filesystems> displays the type of each "
28175 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28176 msgstr ""
28177
28178 # type: =item
28179 #: ../tools/virt-list-filesystems.pl:115
28180 msgid "B<-a> | B<--all>"
28181 msgstr ""
28182
28183 # type: textblock
28184 #: ../tools/virt-list-filesystems.pl:117
28185 msgid ""
28186 "Normally we only show mountable filesystems.  If this option is given then "
28187 "swap devices are shown too."
28188 msgstr ""
28189
28190 # type: textblock
28191 #: ../tools/virt-list-filesystems.pl:191
28192 msgid ""
28193 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
28194 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28195 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28196 msgstr ""
28197
28198 # type: textblock
28199 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28200 msgid "Copyright (C) 2009 Red Hat Inc."
28201 msgstr ""
28202
28203 # type: textblock
28204 #: ../tools/virt-tar.pl:33
28205 msgid "virt-tar - Extract or upload files to a virtual machine"
28206 msgstr ""
28207
28208 # type: verbatim
28209 #: ../tools/virt-tar.pl:37
28210 #, no-wrap
28211 msgid ""
28212 " virt-tar [--options] -x domname directory tarball\n"
28213 "\n"
28214 msgstr ""
28215
28216 # type: verbatim
28217 #: ../tools/virt-tar.pl:39
28218 #, no-wrap
28219 msgid ""
28220 " virt-tar [--options] -u domname tarball directory\n"
28221 "\n"
28222 msgstr ""
28223
28224 # type: verbatim
28225 #: ../tools/virt-tar.pl:41
28226 #, no-wrap
28227 msgid ""
28228 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28229 "\n"
28230 msgstr ""
28231
28232 # type: verbatim
28233 #: ../tools/virt-tar.pl:43
28234 #, no-wrap
28235 msgid ""
28236 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28237 "\n"
28238 msgstr ""
28239
28240 # type: textblock
28241 #: ../tools/virt-tar.pl:47
28242 msgid "Download C</home> from the VM into a local tarball:"
28243 msgstr ""
28244
28245 # type: verbatim
28246 #: ../tools/virt-tar.pl:49
28247 #, no-wrap
28248 msgid ""
28249 " virt-tar -x domname /home home.tar\n"
28250 "\n"
28251 msgstr ""
28252
28253 # type: verbatim
28254 #: ../tools/virt-tar.pl:51
28255 #, no-wrap
28256 msgid ""
28257 " virt-tar -zx domname /home home.tar.gz\n"
28258 "\n"
28259 msgstr ""
28260
28261 # type: textblock
28262 #: ../tools/virt-tar.pl:53
28263 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28264 msgstr ""
28265
28266 # type: verbatim
28267 #: ../tools/virt-tar.pl:55
28268 #, no-wrap
28269 msgid ""
28270 " virt-tar -u domname uploadstuff.tar /tmp\n"
28271 "\n"
28272 msgstr ""
28273
28274 # type: verbatim
28275 #: ../tools/virt-tar.pl:57
28276 #, no-wrap
28277 msgid ""
28278 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28279 "\n"
28280 msgstr ""
28281
28282 # type: textblock
28283 #: ../tools/virt-tar.pl:61
28284 msgid ""
28285 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28286 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28287 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28288 msgstr ""
28289
28290 # type: textblock
28291 #: ../tools/virt-tar.pl:66
28292 msgid ""
28293 "You can use C<-x> (extract) on live virtual machines, but you might get "
28294 "inconsistent results or errors if there is filesystem activity inside the "
28295 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28296 "work, but the only way to guarantee consistent results is if the virtual "
28297 "machine is shut down."
28298 msgstr ""
28299
28300 # type: textblock
28301 #: ../tools/virt-tar.pl:74
28302 msgid ""
28303 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28304 "parts of a guest filesystem.  There are many possibilities: making backups, "
28305 "uploading data files, snooping on guest activity, fixing or customizing "
28306 "guests, etc."
28307 msgstr ""
28308
28309 # type: textblock
28310 #: ../tools/virt-tar.pl:79
28311 msgid ""
28312 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28313 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28314 "should look at the L<guestfish(1)> tool."
28315 msgstr ""
28316
28317 # type: textblock
28318 #: ../tools/virt-tar.pl:83
28319 msgid ""
28320 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28321 "its contents (recursively) from the virtual machine into a local tarball.  "
28322 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28323 "virtual machine.  You cannot use these two options together."
28324 msgstr ""
28325
28326 # type: textblock
28327 #: ../tools/virt-tar.pl:89
28328 msgid ""
28329 "In addition, you may need to use the C<-z> (gZip) option to enable "
28330 "compression.  When uploading, you have to specify C<-z> if the upload file "
28331 "is compressed because virt-tar won't detect this on its own."
28332 msgstr ""
28333
28334 # type: textblock
28335 #: ../tools/virt-tar.pl:93
28336 msgid ""
28337 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28338 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28339 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28340 "the L<libguestfs(3)> API)."
28341 msgstr ""
28342
28343 # type: =item
28344 #: ../tools/virt-tar.pl:151
28345 msgid "B<-x> | B<--extract> | B<--download>"
28346 msgstr ""
28347
28348 # type: =item
28349 #: ../tools/virt-tar.pl:153
28350 msgid "B<-u> | B<--upload>"
28351 msgstr ""
28352
28353 # type: textblock
28354 #: ../tools/virt-tar.pl:155
28355 msgid ""
28356 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28357 "local tarball."
28358 msgstr ""
28359
28360 # type: textblock
28361 #: ../tools/virt-tar.pl:158
28362 msgid ""
28363 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28364 "Please read the L</WARNING> section above before using this option."
28365 msgstr ""
28366
28367 # type: textblock
28368 #: ../tools/virt-tar.pl:162
28369 msgid "You must specify exactly one of these options."
28370 msgstr ""
28371
28372 # type: =item
28373 #: ../tools/virt-tar.pl:168
28374 msgid "B<-z> | B<--gzip>"
28375 msgstr ""
28376
28377 # type: textblock
28378 #: ../tools/virt-tar.pl:170
28379 msgid "Specify that the input or output tarball is gzip-compressed."
28380 msgstr ""
28381
28382 # type: textblock
28383 #: ../tools/virt-tar.pl:283
28384 msgid ""
28385 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28386 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28387 "org/>."
28388 msgstr ""
28389
28390 # type: textblock
28391 #: ../tools/virt-rescue.pl:33
28392 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28393 msgstr ""
28394
28395 # type: verbatim
28396 #: ../tools/virt-rescue.pl:37
28397 #, no-wrap
28398 msgid ""
28399 " virt-rescue [--options] domname\n"
28400 "\n"
28401 msgstr ""
28402
28403 # type: verbatim
28404 #: ../tools/virt-rescue.pl:39
28405 #, no-wrap
28406 msgid ""
28407 " virt-rescue [--options] disk.img [disk.img ...]\n"
28408 "\n"
28409 msgstr ""
28410
28411 # type: textblock
28412 #: ../tools/virt-rescue.pl:43
28413 msgid ""
28414 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28415 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28416 "you from doing this, but doesn't catch all cases."
28417 msgstr ""
28418
28419 # type: textblock
28420 #: ../tools/virt-rescue.pl:47
28421 msgid ""
28422 "However if you use the I<--ro> (read only) option, then you can attach a "
28423 "shell to a live virtual machine.  The results might be strange or "
28424 "inconsistent at times but you won't get disk corruption."
28425 msgstr ""
28426
28427 # type: textblock
28428 #: ../tools/virt-rescue.pl:53
28429 msgid ""
28430 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28431 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28432 "recovery tools which you can use to examine or rescue a virtual machine or "
28433 "disk image."
28434 msgstr ""
28435
28436 # type: textblock
28437 #: ../tools/virt-rescue.pl:58
28438 msgid ""
28439 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28440 "on disk image(s):"
28441 msgstr ""
28442
28443 # type: verbatim
28444 #: ../tools/virt-rescue.pl:61
28445 #, no-wrap
28446 msgid ""
28447 " virt-rescue GuestName\n"
28448 "\n"
28449 msgstr ""
28450
28451 # type: verbatim
28452 #: ../tools/virt-rescue.pl:63
28453 #, no-wrap
28454 msgid ""
28455 " virt-rescue --ro /path/to/disk.img\n"
28456 "\n"
28457 msgstr ""
28458
28459 # type: verbatim
28460 #: ../tools/virt-rescue.pl:65
28461 #, no-wrap
28462 msgid ""
28463 " virt-rescue /dev/sdc\n"
28464 "\n"
28465 msgstr ""
28466
28467 # type: textblock
28468 #: ../tools/virt-rescue.pl:67
28469 msgid "For live VMs you I<must> use the --ro option."
28470 msgstr ""
28471
28472 # type: textblock
28473 #: ../tools/virt-rescue.pl:69
28474 msgid ""
28475 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28476 "in an interactive bash shell where you can use many ordinary Linux "
28477 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28478 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28479 "is an empty directory called C</sysroot> where you can mount filesystems."
28480 msgstr ""
28481
28482 # type: textblock
28483 #: ../tools/virt-rescue.pl:76
28484 msgid ""
28485 "In the example below, we list logical volumes, then choose one to mount "
28486 "under C</sysroot>:"
28487 msgstr ""
28488
28489 # type: verbatim
28490 #: ../tools/virt-rescue.pl:79
28491 #, no-wrap
28492 msgid ""
28493 " ><rescue> lvs\n"
28494 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28495 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28496 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28497 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28498 " ><rescue> ls /sysroot\n"
28499 "\n"
28500 msgstr ""
28501
28502 # type: textblock
28503 #: ../tools/virt-rescue.pl:86
28504 msgid ""
28505 "If you don't know what filesystems are available on the virtual machine then "
28506 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28507 msgstr ""
28508
28509 # type: textblock
28510 #: ../tools/virt-rescue.pl:92
28511 msgid ""
28512 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28513 "virtual machine.  For example you can use it on a blank file if you want to "
28514 "partition that file (although we would recommend using L<guestfish(1)> "
28515 "instead as it is more suitable for this purpose).  You can even use virt-"
28516 "rescue on things like SD cards."
28517 msgstr ""
28518
28519 # type: textblock
28520 #: ../tools/virt-rescue.pl:98
28521 msgid ""
28522 "This tool is just designed for quick interactive hacking on a virtual "
28523 "machine.  For more structured access to a virtual machine disk image, you "
28524 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28525 "make scripted changes to guests, use L<guestfish(1)>."
28526 msgstr ""
28527
28528 # type: =item
28529 #: ../tools/virt-rescue.pl:127
28530 msgid "B<--append kernelopts>"
28531 msgstr ""
28532
28533 # type: textblock
28534 #: ../tools/virt-rescue.pl:129
28535 msgid "Pass additional options to the rescue kernel."
28536 msgstr ""
28537
28538 # type: =item
28539 #: ../tools/virt-rescue.pl:164
28540 msgid "B<--memsize MB> | B<-m MB>"
28541 msgstr ""
28542
28543 # type: textblock
28544 #: ../tools/virt-rescue.pl:166
28545 msgid ""
28546 "Change the amount of memory allocated to the rescue system.  The default is "
28547 "set by libguestfs and is small but adequate for running system tools.  The "
28548 "occasional program might need more memory.  The parameter is specified in "
28549 "megabytes."
28550 msgstr ""
28551
28552 # type: =item
28553 #: ../tools/virt-rescue.pl:175
28554 msgid "B<--network>"
28555 msgstr ""
28556
28557 # type: textblock
28558 #: ../tools/virt-rescue.pl:177
28559 msgid "Enable QEMU user networking in the guest."
28560 msgstr ""
28561
28562 # type: =item
28563 #: ../tools/virt-rescue.pl:183
28564 msgid "B<--ro> | B<-r>"
28565 msgstr ""
28566
28567 # type: textblock
28568 #: ../tools/virt-rescue.pl:185
28569 msgid "Open the image read-only."
28570 msgstr ""
28571
28572 # type: textblock
28573 #: ../tools/virt-rescue.pl:197
28574 msgid ""
28575 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28576 "SELINUX> before using this option."
28577 msgstr ""
28578
28579 # type: textblock
28580 #: ../tools/virt-rescue.pl:257
28581 msgid ""
28582 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28583 "ENVIRONMENT VARIABLES> for the complete list."
28584 msgstr ""
28585
28586 # type: textblock
28587 #: ../tools/virt-rescue.pl:269
28588 msgid ""
28589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28590 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28591 msgstr ""
28592
28593 # type: textblock
28594 #: ../tools/virt-make-fs.pl:37
28595 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28596 msgstr ""
28597
28598 # type: verbatim
28599 #: ../tools/virt-make-fs.pl:41
28600 #, no-wrap
28601 msgid ""
28602 " virt-make-fs [--options] input.tar output.img\n"
28603 "\n"
28604 msgstr ""
28605
28606 # type: verbatim
28607 #: ../tools/virt-make-fs.pl:43
28608 #, no-wrap
28609 msgid ""
28610 " virt-make-fs [--options] input.tar.gz output.img\n"
28611 "\n"
28612 msgstr ""
28613
28614 # type: verbatim
28615 #: ../tools/virt-make-fs.pl:45
28616 #, no-wrap
28617 msgid ""
28618 " virt-make-fs [--options] directory output.img\n"
28619 "\n"
28620 msgstr ""
28621
28622 # type: textblock
28623 #: ../tools/virt-make-fs.pl:49
28624 msgid ""
28625 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28626 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28627 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28628 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28629 "you want to attach these filesystems to existing virtual machines (eg. to "
28630 "import large amounts of read-only data to a VM)."
28631 msgstr ""
28632
28633 # type: textblock
28634 #: ../tools/virt-make-fs.pl:57
28635 msgid "Basic usage is:"
28636 msgstr ""
28637
28638 # type: verbatim
28639 #: ../tools/virt-make-fs.pl:59
28640 #, no-wrap
28641 msgid ""
28642 " virt-make-fs input output\n"
28643 "\n"
28644 msgstr ""
28645
28646 # type: textblock
28647 #: ../tools/virt-make-fs.pl:61
28648 msgid ""
28649 "where C<input> is either a directory containing files that you want to add, "
28650 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28651 "C<output> is a disk image.  The input type is detected automatically.  The "
28652 "output disk image defaults to a raw ext2 image unless you specify extra "
28653 "flags (see L</OPTIONS> below)."
28654 msgstr ""
28655
28656 # type: =head2
28657 #: ../tools/virt-make-fs.pl:67
28658 msgid "EXTRA SPACE"
28659 msgstr ""
28660
28661 # type: textblock
28662 #: ../tools/virt-make-fs.pl:69
28663 msgid ""
28664 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28665 "the files that it contains, but might have extra space.  Depending on how "
28666 "you are going to use the output, you might think this extra space is wasted "
28667 "and want to minimize it, or you might want to leave space so that more files "
28668 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28669 "but you can use the C<--size> flag to leave space in the filesystem if you "
28670 "want it."
28671 msgstr ""
28672
28673 # type: textblock
28674 #: ../tools/virt-make-fs.pl:77
28675 msgid ""
28676 "An alternative way to leave extra space but not make the output image any "
28677 "bigger is to use an alternative disk image format (instead of the default "
28678 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28679 "image format (check your hypervisor supports this before using it).  This "
28680 "allows you to choose a large C<--size> but the extra space won't actually be "
28681 "allocated in the image until you try to store something in it."
28682 msgstr ""
28683
28684 # type: textblock
28685 #: ../tools/virt-make-fs.pl:85
28686 msgid ""
28687 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28688 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28689 "resize to build another image from scratch."
28690 msgstr ""
28691
28692 # type: =head3
28693 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28694 #: ../tools/virt-make-fs.pl:142
28695 msgid "EXAMPLE"
28696 msgstr ""
28697
28698 # type: verbatim
28699 #: ../tools/virt-make-fs.pl:91
28700 #, no-wrap
28701 msgid ""
28702 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28703 "\n"
28704 msgstr ""
28705
28706 # type: =head2
28707 #: ../tools/virt-make-fs.pl:93
28708 msgid "FILESYSTEM TYPE"
28709 msgstr ""
28710
28711 # type: textblock
28712 #: ../tools/virt-make-fs.pl:95
28713 msgid ""
28714 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28715 "libguestfs supports can be used (but I<not> read-only formats like "
28716 "ISO9660).  Here are some of the more common choices:"
28717 msgstr ""
28718
28719 # type: =item
28720 #: ../tools/virt-make-fs.pl:101
28721 msgid "I<ext3>"
28722 msgstr ""
28723
28724 # type: textblock
28725 #: ../tools/virt-make-fs.pl:103
28726 msgid ""
28727 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28728 "you are not going to use the filesystem in a way that requires the journal, "
28729 "then this is just wasted overhead."
28730 msgstr ""
28731
28732 # type: =item
28733 #: ../tools/virt-make-fs.pl:107
28734 msgid "I<ntfs> or I<vfat>"
28735 msgstr ""
28736
28737 # type: textblock
28738 #: ../tools/virt-make-fs.pl:109
28739 msgid "Useful if exporting data to a Windows guest."
28740 msgstr ""
28741
28742 # type: textblock
28743 #: ../tools/virt-make-fs.pl:111
28744 msgid ""
28745 "I<Note for vfat>: The tar archive or local directory must only contain files "
28746 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28747 "program running within libguestfs is unable to change the ownership of non-"
28748 "root files, since vfat itself does not support this."
28749 msgstr ""
28750
28751 # type: =item
28752 #: ../tools/virt-make-fs.pl:116
28753 msgid "I<minix>"
28754 msgstr ""
28755
28756 # type: textblock
28757 #: ../tools/virt-make-fs.pl:118
28758 msgid ""
28759 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28760 "total filesystem size."
28761 msgstr ""
28762
28763 # type: verbatim
28764 #: ../tools/virt-make-fs.pl:125
28765 #, no-wrap
28766 msgid ""
28767 " virt-make-fs --type=minix input minixfs.img\n"
28768 "\n"
28769 msgstr ""
28770
28771 # type: =head2
28772 #: ../tools/virt-make-fs.pl:127
28773 msgid "TO PARTITION OR NOT TO PARTITION"
28774 msgstr ""
28775
28776 # type: textblock
28777 #: ../tools/virt-make-fs.pl:129
28778 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28779 msgstr ""
28780
28781 # type: textblock
28782 #: ../tools/virt-make-fs.pl:131
28783 msgid ""
28784 "Adding a partition can make the disk image more compatible with certain "
28785 "virtualized operating systems which don't expect to see a filesystem "
28786 "directly located on a block device (Linux doesn't care and will happily "
28787 "handle both types)."
28788 msgstr ""
28789
28790 # type: textblock
28791 #: ../tools/virt-make-fs.pl:136
28792 msgid ""
28793 "On the other hand, if you have a partition table then the output image is no "
28794 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28795 "directly on a partitioned disk image.  (However libguestfs tools such as "
28796 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28797 msgstr ""
28798
28799 # type: textblock
28800 #: ../tools/virt-make-fs.pl:144
28801 msgid "Add an MBR partition:"
28802 msgstr ""
28803
28804 # type: verbatim
28805 #: ../tools/virt-make-fs.pl:146
28806 #, no-wrap
28807 msgid ""
28808 " virt-make-fs --partition -- input disk.img\n"
28809 "\n"
28810 msgstr ""
28811
28812 # type: textblock
28813 #: ../tools/virt-make-fs.pl:148
28814 msgid ""
28815 "If the output disk image could be terabyte-sized or larger, it's better to "
28816 "use an EFI/GPT-compatible partition table:"
28817 msgstr ""
28818
28819 # type: verbatim
28820 #: ../tools/virt-make-fs.pl:151
28821 #, no-wrap
28822 msgid ""
28823 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28824 "\n"
28825 msgstr ""
28826
28827 # type: textblock
28828 #: ../tools/virt-make-fs.pl:179
28829 msgid "Enable debugging information."
28830 msgstr ""
28831
28832 # type: =item
28833 #: ../tools/virt-make-fs.pl:185
28834 msgid "B<--size=E<lt>NE<gt>>"
28835 msgstr ""
28836
28837 # type: =item
28838 #: ../tools/virt-make-fs.pl:187
28839 msgid "B<--size=+E<lt>NE<gt>>"
28840 msgstr ""
28841
28842 # type: =item
28843 #: ../tools/virt-make-fs.pl:189
28844 msgid "B<-s E<lt>NE<gt>>"
28845 msgstr ""
28846
28847 # type: =item
28848 #: ../tools/virt-make-fs.pl:191
28849 msgid "B<-s +E<lt>NE<gt>>"
28850 msgstr ""
28851
28852 # type: textblock
28853 #: ../tools/virt-make-fs.pl:193
28854 msgid ""
28855 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28856 msgstr ""
28857
28858 # type: textblock
28859 #: ../tools/virt-make-fs.pl:196
28860 msgid ""
28861 "If this option is I<not> given, then the output image will be just large "
28862 "enough to contain all the files, with not much wasted space."
28863 msgstr ""
28864
28865 # type: textblock
28866 #: ../tools/virt-make-fs.pl:199
28867 msgid ""
28868 "To choose a fixed size output disk, specify an absolute number followed by b/"
28869 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28870 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28871 "files, else you will get an error."
28872 msgstr ""
28873
28874 # type: textblock
28875 #: ../tools/virt-make-fs.pl:204
28876 msgid ""
28877 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28878 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28879 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28880 "the input files, and (approximately) an extra 200 MB free space."
28881 msgstr ""
28882
28883 # type: textblock
28884 #: ../tools/virt-make-fs.pl:210
28885 msgid ""
28886 "Note that virt-make-fs estimates free space, and therefore will not produce "
28887 "filesystems containing precisely the free space requested.  (It is much more "
28888 "expensive and time-consuming to produce a filesystem which has precisely the "
28889 "desired free space)."
28890 msgstr ""
28891
28892 # type: =item
28893 #: ../tools/virt-make-fs.pl:219
28894 msgid "B<--format=E<lt>fmtE<gt>>"
28895 msgstr ""
28896
28897 # type: =item
28898 #: ../tools/virt-make-fs.pl:221
28899 msgid "B<-F E<lt>fmtE<gt>>"
28900 msgstr ""
28901
28902 # type: textblock
28903 #: ../tools/virt-make-fs.pl:223
28904 msgid "Choose the output disk image format."
28905 msgstr ""
28906
28907 # type: textblock
28908 #: ../tools/virt-make-fs.pl:225
28909 msgid "The default is C<raw> (raw disk image)."
28910 msgstr ""
28911
28912 # type: textblock
28913 #: ../tools/virt-make-fs.pl:227
28914 msgid ""
28915 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28916 "that would really make sense here is C<qcow2>."
28917 msgstr ""
28918
28919 # type: =item
28920 #: ../tools/virt-make-fs.pl:234
28921 msgid "B<--type=E<lt>fsE<gt>>"
28922 msgstr ""
28923
28924 # type: =item
28925 #: ../tools/virt-make-fs.pl:236
28926 msgid "B<-t E<lt>fsE<gt>>"
28927 msgstr ""
28928
28929 # type: textblock
28930 #: ../tools/virt-make-fs.pl:238
28931 msgid "Choose the output filesystem type."
28932 msgstr ""
28933
28934 # type: textblock
28935 #: ../tools/virt-make-fs.pl:240
28936 msgid "The default is C<ext2>."
28937 msgstr ""
28938
28939 # type: textblock
28940 #: ../tools/virt-make-fs.pl:242
28941 msgid ""
28942 "Any filesystem which is supported read-write by libguestfs can be used here."
28943 msgstr ""
28944
28945 # type: =item
28946 #: ../tools/virt-make-fs.pl:249
28947 msgid "B<--partition>"
28948 msgstr ""
28949
28950 # type: =item
28951 #: ../tools/virt-make-fs.pl:251
28952 msgid "B<--partition=E<lt>parttypeE<gt>>"
28953 msgstr ""
28954
28955 # type: textblock
28956 #: ../tools/virt-make-fs.pl:253
28957 msgid ""
28958 "If specified, this flag adds an MBR partition table to the output disk image."
28959 msgstr ""
28960
28961 # type: textblock
28962 #: ../tools/virt-make-fs.pl:256
28963 msgid ""
28964 "You can change the partition table type, eg. C<--partition=gpt> for large "
28965 "disks."
28966 msgstr ""
28967
28968 # type: textblock
28969 #: ../tools/virt-make-fs.pl:259
28970 msgid ""
28971 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28972 "might consider the next parameter to be the partition type.  For example:"
28973 msgstr ""
28974
28975 # type: verbatim
28976 #: ../tools/virt-make-fs.pl:263
28977 #, no-wrap
28978 msgid ""
28979 " virt-make-fs --partition input.tar ...\n"
28980 "\n"
28981 msgstr ""
28982
28983 # type: textblock
28984 #: ../tools/virt-make-fs.pl:265
28985 msgid ""
28986 "would cause virt-make-fs to think you wanted to use a partition type of "
28987 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28988 "dash) between options and the input file argument:"
28989 msgstr ""
28990
28991 # type: verbatim
28992 #: ../tools/virt-make-fs.pl:269
28993 #, no-wrap
28994 msgid ""
28995 " virt-make-fs --partition -- input.tar ...\n"
28996 "\n"
28997 msgstr ""
28998
28999 # type: textblock
29000 #: ../tools/virt-make-fs.pl:536
29001 msgid ""
29002 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29003 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29004 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29005 msgstr ""
29006
29007 # type: verbatim
29008 #: ../tools/virt-make-fs.pl:553
29009 #, no-wrap
29010 msgid ""
29011 " export LIBGUESTFS_DEBUG=1\n"
29012 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29013 "\n"
29014 msgstr ""
29015
29016 # type: textblock
29017 #: ../tools/virt-make-fs.pl:556
29018 msgid ""
29019 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29020 "redhat.com/>"
29021 msgstr ""
29022
29023 # type: textblock
29024 #: ../tools/virt-list-partitions.pl:32
29025 msgid ""
29026 "virt-list-partitions - List partitions in a virtual machine or disk image"
29027 msgstr ""
29028
29029 # type: verbatim
29030 #: ../tools/virt-list-partitions.pl:36
29031 #, no-wrap
29032 msgid ""
29033 " virt-list-partitions [--options] domname\n"
29034 "\n"
29035 msgstr ""
29036
29037 # type: verbatim
29038 #: ../tools/virt-list-partitions.pl:38
29039 #, no-wrap
29040 msgid ""
29041 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29042 "\n"
29043 msgstr ""
29044
29045 # type: textblock
29046 #: ../tools/virt-list-partitions.pl:45
29047 msgid ""
29048 "C<virt-list-partitions> is a command line tool to list the partitions that "
29049 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29050 "first step to using L<virt-resize(1)>."
29051 msgstr ""
29052
29053 # type: textblock
29054 #: ../tools/virt-list-partitions.pl:50
29055 msgid ""
29056 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29057 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29058 "> tool."
29059 msgstr ""
29060
29061 # type: =item
29062 #: ../tools/virt-list-partitions.pl:107
29063 msgid "B<-h> | B<--human-readable>"
29064 msgstr ""
29065
29066 # type: textblock
29067 #: ../tools/virt-list-partitions.pl:109
29068 msgid "Show sizes in human-readable form (eg. \"1G\")."
29069 msgstr ""
29070
29071 # type: textblock
29072 #: ../tools/virt-list-partitions.pl:117
29073 msgid ""
29074 "With this option, C<virt-list-partitions> displays the type and size of each "
29075 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29076 msgstr ""
29077
29078 # type: =item
29079 #: ../tools/virt-list-partitions.pl:124
29080 msgid "B<-t> | B<--total>"
29081 msgstr ""
29082
29083 # type: textblock
29084 #: ../tools/virt-list-partitions.pl:126
29085 msgid ""
29086 "Display the total size of each block device (as a separate row or rows)."
29087 msgstr ""
29088
29089 # type: textblock
29090 #: ../tools/virt-list-partitions.pl:259
29091 msgid ""
29092 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
29093 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
29094 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29095 msgstr ""