Version 1.7.14.
[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-25 18:53+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33
23 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
24 #: ../tools/virt-tar.pl:29 ../tools/virt-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
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
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
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: textblock
149 #: ../src/guestfs.pod:55
150 msgid ""
151 "There are also some example programs in the L<guestfs-examples(3)> manual "
152 "page."
153 msgstr ""
154
155 # type: =head1
156 #: ../src/guestfs.pod:58
157 msgid "API OVERVIEW"
158 msgstr ""
159
160 # type: textblock
161 #: ../src/guestfs.pod:60
162 msgid ""
163 "This section provides a gentler overview of the libguestfs API.  We also try "
164 "to group API calls together, where that may not be obvious from reading "
165 "about the individual calls in the main section of this manual."
166 msgstr ""
167
168 # type: =head2
169 #: ../src/guestfs.pod:65
170 msgid "HANDLES"
171 msgstr ""
172
173 # type: textblock
174 #: ../src/guestfs.pod:67
175 msgid ""
176 "Before you can use libguestfs calls, you have to create a handle.  Then you "
177 "must add at least one disk image to the handle, followed by launching the "
178 "handle, then performing whatever operations you want, and finally closing "
179 "the handle.  By convention we use the single letter C<g> for the name of the "
180 "handle variable, although of course you can use any name you want."
181 msgstr ""
182
183 # type: textblock
184 #: ../src/guestfs.pod:74
185 msgid "The general structure of all libguestfs-using programs looks like this:"
186 msgstr ""
187
188 # type: verbatim
189 #: ../src/guestfs.pod:77
190 #, no-wrap
191 msgid ""
192 " guestfs_h *g = guestfs_create ();\n"
193 " \n"
194 msgstr ""
195
196 # type: verbatim
197 #: ../src/guestfs.pod:79
198 #, no-wrap
199 msgid ""
200 " /* Call guestfs_add_drive additional times if there are\n"
201 "  * multiple disk images.\n"
202 "  */\n"
203 " guestfs_add_drive (g, \"guest.img\");\n"
204 " \n"
205 msgstr ""
206
207 # type: verbatim
208 #: ../src/guestfs.pod:84
209 #, no-wrap
210 msgid ""
211 " /* Most manipulation calls won't work until you've launched\n"
212 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
213 "  * and _before_ other commands.\n"
214 "  */\n"
215 " guestfs_launch (g);\n"
216 " \n"
217 msgstr ""
218
219 # type: verbatim
220 #: ../src/guestfs.pod:90
221 #, no-wrap
222 msgid ""
223 " /* Now you can examine what partitions, LVs etc are available.\n"
224 "  */\n"
225 " char **partitions = guestfs_list_partitions (g);\n"
226 " char **logvols = guestfs_lvs (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #: ../src/guestfs.pod:95
232 #, no-wrap
233 msgid ""
234 " /* To access a filesystem in the image, you must mount it.\n"
235 "  */\n"
236 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
237 " \n"
238 msgstr ""
239
240 # type: verbatim
241 #: ../src/guestfs.pod:99
242 #, no-wrap
243 msgid ""
244 " /* Now you can perform filesystem actions on the guest\n"
245 "  * disk image.\n"
246 "  */\n"
247 " guestfs_touch (g, \"/hello\");\n"
248 " \n"
249 msgstr ""
250
251 # type: verbatim
252 #: ../src/guestfs.pod:104
253 #, no-wrap
254 msgid ""
255 " /* You only need to call guestfs_sync if you have made\n"
256 "  * changes to the guest image.  (But if you've made changes\n"
257 "  * then you *must* sync).  See also: guestfs_umount and\n"
258 "  * guestfs_umount_all calls.\n"
259 "  */\n"
260 " guestfs_sync (g);\n"
261 " \n"
262 msgstr ""
263
264 # type: verbatim
265 #: ../src/guestfs.pod:111
266 #, no-wrap
267 msgid ""
268 " /* Close the handle 'g'. */\n"
269 " guestfs_close (g);\n"
270 "\n"
271 msgstr ""
272
273 # type: textblock
274 #: ../src/guestfs.pod:114
275 msgid ""
276 "The code above doesn't include any error checking.  In real code you should "
277 "check return values carefully for errors.  In general all functions that "
278 "return integers return C<-1> on error, and all functions that return "
279 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
280 "how to handle errors, and consult the documentation for each function call "
281 "below to see precisely how they return error indications."
282 msgstr ""
283
284 # type: =head2
285 #: ../src/guestfs.pod:122
286 msgid "DISK IMAGES"
287 msgstr ""
288
289 # type: textblock
290 #: ../src/guestfs.pod:124
291 msgid ""
292 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
293 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
294 "actual block device, or simply an empty file of zeroes that you have created "
295 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
296 "of these."
297 msgstr ""
298
299 # type: textblock
300 #: ../src/guestfs.pod:130
301 msgid ""
302 "The call you should use in modern code for adding drives is L</"
303 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
304 "specifying that the format is raw, do:"
305 msgstr ""
306
307 # type: verbatim
308 #: ../src/guestfs.pod:134
309 #, no-wrap
310 msgid ""
311 " guestfs_add_drive_opts (g, filename,\n"
312 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
313 "                         -1);\n"
314 "\n"
315 msgstr ""
316
317 # type: textblock
318 #: ../src/guestfs.pod:138
319 msgid "You can add a disk read-only using:"
320 msgstr ""
321
322 # type: verbatim
323 #: ../src/guestfs.pod:140
324 #, no-wrap
325 msgid ""
326 " guestfs_add_drive_opts (g, filename,\n"
327 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
328 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
329 "                         -1);\n"
330 "\n"
331 msgstr ""
332
333 # type: textblock
334 #: ../src/guestfs.pod:145
335 msgid ""
336 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
337 "libguestfs won't modify the file."
338 msgstr ""
339
340 # type: textblock
341 #: ../src/guestfs.pod:148
342 msgid ""
343 "Be extremely cautious if the disk image is in use, eg. if it is being used "
344 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
345 "corruption, but adding it read-only is safe."
346 msgstr ""
347
348 # type: textblock
349 #: ../src/guestfs.pod:152
350 msgid ""
351 "You must add at least one disk image, and you may add multiple disk images.  "
352 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
353 "first one you added), C</dev/sdb> (for the second one you added), etc."
354 msgstr ""
355
356 # type: textblock
357 #: ../src/guestfs.pod:157
358 msgid ""
359 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
360 "can call L</guestfs_list_devices> to get a list of the device names, in the "
361 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
362 msgstr ""
363
364 # type: =head2
365 #: ../src/guestfs.pod:162
366 msgid "MOUNTING"
367 msgstr ""
368
369 # type: textblock
370 #: ../src/guestfs.pod:164
371 msgid ""
372 "Before you can read or write files, create directories and so on in a disk "
373 "image that contains filesystems, you have to mount those filesystems using "
374 "L</guestfs_mount>.  If you already know that a disk image contains (for "
375 "example) one partition with a filesystem on that partition, then you can "
376 "mount it directly:"
377 msgstr ""
378
379 # type: verbatim
380 #: ../src/guestfs.pod:170
381 #, no-wrap
382 msgid ""
383 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
384 "\n"
385 msgstr ""
386
387 # type: textblock
388 #: ../src/guestfs.pod:172
389 msgid ""
390 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
391 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
392 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
393 msgstr ""
394
395 # type: textblock
396 #: ../src/guestfs.pod:176
397 msgid ""
398 "If you are given a disk image and you don't know what it contains then you "
399 "have to find out.  Libguestfs can do that too: use L</"
400 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
401 "LVs, and either try mounting each to see what is mountable, or else examine "
402 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
403 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
404 "you might find it easier to look at higher level programs built on top of "
405 "libguestfs, in particular L<virt-inspector(1)>."
406 msgstr ""
407
408 # type: textblock
409 #: ../src/guestfs.pod:186
410 msgid ""
411 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
412 "several other variations of the C<guestfs_mount_*> call."
413 msgstr ""
414
415 # type: =head2
416 #: ../src/guestfs.pod:189
417 msgid "FILESYSTEM ACCESS AND MODIFICATION"
418 msgstr ""
419
420 # type: textblock
421 #: ../src/guestfs.pod:191
422 msgid ""
423 "The majority of the libguestfs API consists of fairly low-level calls for "
424 "accessing and modifying the files, directories, symlinks etc on mounted "
425 "filesystems.  There are over a hundred such calls which you can find listed "
426 "in detail below in this man page, and we don't even pretend to cover them "
427 "all in this overview."
428 msgstr ""
429
430 # type: textblock
431 #: ../src/guestfs.pod:197
432 msgid ""
433 "Specify filenames as full paths, starting with C<\"/\"> and including the "
434 "mount point."
435 msgstr ""
436
437 # type: textblock
438 #: ../src/guestfs.pod:200
439 msgid ""
440 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
441 "the file called C<\"etc/passwd\"> then you could do:"
442 msgstr ""
443
444 # type: verbatim
445 #: ../src/guestfs.pod:203
446 #, no-wrap
447 msgid ""
448 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
449 "\n"
450 msgstr ""
451
452 # type: textblock
453 #: ../src/guestfs.pod:205
454 msgid ""
455 "This would return C<data> as a newly allocated buffer containing the full "
456 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
457 "or C<NULL> if there was an error."
458 msgstr ""
459
460 # type: textblock
461 #: ../src/guestfs.pod:209
462 msgid ""
463 "As another example, to create a top-level directory on that filesystem "
464 "called C<\"var\"> you would do:"
465 msgstr ""
466
467 # type: verbatim
468 #: ../src/guestfs.pod:212
469 #, no-wrap
470 msgid ""
471 " guestfs_mkdir (g, \"/var\");\n"
472 "\n"
473 msgstr ""
474
475 # type: textblock
476 #: ../src/guestfs.pod:214
477 msgid "To create a symlink you could do:"
478 msgstr ""
479
480 # type: verbatim
481 #: ../src/guestfs.pod:216
482 #, no-wrap
483 msgid ""
484 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
485 "               \"/etc/rc3.d/S30portmap\");\n"
486 "\n"
487 msgstr ""
488
489 # type: textblock
490 #: ../src/guestfs.pod:219
491 msgid ""
492 "Libguestfs will reject attempts to use relative paths and there is no "
493 "concept of a current working directory."
494 msgstr ""
495
496 # type: textblock
497 #: ../src/guestfs.pod:222
498 msgid ""
499 "Libguestfs can return errors in many situations: for example if the "
500 "filesystem isn't writable, or if a file or directory that you requested "
501 "doesn't exist.  If you are using the C API (documented here)  you have to "
502 "check for those error conditions after each call.  (Other language bindings "
503 "turn these errors into exceptions)."
504 msgstr ""
505
506 # type: textblock
507 #: ../src/guestfs.pod:228
508 msgid ""
509 "File writes are affected by the per-handle umask, set by calling L</"
510 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
511 msgstr ""
512
513 # type: =head2
514 #: ../src/guestfs.pod:231
515 msgid "PARTITIONING"
516 msgstr ""
517
518 # type: textblock
519 #: ../src/guestfs.pod:233
520 msgid ""
521 "Libguestfs contains API calls to read, create and modify partition tables on "
522 "disk images."
523 msgstr ""
524
525 # type: textblock
526 #: ../src/guestfs.pod:236
527 msgid ""
528 "In the common case where you want to create a single partition covering the "
529 "whole disk, you should use the L</guestfs_part_disk> call:"
530 msgstr ""
531
532 # type: verbatim
533 #: ../src/guestfs.pod:240
534 #, no-wrap
535 msgid ""
536 " const char *parttype = \"mbr\";\n"
537 " if (disk_is_larger_than_2TB)\n"
538 "   parttype = \"gpt\";\n"
539 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
540 "\n"
541 msgstr ""
542
543 # type: textblock
544 #: ../src/guestfs.pod:245
545 msgid ""
546 "Obviously this effectively wipes anything that was on that disk image before."
547 msgstr ""
548
549 # type: =head2
550 #: ../src/guestfs.pod:248
551 msgid "LVM2"
552 msgstr ""
553
554 # type: textblock
555 #: ../src/guestfs.pod:250
556 msgid ""
557 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
558 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
559 "you familiarize yourself with the concepts of physical volumes, volume "
560 "groups and logical volumes."
561 msgstr ""
562
563 # type: textblock
564 #: ../src/guestfs.pod:255
565 msgid ""
566 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
567 "tldp.org/HOWTO/LVM-HOWTO/>."
568 msgstr ""
569
570 # type: =head2
571 #: ../src/guestfs.pod:258
572 msgid "DOWNLOADING"
573 msgstr ""
574
575 # type: textblock
576 #: ../src/guestfs.pod:260
577 msgid ""
578 "Use L</guestfs_cat> to download small, text only files.  This call is "
579 "limited to files which are less than 2 MB and which cannot contain any ASCII "
580 "NUL (C<\\0>) characters.  However it has a very simple to use API."
581 msgstr ""
582
583 # type: textblock
584 #: ../src/guestfs.pod:265
585 msgid ""
586 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
587 "bit data, since it returns a (pointer, size) pair.  However it is still "
588 "limited to \"small\" files, less than 2 MB."
589 msgstr ""
590
591 # type: textblock
592 #: ../src/guestfs.pod:269
593 msgid ""
594 "L</guestfs_download> can be used to download any file, with no limits on "
595 "content or size (even files larger than 4 GB)."
596 msgstr ""
597
598 # type: textblock
599 #: ../src/guestfs.pod:272
600 msgid ""
601 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
602 msgstr ""
603
604 # type: =head2
605 #: ../src/guestfs.pod:275
606 msgid "UPLOADING"
607 msgstr ""
608
609 # type: textblock
610 #: ../src/guestfs.pod:277
611 msgid ""
612 "It's often the case that you want to write a file or files to the disk image."
613 msgstr ""
614
615 # type: textblock
616 #: ../src/guestfs.pod:280
617 msgid ""
618 "To write a small file with fixed content, use L</guestfs_write>.  To create "
619 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
620 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
621 "of other functions for creating test files, for example L</guestfs_fill> and "
622 "L</guestfs_fill_pattern>."
623 msgstr ""
624
625 # type: textblock
626 #: ../src/guestfs.pod:286
627 msgid ""
628 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
629 "file content or size (even files larger than 4 GB)."
630 msgstr ""
631
632 # type: textblock
633 #: ../src/guestfs.pod:289
634 msgid ""
635 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
636 msgstr ""
637
638 # type: textblock
639 #: ../src/guestfs.pod:291
640 msgid ""
641 "However the fastest way to upload I<large numbers of arbitrary files> is to "
642 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
643 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
644 "in a predictable way (eg. adding it last after all other drives) then you "
645 "can get the device name from L</guestfs_list_devices> and mount it directly "
646 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
647 "portable between kernel versions, and they don't support labels or UUIDs.  "
648 "If you want to pre-build an image or you need to mount it using a label or "
649 "UUID, use an ISO image instead."
650 msgstr ""
651
652 # type: =head2
653 #: ../src/guestfs.pod:302
654 msgid "COPYING"
655 msgstr ""
656
657 # type: textblock
658 #: ../src/guestfs.pod:304
659 msgid ""
660 "There are various different commands for copying between files and devices "
661 "and in and out of the guest filesystem.  These are summarised in the table "
662 "below."
663 msgstr ""
664
665 # type: =item
666 #: ../src/guestfs.pod:310
667 msgid "B<file> to B<file>"
668 msgstr ""
669
670 # type: textblock
671 #: ../src/guestfs.pod:312
672 msgid ""
673 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
674 "directories recursively."
675 msgstr ""
676
677 # type: =item
678 #: ../src/guestfs.pod:315
679 msgid "B<file or device> to B<file or device>"
680 msgstr ""
681
682 # type: textblock
683 #: ../src/guestfs.pod:317
684 msgid ""
685 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
686 "devices in the guest."
687 msgstr ""
688
689 # type: textblock
690 #: ../src/guestfs.pod:320
691 msgid "Example: duplicate the contents of an LV:"
692 msgstr ""
693
694 # type: verbatim
695 #: ../src/guestfs.pod:322
696 #, no-wrap
697 msgid ""
698 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
699 "\n"
700 msgstr ""
701
702 # type: textblock
703 #: ../src/guestfs.pod:324
704 msgid ""
705 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
706 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
707 "guestfs_copy_size>."
708 msgstr ""
709
710 # type: =item
711 #: ../src/guestfs.pod:328
712 msgid "B<file on the host> to B<file or device>"
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:330
717 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
718 msgstr ""
719
720 # type: =item
721 #: ../src/guestfs.pod:332
722 msgid "B<file or device> to B<file on the host>"
723 msgstr ""
724
725 # type: textblock
726 #: ../src/guestfs.pod:334
727 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
728 msgstr ""
729
730 # type: =head2
731 #: ../src/guestfs.pod:338
732 msgid "LISTING FILES"
733 msgstr ""
734
735 # type: textblock
736 #: ../src/guestfs.pod:340
737 msgid ""
738 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
739 "L<guestfish(1)>-equivalent command C<ll>)."
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:343
744 msgid ""
745 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
746 "programs, as a flat list of strings."
747 msgstr ""
748
749 # type: textblock
750 #: ../src/guestfs.pod:346
751 msgid ""
752 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
753 "directory, plus additional information about each one.  It is more "
754 "equivalent to using the L<readdir(3)> call on a local filesystem."
755 msgstr ""
756
757 # type: textblock
758 #: ../src/guestfs.pod:350
759 msgid ""
760 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
761 msgstr ""
762
763 # type: =head2
764 #: ../src/guestfs.pod:353
765 msgid "RUNNING COMMANDS"
766 msgstr ""
767
768 # type: textblock
769 #: ../src/guestfs.pod:355
770 msgid ""
771 "Although libguestfs is primarily an API for manipulating files inside guest "
772 "images, we also provide some limited facilities for running commands inside "
773 "guests."
774 msgstr ""
775
776 # type: textblock
777 #: ../src/guestfs.pod:359
778 msgid "There are many limitations to this:"
779 msgstr ""
780
781 # type: =item
782 #: ../src/guestfs.pod:363 ../src/guestfs.pod:368 ../src/guestfs.pod:373
783 #: ../src/guestfs.pod:377 ../src/guestfs.pod:382 ../src/guestfs.pod:386
784 #: ../src/guestfs.pod:391 ../src/guestfs.pod:396 ../src/guestfs.pod:955
785 #: ../src/guestfs.pod:959 ../src/guestfs.pod:963 ../src/guestfs.pod:968
786 #: ../src/guestfs.pod:976 ../src/guestfs.pod:995 ../src/guestfs.pod:1003
787 #: ../src/guestfs.pod:1025 ../src/guestfs.pod:1029 ../src/guestfs.pod:1033
788 #: ../src/guestfs.pod:1037 ../src/guestfs.pod:1041 ../src/guestfs.pod:1045
789 #: ../src/guestfs.pod:1527 ../src/guestfs.pod:1532 ../src/guestfs.pod:1536
790 #: ../src/guestfs.pod:1646 ../src/guestfs.pod:1651 ../src/guestfs.pod:1655
791 #: ../src/guestfs.pod:1999 ../src/guestfs.pod:2005 ../src/guestfs.pod:2010
792 #: ../src/guestfs.pod:2016 ../src/guestfs.pod:2128 ../src/guestfs.pod:2132
793 #: ../src/guestfs.pod:2136 ../src/guestfs.pod:2140
794 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
795 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
796 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
797 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
798 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
799 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
800 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
801 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
802 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
803 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
804 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
805 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:377
806 #: ../fish/guestfish.pod:381 ../fish/guestfish.pod:385
807 #: ../fish/guestfish.pod:389 ../fish/guestfish-actions.pod:13
808 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
809 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
810 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
811 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
812 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
813 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
814 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
815 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
816 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
817 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
818 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
819 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:352
820 #: ../tools/virt-resize.pl:362
821 msgid "*"
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:365
826 msgid ""
827 "The kernel version that the command runs under will be different from what "
828 "it expects."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:370
833 msgid ""
834 "If the command needs to communicate with daemons, then most likely they "
835 "won't be running."
836 msgstr ""
837
838 # type: textblock
839 #: ../src/guestfs.pod:375
840 msgid "The command will be running in limited memory."
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:379
845 msgid ""
846 "The network may not be available unless you enable it (see L</"
847 "guestfs_set_network>)."
848 msgstr ""
849
850 # type: textblock
851 #: ../src/guestfs.pod:384
852 msgid "Only supports Linux guests (not Windows, BSD, etc)."
853 msgstr ""
854
855 # type: textblock
856 #: ../src/guestfs.pod:388
857 msgid ""
858 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
859 msgstr ""
860
861 # type: textblock
862 #: ../src/guestfs.pod:393
863 msgid ""
864 "For SELinux guests, you may need to enable SELinux and load policy first.  "
865 "See L</SELINUX> in this manpage."
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:398
870 msgid ""
871 "I<Security:> It is not safe to run commands from untrusted, possibly "
872 "malicious guests.  These commands may attempt to exploit your program by "
873 "sending unexpected output.  They could also try to exploit the Linux kernel "
874 "or qemu provided by the libguestfs appliance.  They could use the network "
875 "provided by the libguestfs appliance to bypass ordinary network partitions "
876 "and firewalls.  They could use the elevated privileges or different SELinux "
877 "context of your program to their advantage."
878 msgstr ""
879
880 # type: textblock
881 #: ../src/guestfs.pod:407
882 msgid ""
883 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
884 "(a script which runs when the guest next boots normally), and to have this "
885 "script run the commands you want in the normal context of the running guest, "
886 "network security and so on.  For information about other security issues, "
887 "see L</SECURITY>."
888 msgstr ""
889
890 # type: textblock
891 #: ../src/guestfs.pod:415
892 msgid ""
893 "The two main API calls to run commands are L</guestfs_command> and L</"
894 "guestfs_sh> (there are also variations)."
895 msgstr ""
896
897 # type: textblock
898 #: ../src/guestfs.pod:418
899 msgid ""
900 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
901 "shell globs, redirections, etc will work."
902 msgstr ""
903
904 # type: =head2
905 #: ../src/guestfs.pod:421
906 msgid "CONFIGURATION FILES"
907 msgstr ""
908
909 # type: textblock
910 #: ../src/guestfs.pod:423
911 msgid ""
912 "To read and write configuration files in Linux guest filesystems, we "
913 "strongly recommend using Augeas.  For example, Augeas understands how to "
914 "read and write, say, a Linux shadow password file or X.org configuration "
915 "file, and so avoids you having to write that code."
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:428
920 msgid ""
921 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
922 "document Augeas itself here because there is excellent documentation on the "
923 "L<http://augeas.net/> website."
924 msgstr ""
925
926 # type: textblock
927 #: ../src/guestfs.pod:432
928 msgid ""
929 "If you don't want to use Augeas (you fool!) then try calling L</"
930 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
931 "over."
932 msgstr ""
933
934 # type: =head2
935 #: ../src/guestfs.pod:436
936 msgid "SELINUX"
937 msgstr ""
938
939 # type: textblock
940 #: ../src/guestfs.pod:438
941 msgid ""
942 "We support SELinux guests.  To ensure that labeling happens correctly in "
943 "SELinux guests, you need to enable SELinux and load the guest's policy:"
944 msgstr ""
945
946 # type: =item
947 #: ../src/guestfs.pod:444 ../src/guestfs.pod:1148 ../src/guestfs.pod:1279
948 msgid "1."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:446
953 msgid "Before launching, do:"
954 msgstr ""
955
956 # type: verbatim
957 #: ../src/guestfs.pod:448
958 #, no-wrap
959 msgid ""
960 " guestfs_set_selinux (g, 1);\n"
961 "\n"
962 msgstr ""
963
964 # type: =item
965 #: ../src/guestfs.pod:450 ../src/guestfs.pod:1152 ../src/guestfs.pod:1283
966 msgid "2."
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:452
971 msgid ""
972 "After mounting the guest's filesystem(s), load the policy.  This is best "
973 "done by running the L<load_policy(8)> command in the guest itself:"
974 msgstr ""
975
976 # type: verbatim
977 #: ../src/guestfs.pod:456
978 #, no-wrap
979 msgid ""
980 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
981 "\n"
982 msgstr ""
983
984 # type: textblock
985 #: ../src/guestfs.pod:458
986 msgid ""
987 "(Older versions of C<load_policy> require you to specify the name of the "
988 "policy file)."
989 msgstr ""
990
991 # type: =item
992 #: ../src/guestfs.pod:461 ../src/guestfs.pod:1289
993 msgid "3."
994 msgstr ""
995
996 # type: textblock
997 #: ../src/guestfs.pod:463
998 msgid ""
999 "Optionally, set the security context for the API.  The correct security "
1000 "context to use can only be known by inspecting the guest.  As an example:"
1001 msgstr ""
1002
1003 # type: verbatim
1004 #: ../src/guestfs.pod:467
1005 #, no-wrap
1006 msgid ""
1007 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1008 "\n"
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:471
1013 msgid "This will work for running commands and editing existing files."
1014 msgstr ""
1015
1016 # type: textblock
1017 #: ../src/guestfs.pod:473
1018 msgid ""
1019 "When new files are created, you may need to label them explicitly, for "
1020 "example by running the external command C<restorecon pathname>."
1021 msgstr ""
1022
1023 # type: =head2
1024 #: ../src/guestfs.pod:477
1025 msgid "UMASK"
1026 msgstr ""
1027
1028 # type: textblock
1029 #: ../src/guestfs.pod:479
1030 msgid ""
1031 "Certain calls are affected by the current file mode creation mask (the "
1032 "\"umask\").  In particular ones which create files or directories, such as "
1033 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1034 "either the default mode that the file is created with or modifies the mode "
1035 "that you supply."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:485
1040 msgid ""
1041 "The default umask is C<022>, so files are created with modes such as C<0644> "
1042 "and directories with C<0755>."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:488
1047 msgid ""
1048 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1049 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1050 "guestfs_chmod> after creating each file or directory."
1051 msgstr ""
1052
1053 # type: textblock
1054 #: ../src/guestfs.pod:492
1055 msgid "For more information about umask, see L<umask(2)>."
1056 msgstr ""
1057
1058 # type: =head1
1059 #: ../src/guestfs.pod:494 ../fish/guestfish.pod:670
1060 msgid "ENCRYPTED DISKS"
1061 msgstr ""
1062
1063 # type: textblock
1064 #: ../src/guestfs.pod:496
1065 msgid ""
1066 "Libguestfs allows you to access Linux guests which have been encrypted using "
1067 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1068 "standard.  This includes nearly all whole disk encryption systems used by "
1069 "modern Linux guests."
1070 msgstr ""
1071
1072 # type: textblock
1073 #: ../src/guestfs.pod:502
1074 msgid ""
1075 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1076 "returns the string C<crypto_LUKS>)."
1077 msgstr ""
1078
1079 # type: textblock
1080 #: ../src/guestfs.pod:505
1081 msgid ""
1082 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1083 "will require the passphrase!"
1084 msgstr ""
1085
1086 # type: textblock
1087 #: ../src/guestfs.pod:508
1088 msgid ""
1089 "Opening a LUKS device creates a new device mapper device called C</dev/"
1090 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1091 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1092 "from and encrypted to the underlying block device respectively."
1093 msgstr ""
1094
1095 # type: textblock
1096 #: ../src/guestfs.pod:514
1097 msgid ""
1098 "LVM volume groups on the device can be made visible by calling L</"
1099 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1100 "(s) can now be mounted in the usual way."
1101 msgstr ""
1102
1103 # type: textblock
1104 #: ../src/guestfs.pod:518
1105 msgid ""
1106 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1107 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1108 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1109 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1110 "underlying encrypted block device)."
1111 msgstr ""
1112
1113 # type: =head2
1114 #: ../src/guestfs.pod:525
1115 msgid "INSPECTION"
1116 msgstr ""
1117
1118 # type: textblock
1119 #: ../src/guestfs.pod:527
1120 msgid ""
1121 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1122 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1123 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1124 "frequently used part of this library has been rewritten in C and moved into "
1125 "the core code)."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:533
1130 msgid ""
1131 "Add all disks belonging to the unknown virtual machine and call L</"
1132 "guestfs_launch> in the usual way."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:536
1137 msgid ""
1138 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1139 "and certain heuristics, and returns a list of operating systems that were "
1140 "found.  An empty list means none were found.  A single element is the root "
1141 "filesystem of the operating system.  For dual- or multi-boot guests, "
1142 "multiple roots can be returned, each one corresponding to a separate "
1143 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1144 "world of virtualization, but since this scenario can happen, we have built "
1145 "libguestfs to deal with it.)"
1146 msgstr ""
1147
1148 # type: textblock
1149 #: ../src/guestfs.pod:545
1150 msgid ""
1151 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1152 "to get additional details about that operating system.  For example, call L</"
1153 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1154 "Windows and Linux-based operating systems respectively."
1155 msgstr ""
1156
1157 # type: textblock
1158 #: ../src/guestfs.pod:551
1159 msgid ""
1160 "Un*x-like and Linux-based operating systems usually consist of several "
1161 "filesystems which are mounted at boot time (for example, a separate boot "
1162 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1163 "filesystems correspond to mount points.  Call "
1164 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1165 "hash table like this example:"
1166 msgstr ""
1167
1168 # type: verbatim
1169 #: ../src/guestfs.pod:558
1170 #, no-wrap
1171 msgid ""
1172 " /boot => /dev/sda1\n"
1173 " /     => /dev/vg_guest/lv_root\n"
1174 " /usr  => /dev/vg_guest/lv_usr\n"
1175 "\n"
1176 msgstr ""
1177
1178 # type: textblock
1179 #: ../src/guestfs.pod:562
1180 msgid ""
1181 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1182 "filesystems as suggested."
1183 msgstr ""
1184
1185 # type: textblock
1186 #: ../src/guestfs.pod:565
1187 msgid ""
1188 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1189 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1190 msgstr ""
1191
1192 # type: textblock
1193 #: ../src/guestfs.pod:569
1194 msgid ""
1195 "Inspection currently only works for some common operating systems.  "
1196 "Contributors are welcome to send patches for other operating systems that we "
1197 "currently cannot detect."
1198 msgstr ""
1199
1200 # type: textblock
1201 #: ../src/guestfs.pod:573
1202 msgid ""
1203 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1204 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1205 "encrypted devices."
1206 msgstr ""
1207
1208 # type: textblock
1209 #: ../src/guestfs.pod:577
1210 msgid ""
1211 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1212 "inspection and caches the results in the guest handle.  Subsequent calls to "
1213 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1214 "read the disks.  If you change the content of the guest disks, you can redo "
1215 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1216 "guestfs_inspect_list_applications> works a little differently from the other "
1217 "calls and does read the disks.  See documentation for that function for "
1218 "details)."
1219 msgstr ""
1220
1221 # type: =head2
1222 #: ../src/guestfs.pod:586
1223 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1224 msgstr ""
1225
1226 # type: textblock
1227 #: ../src/guestfs.pod:588
1228 msgid ""
1229 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1230 "ntfs-3g.org/> driver."
1231 msgstr ""
1232
1233 # type: textblock
1234 #: ../src/guestfs.pod:591
1235 msgid ""
1236 "DOS and Windows still use drive letters, and the filesystems are always "
1237 "treated as case insensitive by Windows itself, and therefore you might find "
1238 "a Windows configuration file referring to a path like C<c:\\windows"
1239 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1240 "might be referred to as C</WINDOWS/System32>."
1241 msgstr ""
1242
1243 # type: textblock
1244 #: ../src/guestfs.pod:597
1245 msgid ""
1246 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1247 "libguestfs to read the appropriate Windows Registry and configuration files, "
1248 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1249 "inspector(1)>)."
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:602
1254 msgid ""
1255 "Replacing backslash characters with forward slash characters is also outside "
1256 "the scope of libguestfs, but something that you can easily do."
1257 msgstr ""
1258
1259 # type: textblock
1260 #: ../src/guestfs.pod:605
1261 msgid ""
1262 "Where we can help is in resolving the case insensitivity of paths.  For "
1263 "this, call L</guestfs_case_sensitive_path>."
1264 msgstr ""
1265
1266 # type: textblock
1267 #: ../src/guestfs.pod:608
1268 msgid ""
1269 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1270 "files, through the library C<hivex> which is part of the libguestfs project "
1271 "although ships as a separate tarball.  You have to locate and download the "
1272 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1273 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1274 "reg(1)> for more help on this issue."
1275 msgstr ""
1276
1277 # type: =head2
1278 #: ../src/guestfs.pod:616
1279 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1280 msgstr ""
1281
1282 # type: textblock
1283 #: ../src/guestfs.pod:618
1284 msgid ""
1285 "Although we don't want to discourage you from using the C API, we will "
1286 "mention here that the same API is also available in other languages."
1287 msgstr ""
1288
1289 # type: textblock
1290 #: ../src/guestfs.pod:621
1291 msgid ""
1292 "The API is broadly identical in all supported languages.  This means that "
1293 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1294 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1295 "words, a straightforward, predictable isomorphism between each language."
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:627
1300 msgid ""
1301 "Error messages are automatically transformed into exceptions if the language "
1302 "supports it."
1303 msgstr ""
1304
1305 # type: textblock
1306 #: ../src/guestfs.pod:630
1307 msgid ""
1308 "We don't try to \"object orientify\" parts of the API in OO languages, "
1309 "although contributors are welcome to write higher level APIs above what we "
1310 "provide in their favourite languages if they wish."
1311 msgstr ""
1312
1313 # type: =item
1314 #: ../src/guestfs.pod:636
1315 msgid "B<C++>"
1316 msgstr ""
1317
1318 # type: textblock
1319 #: ../src/guestfs.pod:638
1320 msgid ""
1321 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1322 "identical to the C API.  C++ classes and exceptions are not used."
1323 msgstr ""
1324
1325 # type: =item
1326 #: ../src/guestfs.pod:642
1327 msgid "B<C#>"
1328 msgstr ""
1329
1330 # type: textblock
1331 #: ../src/guestfs.pod:644
1332 msgid ""
1333 "The C# bindings are highly experimental.  Please read the warnings at the "
1334 "top of C<csharp/Libguestfs.cs>."
1335 msgstr ""
1336
1337 # type: =item
1338 #: ../src/guestfs.pod:647
1339 msgid "B<Haskell>"
1340 msgstr ""
1341
1342 # type: textblock
1343 #: ../src/guestfs.pod:649
1344 msgid ""
1345 "This is the only language binding that is working but incomplete.  Only "
1346 "calls which return simple integers have been bound in Haskell, and we are "
1347 "looking for help to complete this binding."
1348 msgstr ""
1349
1350 # type: =item
1351 #: ../src/guestfs.pod:653
1352 msgid "B<Java>"
1353 msgstr ""
1354
1355 # type: textblock
1356 #: ../src/guestfs.pod:655
1357 msgid ""
1358 "Full documentation is contained in the Javadoc which is distributed with "
1359 "libguestfs."
1360 msgstr ""
1361
1362 # type: =item
1363 #: ../src/guestfs.pod:658
1364 msgid "B<OCaml>"
1365 msgstr ""
1366
1367 # type: textblock
1368 #: ../src/guestfs.pod:660
1369 msgid "For documentation see L<guestfs-ocaml(3)>."
1370 msgstr ""
1371
1372 # type: =item
1373 #: ../src/guestfs.pod:662
1374 msgid "B<Perl>"
1375 msgstr ""
1376
1377 # type: textblock
1378 #: ../src/guestfs.pod:664
1379 msgid "For documentation see L<Sys::Guestfs(3)>."
1380 msgstr ""
1381
1382 # type: =item
1383 #: ../src/guestfs.pod:666
1384 msgid "B<PHP>"
1385 msgstr ""
1386
1387 # type: textblock
1388 #: ../src/guestfs.pod:668
1389 msgid ""
1390 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1391 "the php-libguestfs package for your distribution."
1392 msgstr ""
1393
1394 # type: textblock
1395 #: ../src/guestfs.pod:671
1396 msgid "The PHP binding only works correctly on 64 bit machines."
1397 msgstr ""
1398
1399 # type: =item
1400 #: ../src/guestfs.pod:673
1401 msgid "B<Python>"
1402 msgstr ""
1403
1404 # type: textblock
1405 #: ../src/guestfs.pod:675
1406 msgid "For documentation see L<guestfs-python(3)>."
1407 msgstr ""
1408
1409 # type: =item
1410 #: ../src/guestfs.pod:677
1411 msgid "B<Ruby>"
1412 msgstr ""
1413
1414 # type: textblock
1415 #: ../src/guestfs.pod:679
1416 msgid "For documentation see L<guestfs-ruby(3)>."
1417 msgstr ""
1418
1419 # type: =item
1420 #: ../src/guestfs.pod:681
1421 msgid "B<shell scripts>"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:683
1426 msgid "For documentation see L<guestfish(1)>."
1427 msgstr ""
1428
1429 # type: =head2
1430 #: ../src/guestfs.pod:687
1431 msgid "LIBGUESTFS GOTCHAS"
1432 msgstr ""
1433
1434 # type: textblock
1435 #: ../src/guestfs.pod:689
1436 msgid ""
1437 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1438 "system [...] that works in the way it is documented but is counterintuitive "
1439 "and almost invites mistakes.\""
1440 msgstr ""
1441
1442 # type: textblock
1443 #: ../src/guestfs.pod:693
1444 msgid ""
1445 "Since we developed libguestfs and the associated tools, there are several "
1446 "things we would have designed differently, but are now stuck with for "
1447 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1448 "release, you can expect these to change.  Beware of them."
1449 msgstr ""
1450
1451 # type: =item
1452 #: ../src/guestfs.pod:701
1453 msgid "Autosync / forgetting to sync."
1454 msgstr ""
1455
1456 # type: textblock
1457 #: ../src/guestfs.pod:703
1458 msgid ""
1459 "When modifying a filesystem from C or another language, you B<must> unmount "
1460 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1461 "libguestfs handle.  You can also call:"
1462 msgstr ""
1463
1464 # type: verbatim
1465 #: ../src/guestfs.pod:707
1466 #, no-wrap
1467 msgid ""
1468 " guestfs_set_autosync (g, 1);\n"
1469 "\n"
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:709
1474 msgid ""
1475 "to have the unmount/sync done automatically for you when the handle 'g' is "
1476 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:713
1481 msgid ""
1482 "If you forget to do this, then it is entirely possible that your changes "
1483 "won't be written out, or will be partially written, or (very rarely) that "
1484 "you'll get disk corruption."
1485 msgstr ""
1486
1487 # type: textblock
1488 #: ../src/guestfs.pod:717
1489 msgid ""
1490 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1491 "guestfish scripts that forget to sync will work just fine, which can make "
1492 "this very puzzling if you are trying to debug a problem."
1493 msgstr ""
1494
1495 # type: textblock
1496 #: ../src/guestfs.pod:721
1497 msgid ""
1498 "Update: Autosync is enabled by default for all API users starting from "
1499 "libguestfs 1.5.24."
1500 msgstr ""
1501
1502 # type: =item
1503 #: ../src/guestfs.pod:724
1504 msgid "Mount option C<-o sync> should not be the default."
1505 msgstr ""
1506
1507 # type: textblock
1508 #: ../src/guestfs.pod:726
1509 msgid ""
1510 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1511 "However C<-o sync> does not add any reliability benefit, but does have a "
1512 "very large performance impact."
1513 msgstr ""
1514
1515 # type: textblock
1516 #: ../src/guestfs.pod:730
1517 msgid ""
1518 "The work around is to use L</guestfs_mount_options> and set the mount "
1519 "options that you actually want to use."
1520 msgstr ""
1521
1522 # type: =item
1523 #: ../src/guestfs.pod:733
1524 msgid "Read-only should be the default."
1525 msgstr ""
1526
1527 # type: textblock
1528 #: ../src/guestfs.pod:735
1529 msgid ""
1530 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1531 "specify I<--rw> if you want to make changes to the image."
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:738
1536 msgid "This would reduce the potential to corrupt live VM images."
1537 msgstr ""
1538
1539 # type: textblock
1540 #: ../src/guestfs.pod:740
1541 msgid ""
1542 "Note that many filesystems change the disk when you just mount and unmount, "
1543 "even if you didn't perform any writes.  You need to use L</"
1544 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1545 msgstr ""
1546
1547 # type: =item
1548 #: ../src/guestfs.pod:744
1549 msgid "guestfish command line is hard to use."
1550 msgstr ""
1551
1552 # type: textblock
1553 #: ../src/guestfs.pod:746
1554 msgid ""
1555 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1556 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1557 "exist, so it fails.  In earlier versions of guestfish the error message was "
1558 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1559 "we should have used C<guestfish -c command> to run commands."
1560 msgstr ""
1561
1562 # type: =item
1563 #: ../src/guestfs.pod:753
1564 msgid "guestfish megabyte modifiers don't work right on all commands"
1565 msgstr ""
1566
1567 # type: textblock
1568 #: ../src/guestfs.pod:755
1569 msgid ""
1570 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1571 "other modifiers).  What guestfish actually does is to multiply the number "
1572 "part by the modifier part and pass the result to the C API.  However this "
1573 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1574 "expecting some other unit (eg. megabytes)."
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:762
1579 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1580 msgstr ""
1581
1582 # type: verbatim
1583 #: ../src/guestfs.pod:764
1584 #, no-wrap
1585 msgid ""
1586 " lvcreate LV VG 100M\n"
1587 "\n"
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:766
1592 msgid ""
1593 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1594 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1595 "megabytes * megabytes) logical volume.  The error message you get from this "
1596 "is also a little obscure."
1597 msgstr ""
1598
1599 # type: textblock
1600 #: ../src/guestfs.pod:771
1601 msgid ""
1602 "This could be fixed in the generator by specially marking parameters and "
1603 "return values which take bytes or other units."
1604 msgstr ""
1605
1606 # type: =item
1607 #: ../src/guestfs.pod:774
1608 msgid "Ambiguity between devices and paths"
1609 msgstr ""
1610
1611 # type: textblock
1612 #: ../src/guestfs.pod:776
1613 msgid ""
1614 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1615 "sdb2>) and a similar pathname.  A file might just happen to be called "
1616 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:781
1621 msgid ""
1622 "In the current API we usually resolve this ambiguity by having two separate "
1623 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1624 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1625 "detecting if the path supplied begins with C</dev/>."
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:787
1630 msgid ""
1631 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1632 "make paths/devices into structured names.  One way to do this would be to "
1633 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1634 "aspect of grub.  Another way would be to use a structured type, equivalent "
1635 "to this OCaml type:"
1636 msgstr ""
1637
1638 # type: verbatim
1639 #: ../src/guestfs.pod:793
1640 #, no-wrap
1641 msgid ""
1642 " type path = Path of string | Device of int | Partition of int * int\n"
1643 "\n"
1644 msgstr ""
1645
1646 # type: textblock
1647 #: ../src/guestfs.pod:795
1648 msgid "which would allow you to pass arguments like:"
1649 msgstr ""
1650
1651 # type: verbatim
1652 #: ../src/guestfs.pod:797
1653 #, no-wrap
1654 msgid ""
1655 " Path \"/foo/bar\"\n"
1656 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1657 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1658 " Path \"/dev/sdb2\"    (* not a device *)\n"
1659 "\n"
1660 msgstr ""
1661
1662 # type: textblock
1663 #: ../src/guestfs.pod:802
1664 msgid ""
1665 "As you can see there are still problems to resolve even with this "
1666 "representation.  Also consider how it might work in guestfish."
1667 msgstr ""
1668
1669 # type: =head2
1670 #: ../src/guestfs.pod:807
1671 msgid "PROTOCOL LIMITS"
1672 msgstr ""
1673
1674 # type: textblock
1675 #: ../src/guestfs.pod:809
1676 msgid ""
1677 "Internally libguestfs uses a message-based protocol to pass API calls and "
1678 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1679 "plenty more detail about this).  The maximum message size used by the "
1680 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1681 "aware of this limit.  The API calls which may be affected are individually "
1682 "documented, with a link back to this section of the documentation."
1683 msgstr ""
1684
1685 # type: textblock
1686 #: ../src/guestfs.pod:817
1687 msgid ""
1688 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1689 "a simple string.  Because this string is at some point internally encoded as "
1690 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1691 "the requested file is larger than this then you will get an error."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:823
1696 msgid ""
1697 "In order to transfer large files into and out of the guest filesystem, you "
1698 "need to use particular calls that support this.  The sections L</UPLOADING> "
1699 "and L</DOWNLOADING> document how to do this."
1700 msgstr ""
1701
1702 # type: textblock
1703 #: ../src/guestfs.pod:827
1704 msgid ""
1705 "You might also consider mounting the disk image using our FUSE filesystem "
1706 "support (L<guestmount(1)>)."
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:830
1711 msgid "KEYS AND PASSPHRASES"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:832
1716 msgid ""
1717 "Certain libguestfs calls take a parameter that contains sensitive key "
1718 "material, passed in as a C string."
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:835
1723 msgid ""
1724 "In the future we would hope to change the libguestfs implementation so that "
1725 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1726 "swap.  However this is I<not> done at the moment, because of the complexity "
1727 "of such an implementation."
1728 msgstr ""
1729
1730 # type: textblock
1731 #: ../src/guestfs.pod:840
1732 msgid ""
1733 "Therefore you should be aware that any key parameter you pass to libguestfs "
1734 "might end up being written out to the swap partition.  If this is a concern, "
1735 "scrub the swap partition or don't use libguestfs on encrypted devices."
1736 msgstr ""
1737
1738 # type: =head1
1739 #: ../src/guestfs.pod:845
1740 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1741 msgstr ""
1742
1743 # type: textblock
1744 #: ../src/guestfs.pod:847
1745 msgid ""
1746 "All high-level libguestfs actions are synchronous.  If you want to use "
1747 "libguestfs asynchronously then you must create a thread."
1748 msgstr ""
1749
1750 # type: textblock
1751 #: ../src/guestfs.pod:850
1752 msgid ""
1753 "Only use the handle from a single thread.  Either use the handle exclusively "
1754 "from one thread, or provide your own mutex so that two threads cannot issue "
1755 "calls on the same handle at the same time."
1756 msgstr ""
1757
1758 # type: textblock
1759 #: ../src/guestfs.pod:854
1760 msgid ""
1761 "See the graphical program guestfs-browser for one possible architecture for "
1762 "multithreaded programs using libvirt and libguestfs."
1763 msgstr ""
1764
1765 # type: =head1
1766 #: ../src/guestfs.pod:857
1767 msgid "PATH"
1768 msgstr ""
1769
1770 # type: textblock
1771 #: ../src/guestfs.pod:859
1772 msgid ""
1773 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1774 "internal path."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:862
1779 msgid ""
1780 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1781 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:865
1786 msgid ""
1787 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1788 "to change the directories that libguestfs will search in.  The value is a "
1789 "colon-separated list of paths.  The current directory is I<not> searched "
1790 "unless the path contains an empty element or C<.>.  For example "
1791 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1792 "then C</usr/lib/guestfs>."
1793 msgstr ""
1794
1795 # type: =head1
1796 #: ../src/guestfs.pod:872
1797 msgid "QEMU WRAPPERS"
1798 msgstr ""
1799
1800 # type: textblock
1801 #: ../src/guestfs.pod:874
1802 msgid ""
1803 "If you want to compile your own qemu, run qemu from a non-standard location, "
1804 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1805 "around qemu."
1806 msgstr ""
1807
1808 # type: textblock
1809 #: ../src/guestfs.pod:878
1810 msgid ""
1811 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1812 "last command in the shell script (so that qemu replaces the shell and "
1813 "becomes the direct child of the libguestfs-using program).  If you don't do "
1814 "this, then the qemu process won't be cleaned up correctly."
1815 msgstr ""
1816
1817 # type: textblock
1818 #: ../src/guestfs.pod:883
1819 msgid ""
1820 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1821 "source:"
1822 msgstr ""
1823
1824 # type: verbatim
1825 #: ../src/guestfs.pod:886
1826 #, no-wrap
1827 msgid ""
1828 " #!/bin/sh -\n"
1829 " qemudir=/home/rjones/d/qemu\n"
1830 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1831 "\n"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:890
1836 msgid ""
1837 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1838 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1839 "example:"
1840 msgstr ""
1841
1842 # type: verbatim
1843 #: ../src/guestfs.pod:894
1844 #, no-wrap
1845 msgid ""
1846 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1847 "\n"
1848 msgstr ""
1849
1850 # type: textblock
1851 #: ../src/guestfs.pod:896
1852 msgid ""
1853 "Note that libguestfs also calls qemu with the -help and -version options in "
1854 "order to determine features."
1855 msgstr ""
1856
1857 # type: =head2
1858 #: ../src/guestfs.pod:899
1859 msgid "ABI GUARANTEE"
1860 msgstr ""
1861
1862 # type: textblock
1863 #: ../src/guestfs.pod:901
1864 msgid ""
1865 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1866 "actions as outlined in this section.  Although we will deprecate some "
1867 "actions, for example if they get replaced by newer calls, we will keep the "
1868 "old actions forever.  This allows you the developer to program in confidence "
1869 "against the libguestfs API."
1870 msgstr ""
1871
1872 # type: =head1
1873 #: ../src/guestfs.pod:907
1874 msgid "BLOCK DEVICE NAMING"
1875 msgstr ""
1876
1877 # type: textblock
1878 #: ../src/guestfs.pod:909
1879 msgid ""
1880 "In the kernel there is now quite a profusion of schemata for naming block "
1881 "devices (in this context, by I<block device> I mean a physical or virtual "
1882 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1883 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1884 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1885 "for the old IDE driver (particularly for SATA devices) those devices also "
1886 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1887 "paravirtualized drivers.  This has created several different naming systems, "
1888 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1889 msgstr ""
1890
1891 # type: textblock
1892 #: ../src/guestfs.pod:921
1893 msgid ""
1894 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1895 "Linux kernel to access block devices.  We can run a variety of appliances "
1896 "based on a variety of Linux kernels."
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:925
1901 msgid ""
1902 "This causes a problem for libguestfs because many API calls use device or "
1903 "partition names.  Working scripts and the recipe (example) scripts that we "
1904 "make available over the internet could fail if the naming scheme changes."
1905 msgstr ""
1906
1907 # type: textblock
1908 #: ../src/guestfs.pod:930
1909 msgid ""
1910 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1911 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1912 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1913 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1914 msgstr ""
1915
1916 # type: textblock
1917 #: ../src/guestfs.pod:936
1918 msgid ""
1919 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1920 "L</guestfs_list_partitions> and similar calls return the true names of the "
1921 "devices and partitions as known to the appliance."
1922 msgstr ""
1923
1924 # type: =head2
1925 #: ../src/guestfs.pod:941
1926 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:943
1931 msgid ""
1932 "Usually this translation is transparent.  However in some (very rare)  cases "
1933 "you may need to know the exact algorithm.  Such cases include where you use "
1934 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1935 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:949
1940 msgid ""
1941 "The algorithm is applied only to I<parameters> which are known to be either "
1942 "device or partition names.  Return values from functions such as L</"
1943 "guestfs_list_devices> are never changed."
1944 msgstr ""
1945
1946 # type: textblock
1947 #: ../src/guestfs.pod:957
1948 msgid "Is the string a parameter which is a device or partition name?"
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:961
1953 msgid "Does the string begin with C</dev/sd>?"
1954 msgstr ""
1955
1956 # type: textblock
1957 #: ../src/guestfs.pod:965
1958 msgid ""
1959 "Does the named device exist? If so, we use that device.  However if I<not> "
1960 "then we continue with this algorithm."
1961 msgstr ""
1962
1963 # type: textblock
1964 #: ../src/guestfs.pod:970
1965 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1966 msgstr ""
1967
1968 # type: textblock
1969 #: ../src/guestfs.pod:972
1970 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:974
1975 msgid "If that named device exists, use it.  If not, continue."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:978
1980 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:980
1985 msgid "If that named device exists, use it.  If not, return an error."
1986 msgstr ""
1987
1988 # type: =head3
1989 #: ../src/guestfs.pod:984
1990 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1991 msgstr ""
1992
1993 # type: textblock
1994 #: ../src/guestfs.pod:986
1995 msgid ""
1996 "Although the standard naming scheme and automatic translation is useful for "
1997 "simple programs and guestfish scripts, for larger programs it is best not to "
1998 "rely on this mechanism."
1999 msgstr ""
2000
2001 # type: textblock
2002 #: ../src/guestfs.pod:990
2003 msgid ""
2004 "Where possible for maximum future portability programs using libguestfs "
2005 "should use these future-proof techniques:"
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:997
2010 msgid ""
2011 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2012 "device names, and then use those names directly."
2013 msgstr ""
2014
2015 # type: textblock
2016 #: ../src/guestfs.pod:1000
2017 msgid ""
2018 "Since those device names exist by definition, they will never be translated."
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:1005
2023 msgid ""
2024 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2025 "filesystem labels."
2026 msgstr ""
2027
2028 # type: =head1
2029 #: ../src/guestfs.pod:1010
2030 msgid "SECURITY"
2031 msgstr ""
2032
2033 # type: textblock
2034 #: ../src/guestfs.pod:1012
2035 msgid ""
2036 "This section discusses security implications of using libguestfs, "
2037 "particularly with untrusted or malicious guests or disk images."
2038 msgstr ""
2039
2040 # type: =head2
2041 #: ../src/guestfs.pod:1015
2042 msgid "GENERAL SECURITY CONSIDERATIONS"
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:1017
2047 msgid ""
2048 "Be careful with any files or data that you download from a guest (by "
2049 "\"download\" we mean not just the L</guestfs_download> command but any "
2050 "command that reads files, filenames, directories or anything else from a "
2051 "disk image).  An attacker could manipulate the data to fool your program "
2052 "into doing the wrong thing.  Consider cases such as:"
2053 msgstr ""
2054
2055 # type: textblock
2056 #: ../src/guestfs.pod:1027
2057 msgid "the data (file etc) not being present"
2058 msgstr ""
2059
2060 # type: textblock
2061 #: ../src/guestfs.pod:1031
2062 msgid "being present but empty"
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1035
2067 msgid "being much larger than normal"
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1039
2072 msgid "containing arbitrary 8 bit data"
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1043
2077 msgid "being in an unexpected character encoding"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1047
2082 msgid "containing homoglyphs."
2083 msgstr ""
2084
2085 # type: =head2
2086 #: ../src/guestfs.pod:1051
2087 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1053
2092 msgid ""
2093 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2094 "(VFS) module can sometimes be escalated into exploits by deliberately "
2095 "creating a malicious, malformed filesystem.  These exploits are very severe "
2096 "for two reasons.  Firstly there are very many filesystem drivers in the "
2097 "kernel, and many of them are infrequently used and not much developer "
2098 "attention has been paid to the code.  Linux userspace helps potential "
2099 "crackers by detecting the filesystem type and automatically choosing the "
2100 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2101 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2102 "exploit (worse in some ways), giving immediate and total access to the "
2103 "system right down to the hardware level."
2104 msgstr ""
2105
2106 # type: textblock
2107 #: ../src/guestfs.pod:1066
2108 msgid ""
2109 "That explains why you should never mount a filesystem from an untrusted "
2110 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2111 "inside a qemu virtual machine, usually running as a non-root user.  The "
2112 "attacker would need to write a filesystem which first exploited the kernel, "
2113 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2114 "the libguestfs protocol, and finally to be as serious as the host kernel "
2115 "exploit it would need to escalate its privileges to root.  This multi-step "
2116 "escalation, performed by a static piece of data, is thought to be extremely "
2117 "hard to do, although we never say 'never' about security issues."
2118 msgstr ""
2119
2120 # type: textblock
2121 #: ../src/guestfs.pod:1077
2122 msgid ""
2123 "In any case callers can reduce the attack surface by forcing the filesystem "
2124 "type when mounting (use L</guestfs_mount_vfs>)."
2125 msgstr ""
2126
2127 # type: =head2
2128 #: ../src/guestfs.pod:1080
2129 msgid "PROTOCOL SECURITY"
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1082
2134 msgid ""
2135 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2136 "defined upper message size.  However a program that uses libguestfs must "
2137 "also take care - for example you can write a program that downloads a binary "
2138 "from a disk image and executes it locally, and no amount of protocol "
2139 "security will save you from the consequences."
2140 msgstr ""
2141
2142 # type: =head2
2143 #: ../src/guestfs.pod:1088
2144 msgid "INSPECTION SECURITY"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1090
2149 msgid ""
2150 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2151 "directly from the guest, and these could contain any 8 bit data.  Callers "
2152 "should be careful to escape these before printing them to a structured file "
2153 "(for example, use HTML escaping if creating a web page)."
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1096
2158 msgid ""
2159 "Guest configuration may be altered in unusual ways by the administrator of "
2160 "the virtual machine, and may not reflect reality (particularly for untrusted "
2161 "or actively malicious guests).  For example we parse the hostname from "
2162 "configuration files like C</etc/sysconfig/network> that we find in the "
2163 "guest, but the guest administrator can easily manipulate these files to "
2164 "provide the wrong hostname."
2165 msgstr ""
2166
2167 # type: textblock
2168 #: ../src/guestfs.pod:1104
2169 msgid ""
2170 "The inspection API parses guest configuration using two external libraries: "
2171 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2172 "designed to be robust in the face of malicious data, although denial of "
2173 "service attacks are still possible, for example with oversized configuration "
2174 "files."
2175 msgstr ""
2176
2177 # type: =head2
2178 #: ../src/guestfs.pod:1110
2179 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2180 msgstr ""
2181
2182 # type: textblock
2183 #: ../src/guestfs.pod:1112
2184 msgid ""
2185 "Be very cautious about running commands from the guest.  By running a "
2186 "command in the guest, you are giving CPU time to a binary that you do not "
2187 "control, under the same user account as the library, albeit wrapped in qemu "
2188 "virtualization.  More information and alternatives can be found in the "
2189 "section L</RUNNING COMMANDS>."
2190 msgstr ""
2191
2192 # type: =head2
2193 #: ../src/guestfs.pod:1118
2194 msgid "CVE-2010-3851"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1120
2199 msgid "https://bugzilla.redhat.com/642934"
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1122
2204 msgid ""
2205 "This security bug concerns the automatic disk format detection that qemu "
2206 "does on disk images."
2207 msgstr ""
2208
2209 # type: textblock
2210 #: ../src/guestfs.pod:1125
2211 msgid ""
2212 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2213 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2214 "for one of the known headers, and if none is found then assuming the disk "
2215 "image must be raw."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1130
2220 msgid ""
2221 "This allows a guest which has been given a raw disk image to write some "
2222 "other header.  At next boot (or when the disk image is accessed by "
2223 "libguestfs) qemu would do autodetection and think the disk image format was, "
2224 "say, qcow2 based on the header written by the guest."
2225 msgstr ""
2226
2227 # type: textblock
2228 #: ../src/guestfs.pod:1135
2229 msgid ""
2230 "This in itself would not be a problem, but qcow2 offers many features, one "
2231 "of which is to allow a disk image to refer to another image (called the "
2232 "\"backing disk\").  It does this by placing the path to the backing disk "
2233 "into the qcow2 header.  This path is not validated and could point to any "
2234 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2235 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2236 "control of the attacker."
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1143
2241 msgid ""
2242 "In libguestfs this is rather hard to exploit except under two circumstances:"
2243 msgstr ""
2244
2245 # type: textblock
2246 #: ../src/guestfs.pod:1150
2247 msgid "You have enabled the network or have opened the disk in write mode."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1154
2252 msgid ""
2253 "You are also running untrusted code from the guest (see L</RUNNING "
2254 "COMMANDS>)."
2255 msgstr ""
2256
2257 # type: textblock
2258 #: ../src/guestfs.pod:1159
2259 msgid ""
2260 "The way to avoid this is to specify the expected disk format when adding "
2261 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2262 "should always do this if the disk is raw format, and it's a good idea for "
2263 "other cases too."
2264 msgstr ""
2265
2266 # type: textblock
2267 #: ../src/guestfs.pod:1164
2268 msgid ""
2269 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2270 "format is fetched from libvirt and passed through."
2271 msgstr ""
2272
2273 # type: textblock
2274 #: ../src/guestfs.pod:1167
2275 msgid ""
2276 "For libguestfs tools, use the I<--format> command line parameter as "
2277 "appropriate."
2278 msgstr ""
2279
2280 # type: =head1
2281 #: ../src/guestfs.pod:1170
2282 msgid "CONNECTION MANAGEMENT"
2283 msgstr ""
2284
2285 # type: =head2
2286 #: ../src/guestfs.pod:1172
2287 msgid "guestfs_h *"
2288 msgstr ""
2289
2290 # type: textblock
2291 #: ../src/guestfs.pod:1174
2292 msgid ""
2293 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2294 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2295 "handle and release all resources used."
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1178
2300 msgid ""
2301 "For information on using multiple handles and threads, see the section L</"
2302 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2303 msgstr ""
2304
2305 # type: =head2
2306 #: ../src/guestfs.pod:1181
2307 msgid "guestfs_create"
2308 msgstr ""
2309
2310 # type: verbatim
2311 #: ../src/guestfs.pod:1183
2312 #, no-wrap
2313 msgid ""
2314 " guestfs_h *guestfs_create (void);\n"
2315 "\n"
2316 msgstr ""
2317
2318 # type: textblock
2319 #: ../src/guestfs.pod:1185
2320 msgid "Create a connection handle."
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1187
2325 msgid ""
2326 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2327 "on the handle at least once."
2328 msgstr ""
2329
2330 # type: textblock
2331 #: ../src/guestfs.pod:1190
2332 msgid ""
2333 "This function returns a non-NULL pointer to a handle on success or NULL on "
2334 "error."
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1193
2339 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1195
2344 msgid ""
2345 "You may also want to configure error handling for the handle.  See L</ERROR "
2346 "HANDLING> section below."
2347 msgstr ""
2348
2349 # type: =head2
2350 #: ../src/guestfs.pod:1198
2351 msgid "guestfs_close"
2352 msgstr ""
2353
2354 # type: verbatim
2355 #: ../src/guestfs.pod:1200
2356 #, no-wrap
2357 msgid ""
2358 " void guestfs_close (guestfs_h *g);\n"
2359 "\n"
2360 msgstr ""
2361
2362 # type: textblock
2363 #: ../src/guestfs.pod:1202
2364 msgid "This closes the connection handle and frees up all resources used."
2365 msgstr ""
2366
2367 # type: =head1
2368 #: ../src/guestfs.pod:1204
2369 msgid "ERROR HANDLING"
2370 msgstr ""
2371
2372 # type: textblock
2373 #: ../src/guestfs.pod:1206
2374 msgid ""
2375 "API functions can return errors.  For example, almost all functions that "
2376 "return C<int> will return C<-1> to indicate an error."
2377 msgstr ""
2378
2379 # type: textblock
2380 #: ../src/guestfs.pod:1209
2381 msgid ""
2382 "Additional information is available for errors: an error message string and "
2383 "optionally an error number (errno) if the thing that failed was a system "
2384 "call."
2385 msgstr ""
2386
2387 # type: textblock
2388 #: ../src/guestfs.pod:1213
2389 msgid ""
2390 "You can get at the additional information about the last error on the handle "
2391 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2392 "up an error handler with L</guestfs_set_error_handler>."
2393 msgstr ""
2394
2395 # type: textblock
2396 #: ../src/guestfs.pod:1218
2397 msgid ""
2398 "When the handle is created, a default error handler is installed which "
2399 "prints the error message string to C<stderr>.  For small short-running "
2400 "command line programs it is sufficient to do:"
2401 msgstr ""
2402
2403 # type: verbatim
2404 #: ../src/guestfs.pod:1222
2405 #, no-wrap
2406 msgid ""
2407 " if (guestfs_launch (g) == -1)\n"
2408 "   exit (EXIT_FAILURE);\n"
2409 "\n"
2410 msgstr ""
2411
2412 # type: textblock
2413 #: ../src/guestfs.pod:1225
2414 msgid ""
2415 "since the default error handler will ensure that an error message has been "
2416 "printed to C<stderr> before the program exits."
2417 msgstr ""
2418
2419 # type: textblock
2420 #: ../src/guestfs.pod:1228
2421 msgid ""
2422 "For other programs the caller will almost certainly want to install an "
2423 "alternate error handler or do error handling in-line like this:"
2424 msgstr ""
2425
2426 # type: verbatim
2427 #: ../src/guestfs.pod:1231
2428 #, no-wrap
2429 msgid ""
2430 " g = guestfs_create ();\n"
2431 " \n"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1233
2436 #, no-wrap
2437 msgid ""
2438 " /* This disables the default behaviour of printing errors\n"
2439 "    on stderr. */\n"
2440 " guestfs_set_error_handler (g, NULL, NULL);\n"
2441 " \n"
2442 msgstr ""
2443
2444 # type: verbatim
2445 #: ../src/guestfs.pod:1237
2446 #, no-wrap
2447 msgid ""
2448 " if (guestfs_launch (g) == -1) {\n"
2449 "   /* Examine the error message and print it etc. */\n"
2450 "   char *msg = guestfs_last_error (g);\n"
2451 "   int errnum = guestfs_last_errno (g);\n"
2452 "   fprintf (stderr, \"%s\\n\", msg);\n"
2453 "   /* ... */\n"
2454 "  }\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1245
2460 msgid ""
2461 "Out of memory errors are handled differently.  The default action is to call "
2462 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2463 "guestfs_set_out_of_memory_handler>."
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1249
2468 msgid ""
2469 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2470 "because there is no handle if this happens there is no way to get additional "
2471 "error information.  However L</guestfs_create> is supposed to be a "
2472 "lightweight operation which can only fail because of insufficient memory (it "
2473 "returns NULL in this case)."
2474 msgstr ""
2475
2476 # type: =head2
2477 #: ../src/guestfs.pod:1255
2478 msgid "guestfs_last_error"
2479 msgstr ""
2480
2481 # type: verbatim
2482 #: ../src/guestfs.pod:1257
2483 #, no-wrap
2484 msgid ""
2485 " const char *guestfs_last_error (guestfs_h *g);\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1259
2491 msgid ""
2492 "This returns the last error message that happened on C<g>.  If there has not "
2493 "been an error since the handle was created, then this returns C<NULL>."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1263
2498 msgid ""
2499 "The lifetime of the returned string is until the next error occurs, or L</"
2500 "guestfs_close> is called."
2501 msgstr ""
2502
2503 # type: =head2
2504 #: ../src/guestfs.pod:1266
2505 msgid "guestfs_last_errno"
2506 msgstr ""
2507
2508 # type: verbatim
2509 #: ../src/guestfs.pod:1268
2510 #, no-wrap
2511 msgid ""
2512 " int guestfs_last_errno (guestfs_h *g);\n"
2513 "\n"
2514 msgstr ""
2515
2516 # type: textblock
2517 #: ../src/guestfs.pod:1270
2518 msgid "This returns the last error number (errno) that happened on C<g>."
2519 msgstr ""
2520
2521 # type: textblock
2522 #: ../src/guestfs.pod:1272
2523 msgid "If successful, an errno integer not equal to zero is returned."
2524 msgstr ""
2525
2526 # type: textblock
2527 #: ../src/guestfs.pod:1274
2528 msgid ""
2529 "If no error, this returns 0.  This call can return 0 in three situations:"
2530 msgstr ""
2531
2532 # type: textblock
2533 #: ../src/guestfs.pod:1281
2534 msgid "There has not been any error on the handle."
2535 msgstr ""
2536
2537 # type: textblock
2538 #: ../src/guestfs.pod:1285
2539 msgid ""
2540 "There has been an error but the errno was meaningless.  This corresponds to "
2541 "the case where the error did not come from a failed system call, but for "
2542 "some other reason."
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1291
2547 msgid ""
2548 "There was an error from a failed system call, but for some reason the errno "
2549 "was not captured and returned.  This usually indicates a bug in libguestfs."
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1297
2554 msgid ""
2555 "Libguestfs tries to convert the errno from inside the applicance into a "
2556 "corresponding errno for the caller (not entirely trivial: the appliance "
2557 "might be running a completely different operating system from the library "
2558 "and error numbers are not standardized across Un*xen).  If this could not be "
2559 "done, then the error is translated to C<EINVAL>.  In practice this should "
2560 "only happen in very rare circumstances."
2561 msgstr ""
2562
2563 # type: =head2
2564 #: ../src/guestfs.pod:1305
2565 msgid "guestfs_set_error_handler"
2566 msgstr ""
2567
2568 # type: verbatim
2569 #: ../src/guestfs.pod:1307
2570 #, no-wrap
2571 msgid ""
2572 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2573 "                                           void *opaque,\n"
2574 "                                           const char *msg);\n"
2575 " void guestfs_set_error_handler (guestfs_h *g,\n"
2576 "                                 guestfs_error_handler_cb cb,\n"
2577 "                                 void *opaque);\n"
2578 "\n"
2579 msgstr ""
2580
2581 # type: textblock
2582 #: ../src/guestfs.pod:1314
2583 msgid ""
2584 "The callback C<cb> will be called if there is an error.  The parameters "
2585 "passed to the callback are an opaque data pointer and the error message "
2586 "string."
2587 msgstr ""
2588
2589 # type: textblock
2590 #: ../src/guestfs.pod:1318
2591 msgid ""
2592 "C<errno> is not passed to the callback.  To get that the callback must call "
2593 "L</guestfs_last_errno>."
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1321
2598 msgid ""
2599 "Note that the message string C<msg> is freed as soon as the callback "
2600 "function returns, so if you want to stash it somewhere you must make your "
2601 "own copy."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1325
2606 msgid "The default handler prints messages on C<stderr>."
2607 msgstr ""
2608
2609 # type: textblock
2610 #: ../src/guestfs.pod:1327
2611 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2612 msgstr ""
2613
2614 # type: =head2
2615 #: ../src/guestfs.pod:1329
2616 msgid "guestfs_get_error_handler"
2617 msgstr ""
2618
2619 # type: verbatim
2620 #: ../src/guestfs.pod:1331
2621 #, no-wrap
2622 msgid ""
2623 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2624 "                                                     void **opaque_rtn);\n"
2625 "\n"
2626 msgstr ""
2627
2628 # type: textblock
2629 #: ../src/guestfs.pod:1334
2630 msgid "Returns the current error handler callback."
2631 msgstr ""
2632
2633 # type: =head2
2634 #: ../src/guestfs.pod:1336
2635 msgid "guestfs_set_out_of_memory_handler"
2636 msgstr ""
2637
2638 # type: verbatim
2639 #: ../src/guestfs.pod:1338
2640 #, no-wrap
2641 msgid ""
2642 " typedef void (*guestfs_abort_cb) (void);\n"
2643 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2644 "                                        guestfs_abort_cb);\n"
2645 "\n"
2646 msgstr ""
2647
2648 # type: textblock
2649 #: ../src/guestfs.pod:1342
2650 msgid ""
2651 "The callback C<cb> will be called if there is an out of memory situation.  "
2652 "I<Note this callback must not return>."
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1345
2657 msgid "The default is to call L<abort(3)>."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1347
2662 msgid ""
2663 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2664 msgstr ""
2665
2666 # type: =head2
2667 #: ../src/guestfs.pod:1350
2668 msgid "guestfs_get_out_of_memory_handler"
2669 msgstr ""
2670
2671 # type: verbatim
2672 #: ../src/guestfs.pod:1352
2673 #, no-wrap
2674 msgid ""
2675 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1354
2681 msgid "This returns the current out of memory handler."
2682 msgstr ""
2683
2684 # type: =head1
2685 #: ../src/guestfs.pod:1356
2686 msgid "API CALLS"
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1358 ../fish/guestfish.pod:908
2691 msgid "@ACTIONS@"
2692 msgstr ""
2693
2694 # type: =head1
2695 #: ../src/guestfs.pod:1360
2696 msgid "STRUCTURES"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1362
2701 msgid "@STRUCTS@"
2702 msgstr ""
2703
2704 # type: =head1
2705 #: ../src/guestfs.pod:1364
2706 msgid "AVAILABILITY"
2707 msgstr ""
2708
2709 # type: =head2
2710 #: ../src/guestfs.pod:1366
2711 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2712 msgstr ""
2713
2714 # type: textblock
2715 #: ../src/guestfs.pod:1368
2716 msgid ""
2717 "Using L</guestfs_available> you can test availability of the following "
2718 "groups of functions.  This test queries the appliance to see if the "
2719 "appliance you are currently using supports the functionality."
2720 msgstr ""
2721
2722 # type: textblock
2723 #: ../src/guestfs.pod:1373
2724 msgid "@AVAILABILITY@"
2725 msgstr ""
2726
2727 # type: =head2
2728 #: ../src/guestfs.pod:1375
2729 msgid "GUESTFISH supported COMMAND"
2730 msgstr ""
2731
2732 # type: textblock
2733 #: ../src/guestfs.pod:1377
2734 msgid ""
2735 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2736 "prints out the available groups and whether they are supported by this build "
2737 "of libguestfs.  Note however that you have to do C<run> first."
2738 msgstr ""
2739
2740 # type: =head2
2741 #: ../src/guestfs.pod:1382
2742 msgid "SINGLE CALLS AT COMPILE TIME"
2743 msgstr ""
2744
2745 # type: textblock
2746 #: ../src/guestfs.pod:1384
2747 msgid ""
2748 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2749 "function, such as:"
2750 msgstr ""
2751
2752 # type: verbatim
2753 #: ../src/guestfs.pod:1387
2754 #, no-wrap
2755 msgid ""
2756 " #define LIBGUESTFS_HAVE_DD 1\n"
2757 "\n"
2758 msgstr ""
2759
2760 # type: textblock
2761 #: ../src/guestfs.pod:1389
2762 msgid "if L</guestfs_dd> is available."
2763 msgstr ""
2764
2765 # type: textblock
2766 #: ../src/guestfs.pod:1391
2767 msgid ""
2768 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2769 "function is available at compile time, we recommended using build tools such "
2770 "as autoconf or cmake.  For example in autotools you could use:"
2771 msgstr ""
2772
2773 # type: verbatim
2774 #: ../src/guestfs.pod:1396
2775 #, no-wrap
2776 msgid ""
2777 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2778 " AC_CHECK_FUNCS([guestfs_dd])\n"
2779 "\n"
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1399
2784 msgid ""
2785 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2786 "in your program."
2787 msgstr ""
2788
2789 # type: =head2
2790 #: ../src/guestfs.pod:1402
2791 msgid "SINGLE CALLS AT RUN TIME"
2792 msgstr ""
2793
2794 # type: textblock
2795 #: ../src/guestfs.pod:1404
2796 msgid ""
2797 "Testing at compile time doesn't guarantee that a function really exists in "
2798 "the library.  The reason is that you might be dynamically linked against a "
2799 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2800 "This situation unfortunately results in a segmentation fault, which is a "
2801 "shortcoming of the C dynamic linking system itself."
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1411
2806 msgid ""
2807 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2808 "in this example program (note that you still need the compile time check as "
2809 "well):"
2810 msgstr ""
2811
2812 # type: verbatim
2813 #: ../src/guestfs.pod:1415
2814 #, no-wrap
2815 msgid ""
2816 " #include <stdio.h>\n"
2817 " #include <stdlib.h>\n"
2818 " #include <unistd.h>\n"
2819 " #include <dlfcn.h>\n"
2820 " #include <guestfs.h>\n"
2821 " \n"
2822 msgstr ""
2823
2824 # type: verbatim
2825 #: ../src/guestfs.pod:1421
2826 #, no-wrap
2827 msgid ""
2828 " main ()\n"
2829 " {\n"
2830 " #ifdef LIBGUESTFS_HAVE_DD\n"
2831 "   void *dl;\n"
2832 "   int has_function;\n"
2833 " \n"
2834 msgstr ""
2835
2836 # type: verbatim
2837 #: ../src/guestfs.pod:1427
2838 #, no-wrap
2839 msgid ""
2840 "   /* Test if the function guestfs_dd is really available. */\n"
2841 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2842 "   if (!dl) {\n"
2843 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2844 "     exit (EXIT_FAILURE);\n"
2845 "   }\n"
2846 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2847 "   dlclose (dl);\n"
2848 " \n"
2849 msgstr ""
2850
2851 # type: verbatim
2852 #: ../src/guestfs.pod:1436
2853 #, no-wrap
2854 msgid ""
2855 "   if (!has_function)\n"
2856 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2857 "   else {\n"
2858 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2859 "     /* Now it's safe to call\n"
2860 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2861 "     */\n"
2862 "   }\n"
2863 " #else\n"
2864 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2865 " #endif\n"
2866 "  }\n"
2867 "\n"
2868 msgstr ""
2869
2870 # type: textblock
2871 #: ../src/guestfs.pod:1449
2872 msgid ""
2873 "You may think the above is an awful lot of hassle, and it is.  There are "
2874 "other ways outside of the C linking system to ensure that this kind of "
2875 "incompatibility never arises, such as using package versioning:"
2876 msgstr ""
2877
2878 # type: verbatim
2879 #: ../src/guestfs.pod:1454
2880 #, no-wrap
2881 msgid ""
2882 " Requires: libguestfs >= 1.0.80\n"
2883 "\n"
2884 msgstr ""
2885
2886 # type: =head1
2887 #: ../src/guestfs.pod:1456
2888 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2889 msgstr ""
2890
2891 # type: textblock
2892 #: ../src/guestfs.pod:1458
2893 msgid ""
2894 "A recent feature of the API is the introduction of calls which take optional "
2895 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2896 "takes variable arguments (ie. C<...>), as in this example:"
2897 msgstr ""
2898
2899 # type: verbatim
2900 #: ../src/guestfs.pod:1463
2901 #, no-wrap
2902 msgid ""
2903 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2904 "\n"
2905 msgstr ""
2906
2907 # type: textblock
2908 #: ../src/guestfs.pod:1465
2909 msgid ""
2910 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2911 "call with no optional arguments specified:"
2912 msgstr ""
2913
2914 # type: verbatim
2915 #: ../src/guestfs.pod:1468
2916 #, no-wrap
2917 msgid ""
2918 " guestfs_add_drive_opts (g, filename, -1);\n"
2919 "\n"
2920 msgstr ""
2921
2922 # type: textblock
2923 #: ../src/guestfs.pod:1470
2924 msgid "With a single optional argument:"
2925 msgstr ""
2926
2927 # type: verbatim
2928 #: ../src/guestfs.pod:1472
2929 #, no-wrap
2930 msgid ""
2931 " guestfs_add_drive_opts (g, filename,\n"
2932 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2933 "                         -1);\n"
2934 "\n"
2935 msgstr ""
2936
2937 # type: textblock
2938 #: ../src/guestfs.pod:1476
2939 msgid "With two:"
2940 msgstr ""
2941
2942 # type: verbatim
2943 #: ../src/guestfs.pod:1478
2944 #, no-wrap
2945 msgid ""
2946 " guestfs_add_drive_opts (g, filename,\n"
2947 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2948 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2949 "                         -1);\n"
2950 "\n"
2951 msgstr ""
2952
2953 # type: textblock
2954 #: ../src/guestfs.pod:1483
2955 msgid ""
2956 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2957 "happen!"
2958 msgstr ""
2959
2960 # type: =head2
2961 #: ../src/guestfs.pod:1486
2962 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2963 msgstr ""
2964
2965 # type: textblock
2966 #: ../src/guestfs.pod:1488
2967 msgid ""
2968 "The second variant has the same name with the suffix C<_va>, which works the "
2969 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2970 "example function, this is declared:"
2971 msgstr ""
2972
2973 # type: verbatim
2974 #: ../src/guestfs.pod:1492
2975 #, no-wrap
2976 msgid ""
2977 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2978 "                                va_list args);\n"
2979 "\n"
2980 msgstr ""
2981
2982 # type: =head2
2983 #: ../src/guestfs.pod:1495
2984 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2985 msgstr ""
2986
2987 # type: textblock
2988 #: ../src/guestfs.pod:1497
2989 msgid ""
2990 "The third variant is useful where you need to construct these calls.  You "
2991 "pass in a structure where you fill in the optional fields.  The structure "
2992 "has a bitmask as the first element which you must set to indicate which "
2993 "fields you have filled in.  For our example function the structure and call "
2994 "are declared:"
2995 msgstr ""
2996
2997 # type: verbatim
2998 #: ../src/guestfs.pod:1503
2999 #, no-wrap
3000 msgid ""
3001 " struct guestfs_add_drive_opts_argv {\n"
3002 "   uint64_t bitmask;\n"
3003 "   int readonly;\n"
3004 "   const char *format;\n"
3005 "   /* ... */\n"
3006 " };\n"
3007 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3008 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3009 "\n"
3010 msgstr ""
3011
3012 # type: textblock
3013 #: ../src/guestfs.pod:1512
3014 msgid "You could call it like this:"
3015 msgstr ""
3016
3017 # type: verbatim
3018 #: ../src/guestfs.pod:1514
3019 #, no-wrap
3020 msgid ""
3021 " struct guestfs_add_drive_opts_argv optargs = {\n"
3022 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3023 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3024 "   .readonly = 1,\n"
3025 "   .format = \"qcow2\"\n"
3026 " };\n"
3027 " \n"
3028 msgstr ""
3029
3030 # type: verbatim
3031 #: ../src/guestfs.pod:1521
3032 #, no-wrap
3033 msgid ""
3034 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3035 "\n"
3036 msgstr ""
3037
3038 # type: textblock
3039 #: ../src/guestfs.pod:1523 ../src/guestfs-actions.pod:11
3040 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3041 #: ../fish/guestfish-actions.pod:1255
3042 msgid "Notes:"
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1529
3047 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3048 msgstr ""
3049
3050 # type: textblock
3051 #: ../src/guestfs.pod:1534
3052 msgid "You do not need to fill in all fields of the structure."
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1538
3057 msgid ""
3058 "There must be a one-to-one correspondence between fields of the structure "
3059 "that are filled in, and bits set in the bitmask."
3060 msgstr ""
3061
3062 # type: =head2
3063 #: ../src/guestfs.pod:1543
3064 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3065 msgstr ""
3066
3067 # type: textblock
3068 #: ../src/guestfs.pod:1545
3069 msgid ""
3070 "In other languages, optional arguments are expressed in the way that is "
3071 "natural for that language.  We refer you to the language-specific "
3072 "documentation for more details on that."
3073 msgstr ""
3074
3075 # type: textblock
3076 #: ../src/guestfs.pod:1549
3077 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3078 msgstr ""
3079
3080 # type: =head2
3081 #: ../src/guestfs.pod:1551
3082 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3083 msgstr ""
3084
3085 # type: textblock
3086 #: ../src/guestfs.pod:1553
3087 msgid ""
3088 "The child process generates events in some situations.  Current events "
3089 "include: receiving a log message, the child process exits."
3090 msgstr ""
3091
3092 # type: textblock
3093 #: ../src/guestfs.pod:1556
3094 msgid ""
3095 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3096 "types of events."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1559
3101 msgid ""
3102 "Only I<one callback of each type> can be registered for each handle.  "
3103 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3104 "that type.  Cancel all callbacks of this type by calling this function with "
3105 "C<cb> set to C<NULL>."
3106 msgstr ""
3107
3108 # type: =head2
3109 #: ../src/guestfs.pod:1564
3110 msgid "guestfs_set_log_message_callback"
3111 msgstr ""
3112
3113 # type: verbatim
3114 #: ../src/guestfs.pod:1566
3115 #, no-wrap
3116 msgid ""
3117 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3118 "                                         char *buf, int len);\n"
3119 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3120 "                                        guestfs_log_message_cb cb,\n"
3121 "                                        void *opaque);\n"
3122 "\n"
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1572
3127 msgid ""
3128 "The callback function C<cb> will be called whenever qemu or the guest writes "
3129 "anything to the console."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1575
3134 msgid "Use this function to capture kernel messages and similar."
3135 msgstr ""
3136
3137 # type: textblock
3138 #: ../src/guestfs.pod:1577
3139 msgid ""
3140 "Normally there is no log message handler, and log messages are just "
3141 "discarded."
3142 msgstr ""
3143
3144 # type: =head2
3145 #: ../src/guestfs.pod:1580
3146 msgid "guestfs_set_subprocess_quit_callback"
3147 msgstr ""
3148
3149 # type: verbatim
3150 #: ../src/guestfs.pod:1582
3151 #, no-wrap
3152 msgid ""
3153 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3154 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3155 "                                            guestfs_subprocess_quit_cb cb,\n"
3156 "                                            void *opaque);\n"
3157 "\n"
3158 msgstr ""
3159
3160 # type: textblock
3161 #: ../src/guestfs.pod:1587
3162 msgid ""
3163 "The callback function C<cb> will be called when the child process quits, "
3164 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3165 "corresponds to a transition from any state to the CONFIG state)."
3166 msgstr ""
3167
3168 # type: =head2
3169 #: ../src/guestfs.pod:1592
3170 msgid "guestfs_set_launch_done_callback"
3171 msgstr ""
3172
3173 # type: verbatim
3174 #: ../src/guestfs.pod:1594
3175 #, no-wrap
3176 msgid ""
3177 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3178 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3179 "                                        guestfs_launch_done_cb cb,\n"
3180 "                                        void *opaque);\n"
3181 "\n"
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1599
3186 msgid ""
3187 "The callback function C<cb> will be called when the child process becomes "
3188 "ready first time after it has been launched.  (This corresponds to a "
3189 "transition from LAUNCHING to the READY state)."
3190 msgstr ""
3191
3192 # type: =head2
3193 #: ../src/guestfs.pod:1603
3194 msgid "guestfs_set_close_callback"
3195 msgstr ""
3196
3197 # type: verbatim
3198 #: ../src/guestfs.pod:1605
3199 #, no-wrap
3200 msgid ""
3201 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3202 " void guestfs_set_close_callback (guestfs_h *g,\n"
3203 "                                  guestfs_close_cb cb,\n"
3204 "                                  void *opaque);\n"
3205 "\n"
3206 msgstr ""
3207
3208 # type: textblock
3209 #: ../src/guestfs.pod:1610
3210 msgid ""
3211 "The callback function C<cb> will be called while the handle is being closed "
3212 "(synchronously from L</guestfs_close>)."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1613
3217 msgid ""
3218 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3219 "handles that are open when the program exits.  This means that this callback "
3220 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3221 "problems in higher-level languages (eg. if your HLL interpreter has already "
3222 "been cleaned up by the time this is called, and if your callback then jumps "
3223 "into some HLL function)."
3224 msgstr ""
3225
3226 # type: =head2
3227 #: ../src/guestfs.pod:1621
3228 msgid "guestfs_set_progress_callback"
3229 msgstr ""
3230
3231 # type: verbatim
3232 #: ../src/guestfs.pod:1623
3233 #, no-wrap
3234 msgid ""
3235 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3236 "                                      int proc_nr, int serial,\n"
3237 "                                      uint64_t position, uint64_t total);\n"
3238 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3239 "                                     guestfs_progress_cb cb,\n"
3240 "                                     void *opaque);\n"
3241 "\n"
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1630
3246 msgid ""
3247 "Some long-running operations can generate progress messages.  If this "
3248 "callback is registered, then it will be called each time a progress message "
3249 "is generated (usually two seconds after the operation started, and three "
3250 "times per second thereafter until it completes, although the frequency may "
3251 "change in future versions)."
3252 msgstr ""
3253
3254 # type: textblock
3255 #: ../src/guestfs.pod:1636
3256 msgid ""
3257 "The callback receives two numbers: C<position> and C<total>.  The units of "
3258 "C<total> are not defined, although for some operations C<total> may relate "
3259 "in some way to the amount of data to be transferred (eg. in bytes or "
3260 "megabytes), and C<position> may be the portion which has been transferred."
3261 msgstr ""
3262
3263 # type: textblock
3264 #: ../src/guestfs.pod:1642
3265 msgid "The only defined and stable parts of the API are:"
3266 msgstr ""
3267
3268 # type: textblock
3269 #: ../src/guestfs.pod:1648
3270 msgid ""
3271 "The callback can display to the user some type of progress bar or indicator "
3272 "which shows the ratio of C<position>:C<total>."
3273 msgstr ""
3274
3275 # type: textblock
3276 #: ../src/guestfs.pod:1653
3277 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3278 msgstr ""
3279
3280 # type: textblock
3281 #: ../src/guestfs.pod:1657
3282 msgid ""
3283 "If any progress notification is sent during a call, then a final progress "
3284 "notification is always sent when C<position> = C<total>."
3285 msgstr ""
3286
3287 # type: textblock
3288 #: ../src/guestfs.pod:1660
3289 msgid ""
3290 "This is to simplify caller code, so callers can easily set the progress "
3291 "indicator to \"100%\" at the end of the operation, without requiring special "
3292 "code to detect this case."
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1666
3297 msgid ""
3298 "The callback also receives the procedure number and serial number of the "
3299 "call.  These are only useful for debugging protocol issues, and the callback "
3300 "can normally ignore them.  The callback may want to print these numbers in "
3301 "error messages or debugging messages."
3302 msgstr ""
3303
3304 # type: =head1
3305 #: ../src/guestfs.pod:1671
3306 msgid "PRIVATE DATA AREA"
3307 msgstr ""
3308
3309 # type: textblock
3310 #: ../src/guestfs.pod:1673
3311 msgid ""
3312 "You can attach named pieces of private data to the libguestfs handle, and "
3313 "fetch them by name for the lifetime of the handle.  This is called the "
3314 "private data area and is only available from the C API."
3315 msgstr ""
3316
3317 # type: textblock
3318 #: ../src/guestfs.pod:1677
3319 msgid "To attach a named piece of data, use the following call:"
3320 msgstr ""
3321
3322 # type: verbatim
3323 #: ../src/guestfs.pod:1679
3324 #, no-wrap
3325 msgid ""
3326 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3327 "\n"
3328 msgstr ""
3329
3330 # type: textblock
3331 #: ../src/guestfs.pod:1681
3332 msgid ""
3333 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3334 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3335 "overwritten."
3336 msgstr ""
3337
3338 # type: textblock
3339 #: ../src/guestfs.pod:1685
3340 msgid ""
3341 "You can use any C<key> you want, but names beginning with an underscore "
3342 "character are reserved for internal libguestfs purposes (for implementing "
3343 "language bindings).  It is recommended to prefix the name with some unique "
3344 "string to avoid collisions with other users."
3345 msgstr ""
3346
3347 # type: textblock
3348 #: ../src/guestfs.pod:1690
3349 msgid "To retrieve the pointer, use:"
3350 msgstr ""
3351
3352 # type: verbatim
3353 #: ../src/guestfs.pod:1692
3354 #, no-wrap
3355 msgid ""
3356 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3357 "\n"
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1694
3362 msgid ""
3363 "This function returns C<NULL> if either no data is found associated with "
3364 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3365 "C<NULL>."
3366 msgstr ""
3367
3368 # type: textblock
3369 #: ../src/guestfs.pod:1698
3370 msgid ""
3371 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3372 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3373 "all.  In particular, libguestfs does I<not> try to free the data when the "
3374 "handle is closed.  If the data must be freed, then the caller must either "
3375 "free it before calling L</guestfs_close> or must set up a close callback to "
3376 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3377 "can be registered for a handle)."
3378 msgstr ""
3379
3380 # type: textblock
3381 #: ../src/guestfs.pod:1706
3382 msgid ""
3383 "The private data area is implemented using a hash table, and should be "
3384 "reasonably efficient for moderate numbers of keys."
3385 msgstr ""
3386
3387 # type: =end
3388 #: ../src/guestfs.pod:1709 ../src/guestfs.pod:1714
3389 msgid "html"
3390 msgstr ""
3391
3392 # type: textblock
3393 #: ../src/guestfs.pod:1711
3394 msgid ""
3395 "<!-- old anchor for the next section --> <a name="
3396 "\"state_machine_and_low_level_event_api\"/>"
3397 msgstr ""
3398
3399 # type: =head1
3400 #: ../src/guestfs.pod:1716
3401 msgid "ARCHITECTURE"
3402 msgstr ""
3403
3404 # type: textblock
3405 #: ../src/guestfs.pod:1718
3406 msgid ""
3407 "Internally, libguestfs is implemented by running an appliance (a special "
3408 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3409 "process of the main program."
3410 msgstr ""
3411
3412 # type: verbatim
3413 #: ../src/guestfs.pod:1722
3414 #, no-wrap
3415 msgid ""
3416 "  ___________________\n"
3417 " /                   \\\n"
3418 " | main program      |\n"
3419 " |                   |\n"
3420 " |                   |           child process / appliance\n"
3421 " |                   |           __________________________\n"
3422 " |                   |          / qemu                     \\\n"
3423 " +-------------------+   RPC    |      +-----------------+ |\n"
3424 " | libguestfs     <--------------------> guestfsd        | |\n"
3425 " |                   |          |      +-----------------+ |\n"
3426 " \\___________________/          |      | Linux kernel    | |\n"
3427 "                                |      +--^--------------+ |\n"
3428 "                                \\_________|________________/\n"
3429 "                                          |\n"
3430 "                                   _______v______\n"
3431 "                                  /              \\\n"
3432 "                                  | Device or    |\n"
3433 "                                  | disk image   |\n"
3434 "                                  \\______________/\n"
3435 "\n"
3436 msgstr ""
3437
3438 # type: textblock
3439 #: ../src/guestfs.pod:1742
3440 msgid ""
3441 "The library, linked to the main program, creates the child process and hence "
3442 "the appliance in the L</guestfs_launch> function."
3443 msgstr ""
3444
3445 # type: textblock
3446 #: ../src/guestfs.pod:1745
3447 msgid ""
3448 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3449 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3450 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3451 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3452 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3453 "attached to the qemu process which translates device access by the "
3454 "appliance's Linux kernel into accesses to the image."
3455 msgstr ""
3456
3457 # type: textblock
3458 #: ../src/guestfs.pod:1754
3459 msgid ""
3460 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3461 "Although the disk image you are attached to might also be used by some "
3462 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3463 "care if both libguestfs's qemu process and your virtual machine are trying "
3464 "to update the disk image at the same time, since these usually results in "
3465 "massive disk corruption)."
3466 msgstr ""
3467
3468 # type: =head1
3469 #: ../src/guestfs.pod:1761
3470 msgid "STATE MACHINE"
3471 msgstr ""
3472
3473 # type: textblock
3474 #: ../src/guestfs.pod:1763
3475 msgid "libguestfs uses a state machine to model the child process:"
3476 msgstr ""
3477
3478 # type: verbatim
3479 #: ../src/guestfs.pod:1765
3480 #, no-wrap
3481 msgid ""
3482 "                         |\n"
3483 "                    guestfs_create\n"
3484 "                         |\n"
3485 "                         |\n"
3486 "                     ____V_____\n"
3487 "                    /          \\\n"
3488 "                    |  CONFIG  |\n"
3489 "                    \\__________/\n"
3490 "                     ^ ^   ^  \\\n"
3491 "                    /  |    \\  \\ guestfs_launch\n"
3492 "                   /   |    _\\__V______\n"
3493 "                  /    |   /           \\\n"
3494 "                 /     |   | LAUNCHING |\n"
3495 "                /      |   \\___________/\n"
3496 "               /       |       /\n"
3497 "              /        |  guestfs_launch\n"
3498 "             /         |     /\n"
3499 "    ______  /        __|____V\n"
3500 "   /      \\ ------> /        \\\n"
3501 "   | BUSY |         | READY  |\n"
3502 "   \\______/ <------ \\________/\n"
3503 "\n"
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1787
3508 msgid ""
3509 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3510 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3511 "(3) alternating between READY and BUSY as commands are issued to, and "
3512 "carried out by, the child process."
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1792
3517 msgid ""
3518 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3519 "asynchronously at any time (eg. due to some internal error), and that causes "
3520 "the state to transition back to CONFIG."
3521 msgstr ""
3522
3523 # type: textblock
3524 #: ../src/guestfs.pod:1796
3525 msgid ""
3526 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3527 "issued when in the CONFIG state."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs.pod:1799
3532 msgid ""
3533 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3534 "L</guestfs_launch> blocks until the child process is READY to accept "
3535 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3536 "moves the state from CONFIG to LAUNCHING while it is running."
3537 msgstr ""
3538
3539 # type: textblock
3540 #: ../src/guestfs.pod:1805
3541 msgid ""
3542 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3543 "state.  These API calls block waiting for the command to be carried out (ie. "
3544 "the state to transition to BUSY and then back to READY).  There are no non-"
3545 "blocking versions, and no way to issue more than one command per handle at "
3546 "the same time."
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1811
3551 msgid ""
3552 "Finally, the child process sends asynchronous messages back to the main "
3553 "program, such as kernel log messages.  You can register a callback to "
3554 "receive these messages."
3555 msgstr ""
3556
3557 # type: =head1
3558 #: ../src/guestfs.pod:1815
3559 msgid "INTERNALS"
3560 msgstr ""
3561
3562 # type: =head2
3563 #: ../src/guestfs.pod:1817
3564 msgid "COMMUNICATION PROTOCOL"
3565 msgstr ""
3566
3567 # type: textblock
3568 #: ../src/guestfs.pod:1819
3569 msgid ""
3570 "Don't rely on using this protocol directly.  This section documents how it "
3571 "currently works, but it may change at any time."
3572 msgstr ""
3573
3574 # type: textblock
3575 #: ../src/guestfs.pod:1822
3576 msgid ""
3577 "The protocol used to talk between the library and the daemon running inside "
3578 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3579 "1014, RFC 1832, RFC 4506)."
3580 msgstr ""
3581
3582 # type: textblock
3583 #: ../src/guestfs.pod:1826
3584 msgid ""
3585 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3586 "this file is automatically generated)."
3587 msgstr ""
3588
3589 # type: textblock
3590 #: ../src/guestfs.pod:1829
3591 msgid ""
3592 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3593 "and C<FileOut> parameters, which are handled with very simple request/reply "
3594 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3595 "parameters, which use the same request and reply messages, but they may also "
3596 "be followed by files sent using a chunked encoding."
3597 msgstr ""
3598
3599 # type: =head3
3600 #: ../src/guestfs.pod:1836
3601 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1838
3606 msgid "For ordinary functions, the request message is:"
3607 msgstr ""
3608
3609 # type: verbatim
3610 #: ../src/guestfs.pod:1840
3611 #, no-wrap
3612 msgid ""
3613 " total length (header + arguments,\n"
3614 "      but not including the length word itself)\n"
3615 " struct guestfs_message_header (encoded as XDR)\n"
3616 " struct guestfs_<foo>_args (encoded as XDR)\n"
3617 "\n"
3618 msgstr ""
3619
3620 # type: textblock
3621 #: ../src/guestfs.pod:1845
3622 msgid ""
3623 "The total length field allows the daemon to allocate a fixed size buffer "
3624 "into which it slurps the rest of the message.  As a result, the total length "
3625 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3626 "effective size of any request is limited to somewhere under this size."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1851
3631 msgid ""
3632 "Note also that many functions don't take any arguments, in which case the "
3633 "C<guestfs_I<foo>_args> is completely omitted."
3634 msgstr ""
3635
3636 # type: textblock
3637 #: ../src/guestfs.pod:1854
3638 msgid ""
3639 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3640 "receiver knows what type of args structure to expect, or none at all."
3641 msgstr ""
3642
3643 # type: textblock
3644 #: ../src/guestfs.pod:1858
3645 msgid "The reply message for ordinary functions is:"
3646 msgstr ""
3647
3648 # type: verbatim
3649 #: ../src/guestfs.pod:1860
3650 #, no-wrap
3651 msgid ""
3652 " total length (header + ret,\n"
3653 "      but not including the length word itself)\n"
3654 " struct guestfs_message_header (encoded as XDR)\n"
3655 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3656 "\n"
3657 msgstr ""
3658
3659 # type: textblock
3660 #: ../src/guestfs.pod:1865
3661 msgid ""
3662 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3663 "functions that return no formal return values."
3664 msgstr ""
3665
3666 # type: textblock
3667 #: ../src/guestfs.pod:1868
3668 msgid ""
3669 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3670 msgstr ""
3671
3672 # type: textblock
3673 #: ../src/guestfs.pod:1871
3674 msgid ""
3675 "In the case of an error, a flag is set in the header, and the reply message "
3676 "is slightly changed:"
3677 msgstr ""
3678
3679 # type: verbatim
3680 #: ../src/guestfs.pod:1874
3681 #, no-wrap
3682 msgid ""
3683 " total length (header + error,\n"
3684 "      but not including the length word itself)\n"
3685 " struct guestfs_message_header (encoded as XDR)\n"
3686 " struct guestfs_message_error (encoded as XDR)\n"
3687 "\n"
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1879
3692 msgid ""
3693 "The C<guestfs_message_error> structure contains the error message as a "
3694 "string."
3695 msgstr ""
3696
3697 # type: =head3
3698 #: ../src/guestfs.pod:1882
3699 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1884
3704 msgid ""
3705 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3706 "The normal request message is sent (see above).  However this is followed by "
3707 "a sequence of file chunks."
3708 msgstr ""
3709
3710 # type: verbatim
3711 #: ../src/guestfs.pod:1888
3712 #, no-wrap
3713 msgid ""
3714 " total length (header + arguments,\n"
3715 "      but not including the length word itself,\n"
3716 "      and not including the chunks)\n"
3717 " struct guestfs_message_header (encoded as XDR)\n"
3718 " struct guestfs_<foo>_args (encoded as XDR)\n"
3719 " sequence of chunks for FileIn param #0\n"
3720 " sequence of chunks for FileIn param #1 etc.\n"
3721 "\n"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs.pod:1896
3726 msgid "The \"sequence of chunks\" is:"
3727 msgstr ""
3728
3729 # type: verbatim
3730 #: ../src/guestfs.pod:1898
3731 #, no-wrap
3732 msgid ""
3733 " length of chunk (not including length word itself)\n"
3734 " struct guestfs_chunk (encoded as XDR)\n"
3735 " length of chunk\n"
3736 " struct guestfs_chunk (encoded as XDR)\n"
3737 "   ...\n"
3738 " length of chunk\n"
3739 " struct guestfs_chunk (with data.data_len == 0)\n"
3740 "\n"
3741 msgstr ""
3742
3743 # type: textblock
3744 #: ../src/guestfs.pod:1906
3745 msgid ""
3746 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3747 "is set in the final chunk to indicate either successful completion or early "
3748 "cancellation."
3749 msgstr ""
3750
3751 # type: textblock
3752 #: ../src/guestfs.pod:1910
3753 msgid ""
3754 "At time of writing there are no functions that have more than one FileIn "
3755 "parameter.  However this is (theoretically) supported, by sending the "
3756 "sequence of chunks for each FileIn parameter one after another (from left to "
3757 "right)."
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs.pod:1915
3762 msgid ""
3763 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3764 "transfer.  The library does this by sending a chunk with a special flag set "
3765 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3766 "RPC, does I<not> send any reply, and goes back to reading the next request."
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1921
3771 msgid ""
3772 "The daemon may also cancel.  It does this by writing a special word "
3773 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3774 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3775 "cancel chunk).  The special word is chosen so that even if cancellation "
3776 "happens right at the end of the transfer (after the library has finished "
3777 "writing and has started listening for the reply), the \"spurious\" cancel "
3778 "flag will not be confused with the reply message."
3779 msgstr ""
3780
3781 # type: textblock
3782 #: ../src/guestfs.pod:1930
3783 msgid ""
3784 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3785 "limit), and also files where the size is not known in advance (eg. from "
3786 "pipes or sockets).  However the chunks are rather small "
3787 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3788 "to keep much in memory."
3789 msgstr ""
3790
3791 # type: =head3
3792 #: ../src/guestfs.pod:1936
3793 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1938
3798 msgid ""
3799 "The protocol for FileOut parameters is exactly the same as for FileIn "
3800 "parameters, but with the roles of daemon and library reversed."
3801 msgstr ""
3802
3803 # type: verbatim
3804 #: ../src/guestfs.pod:1941
3805 #, no-wrap
3806 msgid ""
3807 " total length (header + ret,\n"
3808 "      but not including the length word itself,\n"
3809 "      and not including the chunks)\n"
3810 " struct guestfs_message_header (encoded as XDR)\n"
3811 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3812 " sequence of chunks for FileOut param #0\n"
3813 " sequence of chunks for FileOut param #1 etc.\n"
3814 "\n"
3815 msgstr ""
3816
3817 # type: =head3
3818 #: ../src/guestfs.pod:1949
3819 msgid "INITIAL MESSAGE"
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs.pod:1951
3824 msgid ""
3825 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3826 "which indicates that the guest and daemon is alive.  This is what L</"
3827 "guestfs_launch> waits for."
3828 msgstr ""
3829
3830 # type: =head3
3831 #: ../src/guestfs.pod:1955
3832 msgid "PROGRESS NOTIFICATION MESSAGES"
3833 msgstr ""
3834
3835 # type: textblock
3836 #: ../src/guestfs.pod:1957
3837 msgid ""
3838 "The daemon may send progress notification messages at any time.  These are "
3839 "distinguished by the normal length word being replaced by "
3840 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3841 msgstr ""
3842
3843 # type: textblock
3844 #: ../src/guestfs.pod:1961
3845 msgid ""
3846 "The library turns them into progress callbacks (see "
3847 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3848 "discards them if not."
3849 msgstr ""
3850
3851 # type: textblock
3852 #: ../src/guestfs.pod:1965
3853 msgid ""
3854 "The daemon self-limits the frequency of progress messages it sends (see "
3855 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3856 "messages."
3857 msgstr ""
3858
3859 # type: =head1
3860 #: ../src/guestfs.pod:1969
3861 msgid "LIBGUESTFS VERSION NUMBERS"
3862 msgstr ""
3863
3864 # type: textblock
3865 #: ../src/guestfs.pod:1971
3866 msgid ""
3867 "Since April 2010, libguestfs has started to make separate development and "
3868 "stable releases, along with corresponding branches in our git repository.  "
3869 "These separate releases can be identified by version number:"
3870 msgstr ""
3871
3872 # type: verbatim
3873 #: ../src/guestfs.pod:1976
3874 #, no-wrap
3875 msgid ""
3876 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3877 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3878 "       |\n"
3879 "       v\n"
3880 " 1  .  3  .  5\n"
3881 " ^           ^\n"
3882 " |           |\n"
3883 " |           `-------- sub-version\n"
3884 " |\n"
3885 " `------ always '1' because we don't change the ABI\n"
3886 "\n"
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs.pod:1987
3891 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs.pod:1989
3896 msgid ""
3897 "As time passes we cherry pick fixes from the development branch and backport "
3898 "those into the stable branch, the effect being that the stable branch should "
3899 "get more stable and less buggy over time.  So the stable releases are ideal "
3900 "for people who don't need new features but would just like the software to "
3901 "work."
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs.pod:1995
3906 msgid "Our criteria for backporting changes are:"
3907 msgstr ""
3908
3909 # type: textblock
3910 #: ../src/guestfs.pod:2001
3911 msgid ""
3912 "Documentation changes which don't affect any code are backported unless the "
3913 "documentation refers to a future feature which is not in stable."
3914 msgstr ""
3915
3916 # type: textblock
3917 #: ../src/guestfs.pod:2007
3918 msgid ""
3919 "Bug fixes which are not controversial, fix obvious problems, and have been "
3920 "well tested are backported."
3921 msgstr ""
3922
3923 # type: textblock
3924 #: ../src/guestfs.pod:2012
3925 msgid ""
3926 "Simple rearrangements of code which shouldn't affect how it works get "
3927 "backported.  This is so that the code in the two branches doesn't get too "
3928 "far out of step, allowing us to backport future fixes more easily."
3929 msgstr ""
3930
3931 # type: textblock
3932 #: ../src/guestfs.pod:2018
3933 msgid ""
3934 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3935 "exceptional case: the new feature is required in order to implement an "
3936 "important bug fix."
3937 msgstr ""
3938
3939 # type: textblock
3940 #: ../src/guestfs.pod:2024
3941 msgid ""
3942 "A new stable branch starts when we think the new features in development are "
3943 "substantial and compelling enough over the current stable branch to warrant "
3944 "it.  When that happens we create new stable and development versions 1.N.0 "
3945 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3946 "stable at this point, but by backporting fixes from development, that branch "
3947 "will stabilize over time."
3948 msgstr ""
3949
3950 # type: =head1
3951 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:915
3952 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3953 #: ../tools/virt-rescue.pl:255
3954 msgid "ENVIRONMENT VARIABLES"
3955 msgstr ""
3956
3957 # type: =item
3958 #: ../src/guestfs.pod:2036 ../fish/guestfish.pod:941
3959 msgid "LIBGUESTFS_APPEND"
3960 msgstr ""
3961
3962 # type: textblock
3963 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:943
3964 msgid "Pass additional options to the guest kernel."
3965 msgstr ""
3966
3967 # type: =item
3968 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:945
3969 msgid "LIBGUESTFS_DEBUG"
3970 msgstr ""
3971
3972 # type: textblock
3973 #: ../src/guestfs.pod:2042
3974 msgid ""
3975 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3976 "effect as calling C<guestfs_set_verbose (g, 1)>."
3977 msgstr ""
3978
3979 # type: =item
3980 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:950
3981 msgid "LIBGUESTFS_MEMSIZE"
3982 msgstr ""
3983
3984 # type: textblock
3985 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:952
3986 msgid ""
3987 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3988 msgstr ""
3989
3990 # type: verbatim
3991 #: ../src/guestfs.pod:2050 ../fish/guestfish.pod:955
3992 #, no-wrap
3993 msgid ""
3994 " LIBGUESTFS_MEMSIZE=700\n"
3995 "\n"
3996 msgstr ""
3997
3998 # type: =item
3999 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:957
4000 msgid "LIBGUESTFS_PATH"
4001 msgstr ""
4002
4003 # type: textblock
4004 #: ../src/guestfs.pod:2054
4005 msgid ""
4006 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4007 "the discussion of paths in section PATH above."
4008 msgstr ""
4009
4010 # type: =item
4011 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:962
4012 msgid "LIBGUESTFS_QEMU"
4013 msgstr ""
4014
4015 # type: textblock
4016 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:964
4017 msgid ""
4018 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4019 "which was found at compile time by the configure script is used."
4020 msgstr ""
4021
4022 # type: textblock
4023 #: ../src/guestfs.pod:2063
4024 msgid "See also L</QEMU WRAPPERS> above."
4025 msgstr ""
4026
4027 # type: =item
4028 #: ../src/guestfs.pod:2065 ../fish/guestfish.pod:968
4029 msgid "LIBGUESTFS_TRACE"
4030 msgstr ""
4031
4032 # type: textblock
4033 #: ../src/guestfs.pod:2067
4034 msgid ""
4035 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4036 "effect as calling C<guestfs_set_trace (g, 1)>."
4037 msgstr ""
4038
4039 # type: =item
4040 #: ../src/guestfs.pod:2070 ../fish/guestfish.pod:977
4041 msgid "TMPDIR"
4042 msgstr ""
4043
4044 # type: textblock
4045 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:979
4046 msgid "Location of temporary directory, defaults to C</tmp>."
4047 msgstr ""
4048
4049 # type: textblock
4050 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:981
4051 msgid ""
4052 "If libguestfs was compiled to use the supermin appliance then the real "
4053 "appliance is cached in this directory, shared between all handles belonging "
4054 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4055 "use in case C</tmp> is not large enough."
4056 msgstr ""
4057
4058 # type: =head1
4059 #: ../src/guestfs.pod:2082 ../fish/guestfish.pod:1039
4060 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4061 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484
4062 #: ../tools/virt-resize.pl:1485 ../tools/virt-list-filesystems.pl:189
4063 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
4064 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:257
4065 msgid "SEE ALSO"
4066 msgstr ""
4067
4068 # type: textblock
4069 #: ../src/guestfs.pod:2084
4070 msgid ""
4071 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4072 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4073 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4074 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4075 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4076 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4077 msgstr ""
4078
4079 # type: textblock
4080 #: ../src/guestfs.pod:2107
4081 msgid ""
4082 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4083 "(8)>, L<disktype(1)>."
4084 msgstr ""
4085
4086 # type: =head1
4087 #: ../src/guestfs.pod:2114 ../tools/virt-win-reg.pl:499
4088 #: ../tools/virt-make-fs.pl:548
4089 msgid "BUGS"
4090 msgstr ""
4091
4092 # type: textblock
4093 #: ../src/guestfs.pod:2116
4094 msgid "To get a list of bugs against libguestfs use this link:"
4095 msgstr ""
4096
4097 # type: textblock
4098 #: ../src/guestfs.pod:2118
4099 msgid ""
4100 "L<https://bugzilla.redhat.com/buglist.cgi?"
4101 "component=libguestfs&product=Virtualization+Tools>"
4102 msgstr ""
4103
4104 # type: textblock
4105 #: ../src/guestfs.pod:2120
4106 msgid "To report a new bug against libguestfs use this link:"
4107 msgstr ""
4108
4109 # type: textblock
4110 #: ../src/guestfs.pod:2122
4111 msgid ""
4112 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4113 "component=libguestfs&product=Virtualization+Tools>"
4114 msgstr ""
4115
4116 # type: textblock
4117 #: ../src/guestfs.pod:2124
4118 msgid "When reporting a bug, please check:"
4119 msgstr ""
4120
4121 # type: textblock
4122 #: ../src/guestfs.pod:2130
4123 msgid "That the bug hasn't been reported already."
4124 msgstr ""
4125
4126 # type: textblock
4127 #: ../src/guestfs.pod:2134
4128 msgid "That you are testing a recent version."
4129 msgstr ""
4130
4131 # type: textblock
4132 #: ../src/guestfs.pod:2138
4133 msgid "Describe the bug accurately, and give a way to reproduce it."
4134 msgstr ""
4135
4136 # type: textblock
4137 #: ../src/guestfs.pod:2142
4138 msgid ""
4139 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4140 "bug report."
4141 msgstr ""
4142
4143 # type: =head1
4144 #: ../src/guestfs.pod:2147 ../fish/guestfish.pod:1058
4145 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4146 msgid "AUTHORS"
4147 msgstr ""
4148
4149 # type: textblock
4150 #: ../src/guestfs.pod:2149 ../fish/guestfish.pod:1060
4151 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4152 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4153 msgstr ""
4154
4155 # type: =head1
4156 #: ../src/guestfs.pod:2151 ../fish/guestfish.pod:1062
4157 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4158 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4159 #: ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:206
4160 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
4161 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:273
4162 msgid "COPYRIGHT"
4163 msgstr ""
4164
4165 # type: textblock
4166 #: ../src/guestfs.pod:2153 ../fish/guestfish.pod:1064
4167 #: ../fuse/guestmount.pod:250
4168 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs.pod:2156
4173 msgid ""
4174 "This library is free software; you can redistribute it and/or modify it "
4175 "under the terms of the GNU Lesser General Public License as published by the "
4176 "Free Software Foundation; either version 2 of the License, or (at your "
4177 "option) any later version."
4178 msgstr ""
4179
4180 # type: textblock
4181 #: ../src/guestfs.pod:2161
4182 msgid ""
4183 "This library is distributed in the hope that it will be useful, but WITHOUT "
4184 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4185 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4186 "for more details."
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs.pod:2166
4191 msgid ""
4192 "You should have received a copy of the GNU Lesser General Public License "
4193 "along with this library; if not, write to the Free Software Foundation, "
4194 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4195 msgstr ""
4196
4197 # type: =head2
4198 #: ../src/guestfs-actions.pod:1
4199 msgid "guestfs_add_cdrom"
4200 msgstr ""
4201
4202 # type: verbatim
4203 #: ../src/guestfs-actions.pod:3
4204 #, no-wrap
4205 msgid ""
4206 " int\n"
4207 " guestfs_add_cdrom (guestfs_h *g,\n"
4208 "                    const char *filename);\n"
4209 "\n"
4210 msgstr ""
4211
4212 # type: textblock
4213 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4214 msgid "This function adds a virtual CD-ROM disk image to the guest."
4215 msgstr ""
4216
4217 # type: textblock
4218 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4219 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4220 msgstr ""
4221
4222 # type: textblock
4223 #: ../src/guestfs-actions.pod:17
4224 msgid ""
4225 "This call checks for the existence of C<filename>.  This stops you from "
4226 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4227 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4228 "instead."
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:24
4233 msgid ""
4234 "If you just want to add an ISO file (often you use this as an efficient way "
4235 "to transfer large files into the guest), then you should probably use "
4236 "C<guestfs_add_drive_ro> instead."
4237 msgstr ""
4238
4239 # type: textblock
4240 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4241 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4242 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4243 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4244 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4245 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4246 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4247 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4248 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4249 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4250 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4251 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4252 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4253 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4254 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4255 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4256 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4257 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4258 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4259 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4260 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4261 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182
4262 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217
4263 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356
4264 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383
4265 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434
4266 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526
4267 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566
4268 #: ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621
4269 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659
4270 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706
4271 #: ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758
4272 #: ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786
4273 #: ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896
4274 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929
4275 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998
4276 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032
4277 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060
4278 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092
4279 #: ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161
4280 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211
4281 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242
4282 #: ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272
4283 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302
4284 #: ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352
4285 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386
4286 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452
4287 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503
4288 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548
4289 #: ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700
4290 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779
4291 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829
4292 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912
4293 #: ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939
4294 #: ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247
4295 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273
4296 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299
4297 #: ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329
4298 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369
4299 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406
4300 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447
4301 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487
4302 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523
4303 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575
4304 #: ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618
4305 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648
4306 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704
4307 #: ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753
4308 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982
4309 #: ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007
4310 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042
4311 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068
4312 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096
4313 #: ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172
4314 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204
4315 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234
4316 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290
4317 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345
4318 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376
4319 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436
4320 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573
4321 #: ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642
4322 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700
4323 #: ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787
4324 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879
4325 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4326 msgid "This function returns 0 on success or -1 on error."
4327 msgstr ""
4328
4329 # type: textblock
4330 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4331 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4332 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4333 msgid ""
4334 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4335 "instead."
4336 msgstr ""
4337
4338 # type: textblock
4339 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4340 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4341 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4342 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990
4343 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4344 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4345 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4346 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4347 msgid ""
4348 "Deprecated functions will not be removed from the API, but the fact that "
4349 "they are deprecated indicates that there are problems with correct use of "
4350 "these functions."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4355 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4356 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4357 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199
4358 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408
4359 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635
4360 #: ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223
4361 #: ../src/guestfs-actions.pod:6735
4362 msgid "(Added in 0.3)"
4363 msgstr ""
4364
4365 # type: =head2
4366 #: ../src/guestfs-actions.pod:41
4367 msgid "guestfs_add_domain"
4368 msgstr ""
4369
4370 # type: verbatim
4371 #: ../src/guestfs-actions.pod:43
4372 #, no-wrap
4373 msgid ""
4374 " int\n"
4375 " guestfs_add_domain (guestfs_h *g,\n"
4376 "                     const char *dom,\n"
4377 "                     ...);\n"
4378 "\n"
4379 msgstr ""
4380
4381 # type: textblock
4382 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4383 msgid ""
4384 "You may supply a list of optional arguments to this call.  Use zero or more "
4385 "of the following pairs of parameters, and terminate the list with C<-1> on "
4386 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4387 msgstr ""
4388
4389 # type: verbatim
4390 #: ../src/guestfs-actions.pod:53
4391 #, no-wrap
4392 msgid ""
4393 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4394 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4395 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4396 "\n"
4397 msgstr ""
4398
4399 # type: textblock
4400 #: ../src/guestfs-actions.pod:57
4401 msgid ""
4402 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4403 "It works by connecting to libvirt, requesting the domain and domain XML from "
4404 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4405 "one."
4406 msgstr ""
4407
4408 # type: textblock
4409 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4410 msgid ""
4411 "The number of disks added is returned.  This operation is atomic: if an "
4412 "error is returned, then no disks are added."
4413 msgstr ""
4414
4415 # type: textblock
4416 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4417 msgid ""
4418 "This function does some minimal checks to make sure the libvirt domain is "
4419 "not running (unless C<readonly> is true).  In a future version we will try "
4420 "to acquire the libvirt lock on each disk."
4421 msgstr ""
4422
4423 # type: textblock
4424 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4425 msgid ""
4426 "Disks must be accessible locally.  This often means that adding disks from a "
4427 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4428 "unless those disks are accessible via the same device path locally too."
4429 msgstr ""
4430
4431 # type: textblock
4432 #: ../src/guestfs-actions.pod:74
4433 msgid ""
4434 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4435 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4436 "libvirt URI (or one set through an environment variable, see the libvirt "
4437 "documentation for full details).  If you are using the C API directly then "
4438 "it is more flexible to create the libvirt connection object yourself, get "
4439 "the domain object, and call C<guestfs_add_libvirt_dom>."
4440 msgstr ""
4441
4442 # type: textblock
4443 #: ../src/guestfs-actions.pod:82
4444 msgid ""
4445 "The other optional parameters are passed directly through to "
4446 "C<guestfs_add_drive_opts>."
4447 msgstr ""
4448
4449 # type: textblock
4450 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4451 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4452 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4453 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4454 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4455 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4456 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4457 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630
4458 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475
4459 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009
4460 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331
4461 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759
4462 #: ../src/guestfs-actions.pod:6772
4463 msgid "On error this function returns -1."
4464 msgstr ""
4465
4466 # type: =head2
4467 #: ../src/guestfs-actions.pod:87
4468 msgid "guestfs_add_domain_va"
4469 msgstr ""
4470
4471 # type: verbatim
4472 #: ../src/guestfs-actions.pod:89
4473 #, no-wrap
4474 msgid ""
4475 " int\n"
4476 " guestfs_add_domain_va (guestfs_h *g,\n"
4477 "                        const char *dom,\n"
4478 "                        va_list args);\n"
4479 "\n"
4480 msgstr ""
4481
4482 # type: textblock
4483 #: ../src/guestfs-actions.pod:94
4484 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4485 msgstr ""
4486
4487 # type: textblock
4488 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4489 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4490 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4491 msgstr ""
4492
4493 # type: =head2
4494 #: ../src/guestfs-actions.pod:98
4495 msgid "guestfs_add_domain_argv"
4496 msgstr ""
4497
4498 # type: verbatim
4499 #: ../src/guestfs-actions.pod:100
4500 #, no-wrap
4501 msgid ""
4502 " int\n"
4503 " guestfs_add_domain_argv (guestfs_h *g,\n"
4504 "                          const char *dom,\n"
4505 "                          const struct guestfs_add_domain_argv *optargs);\n"
4506 "\n"
4507 msgstr ""
4508
4509 # type: textblock
4510 #: ../src/guestfs-actions.pod:105
4511 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4512 msgstr ""
4513
4514 # type: =head2
4515 #: ../src/guestfs-actions.pod:109
4516 msgid "guestfs_add_drive"
4517 msgstr ""
4518
4519 # type: verbatim
4520 #: ../src/guestfs-actions.pod:111
4521 #, no-wrap
4522 msgid ""
4523 " int\n"
4524 " guestfs_add_drive (guestfs_h *g,\n"
4525 "                    const char *filename);\n"
4526 "\n"
4527 msgstr ""
4528
4529 # type: textblock
4530 #: ../src/guestfs-actions.pod:115
4531 msgid ""
4532 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4533 "optional parameters, so the disk is added writable, with the format being "
4534 "detected automatically."
4535 msgstr ""
4536
4537 # type: textblock
4538 #: ../src/guestfs-actions.pod:119
4539 msgid ""
4540 "Automatic detection of the format opens you up to a potential security hole "
4541 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4542 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4543 "you should think about replacing calls to this function with calls to "
4544 "C<guestfs_add_drive_opts>, and specifying the format."
4545 msgstr ""
4546
4547 # type: =head2
4548 #: ../src/guestfs-actions.pod:130
4549 msgid "guestfs_add_drive_opts"
4550 msgstr ""
4551
4552 # type: verbatim
4553 #: ../src/guestfs-actions.pod:132
4554 #, no-wrap
4555 msgid ""
4556 " int\n"
4557 " guestfs_add_drive_opts (guestfs_h *g,\n"
4558 "                         const char *filename,\n"
4559 "                         ...);\n"
4560 "\n"
4561 msgstr ""
4562
4563 # type: verbatim
4564 #: ../src/guestfs-actions.pod:142
4565 #, no-wrap
4566 msgid ""
4567 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4568 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4569 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4570 "\n"
4571 msgstr ""
4572
4573 # type: textblock
4574 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4575 msgid ""
4576 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4577 "The first time you call this function, the disk appears as C</dev/sda>, the "
4578 "second time as C</dev/sdb>, and so on."
4579 msgstr ""
4580
4581 # type: textblock
4582 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4583 msgid ""
4584 "You don't necessarily need to be root when using libguestfs.  However you "
4585 "obviously do need sufficient permissions to access the filename for whatever "
4586 "operations you want to perform (ie. read access if you just want to read the "
4587 "image or write access if you want to modify the image)."
4588 msgstr ""
4589
4590 # type: textblock
4591 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4592 msgid "This call checks that C<filename> exists."
4593 msgstr ""
4594
4595 # type: textblock
4596 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4597 msgid "The optional arguments are:"
4598 msgstr ""
4599
4600 # type: =item
4601 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4602 msgid "C<readonly>"
4603 msgstr ""
4604
4605 # type: textblock
4606 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4607 msgid ""
4608 "If true then the image is treated as read-only.  Writes are still allowed, "
4609 "but they are stored in a temporary snapshot overlay which is discarded at "
4610 "the end.  The disk that you add is not modified."
4611 msgstr ""
4612
4613 # type: =item
4614 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4615 msgid "C<format>"
4616 msgstr ""
4617
4618 # type: textblock
4619 #: ../src/guestfs-actions.pod:171
4620 msgid ""
4621 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4622 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4623 "Possible formats include C<raw> and C<qcow2>."
4624 msgstr ""
4625
4626 # type: textblock
4627 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4628 msgid ""
4629 "Automatic detection of the format opens you up to a potential security hole "
4630 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4631 "RHBZ#642934.  Specifying the format closes this security hole."
4632 msgstr ""
4633
4634 # type: =item
4635 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4636 msgid "C<iface>"
4637 msgstr ""
4638
4639 # type: textblock
4640 #: ../src/guestfs-actions.pod:182
4641 msgid ""
4642 "This rarely-used option lets you emulate the behaviour of the deprecated "
4643 "C<guestfs_add_drive_with_if> call (q.v.)"
4644 msgstr ""
4645
4646 # type: textblock
4647 #: ../src/guestfs-actions.pod:189
4648 msgid "(Added in 1.5.23)"
4649 msgstr ""
4650
4651 # type: =head2
4652 #: ../src/guestfs-actions.pod:191
4653 msgid "guestfs_add_drive_opts_va"
4654 msgstr ""
4655
4656 # type: verbatim
4657 #: ../src/guestfs-actions.pod:193
4658 #, no-wrap
4659 msgid ""
4660 " int\n"
4661 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4662 "                            const char *filename,\n"
4663 "                            va_list args);\n"
4664 "\n"
4665 msgstr ""
4666
4667 # type: textblock
4668 #: ../src/guestfs-actions.pod:198
4669 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4670 msgstr ""
4671
4672 # type: =head2
4673 #: ../src/guestfs-actions.pod:202
4674 msgid "guestfs_add_drive_opts_argv"
4675 msgstr ""
4676
4677 # type: verbatim
4678 #: ../src/guestfs-actions.pod:204
4679 #, no-wrap
4680 msgid ""
4681 " int\n"
4682 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4683 "                              const char *filename,\n"
4684 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4685 "\n"
4686 msgstr ""
4687
4688 # type: textblock
4689 #: ../src/guestfs-actions.pod:209
4690 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4691 msgstr ""
4692
4693 # type: =head2
4694 #: ../src/guestfs-actions.pod:213
4695 msgid "guestfs_add_drive_ro"
4696 msgstr ""
4697
4698 # type: verbatim
4699 #: ../src/guestfs-actions.pod:215
4700 #, no-wrap
4701 msgid ""
4702 " int\n"
4703 " guestfs_add_drive_ro (guestfs_h *g,\n"
4704 "                       const char *filename);\n"
4705 "\n"
4706 msgstr ""
4707
4708 # type: textblock
4709 #: ../src/guestfs-actions.pod:219
4710 msgid ""
4711 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4712 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4713 "disk is added read-only, with the format being detected automatically."
4714 msgstr ""
4715
4716 # type: textblock
4717 #: ../src/guestfs-actions.pod:226
4718 msgid "(Added in 1.0.38)"
4719 msgstr ""
4720
4721 # type: =head2
4722 #: ../src/guestfs-actions.pod:228
4723 msgid "guestfs_add_drive_ro_with_if"
4724 msgstr ""
4725
4726 # type: verbatim
4727 #: ../src/guestfs-actions.pod:230
4728 #, no-wrap
4729 msgid ""
4730 " int\n"
4731 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4732 "                               const char *filename,\n"
4733 "                               const char *iface);\n"
4734 "\n"
4735 msgstr ""
4736
4737 # type: textblock
4738 #: ../src/guestfs-actions.pod:235
4739 msgid ""
4740 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4741 "QEMU interface emulation to use at run time."
4742 msgstr ""
4743
4744 # type: textblock
4745 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4746 #: ../src/guestfs-actions.pod:2303
4747 msgid "(Added in 1.0.84)"
4748 msgstr ""
4749
4750 # type: =head2
4751 #: ../src/guestfs-actions.pod:249
4752 msgid "guestfs_add_drive_with_if"
4753 msgstr ""
4754
4755 # type: verbatim
4756 #: ../src/guestfs-actions.pod:251
4757 #, no-wrap
4758 msgid ""
4759 " int\n"
4760 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4761 "                            const char *filename,\n"
4762 "                            const char *iface);\n"
4763 "\n"
4764 msgstr ""
4765
4766 # type: textblock
4767 #: ../src/guestfs-actions.pod:256
4768 msgid ""
4769 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4770 "QEMU interface emulation to use at run time."
4771 msgstr ""
4772
4773 # type: =head2
4774 #: ../src/guestfs-actions.pod:270
4775 msgid "guestfs_aug_clear"
4776 msgstr ""
4777
4778 # type: verbatim
4779 #: ../src/guestfs-actions.pod:272
4780 #, no-wrap
4781 msgid ""
4782 " int\n"
4783 " guestfs_aug_clear (guestfs_h *g,\n"
4784 "                    const char *augpath);\n"
4785 "\n"
4786 msgstr ""
4787
4788 # type: textblock
4789 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4790 msgid ""
4791 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4792 "L<augtool(1)> C<clear> command."
4793 msgstr ""
4794
4795 # type: textblock
4796 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4797 msgid "(Added in 1.3.4)"
4798 msgstr ""
4799
4800 # type: =head2
4801 #: ../src/guestfs-actions.pod:283
4802 msgid "guestfs_aug_close"
4803 msgstr ""
4804
4805 # type: verbatim
4806 #: ../src/guestfs-actions.pod:285
4807 #, no-wrap
4808 msgid ""
4809 " int\n"
4810 " guestfs_aug_close (guestfs_h *g);\n"
4811 "\n"
4812 msgstr ""
4813
4814 # type: textblock
4815 #: ../src/guestfs-actions.pod:288
4816 msgid ""
4817 "Close the current Augeas handle and free up any resources used by it.  After "
4818 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4819 "any other Augeas functions."
4820 msgstr ""
4821
4822 # type: textblock
4823 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4824 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4825 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4826 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4827 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4828 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4829 #: ../src/guestfs-actions.pod:5086
4830 msgid "(Added in 0.7)"
4831 msgstr ""
4832
4833 # type: =head2
4834 #: ../src/guestfs-actions.pod:297
4835 msgid "guestfs_aug_defnode"
4836 msgstr ""
4837
4838 # type: verbatim
4839 #: ../src/guestfs-actions.pod:299
4840 #, no-wrap
4841 msgid ""
4842 " struct guestfs_int_bool *\n"
4843 " guestfs_aug_defnode (guestfs_h *g,\n"
4844 "                      const char *name,\n"
4845 "                      const char *expr,\n"
4846 "                      const char *val);\n"
4847 "\n"
4848 msgstr ""
4849
4850 # type: textblock
4851 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4852 msgid ""
4853 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4854 msgstr ""
4855
4856 # type: textblock
4857 #: ../src/guestfs-actions.pod:308
4858 msgid ""
4859 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4860 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4861 "containing that single node."
4862 msgstr ""
4863
4864 # type: textblock
4865 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4866 msgid ""
4867 "On success this returns a pair containing the number of nodes in the "
4868 "nodeset, and a boolean flag if a node was created."
4869 msgstr ""
4870
4871 # type: textblock
4872 #: ../src/guestfs-actions.pod:316
4873 msgid ""
4874 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4875 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4876 msgstr ""
4877
4878 # type: =head2
4879 #: ../src/guestfs-actions.pod:322
4880 msgid "guestfs_aug_defvar"
4881 msgstr ""
4882
4883 # type: verbatim
4884 #: ../src/guestfs-actions.pod:324
4885 #, no-wrap
4886 msgid ""
4887 " int\n"
4888 " guestfs_aug_defvar (guestfs_h *g,\n"
4889 "                     const char *name,\n"
4890 "                     const char *expr);\n"
4891 "\n"
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4896 msgid ""
4897 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4898 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4899 msgstr ""
4900
4901 # type: textblock
4902 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4903 msgid ""
4904 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4905 "evaluates to something which is not a nodeset."
4906 msgstr ""
4907
4908 # type: =head2
4909 #: ../src/guestfs-actions.pod:340
4910 msgid "guestfs_aug_get"
4911 msgstr ""
4912
4913 # type: verbatim
4914 #: ../src/guestfs-actions.pod:342
4915 #, no-wrap
4916 msgid ""
4917 " char *\n"
4918 " guestfs_aug_get (guestfs_h *g,\n"
4919 "                  const char *augpath);\n"
4920 "\n"
4921 msgstr ""
4922
4923 # type: textblock
4924 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4925 msgid ""
4926 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4927 "node, the C<value> is returned."
4928 msgstr ""
4929
4930 # type: textblock
4931 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4932 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4933 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4934 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4935 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4936 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4937 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4938 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4939 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4940 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
4941 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712
4942 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763
4943 #: ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846
4944 #: ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678
4945 #: ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958
4946 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814
4947 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162
4948 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774
4949 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807
4950 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495
4951 #: ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532
4952 #: ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4953 msgid ""
4954 "This function returns a string, or NULL on error.  I<The caller must free "
4955 "the returned string after use>."
4956 msgstr ""
4957
4958 # type: =head2
4959 #: ../src/guestfs-actions.pod:354
4960 msgid "guestfs_aug_init"
4961 msgstr ""
4962
4963 # type: verbatim
4964 #: ../src/guestfs-actions.pod:356
4965 #, no-wrap
4966 msgid ""
4967 " int\n"
4968 " guestfs_aug_init (guestfs_h *g,\n"
4969 "                   const char *root,\n"
4970 "                   int flags);\n"
4971 "\n"
4972 msgstr ""
4973
4974 # type: textblock
4975 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4976 msgid ""
4977 "Create a new Augeas handle for editing configuration files.  If there was "
4978 "any previous Augeas handle associated with this guestfs session, then it is "
4979 "closed."
4980 msgstr ""
4981
4982 # type: textblock
4983 #: ../src/guestfs-actions.pod:365
4984 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4985 msgstr ""
4986
4987 # type: textblock
4988 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4989 msgid ""
4990 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4991 msgstr ""
4992
4993 # type: textblock
4994 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4995 msgid ""
4996 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4997 "logical I<or> of the following integers:"
4998 msgstr ""
4999
5000 # type: =item
5001 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5002 msgid "C<AUG_SAVE_BACKUP> = 1"
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5007 msgid "Keep the original file with a C<.augsave> extension."
5008 msgstr ""
5009
5010 # type: =item
5011 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5012 msgid "C<AUG_SAVE_NEWFILE> = 2"
5013 msgstr ""
5014
5015 # type: textblock
5016 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5017 msgid ""
5018 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5019 "original.  Overrides C<AUG_SAVE_BACKUP>."
5020 msgstr ""
5021
5022 # type: =item
5023 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5024 msgid "C<AUG_TYPE_CHECK> = 4"
5025 msgstr ""
5026
5027 # type: textblock
5028 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5029 msgid "Typecheck lenses (can be expensive)."
5030 msgstr ""
5031
5032 # type: =item
5033 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5034 msgid "C<AUG_NO_STDINC> = 8"
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5039 msgid "Do not use standard load path for modules."
5040 msgstr ""
5041
5042 # type: =item
5043 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5044 msgid "C<AUG_SAVE_NOOP> = 16"
5045 msgstr ""
5046
5047 # type: textblock
5048 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5049 msgid "Make save a no-op, just record what would have been changed."
5050 msgstr ""
5051
5052 # type: =item
5053 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5054 msgid "C<AUG_NO_LOAD> = 32"
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:400
5059 msgid "Do not load the tree in C<guestfs_aug_init>."
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:404
5064 msgid "To close the handle, you can call C<guestfs_aug_close>."
5065 msgstr ""
5066
5067 # type: textblock
5068 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5069 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5070 msgstr ""
5071
5072 # type: =head2
5073 #: ../src/guestfs-actions.pod:412
5074 msgid "guestfs_aug_insert"
5075 msgstr ""
5076
5077 # type: verbatim
5078 #: ../src/guestfs-actions.pod:414
5079 #, no-wrap
5080 msgid ""
5081 " int\n"
5082 " guestfs_aug_insert (guestfs_h *g,\n"
5083 "                     const char *augpath,\n"
5084 "                     const char *label,\n"
5085 "                     int before);\n"
5086 "\n"
5087 msgstr ""
5088
5089 # type: textblock
5090 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5091 msgid ""
5092 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5093 "or after C<path> (depending on the boolean flag C<before>)."
5094 msgstr ""
5095
5096 # type: textblock
5097 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5098 msgid ""
5099 "C<path> must match exactly one existing node in the tree, and C<label> must "
5100 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5101 msgstr ""
5102
5103 # type: =head2
5104 #: ../src/guestfs-actions.pod:432
5105 msgid "guestfs_aug_load"
5106 msgstr ""
5107
5108 # type: verbatim
5109 #: ../src/guestfs-actions.pod:434
5110 #, no-wrap
5111 msgid ""
5112 " int\n"
5113 " guestfs_aug_load (guestfs_h *g);\n"
5114 "\n"
5115 msgstr ""
5116
5117 # type: textblock
5118 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5119 msgid "Load files into the tree."
5120 msgstr ""
5121
5122 # type: textblock
5123 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5124 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5125 msgstr ""
5126
5127 # type: =head2
5128 #: ../src/guestfs-actions.pod:446
5129 msgid "guestfs_aug_ls"
5130 msgstr ""
5131
5132 # type: verbatim
5133 #: ../src/guestfs-actions.pod:448
5134 #, no-wrap
5135 msgid ""
5136 " char **\n"
5137 " guestfs_aug_ls (guestfs_h *g,\n"
5138 "                 const char *augpath);\n"
5139 "\n"
5140 msgstr ""
5141
5142 # type: textblock
5143 #: ../src/guestfs-actions.pod:452
5144 msgid ""
5145 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5146 "sorting the resulting nodes into alphabetical order."
5147 msgstr ""
5148
5149 # type: textblock
5150 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5151 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5152 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5153 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5154 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5155 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5156 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5157 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5158 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782
5159 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248
5160 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415
5161 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436
5162 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082
5163 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847
5164 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963
5165 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133
5166 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625
5167 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837
5168 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941
5169 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006
5170 #: ../src/guestfs-actions.pod:7025
5171 msgid ""
5172 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5173 ">), or NULL if there was an error.  I<The caller must free the strings and "
5174 "the array after use>."
5175 msgstr ""
5176
5177 # type: textblock
5178 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5179 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5180 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102
5181 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711
5182 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931
5183 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440
5184 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275
5185 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301
5186 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347
5187 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589
5188 #: ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
5189 msgid "(Added in 0.8)"
5190 msgstr ""
5191
5192 # type: =head2
5193 #: ../src/guestfs-actions.pod:461
5194 msgid "guestfs_aug_match"
5195 msgstr ""
5196
5197 # type: verbatim
5198 #: ../src/guestfs-actions.pod:463
5199 #, no-wrap
5200 msgid ""
5201 " char **\n"
5202 " guestfs_aug_match (guestfs_h *g,\n"
5203 "                    const char *augpath);\n"
5204 "\n"
5205 msgstr ""
5206
5207 # type: textblock
5208 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5209 msgid ""
5210 "Returns a list of paths which match the path expression C<path>.  The "
5211 "returned paths are sufficiently qualified so that they match exactly one "
5212 "node in the current tree."
5213 msgstr ""
5214
5215 # type: =head2
5216 #: ../src/guestfs-actions.pod:477
5217 msgid "guestfs_aug_mv"
5218 msgstr ""
5219
5220 # type: verbatim
5221 #: ../src/guestfs-actions.pod:479
5222 #, no-wrap
5223 msgid ""
5224 " int\n"
5225 " guestfs_aug_mv (guestfs_h *g,\n"
5226 "                 const char *src,\n"
5227 "                 const char *dest);\n"
5228 "\n"
5229 msgstr ""
5230
5231 # type: textblock
5232 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5233 msgid ""
5234 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5235 "C<dest> is overwritten if it exists."
5236 msgstr ""
5237
5238 # type: =head2
5239 #: ../src/guestfs-actions.pod:491
5240 msgid "guestfs_aug_rm"
5241 msgstr ""
5242
5243 # type: verbatim
5244 #: ../src/guestfs-actions.pod:493
5245 #, no-wrap
5246 msgid ""
5247 " int\n"
5248 " guestfs_aug_rm (guestfs_h *g,\n"
5249 "                 const char *augpath);\n"
5250 "\n"
5251 msgstr ""
5252
5253 # type: textblock
5254 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5255 msgid "Remove C<path> and all of its children."
5256 msgstr ""
5257
5258 # type: textblock
5259 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5260 msgid "On success this returns the number of entries which were removed."
5261 msgstr ""
5262
5263 # type: =head2
5264 #: ../src/guestfs-actions.pod:505
5265 msgid "guestfs_aug_save"
5266 msgstr ""
5267
5268 # type: verbatim
5269 #: ../src/guestfs-actions.pod:507
5270 #, no-wrap
5271 msgid ""
5272 " int\n"
5273 " guestfs_aug_save (guestfs_h *g);\n"
5274 "\n"
5275 msgstr ""
5276
5277 # type: textblock
5278 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5279 msgid "This writes all pending changes to disk."
5280 msgstr ""
5281
5282 # type: textblock
5283 #: ../src/guestfs-actions.pod:512
5284 msgid ""
5285 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5286 "are saved."
5287 msgstr ""
5288
5289 # type: =head2
5290 #: ../src/guestfs-actions.pod:519
5291 msgid "guestfs_aug_set"
5292 msgstr ""
5293
5294 # type: verbatim
5295 #: ../src/guestfs-actions.pod:521
5296 #, no-wrap
5297 msgid ""
5298 " int\n"
5299 " guestfs_aug_set (guestfs_h *g,\n"
5300 "                  const char *augpath,\n"
5301 "                  const char *val);\n"
5302 "\n"
5303 msgstr ""
5304
5305 # type: textblock
5306 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5307 msgid "Set the value associated with C<path> to C<val>."
5308 msgstr ""
5309
5310 # type: textblock
5311 #: ../src/guestfs-actions.pod:528
5312 msgid ""
5313 "In the Augeas API, it is possible to clear a node by setting the value to "
5314 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5315 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5316 msgstr ""
5317
5318 # type: =head2
5319 #: ../src/guestfs-actions.pod:537
5320 msgid "guestfs_available"
5321 msgstr ""
5322
5323 # type: verbatim
5324 #: ../src/guestfs-actions.pod:539
5325 #, no-wrap
5326 msgid ""
5327 " int\n"
5328 " guestfs_available (guestfs_h *g,\n"
5329 "                    char *const *groups);\n"
5330 "\n"
5331 msgstr ""
5332
5333 # type: textblock
5334 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5335 msgid ""
5336 "This command is used to check the availability of some groups of "
5337 "functionality in the appliance, which not all builds of the libguestfs "
5338 "appliance will be able to provide."
5339 msgstr ""
5340
5341 # type: textblock
5342 #: ../src/guestfs-actions.pod:547
5343 msgid ""
5344 "The libguestfs groups, and the functions that those groups correspond to, "
5345 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5346 "runtime by calling C<guestfs_available_all_groups>."
5347 msgstr ""
5348
5349 # type: textblock
5350 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5351 msgid ""
5352 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5353 "\"]> would check for the availability of the Linux inotify functions and "
5354 "Augeas (configuration file editing) functions."
5355 msgstr ""
5356
5357 # type: textblock
5358 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5359 msgid "The command returns no error if I<all> requested groups are available."
5360 msgstr ""
5361
5362 # type: textblock
5363 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5364 msgid ""
5365 "It fails with an error if one or more of the requested groups is unavailable "
5366 "in the appliance."
5367 msgstr ""
5368
5369 # type: textblock
5370 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5371 msgid ""
5372 "If an unknown group name is included in the list of groups then an error is "
5373 "always returned."
5374 msgstr ""
5375
5376 # type: textblock
5377 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5378 msgid "I<Notes:>"
5379 msgstr ""
5380
5381 # type: textblock
5382 #: ../src/guestfs-actions.pod:571
5383 msgid "You must call C<guestfs_launch> before calling this function."
5384 msgstr ""
5385
5386 # type: textblock
5387 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5388 msgid ""
5389 "The reason is because we don't know what groups are supported by the "
5390 "appliance/daemon until it is running and can be queried."
5391 msgstr ""
5392
5393 # type: textblock
5394 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5395 msgid ""
5396 "If a group of functions is available, this does not necessarily mean that "
5397 "they will work.  You still have to check for errors when calling individual "
5398 "API functions even if they are available."
5399 msgstr ""
5400
5401 # type: textblock
5402 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5403 msgid ""
5404 "It is usually the job of distro packagers to build complete functionality "
5405 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5406 "with all requirements satisfied, will support everything."
5407 msgstr ""
5408
5409 # type: textblock
5410 #: ../src/guestfs-actions.pod:593
5411 msgid ""
5412 "This call was added in version C<1.0.80>.  In previous versions of "
5413 "libguestfs all you could do would be to speculatively execute a command to "
5414 "find out if the daemon implemented it.  See also C<guestfs_version>."
5415 msgstr ""
5416
5417 # type: textblock
5418 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5419 msgid "(Added in 1.0.80)"
5420 msgstr ""
5421
5422 # type: =head2
5423 #: ../src/guestfs-actions.pod:604
5424 msgid "guestfs_available_all_groups"
5425 msgstr ""
5426
5427 # type: verbatim
5428 #: ../src/guestfs-actions.pod:606
5429 #, no-wrap
5430 msgid ""
5431 " char **\n"
5432 " guestfs_available_all_groups (guestfs_h *g);\n"
5433 "\n"
5434 msgstr ""
5435
5436 # type: textblock
5437 #: ../src/guestfs-actions.pod:609
5438 msgid ""
5439 "This command returns a list of all optional groups that this daemon knows "
5440 "about.  Note this returns both supported and unsupported groups.  To find "
5441 "out which ones the daemon can actually support you have to call "
5442 "C<guestfs_available> on each member of the returned list."
5443 msgstr ""
5444
5445 # type: textblock
5446 #: ../src/guestfs-actions.pod:615
5447 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5448 msgstr ""
5449
5450 # type: textblock
5451 #: ../src/guestfs-actions.pod:621
5452 msgid "(Added in 1.3.15)"
5453 msgstr ""
5454
5455 # type: =head2
5456 #: ../src/guestfs-actions.pod:623
5457 msgid "guestfs_base64_in"
5458 msgstr ""
5459
5460 # type: verbatim
5461 #: ../src/guestfs-actions.pod:625
5462 #, no-wrap
5463 msgid ""
5464 " int\n"
5465 " guestfs_base64_in (guestfs_h *g,\n"
5466 "                    const char *base64file,\n"
5467 "                    const char *filename);\n"
5468 "\n"
5469 msgstr ""
5470
5471 # type: textblock
5472 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5473 msgid ""
5474 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5475 msgstr ""
5476
5477 # type: textblock
5478 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5479 msgid "(Added in 1.3.5)"
5480 msgstr ""
5481
5482 # type: =head2
5483 #: ../src/guestfs-actions.pod:637
5484 msgid "guestfs_base64_out"
5485 msgstr ""
5486
5487 # type: verbatim
5488 #: ../src/guestfs-actions.pod:639
5489 #, no-wrap
5490 msgid ""
5491 " int\n"
5492 " guestfs_base64_out (guestfs_h *g,\n"
5493 "                     const char *filename,\n"
5494 "                     const char *base64file);\n"
5495 "\n"
5496 msgstr ""
5497
5498 # type: textblock
5499 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5500 msgid ""
5501 "This command downloads the contents of C<filename>, writing it out to local "
5502 "file C<base64file> encoded as base64."
5503 msgstr ""
5504
5505 # type: =head2
5506 #: ../src/guestfs-actions.pod:651
5507 msgid "guestfs_blockdev_flushbufs"
5508 msgstr ""
5509
5510 # type: verbatim
5511 #: ../src/guestfs-actions.pod:653
5512 #, no-wrap
5513 msgid ""
5514 " int\n"
5515 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5516 "                             const char *device);\n"
5517 "\n"
5518 msgstr ""
5519
5520 # type: textblock
5521 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5522 msgid ""
5523 "This tells the kernel to flush internal buffers associated with C<device>."
5524 msgstr ""
5525
5526 # type: textblock
5527 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5528 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5529 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5530 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5531 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5532 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5533 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5534 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5535 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5536 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5537 msgid "This uses the L<blockdev(8)> command."
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5542 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5543 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5544 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5545 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5546 msgid "(Added in 0.9.3)"
5547 msgstr ""
5548
5549 # type: =head2
5550 #: ../src/guestfs-actions.pod:666
5551 msgid "guestfs_blockdev_getbsz"
5552 msgstr ""
5553
5554 # type: verbatim
5555 #: ../src/guestfs-actions.pod:668
5556 #, no-wrap
5557 msgid ""
5558 " int\n"
5559 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5560 "                          const char *device);\n"
5561 "\n"
5562 msgstr ""
5563
5564 # type: textblock
5565 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5566 msgid "This returns the block size of a device."
5567 msgstr ""
5568
5569 # type: textblock
5570 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5571 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5572 msgid ""
5573 "(Note this is different from both I<size in blocks> and I<filesystem block "
5574 "size>)."
5575 msgstr ""
5576
5577 # type: =head2
5578 #: ../src/guestfs-actions.pod:683
5579 msgid "guestfs_blockdev_getro"
5580 msgstr ""
5581
5582 # type: verbatim
5583 #: ../src/guestfs-actions.pod:685
5584 #, no-wrap
5585 msgid ""
5586 " int\n"
5587 " guestfs_blockdev_getro (guestfs_h *g,\n"
5588 "                         const char *device);\n"
5589 "\n"
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5594 msgid ""
5595 "Returns a boolean indicating if the block device is read-only (true if read-"
5596 "only, false if not)."
5597 msgstr ""
5598
5599 # type: textblock
5600 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5601 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5602 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5603 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5604 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5605 #: ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024
5606 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053
5607 #: ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084
5608 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114
5609 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141
5610 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171
5611 #: ../src/guestfs-actions.pod:4585
5612 msgid "This function returns a C truth value on success or -1 on error."
5613 msgstr ""
5614
5615 # type: =head2
5616 #: ../src/guestfs-actions.pod:698
5617 msgid "guestfs_blockdev_getsize64"
5618 msgstr ""
5619
5620 # type: verbatim
5621 #: ../src/guestfs-actions.pod:700
5622 #, no-wrap
5623 msgid ""
5624 " int64_t\n"
5625 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5626 "                             const char *device);\n"
5627 "\n"
5628 msgstr ""
5629
5630 # type: textblock
5631 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5632 msgid "This returns the size of the device in bytes."
5633 msgstr ""
5634
5635 # type: textblock
5636 #: ../src/guestfs-actions.pod:706
5637 msgid "See also C<guestfs_blockdev_getsz>."
5638 msgstr ""
5639
5640 # type: =head2
5641 #: ../src/guestfs-actions.pod:714
5642 msgid "guestfs_blockdev_getss"
5643 msgstr ""
5644
5645 # type: verbatim
5646 #: ../src/guestfs-actions.pod:716
5647 #, no-wrap
5648 msgid ""
5649 " int\n"
5650 " guestfs_blockdev_getss (guestfs_h *g,\n"
5651 "                         const char *device);\n"
5652 "\n"
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5657 msgid ""
5658 "This returns the size of sectors on a block device.  Usually 512, but can be "
5659 "larger for modern devices."
5660 msgstr ""
5661
5662 # type: textblock
5663 #: ../src/guestfs-actions.pod:723
5664 msgid ""
5665 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5666 "that)."
5667 msgstr ""
5668
5669 # type: =head2
5670 #: ../src/guestfs-actions.pod:732
5671 msgid "guestfs_blockdev_getsz"
5672 msgstr ""
5673
5674 # type: verbatim
5675 #: ../src/guestfs-actions.pod:734
5676 #, no-wrap
5677 msgid ""
5678 " int64_t\n"
5679 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5680 "                         const char *device);\n"
5681 "\n"
5682 msgstr ""
5683
5684 # type: textblock
5685 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5686 msgid ""
5687 "This returns the size of the device in units of 512-byte sectors (even if "
5688 "the sectorsize isn't 512 bytes ... weird)."
5689 msgstr ""
5690
5691 # type: textblock
5692 #: ../src/guestfs-actions.pod:741
5693 msgid ""
5694 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5695 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5696 msgstr ""
5697
5698 # type: =head2
5699 #: ../src/guestfs-actions.pod:751
5700 msgid "guestfs_blockdev_rereadpt"
5701 msgstr ""
5702
5703 # type: verbatim
5704 #: ../src/guestfs-actions.pod:753
5705 #, no-wrap
5706 msgid ""
5707 " int\n"
5708 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5709 "                            const char *device);\n"
5710 "\n"
5711 msgstr ""
5712
5713 # type: textblock
5714 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5715 msgid "Reread the partition table on C<device>."
5716 msgstr ""
5717
5718 # type: =head2
5719 #: ../src/guestfs-actions.pod:765
5720 msgid "guestfs_blockdev_setbsz"
5721 msgstr ""
5722
5723 # type: verbatim
5724 #: ../src/guestfs-actions.pod:767
5725 #, no-wrap
5726 msgid ""
5727 " int\n"
5728 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5729 "                          const char *device,\n"
5730 "                          int blocksize);\n"
5731 "\n"
5732 msgstr ""
5733
5734 # type: textblock
5735 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5736 msgid "This sets the block size of a device."
5737 msgstr ""
5738
5739 # type: =head2
5740 #: ../src/guestfs-actions.pod:783
5741 msgid "guestfs_blockdev_setro"
5742 msgstr ""
5743
5744 # type: verbatim
5745 #: ../src/guestfs-actions.pod:785
5746 #, no-wrap
5747 msgid ""
5748 " int\n"
5749 " guestfs_blockdev_setro (guestfs_h *g,\n"
5750 "                         const char *device);\n"
5751 "\n"
5752 msgstr ""
5753
5754 # type: textblock
5755 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5756 msgid "Sets the block device named C<device> to read-only."
5757 msgstr ""
5758
5759 # type: =head2
5760 #: ../src/guestfs-actions.pod:797
5761 msgid "guestfs_blockdev_setrw"
5762 msgstr ""
5763
5764 # type: verbatim
5765 #: ../src/guestfs-actions.pod:799
5766 #, no-wrap
5767 msgid ""
5768 " int\n"
5769 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5770 "                         const char *device);\n"
5771 "\n"
5772 msgstr ""
5773
5774 # type: textblock
5775 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5776 msgid "Sets the block device named C<device> to read-write."
5777 msgstr ""
5778
5779 # type: =head2
5780 #: ../src/guestfs-actions.pod:811
5781 msgid "guestfs_case_sensitive_path"
5782 msgstr ""
5783
5784 # type: verbatim
5785 #: ../src/guestfs-actions.pod:813
5786 #, no-wrap
5787 msgid ""
5788 " char *\n"
5789 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5790 "                              const char *path);\n"
5791 "\n"
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5796 msgid ""
5797 "This can be used to resolve case insensitive paths on a filesystem which is "
5798 "case sensitive.  The use case is to resolve paths which you have read from "
5799 "Windows configuration files or the Windows Registry, to the true path."
5800 msgstr ""
5801
5802 # type: textblock
5803 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5804 msgid ""
5805 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5806 "(and probably others), which is that although the underlying filesystem is "
5807 "case-insensitive, the driver exports the filesystem to Linux as case-"
5808 "sensitive."
5809 msgstr ""
5810
5811 # type: textblock
5812 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5813 msgid ""
5814 "One consequence of this is that special directories such as C<c:\\windows> "
5815 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5816 "precise details of how they were created.  In Windows itself this would not "
5817 "be a problem."
5818 msgstr ""
5819
5820 # type: textblock
5821 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5822 msgid ""
5823 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5824 "#posixfilenames1>"
5825 msgstr ""
5826
5827 # type: textblock
5828 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5829 msgid ""
5830 "This function resolves the true case of each element in the path and returns "
5831 "the case-sensitive path."
5832 msgstr ""
5833
5834 # type: textblock
5835 #: ../src/guestfs-actions.pod:839
5836 msgid ""
5837 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5838 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5839 "how the directories were originally created under Windows)."
5840 msgstr ""
5841
5842 # type: textblock
5843 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5844 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5845 msgstr ""
5846
5847 # type: textblock
5848 #: ../src/guestfs-actions.pod:847
5849 msgid "See also C<guestfs_realpath>."
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5854 msgid "(Added in 1.0.75)"
5855 msgstr ""
5856
5857 # type: =head2
5858 #: ../src/guestfs-actions.pod:854
5859 msgid "guestfs_cat"
5860 msgstr ""
5861
5862 # type: verbatim
5863 #: ../src/guestfs-actions.pod:856
5864 #, no-wrap
5865 msgid ""
5866 " char *\n"
5867 " guestfs_cat (guestfs_h *g,\n"
5868 "              const char *path);\n"
5869 "\n"
5870 msgstr ""
5871
5872 # type: textblock
5873 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072
5874 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5875 msgid "Return the contents of the file named C<path>."
5876 msgstr ""
5877
5878 # type: textblock
5879 #: ../src/guestfs-actions.pod:862
5880 msgid ""
5881 "Note that this function cannot correctly handle binary files (specifically, "
5882 "files containing C<\\0> character which is treated as end of string).  For "
5883 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5884 "functions which have a more complex interface."
5885 msgstr ""
5886
5887 # type: textblock
5888 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5889 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5890 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5891 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5892 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5893 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5894 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5895 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880
5896 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037
5897 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912
5898 #: ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113
5899 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789
5900 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841
5901 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945
5902 #: ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010
5903 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582
5904 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5905 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5906 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5907 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5908 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5909 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5910 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5911 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5912 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5913 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5914 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5915 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5916 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5917 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5918 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5919 msgid ""
5920 "Because of the message protocol, there is a transfer limit of somewhere "
5921 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5922 msgstr ""
5923
5924 # type: textblock
5925 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252
5926 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331
5927 #: ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824
5928 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960
5929 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676
5930 #: ../src/guestfs-actions.pod:6690
5931 msgid "(Added in 0.4)"
5932 msgstr ""
5933
5934 # type: =head2
5935 #: ../src/guestfs-actions.pod:875
5936 msgid "guestfs_checksum"
5937 msgstr ""
5938
5939 # type: verbatim
5940 #: ../src/guestfs-actions.pod:877
5941 #, no-wrap
5942 msgid ""
5943 " char *\n"
5944 " guestfs_checksum (guestfs_h *g,\n"
5945 "                   const char *csumtype,\n"
5946 "                   const char *path);\n"
5947 "\n"
5948 msgstr ""
5949
5950 # type: textblock
5951 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5952 msgid ""
5953 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5954 msgstr ""
5955
5956 # type: textblock
5957 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5958 msgid ""
5959 "The type of checksum to compute is given by the C<csumtype> parameter which "
5960 "must have one of the following values:"
5961 msgstr ""
5962
5963 # type: =item
5964 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5965 msgid "C<crc>"
5966 msgstr ""
5967
5968 # type: textblock
5969 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5970 msgid ""
5971 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5972 "C<cksum> command."
5973 msgstr ""
5974
5975 # type: =item
5976 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5977 msgid "C<md5>"
5978 msgstr ""
5979
5980 # type: textblock
5981 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5982 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5983 msgstr ""
5984
5985 # type: =item
5986 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5987 msgid "C<sha1>"
5988 msgstr ""
5989
5990 # type: textblock
5991 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5992 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5993 msgstr ""
5994
5995 # type: =item
5996 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5997 msgid "C<sha224>"
5998 msgstr ""
5999
6000 # type: textblock
6001 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6002 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6003 msgstr ""
6004
6005 # type: =item
6006 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6007 msgid "C<sha256>"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6012 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6013 msgstr ""
6014
6015 # type: =item
6016 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6017 msgid "C<sha384>"
6018 msgstr ""
6019
6020 # type: textblock
6021 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6022 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6023 msgstr ""
6024
6025 # type: =item
6026 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6027 msgid "C<sha512>"
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6032 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6033 msgstr ""
6034
6035 # type: textblock
6036 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6037 msgid "The checksum is returned as a printable string."
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:923
6042 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6043 msgstr ""
6044
6045 # type: textblock
6046 #: ../src/guestfs-actions.pod:925
6047 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6048 msgstr ""
6049
6050 # type: textblock
6051 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6052 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026
6053 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116
6054 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
6055 msgid "(Added in 1.0.2)"
6056 msgstr ""
6057
6058 # type: =head2
6059 #: ../src/guestfs-actions.pod:932
6060 msgid "guestfs_checksum_device"
6061 msgstr ""
6062
6063 # type: verbatim
6064 #: ../src/guestfs-actions.pod:934
6065 #, no-wrap
6066 msgid ""
6067 " char *\n"
6068 " guestfs_checksum_device (guestfs_h *g,\n"
6069 "                          const char *csumtype,\n"
6070 "                          const char *device);\n"
6071 "\n"
6072 msgstr ""
6073
6074 # type: textblock
6075 #: ../src/guestfs-actions.pod:939
6076 msgid ""
6077 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6078 "device named C<device>.  For the types of checksums supported see the "
6079 "C<guestfs_checksum> command."
6080 msgstr ""
6081
6082 # type: textblock
6083 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491
6084 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587
6085 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781
6086 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306
6087 #: ../src/guestfs-actions.pod:6702
6088 msgid "(Added in 1.3.2)"
6089 msgstr ""
6090
6091 # type: =head2
6092 #: ../src/guestfs-actions.pod:948
6093 msgid "guestfs_checksums_out"
6094 msgstr ""
6095
6096 # type: verbatim
6097 #: ../src/guestfs-actions.pod:950
6098 #, no-wrap
6099 msgid ""
6100 " int\n"
6101 " guestfs_checksums_out (guestfs_h *g,\n"
6102 "                        const char *csumtype,\n"
6103 "                        const char *directory,\n"
6104 "                        const char *sumsfile);\n"
6105 "\n"
6106 msgstr ""
6107
6108 # type: textblock
6109 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6110 msgid ""
6111 "This command computes the checksums of all regular files in C<directory> and "
6112 "then emits a list of those checksums to the local output file C<sumsfile>."
6113 msgstr ""
6114
6115 # type: textblock
6116 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6117 msgid ""
6118 "This can be used for verifying the integrity of a virtual machine.  However "
6119 "to be properly secure you should pay attention to the output of the checksum "
6120 "command (it uses the ones from GNU coreutils).  In particular when the "
6121 "filename is not printable, coreutils uses a special backslash syntax.  For "
6122 "more information, see the GNU coreutils info file."
6123 msgstr ""
6124
6125 # type: textblock
6126 #: ../src/guestfs-actions.pod:970
6127 msgid "(Added in 1.3.7)"
6128 msgstr ""
6129
6130 # type: =head2
6131 #: ../src/guestfs-actions.pod:972
6132 msgid "guestfs_chmod"
6133 msgstr ""
6134
6135 # type: verbatim
6136 #: ../src/guestfs-actions.pod:974
6137 #, no-wrap
6138 msgid ""
6139 " int\n"
6140 " guestfs_chmod (guestfs_h *g,\n"
6141 "                int mode,\n"
6142 "                const char *path);\n"
6143 "\n"
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6148 msgid ""
6149 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6150 "supported."
6151 msgstr ""
6152
6153 # type: textblock
6154 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6155 msgid ""
6156 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6157 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6158 "C<700>."
6159 msgstr ""
6160
6161 # type: textblock
6162 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075
6163 #: ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209
6164 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671
6165 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6166 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6167 msgid "The mode actually set is affected by the umask."
6168 msgstr ""
6169
6170 # type: =head2
6171 #: ../src/guestfs-actions.pod:992
6172 msgid "guestfs_chown"
6173 msgstr ""
6174
6175 # type: verbatim
6176 #: ../src/guestfs-actions.pod:994
6177 #, no-wrap
6178 msgid ""
6179 " int\n"
6180 " guestfs_chown (guestfs_h *g,\n"
6181 "                int owner,\n"
6182 "                int group,\n"
6183 "                const char *path);\n"
6184 "\n"
6185 msgstr ""
6186
6187 # type: textblock
6188 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6189 msgid "Change the file owner to C<owner> and group to C<group>."
6190 msgstr ""
6191
6192 # type: textblock
6193 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213
6194 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6195 msgid ""
6196 "Only numeric uid and gid are supported.  If you want to use names, you will "
6197 "need to locate and parse the password file yourself (Augeas support makes "
6198 "this relatively easy)."
6199 msgstr ""
6200
6201 # type: =head2
6202 #: ../src/guestfs-actions.pod:1010
6203 msgid "guestfs_command"
6204 msgstr ""
6205
6206 # type: verbatim
6207 #: ../src/guestfs-actions.pod:1012
6208 #, no-wrap
6209 msgid ""
6210 " char *\n"
6211 " guestfs_command (guestfs_h *g,\n"
6212 "                  char *const *arguments);\n"
6213 "\n"
6214 msgstr ""
6215
6216 # type: textblock
6217 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6218 msgid ""
6219 "This call runs a command from the guest filesystem.  The filesystem must be "
6220 "mounted, and must contain a compatible operating system (ie. something "
6221 "Linux, with the same or compatible processor architecture)."
6222 msgstr ""
6223
6224 # type: textblock
6225 #: ../src/guestfs-actions.pod:1021
6226 msgid ""
6227 "The single parameter is an argv-style list of arguments.  The first element "
6228 "is the name of the program to run.  Subsequent elements are parameters.  The "
6229 "list must be non-empty (ie. must contain a program name).  Note that the "
6230 "command runs directly, and is I<not> invoked via the shell (see "
6231 "C<guestfs_sh>)."
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6236 msgid "The return value is anything printed to I<stdout> by the command."
6237 msgstr ""
6238
6239 # type: textblock
6240 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6241 msgid ""
6242 "If the command returns a non-zero exit status, then this function returns an "
6243 "error message.  The error message string is the content of I<stderr> from "
6244 "the command."
6245 msgstr ""
6246
6247 # type: textblock
6248 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6249 msgid ""
6250 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6251 "bin>.  If you require a program from another location, you should provide "
6252 "the full path in the first parameter."
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6257 msgid ""
6258 "Shared libraries and data files required by the program must be available on "
6259 "filesystems which are mounted in the correct places.  It is the caller's "
6260 "responsibility to ensure all filesystems that are needed are mounted at the "
6261 "right locations."
6262 msgstr ""
6263
6264 # type: textblock
6265 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6266 #: ../src/guestfs-actions.pod:1535
6267 msgid "(Added in 0.9.1)"
6268 msgstr ""
6269
6270 # type: =head2
6271 #: ../src/guestfs-actions.pod:1054
6272 msgid "guestfs_command_lines"
6273 msgstr ""
6274
6275 # type: verbatim
6276 #: ../src/guestfs-actions.pod:1056
6277 #, no-wrap
6278 msgid ""
6279 " char **\n"
6280 " guestfs_command_lines (guestfs_h *g,\n"
6281 "                        char *const *arguments);\n"
6282 "\n"
6283 msgstr ""
6284
6285 # type: textblock
6286 #: ../src/guestfs-actions.pod:1060
6287 msgid ""
6288 "This is the same as C<guestfs_command>, but splits the result into a list of "
6289 "lines."
6290 msgstr ""
6291
6292 # type: textblock
6293 #: ../src/guestfs-actions.pod:1063
6294 msgid "See also: C<guestfs_sh_lines>"
6295 msgstr ""
6296
6297 # type: =head2
6298 #: ../src/guestfs-actions.pod:1074
6299 msgid "guestfs_config"
6300 msgstr ""
6301
6302 # type: verbatim
6303 #: ../src/guestfs-actions.pod:1076
6304 #, no-wrap
6305 msgid ""
6306 " int\n"
6307 " guestfs_config (guestfs_h *g,\n"
6308 "                 const char *qemuparam,\n"
6309 "                 const char *qemuvalue);\n"
6310 "\n"
6311 msgstr ""
6312
6313 # type: textblock
6314 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6315 msgid ""
6316 "This can be used to add arbitrary qemu command line parameters of the form "
6317 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6318 "setting some parameters which would interfere with parameters that we use."
6319 msgstr ""
6320
6321 # type: textblock
6322 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6323 msgid "The first character of C<param> string must be a C<-> (dash)."
6324 msgstr ""
6325
6326 # type: textblock
6327 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6328 msgid "C<value> can be NULL."
6329 msgstr ""
6330
6331 # type: =head2
6332 #: ../src/guestfs-actions.pod:1094
6333 msgid "guestfs_copy_size"
6334 msgstr ""
6335
6336 # type: verbatim
6337 #: ../src/guestfs-actions.pod:1096
6338 #, no-wrap
6339 msgid ""
6340 " int\n"
6341 " guestfs_copy_size (guestfs_h *g,\n"
6342 "                    const char *src,\n"
6343 "                    const char *dest,\n"
6344 "                    int64_t size);\n"
6345 "\n"
6346 msgstr ""
6347
6348 # type: textblock
6349 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6350 msgid ""
6351 "This command copies exactly C<size> bytes from one source device or file "
6352 "C<src> to another destination device or file C<dest>."
6353 msgstr ""
6354
6355 # type: textblock
6356 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6357 msgid ""
6358 "Note this will fail if the source is too short or if the destination is not "
6359 "large enough."
6360 msgstr ""
6361
6362 # type: textblock
6363 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6364 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6365 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881
6366 #: ../src/guestfs-actions.pod:6900
6367 msgid ""
6368 "This long-running command can generate progress notification messages so "
6369 "that the caller can display a progress bar or indicator.  To receive these "
6370 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6371 "guestfs_set_progress_callback>."
6372 msgstr ""
6373
6374 # type: textblock
6375 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851
6376 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609
6377 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6378 msgid "(Added in 1.0.87)"
6379 msgstr ""
6380
6381 # type: =head2
6382 #: ../src/guestfs-actions.pod:1117
6383 msgid "guestfs_cp"
6384 msgstr ""
6385
6386 # type: verbatim
6387 #: ../src/guestfs-actions.pod:1119
6388 #, no-wrap
6389 msgid ""
6390 " int\n"
6391 " guestfs_cp (guestfs_h *g,\n"
6392 "             const char *src,\n"
6393 "             const char *dest);\n"
6394 "\n"
6395 msgstr ""
6396
6397 # type: textblock
6398 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6399 msgid ""
6400 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6401 "destination filename or destination directory."
6402 msgstr ""
6403
6404 # type: textblock
6405 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6406 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6407 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454
6408 #: ../src/guestfs-actions.pod:4831
6409 msgid "(Added in 1.0.18)"
6410 msgstr ""
6411
6412 # type: =head2
6413 #: ../src/guestfs-actions.pod:1131
6414 msgid "guestfs_cp_a"
6415 msgstr ""
6416
6417 # type: verbatim
6418 #: ../src/guestfs-actions.pod:1133
6419 #, no-wrap
6420 msgid ""
6421 " int\n"
6422 " guestfs_cp_a (guestfs_h *g,\n"
6423 "               const char *src,\n"
6424 "               const char *dest);\n"
6425 "\n"
6426 msgstr ""
6427
6428 # type: textblock
6429 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6430 msgid ""
6431 "This copies a file or directory from C<src> to C<dest> recursively using the "
6432 "C<cp -a> command."
6433 msgstr ""
6434
6435 # type: =head2
6436 #: ../src/guestfs-actions.pod:1145
6437 msgid "guestfs_dd"
6438 msgstr ""
6439
6440 # type: verbatim
6441 #: ../src/guestfs-actions.pod:1147
6442 #, no-wrap
6443 msgid ""
6444 " int\n"
6445 " guestfs_dd (guestfs_h *g,\n"
6446 "             const char *src,\n"
6447 "             const char *dest);\n"
6448 "\n"
6449 msgstr ""
6450
6451 # type: textblock
6452 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6453 msgid ""
6454 "This command copies from one source device or file C<src> to another "
6455 "destination device or file C<dest>.  Normally you would use this to copy to "
6456 "or from a device or partition, for example to duplicate a filesystem."
6457 msgstr ""
6458
6459 # type: textblock
6460 #: ../src/guestfs-actions.pod:1157
6461 msgid ""
6462 "If the destination is a device, it must be as large or larger than the "
6463 "source file or device, otherwise the copy will fail.  This command cannot do "
6464 "partial copies (see C<guestfs_copy_size>)."
6465 msgstr ""
6466
6467 # type: =head2
6468 #: ../src/guestfs-actions.pod:1165
6469 msgid "guestfs_df"
6470 msgstr ""
6471
6472 # type: verbatim
6473 #: ../src/guestfs-actions.pod:1167
6474 #, no-wrap
6475 msgid ""
6476 " char *\n"
6477 " guestfs_df (guestfs_h *g);\n"
6478 "\n"
6479 msgstr ""
6480
6481 # type: textblock
6482 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6483 msgid "This command runs the C<df> command to report disk space used."
6484 msgstr ""
6485
6486 # type: textblock
6487 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6488 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6489 msgid ""
6490 "This command is mostly useful for interactive sessions.  It is I<not> "
6491 "intended that you try to parse the output string.  Use C<statvfs> from "
6492 "programs."
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6497 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6498 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6499 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354
6500 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140
6501 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761
6502 #: ../src/guestfs-actions.pod:6774
6503 msgid "(Added in 1.0.54)"
6504 msgstr ""
6505
6506 # type: =head2
6507 #: ../src/guestfs-actions.pod:1181
6508 msgid "guestfs_df_h"
6509 msgstr ""
6510
6511 # type: verbatim
6512 #: ../src/guestfs-actions.pod:1183
6513 #, no-wrap
6514 msgid ""
6515 " char *\n"
6516 " guestfs_df_h (guestfs_h *g);\n"
6517 "\n"
6518 msgstr ""
6519
6520 # type: textblock
6521 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6522 msgid ""
6523 "This command runs the C<df -h> command to report disk space used in human-"
6524 "readable format."
6525 msgstr ""
6526
6527 # type: =head2
6528 #: ../src/guestfs-actions.pod:1198
6529 msgid "guestfs_dmesg"
6530 msgstr ""
6531
6532 # type: verbatim
6533 #: ../src/guestfs-actions.pod:1200
6534 #, no-wrap
6535 msgid ""
6536 " char *\n"
6537 " guestfs_dmesg (guestfs_h *g);\n"
6538 "\n"
6539 msgstr ""
6540
6541 # type: textblock
6542 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6543 msgid ""
6544 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6545 "This is sometimes useful for extended debugging of problems."
6546 msgstr ""
6547
6548 # type: textblock
6549 #: ../src/guestfs-actions.pod:1207
6550 msgid ""
6551 "Another way to get the same information is to enable verbose messages with "
6552 "C<guestfs_set_verbose> or by setting the environment variable "
6553 "C<LIBGUESTFS_DEBUG=1> before running the program."
6554 msgstr ""
6555
6556 # type: =head2
6557 #: ../src/guestfs-actions.pod:1217
6558 msgid "guestfs_download"
6559 msgstr ""
6560
6561 # type: verbatim
6562 #: ../src/guestfs-actions.pod:1219
6563 #, no-wrap
6564 msgid ""
6565 " int\n"
6566 " guestfs_download (guestfs_h *g,\n"
6567 "                   const char *remotefilename,\n"
6568 "                   const char *filename);\n"
6569 "\n"
6570 msgstr ""
6571
6572 # type: textblock
6573 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6574 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6575 msgid ""
6576 "Download file C<remotefilename> and save it as C<filename> on the local "
6577 "machine."
6578 msgstr ""
6579
6580 # type: textblock
6581 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372
6582 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6583 msgid "C<filename> can also be a named pipe."
6584 msgstr ""
6585
6586 # type: textblock
6587 #: ../src/guestfs-actions.pod:1229
6588 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6589 msgstr ""
6590
6591 # type: =head2
6592 #: ../src/guestfs-actions.pod:1240
6593 msgid "guestfs_download_offset"
6594 msgstr ""
6595
6596 # type: verbatim
6597 #: ../src/guestfs-actions.pod:1242
6598 #, no-wrap
6599 msgid ""
6600 " int\n"
6601 " guestfs_download_offset (guestfs_h *g,\n"
6602 "                          const char *remotefilename,\n"
6603 "                          const char *filename,\n"
6604 "                          int64_t offset,\n"
6605 "                          int64_t size);\n"
6606 "\n"
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6611 msgid ""
6612 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6613 "region must be within the file or device)."
6614 msgstr ""
6615
6616 # type: textblock
6617 #: ../src/guestfs-actions.pod:1255
6618 msgid ""
6619 "Note that there is no limit on the amount of data that can be downloaded "
6620 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6621 "full amount unless an error occurs."
6622 msgstr ""
6623
6624 # type: textblock
6625 #: ../src/guestfs-actions.pod:1260
6626 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6627 msgstr ""
6628
6629 # type: textblock
6630 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6631 msgid "(Added in 1.5.17)"
6632 msgstr ""
6633
6634 # type: =head2
6635 #: ../src/guestfs-actions.pod:1271
6636 msgid "guestfs_drop_caches"
6637 msgstr ""
6638
6639 # type: verbatim
6640 #: ../src/guestfs-actions.pod:1273
6641 #, no-wrap
6642 msgid ""
6643 " int\n"
6644 " guestfs_drop_caches (guestfs_h *g,\n"
6645 "                      int whattodrop);\n"
6646 "\n"
6647 msgstr ""
6648
6649 # type: textblock
6650 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6651 msgid ""
6652 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6653 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6654 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6655 msgstr ""
6656
6657 # type: textblock
6658 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6659 msgid "Setting C<whattodrop> to 3 should drop everything."
6660 msgstr ""
6661
6662 # type: textblock
6663 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6664 msgid ""
6665 "This automatically calls L<sync(2)> before the operation, so that the "
6666 "maximum guest memory is freed."
6667 msgstr ""
6668
6669 # type: =head2
6670 #: ../src/guestfs-actions.pod:1291
6671 msgid "guestfs_du"
6672 msgstr ""
6673
6674 # type: verbatim
6675 #: ../src/guestfs-actions.pod:1293
6676 #, no-wrap
6677 msgid ""
6678 " int64_t\n"
6679 " guestfs_du (guestfs_h *g,\n"
6680 "             const char *path);\n"
6681 "\n"
6682 msgstr ""
6683
6684 # type: textblock
6685 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6686 msgid ""
6687 "This command runs the C<du -s> command to estimate file space usage for "
6688 "C<path>."
6689 msgstr ""
6690
6691 # type: textblock
6692 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6693 msgid ""
6694 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6695 "estimate includes the contents of the directory and all subdirectories "
6696 "(recursively)."
6697 msgstr ""
6698
6699 # type: textblock
6700 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6701 msgid ""
6702 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6703 msgstr ""
6704
6705 # type: =head2
6706 #: ../src/guestfs-actions.pod:1311
6707 msgid "guestfs_e2fsck_f"
6708 msgstr ""
6709
6710 # type: verbatim
6711 #: ../src/guestfs-actions.pod:1313
6712 #, no-wrap
6713 msgid ""
6714 " int\n"
6715 " guestfs_e2fsck_f (guestfs_h *g,\n"
6716 "                   const char *device);\n"
6717 "\n"
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6722 msgid ""
6723 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6724 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6725 "clean (C<-f>)."
6726 msgstr ""
6727
6728 # type: textblock
6729 #: ../src/guestfs-actions.pod:1321
6730 msgid ""
6731 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6732 "Normally you should use C<guestfs_fsck>."
6733 msgstr ""
6734
6735 # type: textblock
6736 #: ../src/guestfs-actions.pod:1326
6737 msgid "(Added in 1.0.29)"
6738 msgstr ""
6739
6740 # type: =head2
6741 #: ../src/guestfs-actions.pod:1328
6742 msgid "guestfs_echo_daemon"
6743 msgstr ""
6744
6745 # type: verbatim
6746 #: ../src/guestfs-actions.pod:1330
6747 #, no-wrap
6748 msgid ""
6749 " char *\n"
6750 " guestfs_echo_daemon (guestfs_h *g,\n"
6751 "                      char *const *words);\n"
6752 "\n"
6753 msgstr ""
6754
6755 # type: textblock
6756 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6757 msgid ""
6758 "This command concatenates the list of C<words> passed with single spaces "
6759 "between them and returns the resulting string."
6760 msgstr ""
6761
6762 # type: textblock
6763 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6764 msgid "You can use this command to test the connection through to the daemon."
6765 msgstr ""
6766
6767 # type: textblock
6768 #: ../src/guestfs-actions.pod:1339
6769 msgid "See also C<guestfs_ping_daemon>."
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6774 #: ../src/guestfs-actions.pod:5620
6775 msgid "(Added in 1.0.69)"
6776 msgstr ""
6777
6778 # type: =head2
6779 #: ../src/guestfs-actions.pod:1346
6780 msgid "guestfs_egrep"
6781 msgstr ""
6782
6783 # type: verbatim
6784 #: ../src/guestfs-actions.pod:1348
6785 #, no-wrap
6786 msgid ""
6787 " char **\n"
6788 " guestfs_egrep (guestfs_h *g,\n"
6789 "                const char *regex,\n"
6790 "                const char *path);\n"
6791 "\n"
6792 msgstr ""
6793
6794 # type: textblock
6795 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6796 msgid ""
6797 "This calls the external C<egrep> program and returns the matching lines."
6798 msgstr ""
6799
6800 # type: textblock
6801 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6802 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6803 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6804 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6805 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6806 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6807 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344
6808 #: ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371
6809 #: ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289
6810 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214
6811 #: ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996
6812 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022
6813 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057
6814 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083
6815 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863
6816 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967
6817 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6818 msgid "(Added in 1.0.66)"
6819 msgstr ""
6820
6821 # type: =head2
6822 #: ../src/guestfs-actions.pod:1365
6823 msgid "guestfs_egrepi"
6824 msgstr ""
6825
6826 # type: verbatim
6827 #: ../src/guestfs-actions.pod:1367
6828 #, no-wrap
6829 msgid ""
6830 " char **\n"
6831 " guestfs_egrepi (guestfs_h *g,\n"
6832 "                 const char *regex,\n"
6833 "                 const char *path);\n"
6834 "\n"
6835 msgstr ""
6836
6837 # type: textblock
6838 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6839 msgid ""
6840 "This calls the external C<egrep -i> program and returns the matching lines."
6841 msgstr ""
6842
6843 # type: =head2
6844 #: ../src/guestfs-actions.pod:1384
6845 msgid "guestfs_equal"
6846 msgstr ""
6847
6848 # type: verbatim
6849 #: ../src/guestfs-actions.pod:1386
6850 #, no-wrap
6851 msgid ""
6852 " int\n"
6853 " guestfs_equal (guestfs_h *g,\n"
6854 "                const char *file1,\n"
6855 "                const char *file2);\n"
6856 "\n"
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6861 msgid ""
6862 "This compares the two files C<file1> and C<file2> and returns true if their "
6863 "content is exactly equal, or false otherwise."
6864 msgstr ""
6865
6866 # type: textblock
6867 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6868 msgid "The external L<cmp(1)> program is used for the comparison."
6869 msgstr ""
6870
6871 # type: =head2
6872 #: ../src/guestfs-actions.pod:1400
6873 msgid "guestfs_exists"
6874 msgstr ""
6875
6876 # type: verbatim
6877 #: ../src/guestfs-actions.pod:1402
6878 #, no-wrap
6879 msgid ""
6880 " int\n"
6881 " guestfs_exists (guestfs_h *g,\n"
6882 "                 const char *path);\n"
6883 "\n"
6884 msgstr ""
6885
6886 # type: textblock
6887 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6888 msgid ""
6889 "This returns C<true> if and only if there is a file, directory (or anything) "
6890 "with the given C<path> name."
6891 msgstr ""
6892
6893 # type: textblock
6894 #: ../src/guestfs-actions.pod:1409
6895 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6896 msgstr ""
6897
6898 # type: =head2
6899 #: ../src/guestfs-actions.pod:1415
6900 msgid "guestfs_fallocate"
6901 msgstr ""
6902
6903 # type: verbatim
6904 #: ../src/guestfs-actions.pod:1417
6905 #, no-wrap
6906 msgid ""
6907 " int\n"
6908 " guestfs_fallocate (guestfs_h *g,\n"
6909 "                    const char *path,\n"
6910 "                    int len);\n"
6911 "\n"
6912 msgstr ""
6913
6914 # type: textblock
6915 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6916 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6917 msgid ""
6918 "This command preallocates a file (containing zero bytes) named C<path> of "
6919 "size C<len> bytes.  If the file exists already, it is overwritten."
6920 msgstr ""
6921
6922 # type: textblock
6923 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6924 msgid ""
6925 "Do not confuse this with the guestfish-specific C<alloc> command which "
6926 "allocates a file in the host and attaches it as a device."
6927 msgstr ""
6928
6929 # type: textblock
6930 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6931 msgid ""
6932 "This function is deprecated.  In new code, use the C<fallocate64> call "
6933 "instead."
6934 msgstr ""
6935
6936 # type: =head2
6937 #: ../src/guestfs-actions.pod:1441
6938 msgid "guestfs_fallocate64"
6939 msgstr ""
6940
6941 # type: verbatim
6942 #: ../src/guestfs-actions.pod:1443
6943 #, no-wrap
6944 msgid ""
6945 " int\n"
6946 " guestfs_fallocate64 (guestfs_h *g,\n"
6947 "                      const char *path,\n"
6948 "                      int64_t len);\n"
6949 "\n"
6950 msgstr ""
6951
6952 # type: textblock
6953 #: ../src/guestfs-actions.pod:1452
6954 msgid ""
6955 "Note that this call allocates disk blocks for the file.  To create a sparse "
6956 "file use C<guestfs_truncate_size> instead."
6957 msgstr ""
6958
6959 # type: textblock
6960 #: ../src/guestfs-actions.pod:1455
6961 msgid ""
6962 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6963 "oversight it only allowed 30 bit lengths to be specified, effectively "
6964 "limiting the maximum size of files created through that call to 1GB."
6965 msgstr ""
6966
6967 # type: textblock
6968 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6969 msgid ""
6970 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6971 "commands which create a file in the host and attach it as a device."
6972 msgstr ""
6973
6974 # type: textblock
6975 #: ../src/guestfs-actions.pod:1466
6976 msgid "(Added in 1.3.17)"
6977 msgstr ""
6978
6979 # type: =head2
6980 #: ../src/guestfs-actions.pod:1468
6981 msgid "guestfs_fgrep"
6982 msgstr ""
6983
6984 # type: verbatim
6985 #: ../src/guestfs-actions.pod:1470
6986 #, no-wrap
6987 msgid ""
6988 " char **\n"
6989 " guestfs_fgrep (guestfs_h *g,\n"
6990 "                const char *pattern,\n"
6991 "                const char *path);\n"
6992 "\n"
6993 msgstr ""
6994
6995 # type: textblock
6996 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6997 msgid ""
6998 "This calls the external C<fgrep> program and returns the matching lines."
6999 msgstr ""
7000
7001 # type: =head2
7002 #: ../src/guestfs-actions.pod:1487
7003 msgid "guestfs_fgrepi"
7004 msgstr ""
7005
7006 # type: verbatim
7007 #: ../src/guestfs-actions.pod:1489
7008 #, no-wrap
7009 msgid ""
7010 " char **\n"
7011 " guestfs_fgrepi (guestfs_h *g,\n"
7012 "                 const char *pattern,\n"
7013 "                 const char *path);\n"
7014 "\n"
7015 msgstr ""
7016
7017 # type: textblock
7018 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7019 msgid ""
7020 "This calls the external C<fgrep -i> program and returns the matching lines."
7021 msgstr ""
7022
7023 # type: =head2
7024 #: ../src/guestfs-actions.pod:1506
7025 msgid "guestfs_file"
7026 msgstr ""
7027
7028 # type: verbatim
7029 #: ../src/guestfs-actions.pod:1508
7030 #, no-wrap
7031 msgid ""
7032 " char *\n"
7033 " guestfs_file (guestfs_h *g,\n"
7034 "               const char *path);\n"
7035 "\n"
7036 msgstr ""
7037
7038 # type: textblock
7039 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7040 msgid ""
7041 "This call uses the standard L<file(1)> command to determine the type or "
7042 "contents of the file."
7043 msgstr ""
7044
7045 # type: textblock
7046 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7047 msgid ""
7048 "This call will also transparently look inside various types of compressed "
7049 "file."
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7054 msgid ""
7055 "The exact command which runs is C<file -zb path>.  Note in particular that "
7056 "the filename is not prepended to the output (the C<-b> option)."
7057 msgstr ""
7058
7059 # type: textblock
7060 #: ../src/guestfs-actions.pod:1522
7061 msgid ""
7062 "This command can also be used on C</dev/> devices (and partitions, LV "
7063 "names).  You can for example use this to determine if a device contains a "
7064 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7065 msgstr ""
7066
7067 # type: textblock
7068 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7069 msgid ""
7070 "If the C<path> does not begin with C</dev/> then this command only works for "
7071 "the content of regular files.  For other file types (directory, symbolic "
7072 "link etc) it will just return the string C<directory> etc."
7073 msgstr ""
7074
7075 # type: =head2
7076 #: ../src/guestfs-actions.pod:1537
7077 msgid "guestfs_file_architecture"
7078 msgstr ""
7079
7080 # type: verbatim
7081 #: ../src/guestfs-actions.pod:1539
7082 #, no-wrap
7083 msgid ""
7084 " char *\n"
7085 " guestfs_file_architecture (guestfs_h *g,\n"
7086 "                            const char *filename);\n"
7087 "\n"
7088 msgstr ""
7089
7090 # type: textblock
7091 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7092 msgid ""
7093 "This detects the architecture of the binary C<filename>, and returns it if "
7094 "known."
7095 msgstr ""
7096
7097 # type: textblock
7098 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7099 msgid "Currently defined architectures are:"
7100 msgstr ""
7101
7102 # type: =item
7103 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7104 msgid "\"i386\""
7105 msgstr ""
7106
7107 # type: textblock
7108 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7109 msgid ""
7110 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7111 "irrespective of the precise processor requirements of the binary."
7112 msgstr ""
7113
7114 # type: =item
7115 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7116 msgid "\"x86_64\""
7117 msgstr ""
7118
7119 # type: textblock
7120 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7121 msgid "64 bit x86-64."
7122 msgstr ""
7123
7124 # type: =item
7125 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7126 msgid "\"sparc\""
7127 msgstr ""
7128
7129 # type: textblock
7130 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7131 msgid "32 bit SPARC."
7132 msgstr ""
7133
7134 # type: =item
7135 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7136 msgid "\"sparc64\""
7137 msgstr ""
7138
7139 # type: textblock
7140 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7141 msgid "64 bit SPARC V9 and above."
7142 msgstr ""
7143
7144 # type: =item
7145 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7146 msgid "\"ia64\""
7147 msgstr ""
7148
7149 # type: textblock
7150 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7151 msgid "Intel Itanium."
7152 msgstr ""
7153
7154 # type: =item
7155 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7156 msgid "\"ppc\""
7157 msgstr ""
7158
7159 # type: textblock
7160 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7161 msgid "32 bit Power PC."
7162 msgstr ""
7163
7164 # type: =item
7165 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7166 msgid "\"ppc64\""
7167 msgstr ""
7168
7169 # type: textblock
7170 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7171 msgid "64 bit Power PC."
7172 msgstr ""
7173
7174 # type: textblock
7175 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7176 msgid "Libguestfs may return other architecture strings in future."
7177 msgstr ""
7178
7179 # type: textblock
7180 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7181 msgid "The function works on at least the following types of files:"
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7186 msgid "many types of Un*x and Linux binary"
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7191 msgid "many types of Un*x and Linux shared library"
7192 msgstr ""
7193
7194 # type: textblock
7195 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7196 msgid "Windows Win32 and Win64 binaries"
7197 msgstr ""
7198
7199 # type: textblock
7200 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7201 msgid "Windows Win32 and Win64 DLLs"
7202 msgstr ""
7203
7204 # type: textblock
7205 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7206 msgid "Win32 binaries and DLLs return C<i386>."
7207 msgstr ""
7208
7209 # type: textblock
7210 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7211 msgid "Win64 binaries and DLLs return C<x86_64>."
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7216 msgid "Linux kernel modules"
7217 msgstr ""
7218
7219 # type: textblock
7220 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7221 msgid "Linux new-style initrd images"
7222 msgstr ""
7223
7224 # type: textblock
7225 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7226 msgid "some non-x86 Linux vmlinuz kernels"
7227 msgstr ""
7228
7229 # type: textblock
7230 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7231 msgid "What it can't do currently:"
7232 msgstr ""
7233
7234 # type: textblock
7235 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7236 msgid "static libraries (libfoo.a)"
7237 msgstr ""
7238
7239 # type: textblock
7240 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7241 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7242 msgstr ""
7243
7244 # type: textblock
7245 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7246 msgid "x86 Linux vmlinuz kernels"
7247 msgstr ""
7248
7249 # type: textblock
7250 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7251 msgid ""
7252 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7253 "compressed code, and are horribly hard to unpack.  If you want to find the "
7254 "architecture of a kernel, use the architecture of the associated initrd or "
7255 "kernel module(s) instead."
7256 msgstr ""
7257
7258 # type: textblock
7259 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7260 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7261 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
7262 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653
7263 #: ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766
7264 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997
7265 #: ../src/guestfs-actions.pod:3129
7266 msgid "(Added in 1.5.3)"
7267 msgstr ""
7268
7269 # type: =head2
7270 #: ../src/guestfs-actions.pod:1649
7271 msgid "guestfs_filesize"
7272 msgstr ""
7273
7274 # type: verbatim
7275 #: ../src/guestfs-actions.pod:1651
7276 #, no-wrap
7277 msgid ""
7278 " int64_t\n"
7279 " guestfs_filesize (guestfs_h *g,\n"
7280 "                   const char *file);\n"
7281 "\n"
7282 msgstr ""
7283
7284 # type: textblock
7285 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7286 msgid "This command returns the size of C<file> in bytes."
7287 msgstr ""
7288
7289 # type: textblock
7290 #: ../src/guestfs-actions.pod:1657
7291 msgid ""
7292 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7293 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7294 "devices, use C<guestfs_blockdev_getsize64>."
7295 msgstr ""
7296
7297 # type: textblock
7298 #: ../src/guestfs-actions.pod:1663
7299 msgid "(Added in 1.0.82)"
7300 msgstr ""
7301
7302 # type: =head2
7303 #: ../src/guestfs-actions.pod:1665
7304 msgid "guestfs_fill"
7305 msgstr ""
7306
7307 # type: verbatim
7308 #: ../src/guestfs-actions.pod:1667
7309 #, no-wrap
7310 msgid ""
7311 " int\n"
7312 " guestfs_fill (guestfs_h *g,\n"
7313 "               int c,\n"
7314 "               int len,\n"
7315 "               const char *path);\n"
7316 "\n"
7317 msgstr ""
7318
7319 # type: textblock
7320 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7321 msgid ""
7322 "This command creates a new file called C<path>.  The initial content of the "
7323 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7324 "[0..255]>."
7325 msgstr ""
7326
7327 # type: textblock
7328 #: ../src/guestfs-actions.pod:1677
7329 msgid ""
7330 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7331 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7332 "bytes use C<guestfs_fill_pattern>."
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:1689
7337 msgid "(Added in 1.0.79)"
7338 msgstr ""
7339
7340 # type: =head2
7341 #: ../src/guestfs-actions.pod:1691
7342 msgid "guestfs_fill_pattern"
7343 msgstr ""
7344
7345 # type: verbatim
7346 #: ../src/guestfs-actions.pod:1693
7347 #, no-wrap
7348 msgid ""
7349 " int\n"
7350 " guestfs_fill_pattern (guestfs_h *g,\n"
7351 "                       const char *pattern,\n"
7352 "                       int len,\n"
7353 "                       const char *path);\n"
7354 "\n"
7355 msgstr ""
7356
7357 # type: textblock
7358 #: ../src/guestfs-actions.pod:1699
7359 msgid ""
7360 "This function is like C<guestfs_fill> except that it creates a new file of "
7361 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7362 "pattern is truncated if necessary to ensure the length of the file is "
7363 "exactly C<len> bytes."
7364 msgstr ""
7365
7366 # type: textblock
7367 #: ../src/guestfs-actions.pod:1711
7368 msgid "(Added in 1.3.12)"
7369 msgstr ""
7370
7371 # type: =head2
7372 #: ../src/guestfs-actions.pod:1713
7373 msgid "guestfs_find"
7374 msgstr ""
7375
7376 # type: verbatim
7377 #: ../src/guestfs-actions.pod:1715
7378 #, no-wrap
7379 msgid ""
7380 " char **\n"
7381 " guestfs_find (guestfs_h *g,\n"
7382 "               const char *directory);\n"
7383 "\n"
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7388 msgid ""
7389 "This command lists out all files and directories, recursively, starting at "
7390 "C<directory>.  It is essentially equivalent to running the shell command "
7391 "C<find directory -print> but some post-processing happens on the output, "
7392 "described below."
7393 msgstr ""
7394
7395 # type: textblock
7396 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7397 msgid ""
7398 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7399 "structure was:"
7400 msgstr ""
7401
7402 # type: verbatim
7403 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7404 #, no-wrap
7405 msgid ""
7406 " /tmp/a\n"
7407 " /tmp/b\n"
7408 " /tmp/c/d\n"
7409 "\n"
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:1731
7414 msgid ""
7415 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7416 msgstr ""
7417
7418 # type: verbatim
7419 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7420 #, no-wrap
7421 msgid ""
7422 " a\n"
7423 " b\n"
7424 " c\n"
7425 " c/d\n"
7426 "\n"
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7431 msgid "If C<directory> is not a directory, then this command returns an error."
7432 msgstr ""
7433
7434 # type: textblock
7435 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7436 msgid "The returned list is sorted."
7437 msgstr ""
7438
7439 # type: textblock
7440 #: ../src/guestfs-actions.pod:1744
7441 msgid "See also C<guestfs_find0>."
7442 msgstr ""
7443
7444 # type: textblock
7445 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788
7446 #: ../src/guestfs-actions.pod:5249
7447 msgid "(Added in 1.0.27)"
7448 msgstr ""
7449
7450 # type: =head2
7451 #: ../src/guestfs-actions.pod:1755
7452 msgid "guestfs_find0"
7453 msgstr ""
7454
7455 # type: verbatim
7456 #: ../src/guestfs-actions.pod:1757
7457 #, no-wrap
7458 msgid ""
7459 " int\n"
7460 " guestfs_find0 (guestfs_h *g,\n"
7461 "                const char *directory,\n"
7462 "                const char *files);\n"
7463 "\n"
7464 msgstr ""
7465
7466 # type: textblock
7467 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7468 msgid ""
7469 "This command lists out all files and directories, recursively, starting at "
7470 "C<directory>, placing the resulting list in the external file called "
7471 "C<files>."
7472 msgstr ""
7473
7474 # type: textblock
7475 #: ../src/guestfs-actions.pod:1766
7476 msgid ""
7477 "This command works the same way as C<guestfs_find> with the following "
7478 "exceptions:"
7479 msgstr ""
7480
7481 # type: textblock
7482 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7483 msgid "The resulting list is written to an external file."
7484 msgstr ""
7485
7486 # type: textblock
7487 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7488 msgid ""
7489 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7490 "L<find(1)> option I<-print0>."
7491 msgstr ""
7492
7493 # type: textblock
7494 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7495 msgid "This command is not limited in the number of names that it can return."
7496 msgstr ""
7497
7498 # type: textblock
7499 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7500 msgid "The result list is not sorted."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:1793
7505 msgid "(Added in 1.0.74)"
7506 msgstr ""
7507
7508 # type: =head2
7509 #: ../src/guestfs-actions.pod:1795
7510 msgid "guestfs_findfs_label"
7511 msgstr ""
7512
7513 # type: verbatim
7514 #: ../src/guestfs-actions.pod:1797
7515 #, no-wrap
7516 msgid ""
7517 " char *\n"
7518 " guestfs_findfs_label (guestfs_h *g,\n"
7519 "                       const char *label);\n"
7520 "\n"
7521 msgstr ""
7522
7523 # type: textblock
7524 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7525 msgid ""
7526 "This command searches the filesystems and returns the one which has the "
7527 "given label.  An error is returned if no such filesystem can be found."
7528 msgstr ""
7529
7530 # type: textblock
7531 #: ../src/guestfs-actions.pod:1805
7532 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7533 msgstr ""
7534
7535 # type: =head2
7536 #: ../src/guestfs-actions.pod:1812
7537 msgid "guestfs_findfs_uuid"
7538 msgstr ""
7539
7540 # type: verbatim
7541 #: ../src/guestfs-actions.pod:1814
7542 #, no-wrap
7543 msgid ""
7544 " char *\n"
7545 " guestfs_findfs_uuid (guestfs_h *g,\n"
7546 "                      const char *uuid);\n"
7547 "\n"
7548 msgstr ""
7549
7550 # type: textblock
7551 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7552 msgid ""
7553 "This command searches the filesystems and returns the one which has the "
7554 "given UUID.  An error is returned if no such filesystem can be found."
7555 msgstr ""
7556
7557 # type: textblock
7558 #: ../src/guestfs-actions.pod:1822
7559 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7560 msgstr ""
7561
7562 # type: =head2
7563 #: ../src/guestfs-actions.pod:1829
7564 msgid "guestfs_fsck"
7565 msgstr ""
7566
7567 # type: verbatim
7568 #: ../src/guestfs-actions.pod:1831
7569 #, no-wrap
7570 msgid ""
7571 " int\n"
7572 " guestfs_fsck (guestfs_h *g,\n"
7573 "               const char *fstype,\n"
7574 "               const char *device);\n"
7575 "\n"
7576 msgstr ""
7577
7578 # type: textblock
7579 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7580 msgid ""
7581 "This runs the filesystem checker (fsck) on C<device> which should have "
7582 "filesystem type C<fstype>."
7583 msgstr ""
7584
7585 # type: textblock
7586 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7587 msgid ""
7588 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7589 "codes from C<fsck>."
7590 msgstr ""
7591
7592 # type: textblock
7593 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7594 msgid "Multiple status codes can be summed together."
7595 msgstr ""
7596
7597 # type: textblock
7598 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7599 msgid ""
7600 "A non-zero return code can mean \"success\", for example if errors have been "
7601 "corrected on the filesystem."
7602 msgstr ""
7603
7604 # type: textblock
7605 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7606 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7607 msgstr ""
7608
7609 # type: textblock
7610 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7611 msgid ""
7612 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7613 msgstr ""
7614
7615 # type: textblock
7616 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7617 msgid "(Added in 1.0.16)"
7618 msgstr ""
7619
7620 # type: =head2
7621 #: ../src/guestfs-actions.pod:1868
7622 msgid "guestfs_get_append"
7623 msgstr ""
7624
7625 # type: verbatim
7626 #: ../src/guestfs-actions.pod:1870
7627 #, no-wrap
7628 msgid ""
7629 " const char *\n"
7630 " guestfs_get_append (guestfs_h *g);\n"
7631 "\n"
7632 msgstr ""
7633
7634 # type: textblock
7635 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7636 msgid ""
7637 "Return the additional kernel options which are added to the guest kernel "
7638 "command line."
7639 msgstr ""
7640
7641 # type: textblock
7642 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7643 msgid "If C<NULL> then no options are added."
7644 msgstr ""
7645
7646 # type: textblock
7647 #: ../src/guestfs-actions.pod:1878
7648 msgid ""
7649 "This function returns a string which may be NULL.  There is no way to return "
7650 "an error from this function.  The string is owned by the guest handle and "
7651 "must I<not> be freed."
7652 msgstr ""
7653
7654 # type: textblock
7655 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927
7656 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758
7657 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793
7658 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557
7659 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7660 msgid "(Added in 1.0.26)"
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:1884
7665 msgid "guestfs_get_autosync"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:1886
7670 #, no-wrap
7671 msgid ""
7672 " int\n"
7673 " guestfs_get_autosync (guestfs_h *g);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7679 msgid "Get the autosync flag."
7680 msgstr ""
7681
7682 # type: =head2
7683 #: ../src/guestfs-actions.pod:1895
7684 msgid "guestfs_get_direct"
7685 msgstr ""
7686
7687 # type: verbatim
7688 #: ../src/guestfs-actions.pod:1897
7689 #, no-wrap
7690 msgid ""
7691 " int\n"
7692 " guestfs_get_direct (guestfs_h *g);\n"
7693 "\n"
7694 msgstr ""
7695
7696 # type: textblock
7697 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7698 msgid "Return the direct appliance mode flag."
7699 msgstr ""
7700
7701 # type: textblock
7702 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7703 msgid "(Added in 1.0.72)"
7704 msgstr ""
7705
7706 # type: =head2
7707 #: ../src/guestfs-actions.pod:1906
7708 msgid "guestfs_get_e2label"
7709 msgstr ""
7710
7711 # type: verbatim
7712 #: ../src/guestfs-actions.pod:1908
7713 #, no-wrap
7714 msgid ""
7715 " char *\n"
7716 " guestfs_get_e2label (guestfs_h *g,\n"
7717 "                      const char *device);\n"
7718 "\n"
7719 msgstr ""
7720
7721 # type: textblock
7722 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7723 msgid ""
7724 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7729 msgid ""
7730 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7731 msgstr ""
7732
7733 # type: textblock
7734 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7735 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7736 msgid "(Added in 1.0.15)"
7737 msgstr ""
7738
7739 # type: =head2
7740 #: ../src/guestfs-actions.pod:1927
7741 msgid "guestfs_get_e2uuid"
7742 msgstr ""
7743
7744 # type: verbatim
7745 #: ../src/guestfs-actions.pod:1929
7746 #, no-wrap
7747 msgid ""
7748 " char *\n"
7749 " guestfs_get_e2uuid (guestfs_h *g,\n"
7750 "                     const char *device);\n"
7751 "\n"
7752 msgstr ""
7753
7754 # type: textblock
7755 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7756 msgid ""
7757 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7758 msgstr ""
7759
7760 # type: textblock
7761 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7762 msgid ""
7763 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7764 msgstr ""
7765
7766 # type: =head2
7767 #: ../src/guestfs-actions.pod:1948
7768 msgid "guestfs_get_memsize"
7769 msgstr ""
7770
7771 # type: verbatim
7772 #: ../src/guestfs-actions.pod:1950
7773 #, no-wrap
7774 msgid ""
7775 " int\n"
7776 " guestfs_get_memsize (guestfs_h *g);\n"
7777 "\n"
7778 msgstr ""
7779
7780 # type: textblock
7781 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7782 msgid ""
7783 "This gets the memory size in megabytes allocated to the qemu subprocess."
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:1956
7788 msgid ""
7789 "If C<guestfs_set_memsize> was not called on this handle, and if "
7790 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7791 "value for memsize."
7792 msgstr ""
7793
7794 # type: textblock
7795 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7796 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591
7797 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7798 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7799 msgid ""
7800 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7801 msgstr ""
7802
7803 # type: textblock
7804 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079
7805 #: ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213
7806 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244
7807 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274
7808 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489
7809 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7810 msgid "(Added in 1.0.55)"
7811 msgstr ""
7812
7813 # type: =head2
7814 #: ../src/guestfs-actions.pod:1967
7815 msgid "guestfs_get_network"
7816 msgstr ""
7817
7818 # type: verbatim
7819 #: ../src/guestfs-actions.pod:1969
7820 #, no-wrap
7821 msgid ""
7822 " int\n"
7823 " guestfs_get_network (guestfs_h *g);\n"
7824 "\n"
7825 msgstr ""
7826
7827 # type: textblock
7828 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7829 msgid "This returns the enable network flag."
7830 msgstr ""
7831
7832 # type: textblock
7833 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7834 msgid "(Added in 1.5.4)"
7835 msgstr ""
7836
7837 # type: =head2
7838 #: ../src/guestfs-actions.pod:1978
7839 msgid "guestfs_get_path"
7840 msgstr ""
7841
7842 # type: verbatim
7843 #: ../src/guestfs-actions.pod:1980
7844 #, no-wrap
7845 msgid ""
7846 " const char *\n"
7847 " guestfs_get_path (guestfs_h *g);\n"
7848 "\n"
7849 msgstr ""
7850
7851 # type: textblock
7852 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7853 msgid "Return the current search path."
7854 msgstr ""
7855
7856 # type: textblock
7857 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7858 msgid ""
7859 "This is always non-NULL.  If it wasn't set already, then this will return "
7860 "the default path."
7861 msgstr ""
7862
7863 # type: textblock
7864 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7865 msgid ""
7866 "This function returns a string, or NULL on error.  The string is owned by "
7867 "the guest handle and must I<not> be freed."
7868 msgstr ""
7869
7870 # type: =head2
7871 #: ../src/guestfs-actions.pod:1993
7872 msgid "guestfs_get_pid"
7873 msgstr ""
7874
7875 # type: verbatim
7876 #: ../src/guestfs-actions.pod:1995
7877 #, no-wrap
7878 msgid ""
7879 " int\n"
7880 " guestfs_get_pid (guestfs_h *g);\n"
7881 "\n"
7882 msgstr ""
7883
7884 # type: textblock
7885 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7886 msgid ""
7887 "Return the process ID of the qemu subprocess.  If there is no qemu "
7888 "subprocess, then this will return an error."
7889 msgstr ""
7890
7891 # type: textblock
7892 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7893 msgid "This is an internal call used for debugging and testing."
7894 msgstr ""
7895
7896 # type: textblock
7897 #: ../src/guestfs-actions.pod:2005
7898 msgid "(Added in 1.0.56)"
7899 msgstr ""
7900
7901 # type: =head2
7902 #: ../src/guestfs-actions.pod:2007
7903 msgid "guestfs_get_qemu"
7904 msgstr ""
7905
7906 # type: verbatim
7907 #: ../src/guestfs-actions.pod:2009
7908 #, no-wrap
7909 msgid ""
7910 " const char *\n"
7911 " guestfs_get_qemu (guestfs_h *g);\n"
7912 "\n"
7913 msgstr ""
7914
7915 # type: textblock
7916 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7917 msgid "Return the current qemu binary."
7918 msgstr ""
7919
7920 # type: textblock
7921 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7922 msgid ""
7923 "This is always non-NULL.  If it wasn't set already, then this will return "
7924 "the default qemu binary name."
7925 msgstr ""
7926
7927 # type: textblock
7928 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7929 msgid "(Added in 1.0.6)"
7930 msgstr ""
7931
7932 # type: =head2
7933 #: ../src/guestfs-actions.pod:2022
7934 msgid "guestfs_get_recovery_proc"
7935 msgstr ""
7936
7937 # type: verbatim
7938 #: ../src/guestfs-actions.pod:2024
7939 #, no-wrap
7940 msgid ""
7941 " int\n"
7942 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7943 "\n"
7944 msgstr ""
7945
7946 # type: textblock
7947 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7948 msgid "Return the recovery process enabled flag."
7949 msgstr ""
7950
7951 # type: textblock
7952 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219
7953 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886
7954 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857
7955 #: ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577
7956 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256
7957 #: ../src/guestfs-actions.pod:6438
7958 msgid "(Added in 1.0.77)"
7959 msgstr ""
7960
7961 # type: =head2
7962 #: ../src/guestfs-actions.pod:2033
7963 msgid "guestfs_get_selinux"
7964 msgstr ""
7965
7966 # type: verbatim
7967 #: ../src/guestfs-actions.pod:2035
7968 #, no-wrap
7969 msgid ""
7970 " int\n"
7971 " guestfs_get_selinux (guestfs_h *g);\n"
7972 "\n"
7973 msgstr ""
7974
7975 # type: textblock
7976 #: ../src/guestfs-actions.pod:2038
7977 msgid ""
7978 "This returns the current setting of the selinux flag which is passed to the "
7979 "appliance at boot time.  See C<guestfs_set_selinux>."
7980 msgstr ""
7981
7982 # type: textblock
7983 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7984 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7985 msgid "(Added in 1.0.67)"
7986 msgstr ""
7987
7988 # type: =head2
7989 #: ../src/guestfs-actions.pod:2048
7990 msgid "guestfs_get_state"
7991 msgstr ""
7992
7993 # type: verbatim
7994 #: ../src/guestfs-actions.pod:2050
7995 #, no-wrap
7996 msgid ""
7997 " int\n"
7998 " guestfs_get_state (guestfs_h *g);\n"
7999 "\n"
8000 msgstr ""
8001
8002 # type: textblock
8003 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8004 msgid ""
8005 "This returns the current state as an opaque integer.  This is only useful "
8006 "for printing debug and internal error messages."
8007 msgstr ""
8008
8009 # type: textblock
8010 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022
8011 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112
8012 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398
8013 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8014 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8015 msgid "For more information on states, see L<guestfs(3)>."
8016 msgstr ""
8017
8018 # type: =head2
8019 #: ../src/guestfs-actions.pod:2062
8020 msgid "guestfs_get_trace"
8021 msgstr ""
8022
8023 # type: verbatim
8024 #: ../src/guestfs-actions.pod:2064
8025 #, no-wrap
8026 msgid ""
8027 " int\n"
8028 " guestfs_get_trace (guestfs_h *g);\n"
8029 "\n"
8030 msgstr ""
8031
8032 # type: textblock
8033 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8034 msgid "Return the command trace flag."
8035 msgstr ""
8036
8037 # type: =head2
8038 #: ../src/guestfs-actions.pod:2073
8039 msgid "guestfs_get_umask"
8040 msgstr ""
8041
8042 # type: verbatim
8043 #: ../src/guestfs-actions.pod:2075
8044 #, no-wrap
8045 msgid ""
8046 " int\n"
8047 " guestfs_get_umask (guestfs_h *g);\n"
8048 "\n"
8049 msgstr ""
8050
8051 # type: textblock
8052 #: ../src/guestfs-actions.pod:2078
8053 msgid ""
8054 "Return the current umask.  By default the umask is C<022> unless it has been "
8055 "set by calling C<guestfs_umask>."
8056 msgstr ""
8057
8058 # type: =head2
8059 #: ../src/guestfs-actions.pod:2085
8060 msgid "guestfs_get_verbose"
8061 msgstr ""
8062
8063 # type: verbatim
8064 #: ../src/guestfs-actions.pod:2087
8065 #, no-wrap
8066 msgid ""
8067 " int\n"
8068 " guestfs_get_verbose (guestfs_h *g);\n"
8069 "\n"
8070 msgstr ""
8071
8072 # type: textblock
8073 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8074 msgid "This returns the verbose messages flag."
8075 msgstr ""
8076
8077 # type: =head2
8078 #: ../src/guestfs-actions.pod:2096
8079 msgid "guestfs_getcon"
8080 msgstr ""
8081
8082 # type: verbatim
8083 #: ../src/guestfs-actions.pod:2098
8084 #, no-wrap
8085 msgid ""
8086 " char *\n"
8087 " guestfs_getcon (guestfs_h *g);\n"
8088 "\n"
8089 msgstr ""
8090
8091 # type: textblock
8092 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8093 msgid "This gets the SELinux security context of the daemon."
8094 msgstr ""
8095
8096 # type: textblock
8097 #: ../src/guestfs-actions.pod:2103
8098 msgid ""
8099 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8100 msgstr ""
8101
8102 # type: =head2
8103 #: ../src/guestfs-actions.pod:2111
8104 msgid "guestfs_getxattrs"
8105 msgstr ""
8106
8107 # type: verbatim
8108 #: ../src/guestfs-actions.pod:2113
8109 #, no-wrap
8110 msgid ""
8111 " struct guestfs_xattr_list *\n"
8112 " guestfs_getxattrs (guestfs_h *g,\n"
8113 "                    const char *path);\n"
8114 "\n"
8115 msgstr ""
8116
8117 # type: textblock
8118 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8119 msgid ""
8120 "This call lists the extended attributes of the file or directory C<path>."
8121 msgstr ""
8122
8123 # type: textblock
8124 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8125 msgid ""
8126 "At the system call level, this is a combination of the L<listxattr(2)> and "
8127 "L<getxattr(2)> calls."
8128 msgstr ""
8129
8130 # type: textblock
8131 #: ../src/guestfs-actions.pod:2123
8132 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8133 msgstr ""
8134
8135 # type: textblock
8136 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231
8137 #: ../src/guestfs-actions.pod:3882
8138 msgid ""
8139 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8140 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8141 msgstr ""
8142
8143 # type: textblock
8144 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235
8145 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436
8146 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669
8147 #: ../src/guestfs-actions.pod:6994
8148 msgid "(Added in 1.0.59)"
8149 msgstr ""
8150
8151 # type: =head2
8152 #: ../src/guestfs-actions.pod:2131
8153 msgid "guestfs_glob_expand"
8154 msgstr ""
8155
8156 # type: verbatim
8157 #: ../src/guestfs-actions.pod:2133
8158 #, no-wrap
8159 msgid ""
8160 " char **\n"
8161 " guestfs_glob_expand (guestfs_h *g,\n"
8162 "                      const char *pattern);\n"
8163 "\n"
8164 msgstr ""
8165
8166 # type: textblock
8167 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8168 msgid ""
8169 "This command searches for all the pathnames matching C<pattern> according to "
8170 "the wildcard expansion rules used by the shell."
8171 msgstr ""
8172
8173 # type: textblock
8174 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8175 msgid ""
8176 "If no paths match, then this returns an empty list (note: not an error)."
8177 msgstr ""
8178
8179 # type: textblock
8180 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8181 msgid ""
8182 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8183 "GLOB_BRACE>.  See that manual page for more details."
8184 msgstr ""
8185
8186 # type: textblock
8187 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834
8188 #: ../src/guestfs-actions.pod:5851
8189 msgid "(Added in 1.0.50)"
8190 msgstr ""
8191
8192 # type: =head2
8193 #: ../src/guestfs-actions.pod:2154
8194 msgid "guestfs_grep"
8195 msgstr ""
8196
8197 # type: verbatim
8198 #: ../src/guestfs-actions.pod:2156
8199 #, no-wrap
8200 msgid ""
8201 " char **\n"
8202 " guestfs_grep (guestfs_h *g,\n"
8203 "               const char *regex,\n"
8204 "               const char *path);\n"
8205 "\n"
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8210 msgid "This calls the external C<grep> program and returns the matching lines."
8211 msgstr ""
8212
8213 # type: =head2
8214 #: ../src/guestfs-actions.pod:2173
8215 msgid "guestfs_grepi"
8216 msgstr ""
8217
8218 # type: verbatim
8219 #: ../src/guestfs-actions.pod:2175
8220 #, no-wrap
8221 msgid ""
8222 " char **\n"
8223 " guestfs_grepi (guestfs_h *g,\n"
8224 "                const char *regex,\n"
8225 "                const char *path);\n"
8226 "\n"
8227 msgstr ""
8228
8229 # type: textblock
8230 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8231 msgid ""
8232 "This calls the external C<grep -i> program and returns the matching lines."
8233 msgstr ""
8234
8235 # type: =head2
8236 #: ../src/guestfs-actions.pod:2192
8237 msgid "guestfs_grub_install"
8238 msgstr ""
8239
8240 # type: verbatim
8241 #: ../src/guestfs-actions.pod:2194
8242 #, no-wrap
8243 msgid ""
8244 " int\n"
8245 " guestfs_grub_install (guestfs_h *g,\n"
8246 "                       const char *root,\n"
8247 "                       const char *device);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8253 msgid ""
8254 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8255 "the root directory being C<root>."
8256 msgstr ""
8257
8258 # type: textblock
8259 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8260 msgid ""
8261 "Note: If grub-install reports the error \"No suitable drive was found in the "
8262 "generated device map.\" it may be that you need to create a C</boot/grub/"
8263 "device.map> file first that contains the mapping between grub device names "
8264 "and Linux device names.  It is usually sufficient to create a file "
8265 "containing:"
8266 msgstr ""
8267
8268 # type: verbatim
8269 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8270 #, no-wrap
8271 msgid ""
8272 " (hd0) /dev/vda\n"
8273 "\n"
8274 msgstr ""
8275
8276 # type: textblock
8277 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8278 msgid "replacing C</dev/vda> with the name of the installation device."
8279 msgstr ""
8280
8281 # type: textblock
8282 #: ../src/guestfs-actions.pod:2215
8283 msgid "(Added in 1.0.17)"
8284 msgstr ""
8285
8286 # type: =head2
8287 #: ../src/guestfs-actions.pod:2217
8288 msgid "guestfs_head"
8289 msgstr ""
8290
8291 # type: verbatim
8292 #: ../src/guestfs-actions.pod:2219
8293 #, no-wrap
8294 msgid ""
8295 " char **\n"
8296 " guestfs_head (guestfs_h *g,\n"
8297 "               const char *path);\n"
8298 "\n"
8299 msgstr ""
8300
8301 # type: textblock
8302 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8303 msgid ""
8304 "This command returns up to the first 10 lines of a file as a list of strings."
8305 msgstr ""
8306
8307 # type: =head2
8308 #: ../src/guestfs-actions.pod:2235
8309 msgid "guestfs_head_n"
8310 msgstr ""
8311
8312 # type: verbatim
8313 #: ../src/guestfs-actions.pod:2237
8314 #, no-wrap
8315 msgid ""
8316 " char **\n"
8317 " guestfs_head_n (guestfs_h *g,\n"
8318 "                 int nrlines,\n"
8319 "                 const char *path);\n"
8320 "\n"
8321 msgstr ""
8322
8323 # type: textblock
8324 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8325 msgid ""
8326 "If the parameter C<nrlines> is a positive number, this returns the first "
8327 "C<nrlines> lines of the file C<path>."
8328 msgstr ""
8329
8330 # type: textblock
8331 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8332 msgid ""
8333 "If the parameter C<nrlines> is a negative number, this returns lines from "
8334 "the file C<path>, excluding the last C<nrlines> lines."
8335 msgstr ""
8336
8337 # type: textblock
8338 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131
8339 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8340 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8341 msgstr ""
8342
8343 # type: =head2
8344 #: ../src/guestfs-actions.pod:2259
8345 msgid "guestfs_hexdump"
8346 msgstr ""
8347
8348 # type: verbatim
8349 #: ../src/guestfs-actions.pod:2261
8350 #, no-wrap
8351 msgid ""
8352 " char *\n"
8353 " guestfs_hexdump (guestfs_h *g,\n"
8354 "                  const char *path);\n"
8355 "\n"
8356 msgstr ""
8357
8358 # type: textblock
8359 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8360 msgid ""
8361 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8362 "readable, canonical hex dump of the file."
8363 msgstr ""
8364
8365 # type: textblock
8366 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915
8367 #: ../src/guestfs-actions.pod:5970
8368 msgid "(Added in 1.0.22)"
8369 msgstr ""
8370
8371 # type: =head2
8372 #: ../src/guestfs-actions.pod:2276
8373 msgid "guestfs_initrd_cat"
8374 msgstr ""
8375
8376 # type: verbatim
8377 #: ../src/guestfs-actions.pod:2278
8378 #, no-wrap
8379 msgid ""
8380 " char *\n"
8381 " guestfs_initrd_cat (guestfs_h *g,\n"
8382 "                     const char *initrdpath,\n"
8383 "                     const char *filename,\n"
8384 "                     size_t *size_r);\n"
8385 "\n"
8386 msgstr ""
8387
8388 # type: textblock
8389 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8390 msgid ""
8391 "This command unpacks the file C<filename> from the initrd file called "
8392 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8393 "character."
8394 msgstr ""
8395
8396 # type: textblock
8397 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8398 msgid ""
8399 "For example, in guestfish you could use the following command to examine the "
8400 "boot script (usually called C</init>)  contained in a Linux initrd or "
8401 "initramfs image:"
8402 msgstr ""
8403
8404 # type: verbatim
8405 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8406 #, no-wrap
8407 msgid ""
8408 " initrd-cat /boot/initrd-<version>.img init\n"
8409 "\n"
8410 msgstr ""
8411
8412 # type: textblock
8413 #: ../src/guestfs-actions.pod:2294
8414 msgid "See also C<guestfs_initrd_list>."
8415 msgstr ""
8416
8417 # type: textblock
8418 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850
8419 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8420 msgid ""
8421 "This function returns a buffer, or NULL on error.  The size of the returned "
8422 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8423 "after use>."
8424 msgstr ""
8425
8426 # type: =head2
8427 #: ../src/guestfs-actions.pod:2305
8428 msgid "guestfs_initrd_list"
8429 msgstr ""
8430
8431 # type: verbatim
8432 #: ../src/guestfs-actions.pod:2307
8433 #, no-wrap
8434 msgid ""
8435 " char **\n"
8436 " guestfs_initrd_list (guestfs_h *g,\n"
8437 "                      const char *path);\n"
8438 "\n"
8439 msgstr ""
8440
8441 # type: textblock
8442 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8443 msgid "This command lists out files contained in an initrd."
8444 msgstr ""
8445
8446 # type: textblock
8447 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8448 msgid ""
8449 "The files are listed without any initial C</> character.  The files are "
8450 "listed in the order they appear (not necessarily alphabetical).  Directory "
8451 "names are listed as separate items."
8452 msgstr ""
8453
8454 # type: textblock
8455 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8456 msgid ""
8457 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8458 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8459 "files)."
8460 msgstr ""
8461
8462 # type: =head2
8463 #: ../src/guestfs-actions.pod:2327
8464 msgid "guestfs_inotify_add_watch"
8465 msgstr ""
8466
8467 # type: verbatim
8468 #: ../src/guestfs-actions.pod:2329
8469 #, no-wrap
8470 msgid ""
8471 " int64_t\n"
8472 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8473 "                            const char *path,\n"
8474 "                            int mask);\n"
8475 "\n"
8476 msgstr ""
8477
8478 # type: textblock
8479 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8480 msgid "Watch C<path> for the events listed in C<mask>."
8481 msgstr ""
8482
8483 # type: textblock
8484 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8485 msgid ""
8486 "Note that if C<path> is a directory then events within that directory are "
8487 "watched, but this does I<not> happen recursively (in subdirectories)."
8488 msgstr ""
8489
8490 # type: textblock
8491 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8492 msgid ""
8493 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8494 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8495 msgstr ""
8496
8497 # type: =head2
8498 #: ../src/guestfs-actions.pod:2348
8499 msgid "guestfs_inotify_close"
8500 msgstr ""
8501
8502 # type: verbatim
8503 #: ../src/guestfs-actions.pod:2350
8504 #, no-wrap
8505 msgid ""
8506 " int\n"
8507 " guestfs_inotify_close (guestfs_h *g);\n"
8508 "\n"
8509 msgstr ""
8510
8511 # type: textblock
8512 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8513 msgid ""
8514 "This closes the inotify handle which was previously opened by inotify_init.  "
8515 "It removes all watches, throws away any pending events, and deallocates all "
8516 "resources."
8517 msgstr ""
8518
8519 # type: =head2
8520 #: ../src/guestfs-actions.pod:2361
8521 msgid "guestfs_inotify_files"
8522 msgstr ""
8523
8524 # type: verbatim
8525 #: ../src/guestfs-actions.pod:2363
8526 #, no-wrap
8527 msgid ""
8528 " char **\n"
8529 " guestfs_inotify_files (guestfs_h *g);\n"
8530 "\n"
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2366
8535 msgid ""
8536 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8537 "returns a list of pathnames of objects that were touched.  The returned "
8538 "pathnames are sorted and deduplicated."
8539 msgstr ""
8540
8541 # type: =head2
8542 #: ../src/guestfs-actions.pod:2376
8543 msgid "guestfs_inotify_init"
8544 msgstr ""
8545
8546 # type: verbatim
8547 #: ../src/guestfs-actions.pod:2378
8548 #, no-wrap
8549 msgid ""
8550 " int\n"
8551 " guestfs_inotify_init (guestfs_h *g,\n"
8552 "                       int maxevents);\n"
8553 "\n"
8554 msgstr ""
8555
8556 # type: textblock
8557 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8558 msgid ""
8559 "This command creates a new inotify handle.  The inotify subsystem can be "
8560 "used to notify events which happen to objects in the guest filesystem."
8561 msgstr ""
8562
8563 # type: textblock
8564 #: ../src/guestfs-actions.pod:2386
8565 msgid ""
8566 "C<maxevents> is the maximum number of events which will be queued up between "
8567 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8568 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8569 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8570 "throws away events, but records the fact that it threw them away by setting "
8571 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8572 "C<guestfs_inotify_read>)."
8573 msgstr ""
8574
8575 # type: textblock
8576 #: ../src/guestfs-actions.pod:2396
8577 msgid ""
8578 "Before any events are generated, you have to add some watches to the "
8579 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8580 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8581 msgstr ""
8582
8583 # type: textblock
8584 #: ../src/guestfs-actions.pod:2402
8585 msgid ""
8586 "Queued up events should be read periodically by calling "
8587 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8588 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8589 "often enough then you risk the internal queue overflowing."
8590 msgstr ""
8591
8592 # type: textblock
8593 #: ../src/guestfs-actions.pod:2409
8594 msgid ""
8595 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8596 "This also removes any watches automatically."
8597 msgstr ""
8598
8599 # type: textblock
8600 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8601 msgid ""
8602 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8603 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8604 "that there is one global inotify handle per libguestfs instance."
8605 msgstr ""
8606
8607 # type: =head2
8608 #: ../src/guestfs-actions.pod:2422
8609 msgid "guestfs_inotify_read"
8610 msgstr ""
8611
8612 # type: verbatim
8613 #: ../src/guestfs-actions.pod:2424
8614 #, no-wrap
8615 msgid ""
8616 " struct guestfs_inotify_event_list *\n"
8617 " guestfs_inotify_read (guestfs_h *g);\n"
8618 "\n"
8619 msgstr ""
8620
8621 # type: textblock
8622 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8623 msgid ""
8624 "Return the complete queue of events that have happened since the previous "
8625 "read call."
8626 msgstr ""
8627
8628 # type: textblock
8629 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8630 msgid "If no events have happened, this returns an empty list."
8631 msgstr ""
8632
8633 # type: textblock
8634 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8635 msgid ""
8636 "I<Note>: In order to make sure that all events have been read, you must call "
8637 "this function repeatedly until it returns an empty list.  The reason is that "
8638 "the call will read events up to the maximum appliance-to-host message size "
8639 "and leave remaining events in the queue."
8640 msgstr ""
8641
8642 # type: textblock
8643 #: ../src/guestfs-actions.pod:2438
8644 msgid ""
8645 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8646 "there was an error.  I<The caller must call "
8647 "C<guestfs_free_inotify_event_list> after use>."
8648 msgstr ""
8649
8650 # type: =head2
8651 #: ../src/guestfs-actions.pod:2444
8652 msgid "guestfs_inotify_rm_watch"
8653 msgstr ""
8654
8655 # type: verbatim
8656 #: ../src/guestfs-actions.pod:2446
8657 #, no-wrap
8658 msgid ""
8659 " int\n"
8660 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8661 "                           int wd);\n"
8662 "\n"
8663 msgstr ""
8664
8665 # type: textblock
8666 #: ../src/guestfs-actions.pod:2450
8667 msgid ""
8668 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8669 msgstr ""
8670
8671 # type: =head2
8672 #: ../src/guestfs-actions.pod:2457
8673 msgid "guestfs_inspect_get_arch"
8674 msgstr ""
8675
8676 # type: verbatim
8677 #: ../src/guestfs-actions.pod:2459
8678 #, no-wrap
8679 msgid ""
8680 " char *\n"
8681 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8682 "                           const char *root);\n"
8683 "\n"
8684 msgstr ""
8685
8686 # type: textblock
8687 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8688 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593
8689 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640
8690 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694
8691 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750
8692 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834
8693 #: ../src/guestfs-actions.pod:2857
8694 msgid ""
8695 "This function should only be called with a root device string as returned by "
8696 "C<guestfs_inspect_os>."
8697 msgstr ""
8698
8699 # type: textblock
8700 #: ../src/guestfs-actions.pod:2466
8701 msgid ""
8702 "This returns the architecture of the inspected operating system.  The "
8703 "possible return values are listed under C<guestfs_file_architecture>."
8704 msgstr ""
8705
8706 # type: textblock
8707 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8708 msgid ""
8709 "If the architecture could not be determined, then the string C<unknown> is "
8710 "returned."
8711 msgstr ""
8712
8713 # type: textblock
8714 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554
8715 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628
8716 #: ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739
8717 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780
8718 #: ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844
8719 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989
8720 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8721 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8722 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8723 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8724 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8725 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8726 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8727 msgstr ""
8728
8729 # type: =head2
8730 #: ../src/guestfs-actions.pod:2480
8731 msgid "guestfs_inspect_get_distro"
8732 msgstr ""
8733
8734 # type: verbatim
8735 #: ../src/guestfs-actions.pod:2482
8736 #, no-wrap
8737 msgid ""
8738 " char *\n"
8739 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8740 "                             const char *root);\n"
8741 "\n"
8742 msgstr ""
8743
8744 # type: textblock
8745 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8746 msgid ""
8747 "This returns the distro (distribution) of the inspected operating system."
8748 msgstr ""
8749
8750 # type: textblock
8751 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8752 msgid "Currently defined distros are:"
8753 msgstr ""
8754
8755 # type: =item
8756 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8757 msgid "\"archlinux\""
8758 msgstr ""
8759
8760 # type: textblock
8761 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8762 msgid "Arch Linux."
8763 msgstr ""
8764
8765 # type: =item
8766 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8767 msgid "\"debian\""
8768 msgstr ""
8769
8770 # type: textblock
8771 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8772 msgid "Debian."
8773 msgstr ""
8774
8775 # type: =item
8776 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8777 msgid "\"fedora\""
8778 msgstr ""
8779
8780 # type: textblock
8781 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8782 msgid "Fedora."
8783 msgstr ""
8784
8785 # type: =item
8786 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8787 msgid "\"gentoo\""
8788 msgstr ""
8789
8790 # type: textblock
8791 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8792 msgid "Gentoo."
8793 msgstr ""
8794
8795 # type: =item
8796 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8797 msgid "\"linuxmint\""
8798 msgstr ""
8799
8800 # type: textblock
8801 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8802 msgid "Linux Mint."
8803 msgstr ""
8804
8805 # type: =item
8806 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8807 msgid "\"mandriva\""
8808 msgstr ""
8809
8810 # type: textblock
8811 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8812 msgid "Mandriva."
8813 msgstr ""
8814
8815 # type: =item
8816 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8817 msgid "\"meego\""
8818 msgstr ""
8819
8820 # type: textblock
8821 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8822 msgid "MeeGo."
8823 msgstr ""
8824
8825 # type: =item
8826 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8827 msgid "\"pardus\""
8828 msgstr ""
8829
8830 # type: textblock
8831 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8832 msgid "Pardus."
8833 msgstr ""
8834
8835 # type: =item
8836 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8837 msgid "\"redhat-based\""
8838 msgstr ""
8839
8840 # type: textblock
8841 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8842 msgid "Some Red Hat-derived distro."
8843 msgstr ""
8844
8845 # type: =item
8846 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8847 msgid "\"rhel\""
8848 msgstr ""
8849
8850 # type: textblock
8851 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8852 msgid "Red Hat Enterprise Linux and some derivatives."
8853 msgstr ""
8854
8855 # type: =item
8856 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8857 msgid "\"ubuntu\""
8858 msgstr ""
8859
8860 # type: textblock
8861 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8862 msgid "Ubuntu."
8863 msgstr ""
8864
8865 # type: =item
8866 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812
8867 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8868 msgid "\"unknown\""
8869 msgstr ""
8870
8871 # type: textblock
8872 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8873 msgid "The distro could not be determined."
8874 msgstr ""
8875
8876 # type: =item
8877 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804
8878 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8879 msgid "\"windows\""
8880 msgstr ""
8881
8882 # type: textblock
8883 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8884 msgid ""
8885 "Windows does not have distributions.  This string is returned if the OS type "
8886 "is Windows."
8887 msgstr ""
8888
8889 # type: textblock
8890 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818
8891 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8892 msgid ""
8893 "Future versions of libguestfs may return other strings here.  The caller "
8894 "should be prepared to handle any string."
8895 msgstr ""
8896
8897 # type: =head2
8898 #: ../src/guestfs-actions.pod:2561
8899 msgid "guestfs_inspect_get_filesystems"
8900 msgstr ""
8901
8902 # type: verbatim
8903 #: ../src/guestfs-actions.pod:2563
8904 #, no-wrap
8905 msgid ""
8906 " char **\n"
8907 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8908 "                                  const char *root);\n"
8909 "\n"
8910 msgstr ""
8911
8912 # type: textblock
8913 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8914 msgid ""
8915 "This returns a list of all the filesystems that we think are associated with "
8916 "this operating system.  This includes the root filesystem, other ordinary "
8917 "filesystems, and non-mounted devices like swap partitions."
8918 msgstr ""
8919
8920 # type: textblock
8921 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8922 msgid ""
8923 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8924 "to be shared between operating systems."
8925 msgstr ""
8926
8927 # type: textblock
8928 #: ../src/guestfs-actions.pod:2578
8929 msgid ""
8930 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8931 "C<guestfs_inspect_get_mountpoints>."
8932 msgstr ""
8933
8934 # type: =head2
8935 #: ../src/guestfs-actions.pod:2587
8936 msgid "guestfs_inspect_get_hostname"
8937 msgstr ""
8938
8939 # type: verbatim
8940 #: ../src/guestfs-actions.pod:2589
8941 #, no-wrap
8942 msgid ""
8943 " char *\n"
8944 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8945 "                               const char *root);\n"
8946 "\n"
8947 msgstr ""
8948
8949 # type: textblock
8950 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8951 msgid ""
8952 "This function returns the hostname of the operating system as found by "
8953 "inspection of the guest's configuration files."
8954 msgstr ""
8955
8956 # type: textblock
8957 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8958 msgid ""
8959 "If the hostname could not be determined, then the string C<unknown> is "
8960 "returned."
8961 msgstr ""
8962
8963 # type: =head2
8964 #: ../src/guestfs-actions.pod:2607
8965 msgid "guestfs_inspect_get_major_version"
8966 msgstr ""
8967
8968 # type: verbatim
8969 #: ../src/guestfs-actions.pod:2609
8970 #, no-wrap
8971 msgid ""
8972 " int\n"
8973 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8974 "                                    const char *root);\n"
8975 "\n"
8976 msgstr ""
8977
8978 # type: textblock
8979 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8980 msgid ""
8981 "This returns the major version number of the inspected operating system."
8982 msgstr ""
8983
8984 # type: textblock
8985 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
8986 msgid ""
8987 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8988 "popular public names used by the operating system.  Notably the operating "
8989 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8990 "1).  You can find out the real versions corresponding to releases of Windows "
8991 "by consulting Wikipedia or MSDN."
8992 msgstr ""
8993
8994 # type: textblock
8995 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646
8996 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8997 msgid "If the version could not be determined, then C<0> is returned."
8998 msgstr ""
8999
9000 # type: =head2
9001 #: ../src/guestfs-actions.pod:2634
9002 msgid "guestfs_inspect_get_minor_version"
9003 msgstr ""
9004
9005 # type: verbatim
9006 #: ../src/guestfs-actions.pod:2636
9007 #, no-wrap
9008 msgid ""
9009 " int\n"
9010 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9011 "                                    const char *root);\n"
9012 "\n"
9013 msgstr ""
9014
9015 # type: textblock
9016 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
9017 msgid ""
9018 "This returns the minor version number of the inspected operating system."
9019 msgstr ""
9020
9021 # type: textblock
9022 #: ../src/guestfs-actions.pod:2648
9023 msgid ""
9024 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9025 "C<guestfs_inspect_get_major_version>."
9026 msgstr ""
9027
9028 # type: =head2
9029 #: ../src/guestfs-actions.pod:2655
9030 msgid "guestfs_inspect_get_mountpoints"
9031 msgstr ""
9032
9033 # type: verbatim
9034 #: ../src/guestfs-actions.pod:2657
9035 #, no-wrap
9036 msgid ""
9037 " char **\n"
9038 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9039 "                                  const char *root);\n"
9040 "\n"
9041 msgstr ""
9042
9043 # type: textblock
9044 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
9045 msgid ""
9046 "This returns a hash of where we think the filesystems associated with this "
9047 "operating system should be mounted.  Callers should note that this is at "
9048 "best an educated guess made by reading configuration files such as C</etc/"
9049 "fstab>."
9050 msgstr ""
9051
9052 # type: textblock
9053 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
9054 msgid ""
9055 "Each element in the returned hashtable has a key which is the path of the "
9056 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9057 "mounted there (eg. C</dev/sda1>)."
9058 msgstr ""
9059
9060 # type: textblock
9061 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
9062 msgid ""
9063 "Non-mounted devices such as swap devices are I<not> returned in this list."
9064 msgstr ""
9065
9066 # type: textblock
9067 #: ../src/guestfs-actions.pod:2677
9068 msgid ""
9069 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9070 "C<guestfs_inspect_get_filesystems>."
9071 msgstr ""
9072
9073 # type: textblock
9074 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288
9075 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
9076 msgid ""
9077 "This function returns a NULL-terminated array of strings, or NULL if there "
9078 "was an error.  The array of strings will always have length C<2n+1>, where "
9079 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9080 "caller must free the strings and the array after use>."
9081 msgstr ""
9082
9083 # type: =head2
9084 #: ../src/guestfs-actions.pod:2688
9085 msgid "guestfs_inspect_get_package_format"
9086 msgstr ""
9087
9088 # type: verbatim
9089 #: ../src/guestfs-actions.pod:2690
9090 #, no-wrap
9091 msgid ""
9092 " char *\n"
9093 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9094 "                                     const char *root);\n"
9095 "\n"
9096 msgstr ""
9097
9098 # type: textblock
9099 #: ../src/guestfs-actions.pod:2697
9100 msgid ""
9101 "This function and C<guestfs_inspect_get_package_management> return the "
9102 "package format and package management tool used by the inspected operating "
9103 "system.  For example for Fedora these functions would return C<rpm> (package "
9104 "format) and C<yum> (package management)."
9105 msgstr ""
9106
9107 # type: textblock
9108 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
9109 msgid ""
9110 "This returns the string C<unknown> if we could not determine the package "
9111 "format I<or> if the operating system does not have a real packaging system "
9112 "(eg. Windows)."
9113 msgstr ""
9114
9115 # type: textblock
9116 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
9117 msgid ""
9118 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9119 "Future versions of libguestfs may return other strings."
9120 msgstr ""
9121
9122 # type: =head2
9123 #: ../src/guestfs-actions.pod:2715
9124 msgid "guestfs_inspect_get_package_management"
9125 msgstr ""
9126
9127 # type: verbatim
9128 #: ../src/guestfs-actions.pod:2717
9129 #, no-wrap
9130 msgid ""
9131 " char *\n"
9132 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9133 "                                         const char *root);\n"
9134 "\n"
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2724
9139 msgid ""
9140 "C<guestfs_inspect_get_package_format> and this function return the package "
9141 "format and package management tool used by the inspected operating system.  "
9142 "For example for Fedora these functions would return C<rpm> (package format) "
9143 "and C<yum> (package management)."
9144 msgstr ""
9145
9146 # type: textblock
9147 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
9148 msgid ""
9149 "This returns the string C<unknown> if we could not determine the package "
9150 "management tool I<or> if the operating system does not have a real packaging "
9151 "system (eg. Windows)."
9152 msgstr ""
9153
9154 # type: textblock
9155 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
9156 msgid ""
9157 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9158 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9159 "libguestfs may return other strings."
9160 msgstr ""
9161
9162 # type: =head2
9163 #: ../src/guestfs-actions.pod:2744
9164 msgid "guestfs_inspect_get_product_name"
9165 msgstr ""
9166
9167 # type: verbatim
9168 #: ../src/guestfs-actions.pod:2746
9169 #, no-wrap
9170 msgid ""
9171 " char *\n"
9172 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9173 "                                   const char *root);\n"
9174 "\n"
9175 msgstr ""
9176
9177 # type: textblock
9178 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
9179 msgid ""
9180 "This returns the product name of the inspected operating system.  The "
9181 "product name is generally some freeform string which can be displayed to the "
9182 "user, but should not be parsed by programs."
9183 msgstr ""
9184
9185 # type: textblock
9186 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
9187 msgid ""
9188 "If the product name could not be determined, then the string C<unknown> is "
9189 "returned."
9190 msgstr ""
9191
9192 # type: =head2
9193 #: ../src/guestfs-actions.pod:2768
9194 msgid "guestfs_inspect_get_roots"
9195 msgstr ""
9196
9197 # type: verbatim
9198 #: ../src/guestfs-actions.pod:2770
9199 #, no-wrap
9200 msgid ""
9201 " char **\n"
9202 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9203 "\n"
9204 msgstr ""
9205
9206 # type: textblock
9207 #: ../src/guestfs-actions.pod:2773
9208 msgid ""
9209 "This function is a convenient way to get the list of root devices, as "
9210 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9211 "the whole inspection process."
9212 msgstr ""
9213
9214 # type: textblock
9215 #: ../src/guestfs-actions.pod:2777
9216 msgid ""
9217 "This returns an empty list if either no root devices were found or the "
9218 "caller has not called C<guestfs_inspect_os>."
9219 msgstr ""
9220
9221 # type: =head2
9222 #: ../src/guestfs-actions.pod:2786
9223 msgid "guestfs_inspect_get_type"
9224 msgstr ""
9225
9226 # type: verbatim
9227 #: ../src/guestfs-actions.pod:2788
9228 #, no-wrap
9229 msgid ""
9230 " char *\n"
9231 " guestfs_inspect_get_type (guestfs_h *g,\n"
9232 "                           const char *root);\n"
9233 "\n"
9234 msgstr ""
9235
9236 # type: textblock
9237 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
9238 msgid ""
9239 "This returns the type of the inspected operating system.  Currently defined "
9240 "types are:"
9241 msgstr ""
9242
9243 # type: =item
9244 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
9245 msgid "\"linux\""
9246 msgstr ""
9247
9248 # type: textblock
9249 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
9250 msgid "Any Linux-based operating system."
9251 msgstr ""
9252
9253 # type: textblock
9254 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
9255 msgid "Any Microsoft Windows operating system."
9256 msgstr ""
9257
9258 # type: =item
9259 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
9260 msgid "\"freebsd\""
9261 msgstr ""
9262
9263 # type: textblock
9264 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
9265 msgid "FreeBSD."
9266 msgstr ""
9267
9268 # type: textblock
9269 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
9270 msgid "The operating system type could not be determined."
9271 msgstr ""
9272
9273 # type: =head2
9274 #: ../src/guestfs-actions.pod:2828
9275 msgid "guestfs_inspect_get_windows_systemroot"
9276 msgstr ""
9277
9278 # type: verbatim
9279 #: ../src/guestfs-actions.pod:2830
9280 #, no-wrap
9281 msgid ""
9282 " char *\n"
9283 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9284 "                                         const char *root);\n"
9285 "\n"
9286 msgstr ""
9287
9288 # type: textblock
9289 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
9290 msgid ""
9291 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9292 "is a directory path such as C</WINDOWS>."
9293 msgstr ""
9294
9295 # type: textblock
9296 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
9297 msgid ""
9298 "This call assumes that the guest is Windows and that the systemroot could be "
9299 "determined by inspection.  If this is not the case then an error is returned."
9300 msgstr ""
9301
9302 # type: textblock
9303 #: ../src/guestfs-actions.pod:2849
9304 msgid "(Added in 1.5.25)"
9305 msgstr ""
9306
9307 # type: =head2
9308 #: ../src/guestfs-actions.pod:2851
9309 msgid "guestfs_inspect_list_applications"
9310 msgstr ""
9311
9312 # type: verbatim
9313 #: ../src/guestfs-actions.pod:2853
9314 #, no-wrap
9315 msgid ""
9316 " struct guestfs_application_list *\n"
9317 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9318 "                                    const char *root);\n"
9319 "\n"
9320 msgstr ""
9321
9322 # type: textblock
9323 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
9324 msgid "Return the list of applications installed in the operating system."
9325 msgstr ""
9326
9327 # type: textblock
9328 #: ../src/guestfs-actions.pod:2862
9329 msgid ""
9330 "I<Note:> This call works differently from other parts of the inspection "
9331 "API.  You have to call C<guestfs_inspect_os>, then "
9332 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9333 "this.  Listing applications is a significantly more difficult operation "
9334 "which requires access to the full filesystem.  Also note that unlike the "
9335 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9336 "the libguestfs handle, this call actually reads parts of the mounted "
9337 "filesystems during the call."
9338 msgstr ""
9339
9340 # type: textblock
9341 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
9342 msgid ""
9343 "This returns an empty list if the inspection code was not able to determine "
9344 "the list of applications."
9345 msgstr ""
9346
9347 # type: textblock
9348 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
9349 msgid "The application structure contains the following fields:"
9350 msgstr ""
9351
9352 # type: =item
9353 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
9354 msgid "C<app_name>"
9355 msgstr ""
9356
9357 # type: textblock
9358 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
9359 msgid ""
9360 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9361 "guests, this is the package name."
9362 msgstr ""
9363
9364 # type: =item
9365 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
9366 msgid "C<app_display_name>"
9367 msgstr ""
9368
9369 # type: textblock
9370 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
9371 msgid ""
9372 "The display name of the application, sometimes localized to the install "
9373 "language of the guest operating system."
9374 msgstr ""
9375
9376 # type: textblock
9377 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
9378 msgid ""
9379 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9380 "to display something can use C<app_name> instead."
9381 msgstr ""
9382
9383 # type: =item
9384 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
9385 msgid "C<app_epoch>"
9386 msgstr ""
9387
9388 # type: textblock
9389 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
9390 msgid ""
9391 "For package managers which use epochs, this contains the epoch of the "
9392 "package (an integer).  If unavailable, this is returned as C<0>."
9393 msgstr ""
9394
9395 # type: =item
9396 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
9397 msgid "C<app_version>"
9398 msgstr ""
9399
9400 # type: textblock
9401 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
9402 msgid ""
9403 "The version string of the application or package.  If unavailable this is "
9404 "returned as an empty string C<\"\">."
9405 msgstr ""
9406
9407 # type: =item
9408 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
9409 msgid "C<app_release>"
9410 msgstr ""
9411
9412 # type: textblock
9413 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
9414 msgid ""
9415 "The release string of the application or package, for package managers that "
9416 "use this.  If unavailable this is returned as an empty string C<\"\">."
9417 msgstr ""
9418
9419 # type: =item
9420 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
9421 msgid "C<app_install_path>"
9422 msgstr ""
9423
9424 # type: textblock
9425 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
9426 msgid ""
9427 "The installation path of the application (on operating systems such as "
9428 "Windows which use installation paths).  This path is in the format used by "
9429 "the guest operating system, it is not a libguestfs path."
9430 msgstr ""
9431
9432 # type: textblock
9433 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
9434 msgid "If unavailable this is returned as an empty string C<\"\">."
9435 msgstr ""
9436
9437 # type: =item
9438 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
9439 msgid "C<app_trans_path>"
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9444 msgid ""
9445 "The install path translated into a libguestfs path.  If unavailable this is "
9446 "returned as an empty string C<\"\">."
9447 msgstr ""
9448
9449 # type: =item
9450 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9451 msgid "C<app_publisher>"
9452 msgstr ""
9453
9454 # type: textblock
9455 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9456 msgid ""
9457 "The name of the publisher of the application, for package managers that use "
9458 "this.  If unavailable this is returned as an empty string C<\"\">."
9459 msgstr ""
9460
9461 # type: =item
9462 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9463 msgid "C<app_url>"
9464 msgstr ""
9465
9466 # type: textblock
9467 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9468 msgid ""
9469 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9470 "returned as an empty string C<\"\">."
9471 msgstr ""
9472
9473 # type: =item
9474 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9475 msgid "C<app_source_package>"
9476 msgstr ""
9477
9478 # type: textblock
9479 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9480 msgid ""
9481 "For packaging systems which support this, the name of the source package.  "
9482 "If unavailable this is returned as an empty string C<\"\">."
9483 msgstr ""
9484
9485 # type: =item
9486 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9487 msgid "C<app_summary>"
9488 msgstr ""
9489
9490 # type: textblock
9491 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9492 msgid ""
9493 "A short (usually one line) description of the application or package.  If "
9494 "unavailable this is returned as an empty string C<\"\">."
9495 msgstr ""
9496
9497 # type: =item
9498 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9499 msgid "C<app_description>"
9500 msgstr ""
9501
9502 # type: textblock
9503 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9504 msgid ""
9505 "A longer description of the application or package.  If unavailable this is "
9506 "returned as an empty string C<\"\">."
9507 msgstr ""
9508
9509 # type: textblock
9510 #: ../src/guestfs-actions.pod:2952
9511 msgid ""
9512 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9513 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9514 "after use>."
9515 msgstr ""
9516
9517 # type: =head2
9518 #: ../src/guestfs-actions.pod:2956
9519 msgid "guestfs_inspect_os"
9520 msgstr ""
9521
9522 # type: verbatim
9523 #: ../src/guestfs-actions.pod:2958
9524 #, no-wrap
9525 msgid ""
9526 " char **\n"
9527 " guestfs_inspect_os (guestfs_h *g);\n"
9528 "\n"
9529 msgstr ""
9530
9531 # type: textblock
9532 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9533 msgid ""
9534 "This function uses other libguestfs functions and certain heuristics to "
9535 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9536 "for operating systems."
9537 msgstr ""
9538
9539 # type: textblock
9540 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9541 msgid "The list returned is empty if no operating systems were found."
9542 msgstr ""
9543
9544 # type: textblock
9545 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9546 msgid ""
9547 "If one operating system was found, then this returns a list with a single "
9548 "element, which is the name of the root filesystem of this operating system.  "
9549 "It is also possible for this function to return a list containing more than "
9550 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9551 "element being the root filesystem of one of the operating systems."
9552 msgstr ""
9553
9554 # type: textblock
9555 #: ../src/guestfs-actions.pod:2974
9556 msgid ""
9557 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9558 "functions in order to query further information about each operating system, "
9559 "such as the name and version."
9560 msgstr ""
9561
9562 # type: textblock
9563 #: ../src/guestfs-actions.pod:2979
9564 msgid ""
9565 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9566 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9567 "the contents.  This should be called with no disks currently mounted.  The "
9568 "function may also use Augeas, so any existing Augeas handle will be closed."
9569 msgstr ""
9570
9571 # type: textblock
9572 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9573 msgid ""
9574 "This function cannot decrypt encrypted disks.  The caller must do that first "
9575 "(supplying the necessary keys) if the disk is encrypted."
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246
9580 #: ../src/guestfs-actions.pod:3308
9581 msgid "See also C<guestfs_list_filesystems>."
9582 msgstr ""
9583
9584 # type: =head2
9585 #: ../src/guestfs-actions.pod:2999
9586 msgid "guestfs_is_blockdev"
9587 msgstr ""
9588
9589 # type: verbatim
9590 #: ../src/guestfs-actions.pod:3001
9591 #, no-wrap
9592 msgid ""
9593 " int\n"
9594 " guestfs_is_blockdev (guestfs_h *g,\n"
9595 "                      const char *path);\n"
9596 "\n"
9597 msgstr ""
9598
9599 # type: textblock
9600 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9601 msgid ""
9602 "This returns C<true> if and only if there is a block device with the given "
9603 "C<path> name."
9604 msgstr ""
9605
9606 # type: textblock
9607 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037
9608 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082
9609 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154
9610 #: ../src/guestfs-actions.pod:3169
9611 msgid "See also C<guestfs_stat>."
9612 msgstr ""
9613
9614 # type: textblock
9615 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041
9616 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158
9617 #: ../src/guestfs-actions.pod:3173
9618 msgid "(Added in 1.5.10)"
9619 msgstr ""
9620
9621 # type: =head2
9622 #: ../src/guestfs-actions.pod:3014
9623 msgid "guestfs_is_busy"
9624 msgstr ""
9625
9626 # type: verbatim
9627 #: ../src/guestfs-actions.pod:3016
9628 #, no-wrap
9629 msgid ""
9630 " int\n"
9631 " guestfs_is_busy (guestfs_h *g);\n"
9632 "\n"
9633 msgstr ""
9634
9635 # type: textblock
9636 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9637 msgid ""
9638 "This returns true iff this handle is busy processing a command (in the "
9639 "C<BUSY> state)."
9640 msgstr ""
9641
9642 # type: =head2
9643 #: ../src/guestfs-actions.pod:3028
9644 msgid "guestfs_is_chardev"
9645 msgstr ""
9646
9647 # type: verbatim
9648 #: ../src/guestfs-actions.pod:3030
9649 #, no-wrap
9650 msgid ""
9651 " int\n"
9652 " guestfs_is_chardev (guestfs_h *g,\n"
9653 "                     const char *path);\n"
9654 "\n"
9655 msgstr ""
9656
9657 # type: textblock
9658 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9659 msgid ""
9660 "This returns C<true> if and only if there is a character device with the "
9661 "given C<path> name."
9662 msgstr ""
9663
9664 # type: =head2
9665 #: ../src/guestfs-actions.pod:3043
9666 msgid "guestfs_is_config"
9667 msgstr ""
9668
9669 # type: verbatim
9670 #: ../src/guestfs-actions.pod:3045
9671 #, no-wrap
9672 msgid ""
9673 " int\n"
9674 " guestfs_is_config (guestfs_h *g);\n"
9675 "\n"
9676 msgstr ""
9677
9678 # type: textblock
9679 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9680 msgid ""
9681 "This returns true iff this handle is being configured (in the C<CONFIG> "
9682 "state)."
9683 msgstr ""
9684
9685 # type: =head2
9686 #: ../src/guestfs-actions.pod:3057
9687 msgid "guestfs_is_dir"
9688 msgstr ""
9689
9690 # type: verbatim
9691 #: ../src/guestfs-actions.pod:3059
9692 #, no-wrap
9693 msgid ""
9694 " int\n"
9695 " guestfs_is_dir (guestfs_h *g,\n"
9696 "                 const char *path);\n"
9697 "\n"
9698 msgstr ""
9699
9700 # type: textblock
9701 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9702 msgid ""
9703 "This returns C<true> if and only if there is a directory with the given "
9704 "C<path> name.  Note that it returns false for other objects like files."
9705 msgstr ""
9706
9707 # type: =head2
9708 #: ../src/guestfs-actions.pod:3073
9709 msgid "guestfs_is_fifo"
9710 msgstr ""
9711
9712 # type: verbatim
9713 #: ../src/guestfs-actions.pod:3075
9714 #, no-wrap
9715 msgid ""
9716 " int\n"
9717 " guestfs_is_fifo (guestfs_h *g,\n"
9718 "                  const char *path);\n"
9719 "\n"
9720 msgstr ""
9721
9722 # type: textblock
9723 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9724 msgid ""
9725 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9726 "given C<path> name."
9727 msgstr ""
9728
9729 # type: =head2
9730 #: ../src/guestfs-actions.pod:3088
9731 msgid "guestfs_is_file"
9732 msgstr ""
9733
9734 # type: verbatim
9735 #: ../src/guestfs-actions.pod:3090
9736 #, no-wrap
9737 msgid ""
9738 " int\n"
9739 " guestfs_is_file (guestfs_h *g,\n"
9740 "                  const char *path);\n"
9741 "\n"
9742 msgstr ""
9743
9744 # type: textblock
9745 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9746 msgid ""
9747 "This returns C<true> if and only if there is a regular file with the given "
9748 "C<path> name.  Note that it returns false for other objects like directories."
9749 msgstr ""
9750
9751 # type: =head2
9752 #: ../src/guestfs-actions.pod:3104
9753 msgid "guestfs_is_launching"
9754 msgstr ""
9755
9756 # type: verbatim
9757 #: ../src/guestfs-actions.pod:3106
9758 #, no-wrap
9759 msgid ""
9760 " int\n"
9761 " guestfs_is_launching (guestfs_h *g);\n"
9762 "\n"
9763 msgstr ""
9764
9765 # type: textblock
9766 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9767 msgid ""
9768 "This returns true iff this handle is launching the subprocess (in the "
9769 "C<LAUNCHING> state)."
9770 msgstr ""
9771
9772 # type: =head2
9773 #: ../src/guestfs-actions.pod:3118
9774 msgid "guestfs_is_lv"
9775 msgstr ""
9776
9777 # type: verbatim
9778 #: ../src/guestfs-actions.pod:3120
9779 #, no-wrap
9780 msgid ""
9781 " int\n"
9782 " guestfs_is_lv (guestfs_h *g,\n"
9783 "                const char *device);\n"
9784 "\n"
9785 msgstr ""
9786
9787 # type: textblock
9788 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9789 msgid ""
9790 "This command tests whether C<device> is a logical volume, and returns true "
9791 "iff this is the case."
9792 msgstr ""
9793
9794 # type: =head2
9795 #: ../src/guestfs-actions.pod:3131
9796 msgid "guestfs_is_ready"
9797 msgstr ""
9798
9799 # type: verbatim
9800 #: ../src/guestfs-actions.pod:3133
9801 #, no-wrap
9802 msgid ""
9803 " int\n"
9804 " guestfs_is_ready (guestfs_h *g);\n"
9805 "\n"
9806 msgstr ""
9807
9808 # type: textblock
9809 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9810 msgid ""
9811 "This returns true iff this handle is ready to accept commands (in the "
9812 "C<READY> state)."
9813 msgstr ""
9814
9815 # type: =head2
9816 #: ../src/guestfs-actions.pod:3145
9817 msgid "guestfs_is_socket"
9818 msgstr ""
9819
9820 # type: verbatim
9821 #: ../src/guestfs-actions.pod:3147
9822 #, no-wrap
9823 msgid ""
9824 " int\n"
9825 " guestfs_is_socket (guestfs_h *g,\n"
9826 "                    const char *path);\n"
9827 "\n"
9828 msgstr ""
9829
9830 # type: textblock
9831 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9832 msgid ""
9833 "This returns C<true> if and only if there is a Unix domain socket with the "
9834 "given C<path> name."
9835 msgstr ""
9836
9837 # type: =head2
9838 #: ../src/guestfs-actions.pod:3160
9839 msgid "guestfs_is_symlink"
9840 msgstr ""
9841
9842 # type: verbatim
9843 #: ../src/guestfs-actions.pod:3162
9844 #, no-wrap
9845 msgid ""
9846 " int\n"
9847 " guestfs_is_symlink (guestfs_h *g,\n"
9848 "                     const char *path);\n"
9849 "\n"
9850 msgstr ""
9851
9852 # type: textblock
9853 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9854 msgid ""
9855 "This returns C<true> if and only if there is a symbolic link with the given "
9856 "C<path> name."
9857 msgstr ""
9858
9859 # type: =head2
9860 #: ../src/guestfs-actions.pod:3175
9861 msgid "guestfs_kill_subprocess"
9862 msgstr ""
9863
9864 # type: verbatim
9865 #: ../src/guestfs-actions.pod:3177
9866 #, no-wrap
9867 msgid ""
9868 " int\n"
9869 " guestfs_kill_subprocess (guestfs_h *g);\n"
9870 "\n"
9871 msgstr ""
9872
9873 # type: textblock
9874 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9875 msgid "This kills the qemu subprocess.  You should never need to call this."
9876 msgstr ""
9877
9878 # type: =head2
9879 #: ../src/guestfs-actions.pod:3186
9880 msgid "guestfs_launch"
9881 msgstr ""
9882
9883 # type: verbatim
9884 #: ../src/guestfs-actions.pod:3188
9885 #, no-wrap
9886 msgid ""
9887 " int\n"
9888 " guestfs_launch (guestfs_h *g);\n"
9889 "\n"
9890 msgstr ""
9891
9892 # type: textblock
9893 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9894 msgid ""
9895 "Internally libguestfs is implemented by running a virtual machine using "
9896 "L<qemu(1)>."
9897 msgstr ""
9898
9899 # type: textblock
9900 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9901 msgid ""
9902 "You should call this after configuring the handle (eg. adding drives) but "
9903 "before performing any actions."
9904 msgstr ""
9905
9906 # type: =head2
9907 #: ../src/guestfs-actions.pod:3201
9908 msgid "guestfs_lchown"
9909 msgstr ""
9910
9911 # type: verbatim
9912 #: ../src/guestfs-actions.pod:3203
9913 #, no-wrap
9914 msgid ""
9915 " int\n"
9916 " guestfs_lchown (guestfs_h *g,\n"
9917 "                 int owner,\n"
9918 "                 int group,\n"
9919 "                 const char *path);\n"
9920 "\n"
9921 msgstr ""
9922
9923 # type: textblock
9924 #: ../src/guestfs-actions.pod:3209
9925 msgid ""
9926 "Change the file owner to C<owner> and group to C<group>.  This is like "
9927 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9928 "changed, not the target."
9929 msgstr ""
9930
9931 # type: =head2
9932 #: ../src/guestfs-actions.pod:3221
9933 msgid "guestfs_lgetxattrs"
9934 msgstr ""
9935
9936 # type: verbatim
9937 #: ../src/guestfs-actions.pod:3223
9938 #, no-wrap
9939 msgid ""
9940 " struct guestfs_xattr_list *\n"
9941 " guestfs_lgetxattrs (guestfs_h *g,\n"
9942 "                     const char *path);\n"
9943 "\n"
9944 msgstr ""
9945
9946 # type: textblock
9947 #: ../src/guestfs-actions.pod:3227
9948 msgid ""
9949 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9950 "then it returns the extended attributes of the link itself."
9951 msgstr ""
9952
9953 # type: =head2
9954 #: ../src/guestfs-actions.pod:3237
9955 msgid "guestfs_list_devices"
9956 msgstr ""
9957
9958 # type: verbatim
9959 #: ../src/guestfs-actions.pod:3239
9960 #, no-wrap
9961 msgid ""
9962 " char **\n"
9963 " guestfs_list_devices (guestfs_h *g);\n"
9964 "\n"
9965 msgstr ""
9966
9967 # type: textblock
9968 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9969 msgid "List all the block devices."
9970 msgstr ""
9971
9972 # type: textblock
9973 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9974 msgid "The full block device names are returned, eg. C</dev/sda>."
9975 msgstr ""
9976
9977 # type: =head2
9978 #: ../src/guestfs-actions.pod:3254
9979 msgid "guestfs_list_filesystems"
9980 msgstr ""
9981
9982 # type: verbatim
9983 #: ../src/guestfs-actions.pod:3256
9984 #, no-wrap
9985 msgid ""
9986 " char **\n"
9987 " guestfs_list_filesystems (guestfs_h *g);\n"
9988 "\n"
9989 msgstr ""
9990
9991 # type: textblock
9992 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
9993 msgid ""
9994 "This inspection command looks for filesystems on partitions, block devices "
9995 "and logical volumes, returning a list of devices containing filesystems and "
9996 "their type."
9997 msgstr ""
9998
9999 # type: textblock
10000 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
10001 msgid ""
10002 "The return value is a hash, where the keys are the devices containing "
10003 "filesystems, and the values are the filesystem types.  For example:"
10004 msgstr ""
10005
10006 # type: verbatim
10007 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
10008 #, no-wrap
10009 msgid ""
10010 " \"/dev/sda1\" => \"ntfs\"\n"
10011 " \"/dev/sda2\" => \"ext2\"\n"
10012 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10013 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10014 "\n"
10015 msgstr ""
10016
10017 # type: textblock
10018 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
10019 msgid ""
10020 "The value can have the special value \"unknown\", meaning the content of the "
10021 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10022 msgstr ""
10023
10024 # type: textblock
10025 #: ../src/guestfs-actions.pod:3276
10026 msgid ""
10027 "This command runs other libguestfs commands, which might include "
10028 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10029 "soon after launch and only when nothing is mounted."
10030 msgstr ""
10031
10032 # type: textblock
10033 #: ../src/guestfs-actions.pod:3280
10034 msgid ""
10035 "Not all of the filesystems returned will be mountable.  In particular, swap "
10036 "partitions are returned in the list.  Also this command does not check that "
10037 "each filesystem found is valid and mountable, and some filesystems might be "
10038 "mountable but require special options.  Filesystems may not all belong to a "
10039 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10040 msgstr ""
10041
10042 # type: textblock
10043 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
10044 msgid "(Added in 1.5.15)"
10045 msgstr ""
10046
10047 # type: =head2
10048 #: ../src/guestfs-actions.pod:3296
10049 msgid "guestfs_list_partitions"
10050 msgstr ""
10051
10052 # type: verbatim
10053 #: ../src/guestfs-actions.pod:3298
10054 #, no-wrap
10055 msgid ""
10056 " char **\n"
10057 " guestfs_list_partitions (guestfs_h *g);\n"
10058 "\n"
10059 msgstr ""
10060
10061 # type: textblock
10062 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
10063 msgid "List all the partitions detected on all block devices."
10064 msgstr ""
10065
10066 # type: textblock
10067 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
10068 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10069 msgstr ""
10070
10071 # type: textblock
10072 #: ../src/guestfs-actions.pod:3305
10073 msgid ""
10074 "This does not return logical volumes.  For that you will need to call "
10075 "C<guestfs_lvs>."
10076 msgstr ""
10077
10078 # type: =head2
10079 #: ../src/guestfs-actions.pod:3316
10080 msgid "guestfs_ll"
10081 msgstr ""
10082
10083 # type: verbatim
10084 #: ../src/guestfs-actions.pod:3318
10085 #, no-wrap
10086 msgid ""
10087 " char *\n"
10088 " guestfs_ll (guestfs_h *g,\n"
10089 "             const char *directory);\n"
10090 "\n"
10091 msgstr ""
10092
10093 # type: textblock
10094 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
10095 msgid ""
10096 "List the files in C<directory> (relative to the root directory, there is no "
10097 "cwd) in the format of 'ls -la'."
10098 msgstr ""
10099
10100 # type: textblock
10101 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
10102 msgid ""
10103 "This command is mostly useful for interactive sessions.  It is I<not> "
10104 "intended that you try to parse the output string."
10105 msgstr ""
10106
10107 # type: =head2
10108 #: ../src/guestfs-actions.pod:3333
10109 msgid "guestfs_ln"
10110 msgstr ""
10111
10112 # type: verbatim
10113 #: ../src/guestfs-actions.pod:3335
10114 #, no-wrap
10115 msgid ""
10116 " int\n"
10117 " guestfs_ln (guestfs_h *g,\n"
10118 "             const char *target,\n"
10119 "             const char *linkname);\n"
10120 "\n"
10121 msgstr ""
10122
10123 # type: textblock
10124 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
10125 msgid "This command creates a hard link using the C<ln> command."
10126 msgstr ""
10127
10128 # type: =head2
10129 #: ../src/guestfs-actions.pod:3346
10130 msgid "guestfs_ln_f"
10131 msgstr ""
10132
10133 # type: verbatim
10134 #: ../src/guestfs-actions.pod:3348
10135 #, no-wrap
10136 msgid ""
10137 " int\n"
10138 " guestfs_ln_f (guestfs_h *g,\n"
10139 "               const char *target,\n"
10140 "               const char *linkname);\n"
10141 "\n"
10142 msgstr ""
10143
10144 # type: textblock
10145 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
10146 msgid ""
10147 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10148 "option removes the link (C<linkname>) if it exists already."
10149 msgstr ""
10150
10151 # type: =head2
10152 #: ../src/guestfs-actions.pod:3360
10153 msgid "guestfs_ln_s"
10154 msgstr ""
10155
10156 # type: verbatim
10157 #: ../src/guestfs-actions.pod:3362
10158 #, no-wrap
10159 msgid ""
10160 " int\n"
10161 " guestfs_ln_s (guestfs_h *g,\n"
10162 "               const char *target,\n"
10163 "               const char *linkname);\n"
10164 "\n"
10165 msgstr ""
10166
10167 # type: textblock
10168 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
10169 msgid "This command creates a symbolic link using the C<ln -s> command."
10170 msgstr ""
10171
10172 # type: =head2
10173 #: ../src/guestfs-actions.pod:3373
10174 msgid "guestfs_ln_sf"
10175 msgstr ""
10176
10177 # type: verbatim
10178 #: ../src/guestfs-actions.pod:3375
10179 #, no-wrap
10180 msgid ""
10181 " int\n"
10182 " guestfs_ln_sf (guestfs_h *g,\n"
10183 "                const char *target,\n"
10184 "                const char *linkname);\n"
10185 "\n"
10186 msgstr ""
10187
10188 # type: textblock
10189 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
10190 msgid ""
10191 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10192 "option removes the link (C<linkname>) if it exists already."
10193 msgstr ""
10194
10195 # type: =head2
10196 #: ../src/guestfs-actions.pod:3387
10197 msgid "guestfs_lremovexattr"
10198 msgstr ""
10199
10200 # type: verbatim
10201 #: ../src/guestfs-actions.pod:3389
10202 #, no-wrap
10203 msgid ""
10204 " int\n"
10205 " guestfs_lremovexattr (guestfs_h *g,\n"
10206 "                       const char *xattr,\n"
10207 "                       const char *path);\n"
10208 "\n"
10209 msgstr ""
10210
10211 # type: textblock
10212 #: ../src/guestfs-actions.pod:3394
10213 msgid ""
10214 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10215 "link, then it removes an extended attribute of the link itself."
10216 msgstr ""
10217
10218 # type: =head2
10219 #: ../src/guestfs-actions.pod:3402
10220 msgid "guestfs_ls"
10221 msgstr ""
10222
10223 # type: verbatim
10224 #: ../src/guestfs-actions.pod:3404
10225 #, no-wrap
10226 msgid ""
10227 " char **\n"
10228 " guestfs_ls (guestfs_h *g,\n"
10229 "             const char *directory);\n"
10230 "\n"
10231 msgstr ""
10232
10233 # type: textblock
10234 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
10235 msgid ""
10236 "List the files in C<directory> (relative to the root directory, there is no "
10237 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10238 msgstr ""
10239
10240 # type: textblock
10241 #: ../src/guestfs-actions.pod:3412
10242 msgid ""
10243 "This command is mostly useful for interactive sessions.  Programs should "
10244 "probably use C<guestfs_readdir> instead."
10245 msgstr ""
10246
10247 # type: =head2
10248 #: ../src/guestfs-actions.pod:3421
10249 msgid "guestfs_lsetxattr"
10250 msgstr ""
10251
10252 # type: verbatim
10253 #: ../src/guestfs-actions.pod:3423
10254 #, no-wrap
10255 msgid ""
10256 " int\n"
10257 " guestfs_lsetxattr (guestfs_h *g,\n"
10258 "                    const char *xattr,\n"
10259 "                    const char *val,\n"
10260 "                    int vallen,\n"
10261 "                    const char *path);\n"
10262 "\n"
10263 msgstr ""
10264
10265 # type: textblock
10266 #: ../src/guestfs-actions.pod:3430
10267 msgid ""
10268 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10269 "then it sets an extended attribute of the link itself."
10270 msgstr ""
10271
10272 # type: =head2
10273 #: ../src/guestfs-actions.pod:3438
10274 msgid "guestfs_lstat"
10275 msgstr ""
10276
10277 # type: verbatim
10278 #: ../src/guestfs-actions.pod:3440
10279 #, no-wrap
10280 msgid ""
10281 " struct guestfs_stat *\n"
10282 " guestfs_lstat (guestfs_h *g,\n"
10283 "                const char *path);\n"
10284 "\n"
10285 msgstr ""
10286
10287 # type: textblock
10288 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871
10289 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10290 msgid "Returns file information for the given C<path>."
10291 msgstr ""
10292
10293 # type: textblock
10294 #: ../src/guestfs-actions.pod:3446
10295 msgid ""
10296 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10297 "link, then the link is stat-ed, not the file it refers to."
10298 msgstr ""
10299
10300 # type: textblock
10301 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
10302 msgid "This is the same as the C<lstat(2)> system call."
10303 msgstr ""
10304
10305 # type: textblock
10306 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
10307 msgid ""
10308 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10309 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10310 msgstr ""
10311
10312 # type: textblock
10313 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879
10314 #: ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
10315 msgid "(Added in 0.9.2)"
10316 msgstr ""
10317
10318 # type: =head2
10319 #: ../src/guestfs-actions.pod:3458
10320 msgid "guestfs_lstatlist"
10321 msgstr ""
10322
10323 # type: verbatim
10324 #: ../src/guestfs-actions.pod:3460
10325 #, no-wrap
10326 msgid ""
10327 " struct guestfs_stat_list *\n"
10328 " guestfs_lstatlist (guestfs_h *g,\n"
10329 "                    const char *path,\n"
10330 "                    char *const *names);\n"
10331 "\n"
10332 msgstr ""
10333
10334 # type: textblock
10335 #: ../src/guestfs-actions.pod:3465
10336 msgid ""
10337 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10338 "files, where all files are in the directory C<path>.  C<names> is the list "
10339 "of files from this directory."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
10344 msgid ""
10345 "On return you get a list of stat structs, with a one-to-one correspondence "
10346 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10347 "then the C<ino> field of that structure is set to C<-1>."
10348 msgstr ""
10349
10350 # type: textblock
10351 #: ../src/guestfs-actions.pod:3474
10352 msgid ""
10353 "This call is intended for programs that want to efficiently list a directory "
10354 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10355 "for a similarly efficient call for getting extended attributes.  Very long "
10356 "directory listings might cause the protocol message size to be exceeded, "
10357 "causing this call to fail.  The caller must split up such requests into "
10358 "smaller groups of names."
10359 msgstr ""
10360
10361 # type: textblock
10362 #: ../src/guestfs-actions.pod:3482
10363 msgid ""
10364 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10365 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10366 msgstr ""
10367
10368 # type: =head2
10369 #: ../src/guestfs-actions.pod:3488
10370 msgid "guestfs_luks_add_key"
10371 msgstr ""
10372
10373 # type: verbatim
10374 #: ../src/guestfs-actions.pod:3490
10375 #, no-wrap
10376 msgid ""
10377 " int\n"
10378 " guestfs_luks_add_key (guestfs_h *g,\n"
10379 "                       const char *device,\n"
10380 "                       const char *key,\n"
10381 "                       const char *newkey,\n"
10382 "                       int keyslot);\n"
10383 "\n"
10384 msgstr ""
10385
10386 # type: textblock
10387 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
10388 msgid ""
10389 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10390 "existing key, and is used to access the device.  C<newkey> is the new key to "
10391 "add.  C<keyslot> is the key slot that will be replaced."
10392 msgstr ""
10393
10394 # type: textblock
10395 #: ../src/guestfs-actions.pod:3502
10396 msgid ""
10397 "Note that if C<keyslot> already contains a key, then this command will "
10398 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10399 msgstr ""
10400
10401 # type: textblock
10402 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548
10403 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591
10404 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
10405 msgid ""
10406 "This function takes a key or passphrase parameter which could contain "
10407 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10408 "information."
10409 msgstr ""
10410
10411 # type: textblock
10412 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552
10413 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
10414 msgid "(Added in 1.5.2)"
10415 msgstr ""
10416
10417 # type: =head2
10418 #: ../src/guestfs-actions.pod:3514
10419 msgid "guestfs_luks_close"
10420 msgstr ""
10421
10422 # type: verbatim
10423 #: ../src/guestfs-actions.pod:3516
10424 #, no-wrap
10425 msgid ""
10426 " int\n"
10427 " guestfs_luks_close (guestfs_h *g,\n"
10428 "                     const char *device);\n"
10429 "\n"
10430 msgstr ""
10431
10432 # type: textblock
10433 #: ../src/guestfs-actions.pod:3520
10434 msgid ""
10435 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10436 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10437 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10438 "underlying block device."
10439 msgstr ""
10440
10441 # type: textblock
10442 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627
10443 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696
10444 #: ../src/guestfs-actions.pod:3744
10445 msgid "(Added in 1.5.1)"
10446 msgstr ""
10447
10448 # type: =head2
10449 #: ../src/guestfs-actions.pod:3530
10450 msgid "guestfs_luks_format"
10451 msgstr ""
10452
10453 # type: verbatim
10454 #: ../src/guestfs-actions.pod:3532
10455 #, no-wrap
10456 msgid ""
10457 " int\n"
10458 " guestfs_luks_format (guestfs_h *g,\n"
10459 "                      const char *device,\n"
10460 "                      const char *key,\n"
10461 "                      int keyslot);\n"
10462 "\n"
10463 msgstr ""
10464
10465 # type: textblock
10466 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10467 msgid ""
10468 "This command erases existing data on C<device> and formats the device as a "
10469 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10470 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10471 msgstr ""
10472
10473 # type: textblock
10474 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568
10475 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568
10476 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706
10477 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755
10478 #: ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433
10479 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10480 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10481 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10482 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10483 msgid ""
10484 "B<This command is dangerous.  Without careful use you can easily destroy all "
10485 "your data>."
10486 msgstr ""
10487
10488 # type: =head2
10489 #: ../src/guestfs-actions.pod:3554
10490 msgid "guestfs_luks_format_cipher"
10491 msgstr ""
10492
10493 # type: verbatim
10494 #: ../src/guestfs-actions.pod:3556
10495 #, no-wrap
10496 msgid ""
10497 " int\n"
10498 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10499 "                             const char *device,\n"
10500 "                             const char *key,\n"
10501 "                             int keyslot,\n"
10502 "                             const char *cipher);\n"
10503 "\n"
10504 msgstr ""
10505
10506 # type: textblock
10507 #: ../src/guestfs-actions.pod:3563
10508 msgid ""
10509 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10510 "set the C<cipher> used."
10511 msgstr ""
10512
10513 # type: =head2
10514 #: ../src/guestfs-actions.pod:3577
10515 msgid "guestfs_luks_kill_slot"
10516 msgstr ""
10517
10518 # type: verbatim
10519 #: ../src/guestfs-actions.pod:3579
10520 #, no-wrap
10521 msgid ""
10522 " int\n"
10523 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10524 "                         const char *device,\n"
10525 "                         const char *key,\n"
10526 "                         int keyslot);\n"
10527 "\n"
10528 msgstr ""
10529
10530 # type: textblock
10531 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10532 msgid ""
10533 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10534 "device C<device>.  C<key> must be one of the I<other> keys."
10535 msgstr ""
10536
10537 # type: =head2
10538 #: ../src/guestfs-actions.pod:3597
10539 msgid "guestfs_luks_open"
10540 msgstr ""
10541
10542 # type: verbatim
10543 #: ../src/guestfs-actions.pod:3599
10544 #, no-wrap
10545 msgid ""
10546 " int\n"
10547 " guestfs_luks_open (guestfs_h *g,\n"
10548 "                    const char *device,\n"
10549 "                    const char *key,\n"
10550 "                    const char *mapname);\n"
10551 "\n"
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10556 msgid ""
10557 "This command opens a block device which has been encrypted according to the "
10558 "Linux Unified Key Setup (LUKS) standard."
10559 msgstr ""
10560
10561 # type: textblock
10562 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10563 msgid "C<device> is the encrypted block device or partition."
10564 msgstr ""
10565
10566 # type: textblock
10567 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10568 msgid ""
10569 "The caller must supply one of the keys associated with the LUKS block "
10570 "device, in the C<key> parameter."
10571 msgstr ""
10572
10573 # type: textblock
10574 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10575 msgid ""
10576 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10577 "writes to this block device are decrypted from and encrypted to the "
10578 "underlying C<device> respectively."
10579 msgstr ""
10580
10581 # type: textblock
10582 #: ../src/guestfs-actions.pod:3617
10583 msgid ""
10584 "If this block device contains LVM volume groups, then calling "
10585 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10586 "visible."
10587 msgstr ""
10588
10589 # type: =head2
10590 #: ../src/guestfs-actions.pod:3629
10591 msgid "guestfs_luks_open_ro"
10592 msgstr ""
10593
10594 # type: verbatim
10595 #: ../src/guestfs-actions.pod:3631
10596 #, no-wrap
10597 msgid ""
10598 " int\n"
10599 " guestfs_luks_open_ro (guestfs_h *g,\n"
10600 "                       const char *device,\n"
10601 "                       const char *key,\n"
10602 "                       const char *mapname);\n"
10603 "\n"
10604 msgstr ""
10605
10606 # type: textblock
10607 #: ../src/guestfs-actions.pod:3637
10608 msgid ""
10609 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10610 "created."
10611 msgstr ""
10612
10613 # type: =head2
10614 #: ../src/guestfs-actions.pod:3648
10615 msgid "guestfs_lvcreate"
10616 msgstr ""
10617
10618 # type: verbatim
10619 #: ../src/guestfs-actions.pod:3650
10620 #, no-wrap
10621 msgid ""
10622 " int\n"
10623 " guestfs_lvcreate (guestfs_h *g,\n"
10624 "                   const char *logvol,\n"
10625 "                   const char *volgroup,\n"
10626 "                   int mbytes);\n"
10627 "\n"
10628 msgstr ""
10629
10630 # type: textblock
10631 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10632 msgid ""
10633 "This creates an LVM logical volume called C<logvol> on the volume group "
10634 "C<volgroup>, with C<size> megabytes."
10635 msgstr ""
10636
10637 # type: =head2
10638 #: ../src/guestfs-actions.pod:3663
10639 msgid "guestfs_lvm_canonical_lv_name"
10640 msgstr ""
10641
10642 # type: verbatim
10643 #: ../src/guestfs-actions.pod:3665
10644 #, no-wrap
10645 msgid ""
10646 " char *\n"
10647 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10648 "                                const char *lvname);\n"
10649 "\n"
10650 msgstr ""
10651
10652 # type: textblock
10653 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10654 msgid ""
10655 "This converts alternative naming schemes for LVs that you might find to the "
10656 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10657 "LV>."
10658 msgstr ""
10659
10660 # type: textblock
10661 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10662 msgid ""
10663 "This command returns an error if the C<lvname> parameter does not refer to a "
10664 "logical volume."
10665 msgstr ""
10666
10667 # type: textblock
10668 #: ../src/guestfs-actions.pod:3676
10669 msgid "See also C<guestfs_is_lv>."
10670 msgstr ""
10671
10672 # type: textblock
10673 #: ../src/guestfs-actions.pod:3681
10674 msgid "(Added in 1.5.24)"
10675 msgstr ""
10676
10677 # type: =head2
10678 #: ../src/guestfs-actions.pod:3683
10679 msgid "guestfs_lvm_clear_filter"
10680 msgstr ""
10681
10682 # type: verbatim
10683 #: ../src/guestfs-actions.pod:3685
10684 #, no-wrap
10685 msgid ""
10686 " int\n"
10687 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10688 "\n"
10689 msgstr ""
10690
10691 # type: textblock
10692 #: ../src/guestfs-actions.pod:3688
10693 msgid ""
10694 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10695 "see every block device."
10696 msgstr ""
10697
10698 # type: textblock
10699 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733
10700 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10701 msgid ""
10702 "This command also clears the LVM cache and performs a volume group scan."
10703 msgstr ""
10704
10705 # type: =head2
10706 #: ../src/guestfs-actions.pod:3698
10707 msgid "guestfs_lvm_remove_all"
10708 msgstr ""
10709
10710 # type: verbatim
10711 #: ../src/guestfs-actions.pod:3700
10712 #, no-wrap
10713 msgid ""
10714 " int\n"
10715 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10716 "\n"
10717 msgstr ""
10718
10719 # type: textblock
10720 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10721 msgid ""
10722 "This command removes all LVM logical volumes, volume groups and physical "
10723 "volumes."
10724 msgstr ""
10725
10726 # type: =head2
10727 #: ../src/guestfs-actions.pod:3713
10728 msgid "guestfs_lvm_set_filter"
10729 msgstr ""
10730
10731 # type: verbatim
10732 #: ../src/guestfs-actions.pod:3715
10733 #, no-wrap
10734 msgid ""
10735 " int\n"
10736 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10737 "                         char *const *devices);\n"
10738 "\n"
10739 msgstr ""
10740
10741 # type: textblock
10742 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10743 msgid ""
10744 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10745 "block devices in the list C<devices>, and will ignore all other attached "
10746 "block devices."
10747 msgstr ""
10748
10749 # type: textblock
10750 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10751 msgid ""
10752 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10753 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10754 "there are two types of duplication possible: either cloned PVs/VGs which "
10755 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10756 "same name.  In normal operation you cannot create this situation, but you "
10757 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10758 "inside the LVM metadata."
10759 msgstr ""
10760
10761 # type: textblock
10762 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10763 msgid "You can filter whole block devices or individual partitions."
10764 msgstr ""
10765
10766 # type: textblock
10767 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10768 msgid ""
10769 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10770 "filesystem), even if you are not filtering out that VG."
10771 msgstr ""
10772
10773 # type: =head2
10774 #: ../src/guestfs-actions.pod:3746
10775 msgid "guestfs_lvremove"
10776 msgstr ""
10777
10778 # type: verbatim
10779 #: ../src/guestfs-actions.pod:3748
10780 #, no-wrap
10781 msgid ""
10782 " int\n"
10783 " guestfs_lvremove (guestfs_h *g,\n"
10784 "                   const char *device);\n"
10785 "\n"
10786 msgstr ""
10787
10788 # type: textblock
10789 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10790 msgid ""
10791 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10792 "LV, such as C</dev/VG/LV>."
10793 msgstr ""
10794
10795 # type: textblock
10796 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10797 msgid ""
10798 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10799 "dev/VG>."
10800 msgstr ""
10801
10802 # type: textblock
10803 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914
10804 #: ../src/guestfs-actions.pod:6644
10805 msgid "(Added in 1.0.13)"
10806 msgstr ""
10807
10808 # type: =head2
10809 #: ../src/guestfs-actions.pod:3762
10810 msgid "guestfs_lvrename"
10811 msgstr ""
10812
10813 # type: verbatim
10814 #: ../src/guestfs-actions.pod:3764
10815 #, no-wrap
10816 msgid ""
10817 " int\n"
10818 " guestfs_lvrename (guestfs_h *g,\n"
10819 "                   const char *logvol,\n"
10820 "                   const char *newlogvol);\n"
10821 "\n"
10822 msgstr ""
10823
10824 # type: textblock
10825 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10826 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10827 msgstr ""
10828
10829 # type: textblock
10830 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10831 msgid "(Added in 1.0.83)"
10832 msgstr ""
10833
10834 # type: =head2
10835 #: ../src/guestfs-actions.pod:3775
10836 msgid "guestfs_lvresize"
10837 msgstr ""
10838
10839 # type: verbatim
10840 #: ../src/guestfs-actions.pod:3777
10841 #, no-wrap
10842 msgid ""
10843 " int\n"
10844 " guestfs_lvresize (guestfs_h *g,\n"
10845 "                   const char *device,\n"
10846 "                   int mbytes);\n"
10847 "\n"
10848 msgstr ""
10849
10850 # type: textblock
10851 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10852 msgid ""
10853 "This resizes (expands or shrinks) an existing LVM logical volume to "
10854 "C<mbytes>.  When reducing, data in the reduced part is lost."
10855 msgstr ""
10856
10857 # type: =head2
10858 #: ../src/guestfs-actions.pod:3790
10859 msgid "guestfs_lvresize_free"
10860 msgstr ""
10861
10862 # type: verbatim
10863 #: ../src/guestfs-actions.pod:3792
10864 #, no-wrap
10865 msgid ""
10866 " int\n"
10867 " guestfs_lvresize_free (guestfs_h *g,\n"
10868 "                        const char *lv,\n"
10869 "                        int percent);\n"
10870 "\n"
10871 msgstr ""
10872
10873 # type: textblock
10874 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10875 msgid ""
10876 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10877 "remaining free space in the volume group.  Commonly you would call this with "
10878 "pc = 100 which expands the logical volume as much as possible, using all "
10879 "remaining free space in the volume group."
10880 msgstr ""
10881
10882 # type: textblock
10883 #: ../src/guestfs-actions.pod:3805
10884 msgid "(Added in 1.3.3)"
10885 msgstr ""
10886
10887 # type: =head2
10888 #: ../src/guestfs-actions.pod:3807
10889 msgid "guestfs_lvs"
10890 msgstr ""
10891
10892 # type: verbatim
10893 #: ../src/guestfs-actions.pod:3809
10894 #, no-wrap
10895 msgid ""
10896 " char **\n"
10897 " guestfs_lvs (guestfs_h *g);\n"
10898 "\n"
10899 msgstr ""
10900
10901 # type: textblock
10902 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10903 msgid ""
10904 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10905 "(8)> command."
10906 msgstr ""
10907
10908 # type: textblock
10909 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10910 msgid ""
10911 "This returns a list of the logical volume device names (eg. C</dev/"
10912 "VolGroup00/LogVol00>)."
10913 msgstr ""
10914
10915 # type: textblock
10916 #: ../src/guestfs-actions.pod:3818
10917 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10918 msgstr ""
10919
10920 # type: =head2
10921 #: ../src/guestfs-actions.pod:3826
10922 msgid "guestfs_lvs_full"
10923 msgstr ""
10924
10925 # type: verbatim
10926 #: ../src/guestfs-actions.pod:3828
10927 #, no-wrap
10928 msgid ""
10929 " struct guestfs_lvm_lv_list *\n"
10930 " guestfs_lvs_full (guestfs_h *g);\n"
10931 "\n"
10932 msgstr ""
10933
10934 # type: textblock
10935 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10936 msgid ""
10937 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10938 "(8)> command.  The \"full\" version includes all fields."
10939 msgstr ""
10940
10941 # type: textblock
10942 #: ../src/guestfs-actions.pod:3834
10943 msgid ""
10944 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10945 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10946 msgstr ""
10947
10948 # type: =head2
10949 #: ../src/guestfs-actions.pod:3840
10950 msgid "guestfs_lvuuid"
10951 msgstr ""
10952
10953 # type: verbatim
10954 #: ../src/guestfs-actions.pod:3842
10955 #, no-wrap
10956 msgid ""
10957 " char *\n"
10958 " guestfs_lvuuid (guestfs_h *g,\n"
10959 "                 const char *device);\n"
10960 "\n"
10961 msgstr ""
10962
10963 # type: textblock
10964 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10965 msgid "This command returns the UUID of the LVM LV C<device>."
10966 msgstr ""
10967
10968 # type: =head2
10969 #: ../src/guestfs-actions.pod:3853
10970 msgid "guestfs_lxattrlist"
10971 msgstr ""
10972
10973 # type: verbatim
10974 #: ../src/guestfs-actions.pod:3855
10975 #, no-wrap
10976 msgid ""
10977 " struct guestfs_xattr_list *\n"
10978 " guestfs_lxattrlist (guestfs_h *g,\n"
10979 "                     const char *path,\n"
10980 "                     char *const *names);\n"
10981 "\n"
10982 msgstr ""
10983
10984 # type: textblock
10985 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
10986 msgid ""
10987 "This call allows you to get the extended attributes of multiple files, where "
10988 "all files are in the directory C<path>.  C<names> is the list of files from "
10989 "this directory."
10990 msgstr ""
10991
10992 # type: textblock
10993 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
10994 msgid ""
10995 "On return you get a flat list of xattr structs which must be interpreted "
10996 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10997 "C<attrval> in this struct is zero-length to indicate there was an error "
10998 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10999 "number (the number of following attributes for this file, which could be C<"
11000 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11001 "for the first named file.  This repeats for the second and subsequent files."
11002 msgstr ""
11003
11004 # type: textblock
11005 #: ../src/guestfs-actions.pod:3874
11006 msgid ""
11007 "This call is intended for programs that want to efficiently list a directory "
11008 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11009 "a similarly efficient call for getting standard stats.  Very long directory "
11010 "listings might cause the protocol message size to be exceeded, causing this "
11011 "call to fail.  The caller must split up such requests into smaller groups of "
11012 "names."
11013 msgstr ""
11014
11015 # type: =head2
11016 #: ../src/guestfs-actions.pod:3888
11017 msgid "guestfs_mkdir"
11018 msgstr ""
11019
11020 # type: verbatim
11021 #: ../src/guestfs-actions.pod:3890
11022 #, no-wrap
11023 msgid ""
11024 " int\n"
11025 " guestfs_mkdir (guestfs_h *g,\n"
11026 "                const char *path);\n"
11027 "\n"
11028 msgstr ""
11029
11030 # type: textblock
11031 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
11032 msgid "Create a directory named C<path>."
11033 msgstr ""
11034
11035 # type: =head2
11036 #: ../src/guestfs-actions.pod:3900
11037 msgid "guestfs_mkdir_mode"
11038 msgstr ""
11039
11040 # type: verbatim
11041 #: ../src/guestfs-actions.pod:3902
11042 #, no-wrap
11043 msgid ""
11044 " int\n"
11045 " guestfs_mkdir_mode (guestfs_h *g,\n"
11046 "                     const char *path,\n"
11047 "                     int mode);\n"
11048 "\n"
11049 msgstr ""
11050
11051 # type: textblock
11052 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
11053 msgid ""
11054 "This command creates a directory, setting the initial permissions of the "
11055 "directory to C<mode>."
11056 msgstr ""
11057
11058 # type: textblock
11059 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
11060 msgid ""
11061 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11062 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11063 "other ways."
11064 msgstr ""
11065
11066 # type: textblock
11067 #: ../src/guestfs-actions.pod:3914
11068 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11069 msgstr ""
11070
11071 # type: =head2
11072 #: ../src/guestfs-actions.pod:3920
11073 msgid "guestfs_mkdir_p"
11074 msgstr ""
11075
11076 # type: verbatim
11077 #: ../src/guestfs-actions.pod:3922
11078 #, no-wrap
11079 msgid ""
11080 " int\n"
11081 " guestfs_mkdir_p (guestfs_h *g,\n"
11082 "                  const char *path);\n"
11083 "\n"
11084 msgstr ""
11085
11086 # type: textblock
11087 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
11088 msgid ""
11089 "Create a directory named C<path>, creating any parent directories as "
11090 "necessary.  This is like the C<mkdir -p> shell command."
11091 msgstr ""
11092
11093 # type: =head2
11094 #: ../src/guestfs-actions.pod:3933
11095 msgid "guestfs_mkdtemp"
11096 msgstr ""
11097
11098 # type: verbatim
11099 #: ../src/guestfs-actions.pod:3935
11100 #, no-wrap
11101 msgid ""
11102 " char *\n"
11103 " guestfs_mkdtemp (guestfs_h *g,\n"
11104 "                  const char *template);\n"
11105 "\n"
11106 msgstr ""
11107
11108 # type: textblock
11109 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
11110 msgid ""
11111 "This command creates a temporary directory.  The C<template> parameter "
11112 "should be a full pathname for the temporary directory name with the final "
11113 "six characters being \"XXXXXX\"."
11114 msgstr ""
11115
11116 # type: textblock
11117 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
11118 msgid ""
11119 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11120 "being suitable for Windows filesystems."
11121 msgstr ""
11122
11123 # type: textblock
11124 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
11125 msgid "The name of the temporary directory that was created is returned."
11126 msgstr ""
11127
11128 # type: textblock
11129 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
11130 msgid "The temporary directory is created with mode 0700 and is owned by root."
11131 msgstr ""
11132
11133 # type: textblock
11134 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
11135 msgid ""
11136 "The caller is responsible for deleting the temporary directory and its "
11137 "contents after use."
11138 msgstr ""
11139
11140 # type: textblock
11141 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
11142 msgid "See also: L<mkdtemp(3)>"
11143 msgstr ""
11144
11145 # type: =head2
11146 #: ../src/guestfs-actions.pod:3963
11147 msgid "guestfs_mke2fs_J"
11148 msgstr ""
11149
11150 # type: verbatim
11151 #: ../src/guestfs-actions.pod:3965
11152 #, no-wrap
11153 msgid ""
11154 " int\n"
11155 " guestfs_mke2fs_J (guestfs_h *g,\n"
11156 "                   const char *fstype,\n"
11157 "                   int blocksize,\n"
11158 "                   const char *device,\n"
11159 "                   const char *journal);\n"
11160 "\n"
11161 msgstr ""
11162
11163 # type: textblock
11164 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
11165 msgid ""
11166 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11167 "C<journal>.  It is equivalent to the command:"
11168 msgstr ""
11169
11170 # type: verbatim
11171 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
11172 #, no-wrap
11173 msgid ""
11174 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11175 "\n"
11176 msgstr ""
11177
11178 # type: textblock
11179 #: ../src/guestfs-actions.pod:3978
11180 msgid "See also C<guestfs_mke2journal>."
11181 msgstr ""
11182
11183 # type: textblock
11184 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000
11185 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034
11186 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062
11187 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
11188 msgid "(Added in 1.0.68)"
11189 msgstr ""
11190
11191 # type: =head2
11192 #: ../src/guestfs-actions.pod:3984
11193 msgid "guestfs_mke2fs_JL"
11194 msgstr ""
11195
11196 # type: verbatim
11197 #: ../src/guestfs-actions.pod:3986
11198 #, no-wrap
11199 msgid ""
11200 " int\n"
11201 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11202 "                    const char *fstype,\n"
11203 "                    int blocksize,\n"
11204 "                    const char *device,\n"
11205 "                    const char *label);\n"
11206 "\n"
11207 msgstr ""
11208
11209 # type: textblock
11210 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
11211 msgid ""
11212 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11213 "the journal labeled C<label>."
11214 msgstr ""
11215
11216 # type: textblock
11217 #: ../src/guestfs-actions.pod:3996
11218 msgid "See also C<guestfs_mke2journal_L>."
11219 msgstr ""
11220
11221 # type: =head2
11222 #: ../src/guestfs-actions.pod:4002
11223 msgid "guestfs_mke2fs_JU"
11224 msgstr ""
11225
11226 # type: verbatim
11227 #: ../src/guestfs-actions.pod:4004
11228 #, no-wrap
11229 msgid ""
11230 " int\n"
11231 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11232 "                    const char *fstype,\n"
11233 "                    int blocksize,\n"
11234 "                    const char *device,\n"
11235 "                    const char *uuid);\n"
11236 "\n"
11237 msgstr ""
11238
11239 # type: textblock
11240 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
11241 msgid ""
11242 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11243 "the journal with UUID C<uuid>."
11244 msgstr ""
11245
11246 # type: textblock
11247 #: ../src/guestfs-actions.pod:4014
11248 msgid "See also C<guestfs_mke2journal_U>."
11249 msgstr ""
11250
11251 # type: =head2
11252 #: ../src/guestfs-actions.pod:4020
11253 msgid "guestfs_mke2journal"
11254 msgstr ""
11255
11256 # type: verbatim
11257 #: ../src/guestfs-actions.pod:4022
11258 #, no-wrap
11259 msgid ""
11260 " int\n"
11261 " guestfs_mke2journal (guestfs_h *g,\n"
11262 "                      int blocksize,\n"
11263 "                      const char *device);\n"
11264 "\n"
11265 msgstr ""
11266
11267 # type: textblock
11268 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
11269 msgid ""
11270 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11271 "command:"
11272 msgstr ""
11273
11274 # type: verbatim
11275 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
11276 #, no-wrap
11277 msgid ""
11278 " mke2fs -O journal_dev -b blocksize device\n"
11279 "\n"
11280 msgstr ""
11281
11282 # type: =head2
11283 #: ../src/guestfs-actions.pod:4036
11284 msgid "guestfs_mke2journal_L"
11285 msgstr ""
11286
11287 # type: verbatim
11288 #: ../src/guestfs-actions.pod:4038
11289 #, no-wrap
11290 msgid ""
11291 " int\n"
11292 " guestfs_mke2journal_L (guestfs_h *g,\n"
11293 "                        int blocksize,\n"
11294 "                        const char *label,\n"
11295 "                        const char *device);\n"
11296 "\n"
11297 msgstr ""
11298
11299 # type: textblock
11300 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
11301 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11302 msgstr ""
11303
11304 # type: =head2
11305 #: ../src/guestfs-actions.pod:4050
11306 msgid "guestfs_mke2journal_U"
11307 msgstr ""
11308
11309 # type: verbatim
11310 #: ../src/guestfs-actions.pod:4052
11311 #, no-wrap
11312 msgid ""
11313 " int\n"
11314 " guestfs_mke2journal_U (guestfs_h *g,\n"
11315 "                        int blocksize,\n"
11316 "                        const char *uuid,\n"
11317 "                        const char *device);\n"
11318 "\n"
11319 msgstr ""
11320
11321 # type: textblock
11322 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
11323 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11324 msgstr ""
11325
11326 # type: =head2
11327 #: ../src/guestfs-actions.pod:4064
11328 msgid "guestfs_mkfifo"
11329 msgstr ""
11330
11331 # type: verbatim
11332 #: ../src/guestfs-actions.pod:4066
11333 #, no-wrap
11334 msgid ""
11335 " int\n"
11336 " guestfs_mkfifo (guestfs_h *g,\n"
11337 "                 int mode,\n"
11338 "                 const char *path);\n"
11339 "\n"
11340 msgstr ""
11341
11342 # type: textblock
11343 #: ../src/guestfs-actions.pod:4071
11344 msgid ""
11345 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11346 "is just a convenient wrapper around C<guestfs_mknod>."
11347 msgstr ""
11348
11349 # type: =head2
11350 #: ../src/guestfs-actions.pod:4081
11351 msgid "guestfs_mkfs"
11352 msgstr ""
11353
11354 # type: verbatim
11355 #: ../src/guestfs-actions.pod:4083
11356 #, no-wrap
11357 msgid ""
11358 " int\n"
11359 " guestfs_mkfs (guestfs_h *g,\n"
11360 "               const char *fstype,\n"
11361 "               const char *device);\n"
11362 "\n"
11363 msgstr ""
11364
11365 # type: textblock
11366 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
11367 msgid ""
11368 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11369 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11370 msgstr ""
11371
11372 # type: =head2
11373 #: ../src/guestfs-actions.pod:4096
11374 msgid "guestfs_mkfs_b"
11375 msgstr ""
11376
11377 # type: verbatim
11378 #: ../src/guestfs-actions.pod:4098
11379 #, no-wrap
11380 msgid ""
11381 " int\n"
11382 " guestfs_mkfs_b (guestfs_h *g,\n"
11383 "                 const char *fstype,\n"
11384 "                 int blocksize,\n"
11385 "                 const char *device);\n"
11386 "\n"
11387 msgstr ""
11388
11389 # type: textblock
11390 #: ../src/guestfs-actions.pod:4104
11391 msgid ""
11392 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11393 "block size of the resulting filesystem.  Supported block sizes depend on the "
11394 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11395 msgstr ""
11396
11397 # type: textblock
11398 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
11399 msgid ""
11400 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11401 "cluster size."
11402 msgstr ""
11403
11404 # type: =head2
11405 #: ../src/guestfs-actions.pod:4116
11406 msgid "guestfs_mkmountpoint"
11407 msgstr ""
11408
11409 # type: verbatim
11410 #: ../src/guestfs-actions.pod:4118
11411 #, no-wrap
11412 msgid ""
11413 " int\n"
11414 " guestfs_mkmountpoint (guestfs_h *g,\n"
11415 "                       const char *exemptpath);\n"
11416 "\n"
11417 msgstr ""
11418
11419 # type: textblock
11420 #: ../src/guestfs-actions.pod:4122
11421 msgid ""
11422 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11423 "that can be used to create extra mountpoints before mounting the first "
11424 "filesystem."
11425 msgstr ""
11426
11427 # type: textblock
11428 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11429 msgid ""
11430 "These calls are I<only> necessary in some very limited circumstances, mainly "
11431 "the case where you want to mount a mix of unrelated and/or read-only "
11432 "filesystems together."
11433 msgstr ""
11434
11435 # type: textblock
11436 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
11437 msgid ""
11438 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11439 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11440 "inside that.  You can unpack this as follows in guestfish:"
11441 msgstr ""
11442
11443 # type: verbatim
11444 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
11445 #, no-wrap
11446 msgid ""
11447 " add-ro Fedora-11-i686-Live.iso\n"
11448 " run\n"
11449 " mkmountpoint /cd\n"
11450 " mkmountpoint /sqsh\n"
11451 " mkmountpoint /ext3fs\n"
11452 " mount /dev/sda /cd\n"
11453 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11454 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11455 "\n"
11456 msgstr ""
11457
11458 # type: textblock
11459 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
11460 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11461 msgstr ""
11462
11463 # type: textblock
11464 #: ../src/guestfs-actions.pod:4146
11465 msgid ""
11466 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11467 "may get unexpected errors if you try to mix these calls.  It is safest to "
11468 "manually unmount filesystems and remove mountpoints after use."
11469 msgstr ""
11470
11471 # type: textblock
11472 #: ../src/guestfs-actions.pod:4150
11473 msgid ""
11474 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11475 "first, so for this to work for manual mountpoints, you must ensure that the "
11476 "innermost mountpoints have the longest pathnames, as in the example code "
11477 "above."
11478 msgstr ""
11479
11480 # type: textblock
11481 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11482 msgid ""
11483 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11484 msgstr ""
11485
11486 # type: textblock
11487 #: ../src/guestfs-actions.pod:4157
11488 msgid ""
11489 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11490 "means that C<guestfs_umount_all> is called when the handle is closed which "
11491 "can also trigger these issues."
11492 msgstr ""
11493
11494 # type: textblock
11495 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422
11496 #: ../src/guestfs-actions.pod:5315
11497 msgid "(Added in 1.0.62)"
11498 msgstr ""
11499
11500 # type: =head2
11501 #: ../src/guestfs-actions.pod:4165
11502 msgid "guestfs_mknod"
11503 msgstr ""
11504
11505 # type: verbatim
11506 #: ../src/guestfs-actions.pod:4167
11507 #, no-wrap
11508 msgid ""
11509 " int\n"
11510 " guestfs_mknod (guestfs_h *g,\n"
11511 "                int mode,\n"
11512 "                int devmajor,\n"
11513 "                int devminor,\n"
11514 "                const char *path);\n"
11515 "\n"
11516 msgstr ""
11517
11518 # type: textblock
11519 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11520 msgid ""
11521 "This call creates block or character special devices, or named pipes (FIFOs)."
11522 msgstr ""
11523
11524 # type: textblock
11525 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11526 msgid ""
11527 "The C<mode> parameter should be the mode, using the standard constants.  "
11528 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11529 "used when creating block and character special devices."
11530 msgstr ""
11531
11532 # type: textblock
11533 #: ../src/guestfs-actions.pod:4182
11534 msgid ""
11535 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11536 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11537 "regular file).  These constants are available in the standard Linux header "
11538 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11539 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11540 "the appropriate constant for you."
11541 msgstr ""
11542
11543 # type: =head2
11544 #: ../src/guestfs-actions.pod:4196
11545 msgid "guestfs_mknod_b"
11546 msgstr ""
11547
11548 # type: verbatim
11549 #: ../src/guestfs-actions.pod:4198
11550 #, no-wrap
11551 msgid ""
11552 " int\n"
11553 " guestfs_mknod_b (guestfs_h *g,\n"
11554 "                  int mode,\n"
11555 "                  int devmajor,\n"
11556 "                  int devminor,\n"
11557 "                  const char *path);\n"
11558 "\n"
11559 msgstr ""
11560
11561 # type: textblock
11562 #: ../src/guestfs-actions.pod:4205
11563 msgid ""
11564 "This call creates a block device node called C<path> with mode C<mode> and "
11565 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11566 "wrapper around C<guestfs_mknod>."
11567 msgstr ""
11568
11569 # type: =head2
11570 #: ../src/guestfs-actions.pod:4215
11571 msgid "guestfs_mknod_c"
11572 msgstr ""
11573
11574 # type: verbatim
11575 #: ../src/guestfs-actions.pod:4217
11576 #, no-wrap
11577 msgid ""
11578 " int\n"
11579 " guestfs_mknod_c (guestfs_h *g,\n"
11580 "                  int mode,\n"
11581 "                  int devmajor,\n"
11582 "                  int devminor,\n"
11583 "                  const char *path);\n"
11584 "\n"
11585 msgstr ""
11586
11587 # type: textblock
11588 #: ../src/guestfs-actions.pod:4224
11589 msgid ""
11590 "This call creates a char device node called C<path> with mode C<mode> and "
11591 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11592 "wrapper around C<guestfs_mknod>."
11593 msgstr ""
11594
11595 # type: =head2
11596 #: ../src/guestfs-actions.pod:4234
11597 msgid "guestfs_mkswap"
11598 msgstr ""
11599
11600 # type: verbatim
11601 #: ../src/guestfs-actions.pod:4236
11602 #, no-wrap
11603 msgid ""
11604 " int\n"
11605 " guestfs_mkswap (guestfs_h *g,\n"
11606 "                 const char *device);\n"
11607 "\n"
11608 msgstr ""
11609
11610 # type: textblock
11611 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11612 msgid "Create a swap partition on C<device>."
11613 msgstr ""
11614
11615 # type: =head2
11616 #: ../src/guestfs-actions.pod:4246
11617 msgid "guestfs_mkswap_L"
11618 msgstr ""
11619
11620 # type: verbatim
11621 #: ../src/guestfs-actions.pod:4248
11622 #, no-wrap
11623 msgid ""
11624 " int\n"
11625 " guestfs_mkswap_L (guestfs_h *g,\n"
11626 "                   const char *label,\n"
11627 "                   const char *device);\n"
11628 "\n"
11629 msgstr ""
11630
11631 # type: textblock
11632 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11633 msgid "Create a swap partition on C<device> with label C<label>."
11634 msgstr ""
11635
11636 # type: textblock
11637 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11638 msgid ""
11639 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11640 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11641 "or swap tools."
11642 msgstr ""
11643
11644 # type: =head2
11645 #: ../src/guestfs-actions.pod:4263
11646 msgid "guestfs_mkswap_U"
11647 msgstr ""
11648
11649 # type: verbatim
11650 #: ../src/guestfs-actions.pod:4265
11651 #, no-wrap
11652 msgid ""
11653 " int\n"
11654 " guestfs_mkswap_U (guestfs_h *g,\n"
11655 "                   const char *uuid,\n"
11656 "                   const char *device);\n"
11657 "\n"
11658 msgstr ""
11659
11660 # type: textblock
11661 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11662 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11663 msgstr ""
11664
11665 # type: =head2
11666 #: ../src/guestfs-actions.pod:4276
11667 msgid "guestfs_mkswap_file"
11668 msgstr ""
11669
11670 # type: verbatim
11671 #: ../src/guestfs-actions.pod:4278
11672 #, no-wrap
11673 msgid ""
11674 " int\n"
11675 " guestfs_mkswap_file (guestfs_h *g,\n"
11676 "                      const char *path);\n"
11677 "\n"
11678 msgstr ""
11679
11680 # type: textblock
11681 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11682 msgid "Create a swap file."
11683 msgstr ""
11684
11685 # type: textblock
11686 #: ../src/guestfs-actions.pod:4284
11687 msgid ""
11688 "This command just writes a swap file signature to an existing file.  To "
11689 "create the file itself, use something like C<guestfs_fallocate>."
11690 msgstr ""
11691
11692 # type: =head2
11693 #: ../src/guestfs-actions.pod:4291
11694 msgid "guestfs_modprobe"
11695 msgstr ""
11696
11697 # type: verbatim
11698 #: ../src/guestfs-actions.pod:4293
11699 #, no-wrap
11700 msgid ""
11701 " int\n"
11702 " guestfs_modprobe (guestfs_h *g,\n"
11703 "                   const char *modulename);\n"
11704 "\n"
11705 msgstr ""
11706
11707 # type: textblock
11708 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11709 msgid "This loads a kernel module in the appliance."
11710 msgstr ""
11711
11712 # type: textblock
11713 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11714 msgid ""
11715 "The kernel module must have been whitelisted when libguestfs was built (see "
11716 "C<appliance/kmod.whitelist.in> in the source)."
11717 msgstr ""
11718
11719 # type: =head2
11720 #: ../src/guestfs-actions.pod:4306
11721 msgid "guestfs_mount"
11722 msgstr ""
11723
11724 # type: verbatim
11725 #: ../src/guestfs-actions.pod:4308
11726 #, no-wrap
11727 msgid ""
11728 " int\n"
11729 " guestfs_mount (guestfs_h *g,\n"
11730 "                const char *device,\n"
11731 "                const char *mountpoint);\n"
11732 "\n"
11733 msgstr ""
11734
11735 # type: textblock
11736 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11737 msgid ""
11738 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11739 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11740 "those block devices contain partitions, they will have the usual names (eg. "
11741 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11742 msgstr ""
11743
11744 # type: textblock
11745 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11746 msgid ""
11747 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11748 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11749 "mounted on directories which already exist."
11750 msgstr ""
11751
11752 # type: textblock
11753 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11754 msgid ""
11755 "The mounted filesystem is writable, if we have sufficient permissions on the "
11756 "underlying device."
11757 msgstr ""
11758
11759 # type: textblock
11760 #: ../src/guestfs-actions.pod:4327
11761 msgid ""
11762 "B<Important note:> When you use this call, the filesystem options C<sync> "
11763 "and C<noatime> are set implicitly.  This was originally done because we "
11764 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11765 "very large negative performance impact and negligible effect on "
11766 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11767 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11768 "(use an empty string for the first parameter if you don't want any options)."
11769 msgstr ""
11770
11771 # type: =head2
11772 #: ../src/guestfs-actions.pod:4341
11773 msgid "guestfs_mount_loop"
11774 msgstr ""
11775
11776 # type: verbatim
11777 #: ../src/guestfs-actions.pod:4343
11778 #, no-wrap
11779 msgid ""
11780 " int\n"
11781 " guestfs_mount_loop (guestfs_h *g,\n"
11782 "                     const char *file,\n"
11783 "                     const char *mountpoint);\n"
11784 "\n"
11785 msgstr ""
11786
11787 # type: textblock
11788 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11789 msgid ""
11790 "This command lets you mount C<file> (a filesystem image in a file) on a "
11791 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11792 "mountpoint>."
11793 msgstr ""
11794
11795 # type: =head2
11796 #: ../src/guestfs-actions.pod:4356
11797 msgid "guestfs_mount_options"
11798 msgstr ""
11799
11800 # type: verbatim
11801 #: ../src/guestfs-actions.pod:4358
11802 #, no-wrap
11803 msgid ""
11804 " int\n"
11805 " guestfs_mount_options (guestfs_h *g,\n"
11806 "                        const char *options,\n"
11807 "                        const char *device,\n"
11808 "                        const char *mountpoint);\n"
11809 "\n"
11810 msgstr ""
11811
11812 # type: textblock
11813 #: ../src/guestfs-actions.pod:4364
11814 msgid ""
11815 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11816 "the mount options as for the L<mount(8)> I<-o> flag."
11817 msgstr ""
11818
11819 # type: textblock
11820 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11821 msgid ""
11822 "If the C<options> parameter is an empty string, then no options are passed "
11823 "(all options default to whatever the filesystem uses)."
11824 msgstr ""
11825
11826 # type: textblock
11827 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388
11828 #: ../src/guestfs-actions.pod:4405
11829 msgid "(Added in 1.0.10)"
11830 msgstr ""
11831
11832 # type: =head2
11833 #: ../src/guestfs-actions.pod:4376
11834 msgid "guestfs_mount_ro"
11835 msgstr ""
11836
11837 # type: verbatim
11838 #: ../src/guestfs-actions.pod:4378
11839 #, no-wrap
11840 msgid ""
11841 " int\n"
11842 " guestfs_mount_ro (guestfs_h *g,\n"
11843 "                   const char *device,\n"
11844 "                   const char *mountpoint);\n"
11845 "\n"
11846 msgstr ""
11847
11848 # type: textblock
11849 #: ../src/guestfs-actions.pod:4383
11850 msgid ""
11851 "This is the same as the C<guestfs_mount> command, but it mounts the "
11852 "filesystem with the read-only (I<-o ro>) flag."
11853 msgstr ""
11854
11855 # type: =head2
11856 #: ../src/guestfs-actions.pod:4390
11857 msgid "guestfs_mount_vfs"
11858 msgstr ""
11859
11860 # type: verbatim
11861 #: ../src/guestfs-actions.pod:4392
11862 #, no-wrap
11863 msgid ""
11864 " int\n"
11865 " guestfs_mount_vfs (guestfs_h *g,\n"
11866 "                    const char *options,\n"
11867 "                    const char *vfstype,\n"
11868 "                    const char *device,\n"
11869 "                    const char *mountpoint);\n"
11870 "\n"
11871 msgstr ""
11872
11873 # type: textblock
11874 #: ../src/guestfs-actions.pod:4399
11875 msgid ""
11876 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11877 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11878 "t> flags."
11879 msgstr ""
11880
11881 # type: =head2
11882 #: ../src/guestfs-actions.pod:4407
11883 msgid "guestfs_mountpoints"
11884 msgstr ""
11885
11886 # type: verbatim
11887 #: ../src/guestfs-actions.pod:4409
11888 #, no-wrap
11889 msgid ""
11890 " char **\n"
11891 " guestfs_mountpoints (guestfs_h *g);\n"
11892 "\n"
11893 msgstr ""
11894
11895 # type: textblock
11896 #: ../src/guestfs-actions.pod:4412
11897 msgid ""
11898 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11899 "devices.  This one returns a hash table (map) of device name to directory "
11900 "where the device is mounted."
11901 msgstr ""
11902
11903 # type: =head2
11904 #: ../src/guestfs-actions.pod:4424
11905 msgid "guestfs_mounts"
11906 msgstr ""
11907
11908 # type: verbatim
11909 #: ../src/guestfs-actions.pod:4426
11910 #, no-wrap
11911 msgid ""
11912 " char **\n"
11913 " guestfs_mounts (guestfs_h *g);\n"
11914 "\n"
11915 msgstr ""
11916
11917 # type: textblock
11918 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11919 msgid ""
11920 "This returns the list of currently mounted filesystems.  It returns the list "
11921 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11922 msgstr ""
11923
11924 # type: textblock
11925 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11926 msgid "Some internal mounts are not shown."
11927 msgstr ""
11928
11929 # type: textblock
11930 #: ../src/guestfs-actions.pod:4434
11931 msgid "See also: C<guestfs_mountpoints>"
11932 msgstr ""
11933
11934 # type: =head2
11935 #: ../src/guestfs-actions.pod:4442
11936 msgid "guestfs_mv"
11937 msgstr ""
11938
11939 # type: verbatim
11940 #: ../src/guestfs-actions.pod:4444
11941 #, no-wrap
11942 msgid ""
11943 " int\n"
11944 " guestfs_mv (guestfs_h *g,\n"
11945 "             const char *src,\n"
11946 "             const char *dest);\n"
11947 "\n"
11948 msgstr ""
11949
11950 # type: textblock
11951 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11952 msgid ""
11953 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11954 "destination filename or destination directory."
11955 msgstr ""
11956
11957 # type: =head2
11958 #: ../src/guestfs-actions.pod:4456
11959 msgid "guestfs_ntfs_3g_probe"
11960 msgstr ""
11961
11962 # type: verbatim
11963 #: ../src/guestfs-actions.pod:4458
11964 #, no-wrap
11965 msgid ""
11966 " int\n"
11967 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11968 "                        int rw,\n"
11969 "                        const char *device);\n"
11970 "\n"
11971 msgstr ""
11972
11973 # type: textblock
11974 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11975 msgid ""
11976 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11977 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11978 "write, and some cannot be mounted at all)."
11979 msgstr ""
11980
11981 # type: textblock
11982 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11983 msgid ""
11984 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11985 "can be mounted read-write.  Set it to false if you want to test if the "
11986 "volume can be mounted read-only."
11987 msgstr ""
11988
11989 # type: textblock
11990 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
11991 msgid ""
11992 "The return value is an integer which C<0> if the operation would succeed, or "
11993 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4477
11998 msgid "(Added in 1.0.43)"
11999 msgstr ""
12000
12001 # type: =head2
12002 #: ../src/guestfs-actions.pod:4479
12003 msgid "guestfs_ntfsresize"
12004 msgstr ""
12005
12006 # type: verbatim
12007 #: ../src/guestfs-actions.pod:4481
12008 #, no-wrap
12009 msgid ""
12010 " int\n"
12011 " guestfs_ntfsresize (guestfs_h *g,\n"
12012 "                     const char *device);\n"
12013 "\n"
12014 msgstr ""
12015
12016 # type: textblock
12017 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
12018 msgid ""
12019 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12020 "size of the underlying device.  See also L<ntfsresize(8)>."
12021 msgstr ""
12022
12023 # type: =head2
12024 #: ../src/guestfs-actions.pod:4493
12025 msgid "guestfs_ntfsresize_size"
12026 msgstr ""
12027
12028 # type: verbatim
12029 #: ../src/guestfs-actions.pod:4495
12030 #, no-wrap
12031 msgid ""
12032 " int\n"
12033 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12034 "                          const char *device,\n"
12035 "                          int64_t size);\n"
12036 "\n"
12037 msgstr ""
12038
12039 # type: textblock
12040 #: ../src/guestfs-actions.pod:4500
12041 msgid ""
12042 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12043 "to specify the new size (in bytes) explicitly."
12044 msgstr ""
12045
12046 # type: textblock
12047 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941
12048 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
12049 msgid "(Added in 1.3.14)"
12050 msgstr ""
12051
12052 # type: =head2
12053 #: ../src/guestfs-actions.pod:4507
12054 msgid "guestfs_part_add"
12055 msgstr ""
12056
12057 # type: verbatim
12058 #: ../src/guestfs-actions.pod:4509
12059 #, no-wrap
12060 msgid ""
12061 " int\n"
12062 " guestfs_part_add (guestfs_h *g,\n"
12063 "                   const char *device,\n"
12064 "                   const char *prlogex,\n"
12065 "                   int64_t startsect,\n"
12066 "                   int64_t endsect);\n"
12067 "\n"
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4516
12072 msgid ""
12073 "This command adds a partition to C<device>.  If there is no partition table "
12074 "on the device, call C<guestfs_part_init> first."
12075 msgstr ""
12076
12077 # type: textblock
12078 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
12079 msgid ""
12080 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12081 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12082 "C<logical>) and C<e> (or C<extended>) partition types."
12083 msgstr ""
12084
12085 # type: textblock
12086 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
12087 msgid ""
12088 "C<startsect> and C<endsect> are the start and end of the partition in "
12089 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12090 "from the end of the disk (C<-1> is the last sector)."
12091 msgstr ""
12092
12093 # type: textblock
12094 #: ../src/guestfs-actions.pod:4528
12095 msgid ""
12096 "Creating a partition which covers the whole disk is not so easy.  Use "
12097 "C<guestfs_part_disk> to do that."
12098 msgstr ""
12099
12100 # type: textblock
12101 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571
12102 #: ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702
12103 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759
12104 #: ../src/guestfs-actions.pod:4799
12105 msgid "(Added in 1.0.78)"
12106 msgstr ""
12107
12108 # type: =head2
12109 #: ../src/guestfs-actions.pod:4535
12110 msgid "guestfs_part_del"
12111 msgstr ""
12112
12113 # type: verbatim
12114 #: ../src/guestfs-actions.pod:4537
12115 #, no-wrap
12116 msgid ""
12117 " int\n"
12118 " guestfs_part_del (guestfs_h *g,\n"
12119 "                   const char *device,\n"
12120 "                   int partnum);\n"
12121 "\n"
12122 msgstr ""
12123
12124 # type: textblock
12125 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
12126 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12127 msgstr ""
12128
12129 # type: textblock
12130 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
12131 msgid ""
12132 "Note that in the case of MBR partitioning, deleting an extended partition "
12133 "also deletes any logical partitions it contains."
12134 msgstr ""
12135
12136 # type: =head2
12137 #: ../src/guestfs-actions.pod:4552
12138 msgid "guestfs_part_disk"
12139 msgstr ""
12140
12141 # type: verbatim
12142 #: ../src/guestfs-actions.pod:4554
12143 #, no-wrap
12144 msgid ""
12145 " int\n"
12146 " guestfs_part_disk (guestfs_h *g,\n"
12147 "                    const char *device,\n"
12148 "                    const char *parttype);\n"
12149 "\n"
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4559
12154 msgid ""
12155 "This command is simply a combination of C<guestfs_part_init> followed by "
12156 "C<guestfs_part_add> to create a single primary partition covering the whole "
12157 "disk."
12158 msgstr ""
12159
12160 # type: textblock
12161 #: ../src/guestfs-actions.pod:4563
12162 msgid ""
12163 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12164 "possible values are described in C<guestfs_part_init>."
12165 msgstr ""
12166
12167 # type: =head2
12168 #: ../src/guestfs-actions.pod:4573
12169 msgid "guestfs_part_get_bootable"
12170 msgstr ""
12171
12172 # type: verbatim
12173 #: ../src/guestfs-actions.pod:4575
12174 #, no-wrap
12175 msgid ""
12176 " int\n"
12177 " guestfs_part_get_bootable (guestfs_h *g,\n"
12178 "                            const char *device,\n"
12179 "                            int partnum);\n"
12180 "\n"
12181 msgstr ""
12182
12183 # type: textblock
12184 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
12185 msgid ""
12186 "This command returns true if the partition C<partnum> on C<device> has the "
12187 "bootable flag set."
12188 msgstr ""
12189
12190 # type: textblock
12191 #: ../src/guestfs-actions.pod:4583
12192 msgid "See also C<guestfs_part_set_bootable>."
12193 msgstr ""
12194
12195 # type: =head2
12196 #: ../src/guestfs-actions.pod:4589
12197 msgid "guestfs_part_get_mbr_id"
12198 msgstr ""
12199
12200 # type: verbatim
12201 #: ../src/guestfs-actions.pod:4591
12202 #, no-wrap
12203 msgid ""
12204 " int\n"
12205 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12206 "                          const char *device,\n"
12207 "                          int partnum);\n"
12208 "\n"
12209 msgstr ""
12210
12211 # type: textblock
12212 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
12213 msgid ""
12214 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12215 "partition C<partnum>."
12216 msgstr ""
12217
12218 # type: textblock
12219 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
12220 msgid ""
12221 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12222 "undefined results for other partition table types (see "
12223 "C<guestfs_part_get_parttype>)."
12224 msgstr ""
12225
12226 # type: =head2
12227 #: ../src/guestfs-actions.pod:4607
12228 msgid "guestfs_part_get_parttype"
12229 msgstr ""
12230
12231 # type: verbatim
12232 #: ../src/guestfs-actions.pod:4609
12233 #, no-wrap
12234 msgid ""
12235 " char *\n"
12236 " guestfs_part_get_parttype (guestfs_h *g,\n"
12237 "                            const char *device);\n"
12238 "\n"
12239 msgstr ""
12240
12241 # type: textblock
12242 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
12243 msgid ""
12244 "This command examines the partition table on C<device> and returns the "
12245 "partition table type (format) being used."
12246 msgstr ""
12247
12248 # type: textblock
12249 #: ../src/guestfs-actions.pod:4616
12250 msgid ""
12251 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12252 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12253 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12254 msgstr ""
12255
12256 # type: =head2
12257 #: ../src/guestfs-actions.pod:4626
12258 msgid "guestfs_part_init"
12259 msgstr ""
12260
12261 # type: verbatim
12262 #: ../src/guestfs-actions.pod:4628
12263 #, no-wrap
12264 msgid ""
12265 " int\n"
12266 " guestfs_part_init (guestfs_h *g,\n"
12267 "                    const char *device,\n"
12268 "                    const char *parttype);\n"
12269 "\n"
12270 msgstr ""
12271
12272 # type: textblock
12273 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
12274 msgid ""
12275 "This creates an empty partition table on C<device> of one of the partition "
12276 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12277 "(for large disks)."
12278 msgstr ""
12279
12280 # type: textblock
12281 #: ../src/guestfs-actions.pod:4637
12282 msgid ""
12283 "Initially there are no partitions.  Following this, you should call "
12284 "C<guestfs_part_add> for each partition required."
12285 msgstr ""
12286
12287 # type: textblock
12288 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
12289 msgid "Possible values for C<parttype> are:"
12290 msgstr ""
12291
12292 # type: =item
12293 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
12294 msgid "B<efi> | B<gpt>"
12295 msgstr ""
12296
12297 # type: textblock
12298 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
12299 msgid "Intel EFI / GPT partition table."
12300 msgstr ""
12301
12302 # type: textblock
12303 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
12304 msgid ""
12305 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12306 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12307 "the C<mbr> format."
12308 msgstr ""
12309
12310 # type: =item
12311 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
12312 msgid "B<mbr> | B<msdos>"
12313 msgstr ""
12314
12315 # type: textblock
12316 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
12317 msgid ""
12318 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12319 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12320 "TB.  For large disks we recommend using C<gpt>."
12321 msgstr ""
12322
12323 # type: textblock
12324 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
12325 msgid ""
12326 "Other partition table types that may work but are not supported include:"
12327 msgstr ""
12328
12329 # type: =item
12330 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
12331 msgid "B<aix>"
12332 msgstr ""
12333
12334 # type: textblock
12335 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
12336 msgid "AIX disk labels."
12337 msgstr ""
12338
12339 # type: =item
12340 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
12341 msgid "B<amiga> | B<rdb>"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
12346 msgid "Amiga \"Rigid Disk Block\" format."
12347 msgstr ""
12348
12349 # type: =item
12350 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
12351 msgid "B<bsd>"
12352 msgstr ""
12353
12354 # type: textblock
12355 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
12356 msgid "BSD disk labels."
12357 msgstr ""
12358
12359 # type: =item
12360 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
12361 msgid "B<dasd>"
12362 msgstr ""
12363
12364 # type: textblock
12365 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
12366 msgid "DASD, used on IBM mainframes."
12367 msgstr ""
12368
12369 # type: =item
12370 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
12371 msgid "B<dvh>"
12372 msgstr ""
12373
12374 # type: textblock
12375 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
12376 msgid "MIPS/SGI volumes."
12377 msgstr ""
12378
12379 # type: =item
12380 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
12381 msgid "B<mac>"
12382 msgstr ""
12383
12384 # type: textblock
12385 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
12386 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12387 msgstr ""
12388
12389 # type: =item
12390 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
12391 msgid "B<pc98>"
12392 msgstr ""
12393
12394 # type: textblock
12395 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
12396 msgid "NEC PC-98 format, common in Japan apparently."
12397 msgstr ""
12398
12399 # type: =item
12400 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
12401 msgid "B<sun>"
12402 msgstr ""
12403
12404 # type: textblock
12405 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
12406 msgid "Sun disk labels."
12407 msgstr ""
12408
12409 # type: =head2
12410 #: ../src/guestfs-actions.pod:4704
12411 msgid "guestfs_part_list"
12412 msgstr ""
12413
12414 # type: verbatim
12415 #: ../src/guestfs-actions.pod:4706
12416 #, no-wrap
12417 msgid ""
12418 " struct guestfs_partition_list *\n"
12419 " guestfs_part_list (guestfs_h *g,\n"
12420 "                    const char *device);\n"
12421 "\n"
12422 msgstr ""
12423
12424 # type: textblock
12425 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
12426 msgid ""
12427 "This command parses the partition table on C<device> and returns the list of "
12428 "partitions found."
12429 msgstr ""
12430
12431 # type: textblock
12432 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
12433 msgid "The fields in the returned structure are:"
12434 msgstr ""
12435
12436 # type: =item
12437 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
12438 msgid "B<part_num>"
12439 msgstr ""
12440
12441 # type: textblock
12442 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
12443 msgid "Partition number, counting from 1."
12444 msgstr ""
12445
12446 # type: =item
12447 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
12448 msgid "B<part_start>"
12449 msgstr ""
12450
12451 # type: textblock
12452 #: ../src/guestfs-actions.pod:4723
12453 msgid ""
12454 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12455 "the device's sector size, see C<guestfs_blockdev_getss>."
12456 msgstr ""
12457
12458 # type: =item
12459 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
12460 msgid "B<part_end>"
12461 msgstr ""
12462
12463 # type: textblock
12464 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
12465 msgid "End of the partition in bytes."
12466 msgstr ""
12467
12468 # type: =item
12469 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12470 msgid "B<part_size>"
12471 msgstr ""
12472
12473 # type: textblock
12474 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12475 msgid "Size of the partition in bytes."
12476 msgstr ""
12477
12478 # type: textblock
12479 #: ../src/guestfs-actions.pod:4736
12480 msgid ""
12481 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12482 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12483 "use>."
12484 msgstr ""
12485
12486 # type: =head2
12487 #: ../src/guestfs-actions.pod:4742
12488 msgid "guestfs_part_set_bootable"
12489 msgstr ""
12490
12491 # type: verbatim
12492 #: ../src/guestfs-actions.pod:4744
12493 #, no-wrap
12494 msgid ""
12495 " int\n"
12496 " guestfs_part_set_bootable (guestfs_h *g,\n"
12497 "                            const char *device,\n"
12498 "                            int partnum,\n"
12499 "                            int bootable);\n"
12500 "\n"
12501 msgstr ""
12502
12503 # type: textblock
12504 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12505 msgid ""
12506 "This sets the bootable flag on partition numbered C<partnum> on device "
12507 "C<device>.  Note that partitions are numbered from 1."
12508 msgstr ""
12509
12510 # type: textblock
12511 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12512 msgid ""
12513 "The bootable flag is used by some operating systems (notably Windows) to "
12514 "determine which partition to boot from.  It is by no means universally "
12515 "recognized."
12516 msgstr ""
12517
12518 # type: =head2
12519 #: ../src/guestfs-actions.pod:4761
12520 msgid "guestfs_part_set_mbr_id"
12521 msgstr ""
12522
12523 # type: verbatim
12524 #: ../src/guestfs-actions.pod:4763
12525 #, no-wrap
12526 msgid ""
12527 " int\n"
12528 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12529 "                          const char *device,\n"
12530 "                          int partnum,\n"
12531 "                          int idbyte);\n"
12532 "\n"
12533 msgstr ""
12534
12535 # type: textblock
12536 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12537 msgid ""
12538 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12539 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12540 "documentation are in fact hexadecimal numbers, but usually documented "
12541 "without any leading \"0x\" which might be confusing."
12542 msgstr ""
12543
12544 # type: =head2
12545 #: ../src/guestfs-actions.pod:4783
12546 msgid "guestfs_part_set_name"
12547 msgstr ""
12548
12549 # type: verbatim
12550 #: ../src/guestfs-actions.pod:4785
12551 #, no-wrap
12552 msgid ""
12553 " int\n"
12554 " guestfs_part_set_name (guestfs_h *g,\n"
12555 "                        const char *device,\n"
12556 "                        int partnum,\n"
12557 "                        const char *name);\n"
12558 "\n"
12559 msgstr ""
12560
12561 # type: textblock
12562 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12563 msgid ""
12564 "This sets the partition name on partition numbered C<partnum> on device "
12565 "C<device>.  Note that partitions are numbered from 1."
12566 msgstr ""
12567
12568 # type: textblock
12569 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12570 msgid ""
12571 "The partition name can only be set on certain types of partition table.  "
12572 "This works on C<gpt> but not on C<mbr> partitions."
12573 msgstr ""
12574
12575 # type: =head2
12576 #: ../src/guestfs-actions.pod:4801
12577 msgid "guestfs_part_to_dev"
12578 msgstr ""
12579
12580 # type: verbatim
12581 #: ../src/guestfs-actions.pod:4803
12582 #, no-wrap
12583 msgid ""
12584 " char *\n"
12585 " guestfs_part_to_dev (guestfs_h *g,\n"
12586 "                      const char *partition);\n"
12587 "\n"
12588 msgstr ""
12589
12590 # type: textblock
12591 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12592 msgid ""
12593 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12594 "partition number, returning the device name (eg. \"/dev/sdb\")."
12595 msgstr ""
12596
12597 # type: textblock
12598 #: ../src/guestfs-actions.pod:4811
12599 msgid ""
12600 "The named partition must exist, for example as a string returned from "
12601 "C<guestfs_list_partitions>."
12602 msgstr ""
12603
12604 # type: =head2
12605 #: ../src/guestfs-actions.pod:4819
12606 msgid "guestfs_ping_daemon"
12607 msgstr ""
12608
12609 # type: verbatim
12610 #: ../src/guestfs-actions.pod:4821
12611 #, no-wrap
12612 msgid ""
12613 " int\n"
12614 " guestfs_ping_daemon (guestfs_h *g);\n"
12615 "\n"
12616 msgstr ""
12617
12618 # type: textblock
12619 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12620 msgid ""
12621 "This is a test probe into the guestfs daemon running inside the qemu "
12622 "subprocess.  Calling this function checks that the daemon responds to the "
12623 "ping message, without affecting the daemon or attached block device(s) in "
12624 "any other way."
12625 msgstr ""
12626
12627 # type: =head2
12628 #: ../src/guestfs-actions.pod:4833
12629 msgid "guestfs_pread"
12630 msgstr ""
12631
12632 # type: verbatim
12633 #: ../src/guestfs-actions.pod:4835
12634 #, no-wrap
12635 msgid ""
12636 " char *\n"
12637 " guestfs_pread (guestfs_h *g,\n"
12638 "                const char *path,\n"
12639 "                int count,\n"
12640 "                int64_t offset,\n"
12641 "                size_t *size_r);\n"
12642 "\n"
12643 msgstr ""
12644
12645 # type: textblock
12646 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12647 msgid ""
12648 "This command lets you read part of a file.  It reads C<count> bytes of the "
12649 "file, starting at C<offset>, from file C<path>."
12650 msgstr ""
12651
12652 # type: textblock
12653 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871
12654 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12655 msgid ""
12656 "This may read fewer bytes than requested.  For further details see the "
12657 "L<pread(2)> system call."
12658 msgstr ""
12659
12660 # type: textblock
12661 #: ../src/guestfs-actions.pod:4848
12662 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12663 msgstr ""
12664
12665 # type: =head2
12666 #: ../src/guestfs-actions.pod:4859
12667 msgid "guestfs_pread_device"
12668 msgstr ""
12669
12670 # type: verbatim
12671 #: ../src/guestfs-actions.pod:4861
12672 #, no-wrap
12673 msgid ""
12674 " char *\n"
12675 " guestfs_pread_device (guestfs_h *g,\n"
12676 "                       const char *device,\n"
12677 "                       int count,\n"
12678 "                       int64_t offset,\n"
12679 "                       size_t *size_r);\n"
12680 "\n"
12681 msgstr ""
12682
12683 # type: textblock
12684 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12685 msgid ""
12686 "This command lets you read part of a file.  It reads C<count> bytes of "
12687 "C<device>, starting at C<offset>."
12688 msgstr ""
12689
12690 # type: textblock
12691 #: ../src/guestfs-actions.pod:4874
12692 msgid "See also C<guestfs_pread>."
12693 msgstr ""
12694
12695 # type: textblock
12696 #: ../src/guestfs-actions.pod:4883
12697 msgid "(Added in 1.5.21)"
12698 msgstr ""
12699
12700 # type: =head2
12701 #: ../src/guestfs-actions.pod:4885
12702 msgid "guestfs_pvcreate"
12703 msgstr ""
12704
12705 # type: verbatim
12706 #: ../src/guestfs-actions.pod:4887
12707 #, no-wrap
12708 msgid ""
12709 " int\n"
12710 " guestfs_pvcreate (guestfs_h *g,\n"
12711 "                   const char *device);\n"
12712 "\n"
12713 msgstr ""
12714
12715 # type: textblock
12716 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12717 msgid ""
12718 "This creates an LVM physical volume on the named C<device>, where C<device> "
12719 "should usually be a partition name such as C</dev/sda1>."
12720 msgstr ""
12721
12722 # type: =head2
12723 #: ../src/guestfs-actions.pod:4899
12724 msgid "guestfs_pvremove"
12725 msgstr ""
12726
12727 # type: verbatim
12728 #: ../src/guestfs-actions.pod:4901
12729 #, no-wrap
12730 msgid ""
12731 " int\n"
12732 " guestfs_pvremove (guestfs_h *g,\n"
12733 "                   const char *device);\n"
12734 "\n"
12735 msgstr ""
12736
12737 # type: textblock
12738 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12739 msgid ""
12740 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12741 "it."
12742 msgstr ""
12743
12744 # type: textblock
12745 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12746 msgid ""
12747 "The implementation uses the C<pvremove> command which refuses to wipe "
12748 "physical volumes that contain any volume groups, so you have to remove those "
12749 "first."
12750 msgstr ""
12751
12752 # type: =head2
12753 #: ../src/guestfs-actions.pod:4916
12754 msgid "guestfs_pvresize"
12755 msgstr ""
12756
12757 # type: verbatim
12758 #: ../src/guestfs-actions.pod:4918
12759 #, no-wrap
12760 msgid ""
12761 " int\n"
12762 " guestfs_pvresize (guestfs_h *g,\n"
12763 "                   const char *device);\n"
12764 "\n"
12765 msgstr ""
12766
12767 # type: textblock
12768 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12769 msgid ""
12770 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12771 "the new size of the underlying device."
12772 msgstr ""
12773
12774 # type: =head2
12775 #: ../src/guestfs-actions.pod:4929
12776 msgid "guestfs_pvresize_size"
12777 msgstr ""
12778
12779 # type: verbatim
12780 #: ../src/guestfs-actions.pod:4931
12781 #, no-wrap
12782 msgid ""
12783 " int\n"
12784 " guestfs_pvresize_size (guestfs_h *g,\n"
12785 "                        const char *device,\n"
12786 "                        int64_t size);\n"
12787 "\n"
12788 msgstr ""
12789
12790 # type: textblock
12791 #: ../src/guestfs-actions.pod:4936
12792 msgid ""
12793 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12794 "specify the new size (in bytes) explicitly."
12795 msgstr ""
12796
12797 # type: =head2
12798 #: ../src/guestfs-actions.pod:4943
12799 msgid "guestfs_pvs"
12800 msgstr ""
12801
12802 # type: verbatim
12803 #: ../src/guestfs-actions.pod:4945
12804 #, no-wrap
12805 msgid ""
12806 " char **\n"
12807 " guestfs_pvs (guestfs_h *g);\n"
12808 "\n"
12809 msgstr ""
12810
12811 # type: textblock
12812 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12813 msgid ""
12814 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12815 "(8)> command."
12816 msgstr ""
12817
12818 # type: textblock
12819 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12820 msgid ""
12821 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12822 "sda2>)."
12823 msgstr ""
12824
12825 # type: textblock
12826 #: ../src/guestfs-actions.pod:4954
12827 msgid "See also C<guestfs_pvs_full>."
12828 msgstr ""
12829
12830 # type: =head2
12831 #: ../src/guestfs-actions.pod:4962
12832 msgid "guestfs_pvs_full"
12833 msgstr ""
12834
12835 # type: verbatim
12836 #: ../src/guestfs-actions.pod:4964
12837 #, no-wrap
12838 msgid ""
12839 " struct guestfs_lvm_pv_list *\n"
12840 " guestfs_pvs_full (guestfs_h *g);\n"
12841 "\n"
12842 msgstr ""
12843
12844 # type: textblock
12845 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12846 msgid ""
12847 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12848 "(8)> command.  The \"full\" version includes all fields."
12849 msgstr ""
12850
12851 # type: textblock
12852 #: ../src/guestfs-actions.pod:4970
12853 msgid ""
12854 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12855 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12856 msgstr ""
12857
12858 # type: =head2
12859 #: ../src/guestfs-actions.pod:4976
12860 msgid "guestfs_pvuuid"
12861 msgstr ""
12862
12863 # type: verbatim
12864 #: ../src/guestfs-actions.pod:4978
12865 #, no-wrap
12866 msgid ""
12867 " char *\n"
12868 " guestfs_pvuuid (guestfs_h *g,\n"
12869 "                 const char *device);\n"
12870 "\n"
12871 msgstr ""
12872
12873 # type: textblock
12874 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12875 msgid "This command returns the UUID of the LVM PV C<device>."
12876 msgstr ""
12877
12878 # type: =head2
12879 #: ../src/guestfs-actions.pod:4989
12880 msgid "guestfs_pwrite"
12881 msgstr ""
12882
12883 # type: verbatim
12884 #: ../src/guestfs-actions.pod:4991
12885 #, no-wrap
12886 msgid ""
12887 " int\n"
12888 " guestfs_pwrite (guestfs_h *g,\n"
12889 "                 const char *path,\n"
12890 "                 const char *content,\n"
12891 "                 size_t content_size,\n"
12892 "                 int64_t offset);\n"
12893 "\n"
12894 msgstr ""
12895
12896 # type: textblock
12897 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12898 msgid ""
12899 "This command writes to part of a file.  It writes the data buffer C<content> "
12900 "to the file C<path> starting at offset C<offset>."
12901 msgstr ""
12902
12903 # type: textblock
12904 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12905 msgid ""
12906 "This command implements the L<pwrite(2)> system call, and like that system "
12907 "call it may not write the full data requested.  The return value is the "
12908 "number of bytes that were actually written to the file.  This could even be "
12909 "0, although short writes are unlikely for regular files in ordinary "
12910 "circumstances."
12911 msgstr ""
12912
12913 # type: textblock
12914 #: ../src/guestfs-actions.pod:5007
12915 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12916 msgstr ""
12917
12918 # type: =head2
12919 #: ../src/guestfs-actions.pod:5016
12920 msgid "guestfs_pwrite_device"
12921 msgstr ""
12922
12923 # type: verbatim
12924 #: ../src/guestfs-actions.pod:5018
12925 #, no-wrap
12926 msgid ""
12927 " int\n"
12928 " guestfs_pwrite_device (guestfs_h *g,\n"
12929 "                        const char *device,\n"
12930 "                        const char *content,\n"
12931 "                        size_t content_size,\n"
12932 "                        int64_t offset);\n"
12933 "\n"
12934 msgstr ""
12935
12936 # type: textblock
12937 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12938 msgid ""
12939 "This command writes to part of a device.  It writes the data buffer "
12940 "C<content> to C<device> starting at offset C<offset>."
12941 msgstr ""
12942
12943 # type: textblock
12944 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12945 msgid ""
12946 "This command implements the L<pwrite(2)> system call, and like that system "
12947 "call it may not write the full data requested (although short writes to disk "
12948 "devices and partitions are probably impossible with standard Linux kernels)."
12949 msgstr ""
12950
12951 # type: textblock
12952 #: ../src/guestfs-actions.pod:5033
12953 msgid "See also C<guestfs_pwrite>."
12954 msgstr ""
12955
12956 # type: textblock
12957 #: ../src/guestfs-actions.pod:5040
12958 msgid "(Added in 1.5.20)"
12959 msgstr ""
12960
12961 # type: =head2
12962 #: ../src/guestfs-actions.pod:5042
12963 msgid "guestfs_read_file"
12964 msgstr ""
12965
12966 # type: verbatim
12967 #: ../src/guestfs-actions.pod:5044
12968 #, no-wrap
12969 msgid ""
12970 " char *\n"
12971 " guestfs_read_file (guestfs_h *g,\n"
12972 "                    const char *path,\n"
12973 "                    size_t *size_r);\n"
12974 "\n"
12975 msgstr ""
12976
12977 # type: textblock
12978 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12979 msgid "This calls returns the contents of the file C<path> as a buffer."
12980 msgstr ""
12981
12982 # type: textblock
12983 #: ../src/guestfs-actions.pod:5052
12984 msgid ""
12985 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12986 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12987 "function is limited in the total size of file that can be handled."
12988 msgstr ""
12989
12990 # type: textblock
12991 #: ../src/guestfs-actions.pod:5064
12992 msgid "(Added in 1.0.63)"
12993 msgstr ""
12994
12995 # type: =head2
12996 #: ../src/guestfs-actions.pod:5066
12997 msgid "guestfs_read_lines"
12998 msgstr ""
12999
13000 # type: verbatim
13001 #: ../src/guestfs-actions.pod:5068
13002 #, no-wrap
13003 msgid ""
13004 " char **\n"
13005 " guestfs_read_lines (guestfs_h *g,\n"
13006 "                     const char *path);\n"
13007 "\n"
13008 msgstr ""
13009
13010 # type: textblock
13011 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
13012 msgid ""
13013 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13014 "C<CRLF> character sequences are I<not> returned."
13015 msgstr ""
13016
13017 # type: textblock
13018 #: ../src/guestfs-actions.pod:5077
13019 msgid ""
13020 "Note that this function cannot correctly handle binary files (specifically, "
13021 "files containing C<\\0> character which is treated as end of line).  For "
13022 "those you need to use the C<guestfs_read_file> function which has a more "
13023 "complex interface."
13024 msgstr ""
13025
13026 # type: =head2
13027 #: ../src/guestfs-actions.pod:5088
13028 msgid "guestfs_readdir"
13029 msgstr ""
13030
13031 # type: verbatim
13032 #: ../src/guestfs-actions.pod:5090
13033 #, no-wrap
13034 msgid ""
13035 " struct guestfs_dirent_list *\n"
13036 " guestfs_readdir (guestfs_h *g,\n"
13037 "                  const char *dir);\n"
13038 "\n"
13039 msgstr ""
13040
13041 # type: textblock
13042 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
13043 msgid "This returns the list of directory entries in directory C<dir>."
13044 msgstr ""
13045
13046 # type: textblock
13047 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
13048 msgid ""
13049 "All entries in the directory are returned, including C<.> and C<..>.  The "
13050 "entries are I<not> sorted, but returned in the same order as the underlying "
13051 "filesystem."
13052 msgstr ""
13053
13054 # type: textblock
13055 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
13056 msgid ""
13057 "Also this call returns basic file type information about each file.  The "
13058 "C<ftyp> field will contain one of the following characters:"
13059 msgstr ""
13060
13061 # type: =item
13062 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
13063 msgid "'b'"
13064 msgstr ""
13065
13066 # type: textblock
13067 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
13068 msgid "Block special"
13069 msgstr ""
13070
13071 # type: =item
13072 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
13073 msgid "'c'"
13074 msgstr ""
13075
13076 # type: textblock
13077 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
13078 msgid "Char special"
13079 msgstr ""
13080
13081 # type: =item
13082 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
13083 msgid "'d'"
13084 msgstr ""
13085
13086 # type: textblock
13087 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
13088 msgid "Directory"
13089 msgstr ""
13090
13091 # type: =item
13092 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
13093 msgid "'f'"
13094 msgstr ""
13095
13096 # type: textblock
13097 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
13098 msgid "FIFO (named pipe)"
13099 msgstr ""
13100
13101 # type: =item
13102 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
13103 msgid "'l'"
13104 msgstr ""
13105
13106 # type: textblock
13107 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
13108 msgid "Symbolic link"
13109 msgstr ""
13110
13111 # type: =item
13112 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
13113 msgid "'r'"
13114 msgstr ""
13115
13116 # type: textblock
13117 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
13118 msgid "Regular file"
13119 msgstr ""
13120
13121 # type: =item
13122 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
13123 msgid "'s'"
13124 msgstr ""
13125
13126 # type: textblock
13127 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
13128 msgid "Socket"
13129 msgstr ""
13130
13131 # type: =item
13132 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
13133 msgid "'u'"
13134 msgstr ""
13135
13136 # type: textblock
13137 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
13138 msgid "Unknown file type"
13139 msgstr ""
13140
13141 # type: =item
13142 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
13143 msgid "'?'"
13144 msgstr ""
13145
13146 # type: textblock
13147 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
13148 msgid ""
13149 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13150 msgstr ""
13151
13152 # type: textblock
13153 #: ../src/guestfs-actions.pod:5144
13154 msgid ""
13155 "This function is primarily intended for use by programs.  To get a simple "
13156 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13157 "consumption, use C<guestfs_ll>."
13158 msgstr ""
13159
13160 # type: textblock
13161 #: ../src/guestfs-actions.pod:5148
13162 msgid ""
13163 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13164 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13165 msgstr ""
13166
13167 # type: =head2
13168 #: ../src/guestfs-actions.pod:5154
13169 msgid "guestfs_readlink"
13170 msgstr ""
13171
13172 # type: verbatim
13173 #: ../src/guestfs-actions.pod:5156
13174 #, no-wrap
13175 msgid ""
13176 " char *\n"
13177 " guestfs_readlink (guestfs_h *g,\n"
13178 "                   const char *path);\n"
13179 "\n"
13180 msgstr ""
13181
13182 # type: textblock
13183 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
13184 msgid "This command reads the target of a symbolic link."
13185 msgstr ""
13186
13187 # type: =head2
13188 #: ../src/guestfs-actions.pod:5167
13189 msgid "guestfs_readlinklist"
13190 msgstr ""
13191
13192 # type: verbatim
13193 #: ../src/guestfs-actions.pod:5169
13194 #, no-wrap
13195 msgid ""
13196 " char **\n"
13197 " guestfs_readlinklist (guestfs_h *g,\n"
13198 "                       const char *path,\n"
13199 "                       char *const *names);\n"
13200 "\n"
13201 msgstr ""
13202
13203 # type: textblock
13204 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
13205 msgid ""
13206 "This call allows you to do a C<readlink> operation on multiple files, where "
13207 "all files are in the directory C<path>.  C<names> is the list of files from "
13208 "this directory."
13209 msgstr ""
13210
13211 # type: textblock
13212 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
13213 msgid ""
13214 "On return you get a list of strings, with a one-to-one correspondence to the "
13215 "C<names> list.  Each string is the value of the symbolic link."
13216 msgstr ""
13217
13218 # type: textblock
13219 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
13220 msgid ""
13221 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13222 "result string is the empty string C<\"\">.  However the whole operation is "
13223 "completed even if there were C<readlink(2)> errors, and so you can call this "
13224 "function with names where you don't know if they are symbolic links already "
13225 "(albeit slightly less efficient)."
13226 msgstr ""
13227
13228 # type: textblock
13229 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
13230 msgid ""
13231 "This call is intended for programs that want to efficiently list a directory "
13232 "contents without making many round-trips.  Very long directory listings "
13233 "might cause the protocol message size to be exceeded, causing this call to "
13234 "fail.  The caller must split up such requests into smaller groups of names."
13235 msgstr ""
13236
13237 # type: =head2
13238 #: ../src/guestfs-actions.pod:5202
13239 msgid "guestfs_realpath"
13240 msgstr ""
13241
13242 # type: verbatim
13243 #: ../src/guestfs-actions.pod:5204
13244 #, no-wrap
13245 msgid ""
13246 " char *\n"
13247 " guestfs_realpath (guestfs_h *g,\n"
13248 "                   const char *path);\n"
13249 "\n"
13250 msgstr ""
13251
13252 # type: textblock
13253 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
13254 msgid ""
13255 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13256 "has no C<.>, C<..> or symbolic link path elements."
13257 msgstr ""
13258
13259 # type: =head2
13260 #: ../src/guestfs-actions.pod:5216
13261 msgid "guestfs_removexattr"
13262 msgstr ""
13263
13264 # type: verbatim
13265 #: ../src/guestfs-actions.pod:5218
13266 #, no-wrap
13267 msgid ""
13268 " int\n"
13269 " guestfs_removexattr (guestfs_h *g,\n"
13270 "                      const char *xattr,\n"
13271 "                      const char *path);\n"
13272 "\n"
13273 msgstr ""
13274
13275 # type: textblock
13276 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
13277 msgid ""
13278 "This call removes the extended attribute named C<xattr> of the file C<path>."
13279 msgstr ""
13280
13281 # type: textblock
13282 #: ../src/guestfs-actions.pod:5226
13283 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13284 msgstr ""
13285
13286 # type: =head2
13287 #: ../src/guestfs-actions.pod:5232
13288 msgid "guestfs_resize2fs"
13289 msgstr ""
13290
13291 # type: verbatim
13292 #: ../src/guestfs-actions.pod:5234
13293 #, no-wrap
13294 msgid ""
13295 " int\n"
13296 " guestfs_resize2fs (guestfs_h *g,\n"
13297 "                    const char *device);\n"
13298 "\n"
13299 msgstr ""
13300
13301 # type: textblock
13302 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
13303 msgid ""
13304 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13305 "underlying device."
13306 msgstr ""
13307
13308 # type: textblock
13309 #: ../src/guestfs-actions.pod:5241
13310 msgid ""
13311 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13312 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13313 "sometimes gives an error about this and sometimes not.  In any case, it is "
13314 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13315 msgstr ""
13316
13317 # type: =head2
13318 #: ../src/guestfs-actions.pod:5251
13319 msgid "guestfs_resize2fs_size"
13320 msgstr ""
13321
13322 # type: verbatim
13323 #: ../src/guestfs-actions.pod:5253
13324 #, no-wrap
13325 msgid ""
13326 " int\n"
13327 " guestfs_resize2fs_size (guestfs_h *g,\n"
13328 "                         const char *device,\n"
13329 "                         int64_t size);\n"
13330 "\n"
13331 msgstr ""
13332
13333 # type: textblock
13334 #: ../src/guestfs-actions.pod:5258
13335 msgid ""
13336 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13337 "to specify the new size (in bytes) explicitly."
13338 msgstr ""
13339
13340 # type: =head2
13341 #: ../src/guestfs-actions.pod:5265
13342 msgid "guestfs_rm"
13343 msgstr ""
13344
13345 # type: verbatim
13346 #: ../src/guestfs-actions.pod:5267
13347 #, no-wrap
13348 msgid ""
13349 " int\n"
13350 " guestfs_rm (guestfs_h *g,\n"
13351 "             const char *path);\n"
13352 "\n"
13353 msgstr ""
13354
13355 # type: textblock
13356 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
13357 msgid "Remove the single file C<path>."
13358 msgstr ""
13359
13360 # type: =head2
13361 #: ../src/guestfs-actions.pod:5277
13362 msgid "guestfs_rm_rf"
13363 msgstr ""
13364
13365 # type: verbatim
13366 #: ../src/guestfs-actions.pod:5279
13367 #, no-wrap
13368 msgid ""
13369 " int\n"
13370 " guestfs_rm_rf (guestfs_h *g,\n"
13371 "                const char *path);\n"
13372 "\n"
13373 msgstr ""
13374
13375 # type: textblock
13376 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
13377 msgid ""
13378 "Remove the file or directory C<path>, recursively removing the contents if "
13379 "its a directory.  This is like the C<rm -rf> shell command."
13380 msgstr ""
13381
13382 # type: =head2
13383 #: ../src/guestfs-actions.pod:5291
13384 msgid "guestfs_rmdir"
13385 msgstr ""
13386
13387 # type: verbatim
13388 #: ../src/guestfs-actions.pod:5293
13389 #, no-wrap
13390 msgid ""
13391 " int\n"
13392 " guestfs_rmdir (guestfs_h *g,\n"
13393 "                const char *path);\n"
13394 "\n"
13395 msgstr ""
13396
13397 # type: textblock
13398 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
13399 msgid "Remove the single directory C<path>."
13400 msgstr ""
13401
13402 # type: =head2
13403 #: ../src/guestfs-actions.pod:5303
13404 msgid "guestfs_rmmountpoint"
13405 msgstr ""
13406
13407 # type: verbatim
13408 #: ../src/guestfs-actions.pod:5305
13409 #, no-wrap
13410 msgid ""
13411 " int\n"
13412 " guestfs_rmmountpoint (guestfs_h *g,\n"
13413 "                       const char *exemptpath);\n"
13414 "\n"
13415 msgstr ""
13416
13417 # type: textblock
13418 #: ../src/guestfs-actions.pod:5309
13419 msgid ""
13420 "This calls removes a mountpoint that was previously created with "
13421 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13422 msgstr ""
13423
13424 # type: =head2
13425 #: ../src/guestfs-actions.pod:5317
13426 msgid "guestfs_scrub_device"
13427 msgstr ""
13428
13429 # type: verbatim
13430 #: ../src/guestfs-actions.pod:5319
13431 #, no-wrap
13432 msgid ""
13433 " int\n"
13434 " guestfs_scrub_device (guestfs_h *g,\n"
13435 "                       const char *device);\n"
13436 "\n"
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
13441 msgid ""
13442 "This command writes patterns over C<device> to make data retrieval more "
13443 "difficult."
13444 msgstr ""
13445
13446 # type: textblock
13447 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347
13448 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564
13449 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13450 msgid ""
13451 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13452 "more details."
13453 msgstr ""
13454
13455 # type: textblock
13456 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352
13457 #: ../src/guestfs-actions.pod:5371
13458 msgid "(Added in 1.0.52)"
13459 msgstr ""
13460
13461 # type: =head2
13462 #: ../src/guestfs-actions.pod:5336
13463 msgid "guestfs_scrub_file"
13464 msgstr ""
13465
13466 # type: verbatim
13467 #: ../src/guestfs-actions.pod:5338
13468 #, no-wrap
13469 msgid ""
13470 " int\n"
13471 " guestfs_scrub_file (guestfs_h *g,\n"
13472 "                     const char *file);\n"
13473 "\n"
13474 msgstr ""
13475
13476 # type: textblock
13477 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13478 msgid ""
13479 "This command writes patterns over a file to make data retrieval more "
13480 "difficult."
13481 msgstr ""
13482
13483 # type: textblock
13484 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13485 msgid "The file is I<removed> after scrubbing."
13486 msgstr ""
13487
13488 # type: =head2
13489 #: ../src/guestfs-actions.pod:5354
13490 msgid "guestfs_scrub_freespace"
13491 msgstr ""
13492
13493 # type: verbatim
13494 #: ../src/guestfs-actions.pod:5356
13495 #, no-wrap
13496 msgid ""
13497 " int\n"
13498 " guestfs_scrub_freespace (guestfs_h *g,\n"
13499 "                          const char *dir);\n"
13500 "\n"
13501 msgstr ""
13502
13503 # type: textblock
13504 #: ../src/guestfs-actions.pod:5360
13505 msgid ""
13506 "This command creates the directory C<dir> and then fills it with files until "
13507 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13508 "and deletes them.  The intention is to scrub any free space on the partition "
13509 "containing C<dir>."
13510 msgstr ""
13511
13512 # type: =head2
13513 #: ../src/guestfs-actions.pod:5373
13514 msgid "guestfs_set_append"
13515 msgstr ""
13516
13517 # type: verbatim
13518 #: ../src/guestfs-actions.pod:5375
13519 #, no-wrap
13520 msgid ""
13521 " int\n"
13522 " guestfs_set_append (guestfs_h *g,\n"
13523 "                     const char *append);\n"
13524 "\n"
13525 msgstr ""
13526
13527 # type: textblock
13528 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13529 msgid ""
13530 "This function is used to add additional options to the guest kernel command "
13531 "line."
13532 msgstr ""
13533
13534 # type: textblock
13535 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13536 msgid ""
13537 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13538 "environment variable."
13539 msgstr ""
13540
13541 # type: textblock
13542 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13543 msgid ""
13544 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13545 "(libguestfs always adds a few of its own)."
13546 msgstr ""
13547
13548 # type: =head2
13549 #: ../src/guestfs-actions.pod:5392
13550 msgid "guestfs_set_autosync"
13551 msgstr ""
13552
13553 # type: verbatim
13554 #: ../src/guestfs-actions.pod:5394
13555 #, no-wrap
13556 msgid ""
13557 " int\n"
13558 " guestfs_set_autosync (guestfs_h *g,\n"
13559 "                       int autosync);\n"
13560 "\n"
13561 msgstr ""
13562
13563 # type: textblock
13564 #: ../src/guestfs-actions.pod:5398
13565 msgid ""
13566 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13567 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13568 "the handle is closed (also if the program exits without closing handles)."
13569 msgstr ""
13570
13571 # type: textblock
13572 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13573 msgid ""
13574 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13575 "disabled by default)."
13576 msgstr ""
13577
13578 # type: =head2
13579 #: ../src/guestfs-actions.pod:5410
13580 msgid "guestfs_set_direct"
13581 msgstr ""
13582
13583 # type: verbatim
13584 #: ../src/guestfs-actions.pod:5412
13585 #, no-wrap
13586 msgid ""
13587 " int\n"
13588 " guestfs_set_direct (guestfs_h *g,\n"
13589 "                     int direct);\n"
13590 "\n"
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13595 msgid ""
13596 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13597 "passed directly through to the appliance once it is launched."
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-actions.pod:5420
13602 msgid ""
13603 "One consequence of this is that log messages aren't caught by the library "
13604 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13605 "stdout."
13606 msgstr ""
13607
13608 # type: textblock
13609 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13610 msgid "You probably don't want to use this unless you know what you are doing."
13611 msgstr ""
13612
13613 # type: textblock
13614 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13615 msgid "The default is disabled."
13616 msgstr ""
13617
13618 # type: =head2
13619 #: ../src/guestfs-actions.pod:5433
13620 msgid "guestfs_set_e2label"
13621 msgstr ""
13622
13623 # type: verbatim
13624 #: ../src/guestfs-actions.pod:5435
13625 #, no-wrap
13626 msgid ""
13627 " int\n"
13628 " guestfs_set_e2label (guestfs_h *g,\n"
13629 "                      const char *device,\n"
13630 "                      const char *label);\n"
13631 "\n"
13632 msgstr ""
13633
13634 # type: textblock
13635 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13636 msgid ""
13637 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13638 "C<label>.  Filesystem labels are limited to 16 characters."
13639 msgstr ""
13640
13641 # type: textblock
13642 #: ../src/guestfs-actions.pod:5444
13643 msgid ""
13644 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13645 "the existing label on a filesystem."
13646 msgstr ""
13647
13648 # type: =head2
13649 #: ../src/guestfs-actions.pod:5451
13650 msgid "guestfs_set_e2uuid"
13651 msgstr ""
13652
13653 # type: verbatim
13654 #: ../src/guestfs-actions.pod:5453
13655 #, no-wrap
13656 msgid ""
13657 " int\n"
13658 " guestfs_set_e2uuid (guestfs_h *g,\n"
13659 "                     const char *device,\n"
13660 "                     const char *uuid);\n"
13661 "\n"
13662 msgstr ""
13663
13664 # type: textblock
13665 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13666 msgid ""
13667 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13668 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13669 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13670 msgstr ""
13671
13672 # type: textblock
13673 #: ../src/guestfs-actions.pod:5463
13674 msgid ""
13675 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13676 "the existing UUID of a filesystem."
13677 msgstr ""
13678
13679 # type: =head2
13680 #: ../src/guestfs-actions.pod:5470
13681 msgid "guestfs_set_memsize"
13682 msgstr ""
13683
13684 # type: verbatim
13685 #: ../src/guestfs-actions.pod:5472
13686 #, no-wrap
13687 msgid ""
13688 " int\n"
13689 " guestfs_set_memsize (guestfs_h *g,\n"
13690 "                      int memsize);\n"
13691 "\n"
13692 msgstr ""
13693
13694 # type: textblock
13695 #: ../src/guestfs-actions.pod:5476
13696 msgid ""
13697 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13698 "This only has any effect if called before C<guestfs_launch>."
13699 msgstr ""
13700
13701 # type: textblock
13702 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13703 msgid ""
13704 "You can also change this by setting the environment variable "
13705 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13706 msgstr ""
13707
13708 # type: =head2
13709 #: ../src/guestfs-actions.pod:5491
13710 msgid "guestfs_set_network"
13711 msgstr ""
13712
13713 # type: verbatim
13714 #: ../src/guestfs-actions.pod:5493
13715 #, no-wrap
13716 msgid ""
13717 " int\n"
13718 " guestfs_set_network (guestfs_h *g,\n"
13719 "                      int network);\n"
13720 "\n"
13721 msgstr ""
13722
13723 # type: textblock
13724 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13725 msgid ""
13726 "If C<network> is true, then the network is enabled in the libguestfs "
13727 "appliance.  The default is false."
13728 msgstr ""
13729
13730 # type: textblock
13731 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13732 msgid ""
13733 "This affects whether commands are able to access the network (see L<guestfs"
13734 "(3)/RUNNING COMMANDS>)."
13735 msgstr ""
13736
13737 # type: textblock
13738 #: ../src/guestfs-actions.pod:5503
13739 msgid ""
13740 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13741 "effect."
13742 msgstr ""
13743
13744 # type: =head2
13745 #: ../src/guestfs-actions.pod:5510
13746 msgid "guestfs_set_path"
13747 msgstr ""
13748
13749 # type: verbatim
13750 #: ../src/guestfs-actions.pod:5512
13751 #, no-wrap
13752 msgid ""
13753 " int\n"
13754 " guestfs_set_path (guestfs_h *g,\n"
13755 "                   const char *searchpath);\n"
13756 "\n"
13757 msgstr ""
13758
13759 # type: textblock
13760 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13761 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13762 msgstr ""
13763
13764 # type: textblock
13765 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13766 msgid ""
13767 "The default is C<$libdir/guestfs> unless overridden by setting "
13768 "C<LIBGUESTFS_PATH> environment variable."
13769 msgstr ""
13770
13771 # type: textblock
13772 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13773 msgid "Setting C<path> to C<NULL> restores the default path."
13774 msgstr ""
13775
13776 # type: =head2
13777 #: ../src/guestfs-actions.pod:5527
13778 msgid "guestfs_set_qemu"
13779 msgstr ""
13780
13781 # type: verbatim
13782 #: ../src/guestfs-actions.pod:5529
13783 #, no-wrap
13784 msgid ""
13785 " int\n"
13786 " guestfs_set_qemu (guestfs_h *g,\n"
13787 "                   const char *qemu);\n"
13788 "\n"
13789 msgstr ""
13790
13791 # type: textblock
13792 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13793 msgid "Set the qemu binary that we will use."
13794 msgstr ""
13795
13796 # type: textblock
13797 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13798 msgid ""
13799 "The default is chosen when the library was compiled by the configure script."
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13804 msgid ""
13805 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13806 "variable."
13807 msgstr ""
13808
13809 # type: textblock
13810 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13811 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13812 msgstr ""
13813
13814 # type: textblock
13815 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13816 msgid ""
13817 "Note that you should call this function as early as possible after creating "
13818 "the handle.  This is because some pre-launch operations depend on testing "
13819 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13820 "don't retest features, and so you might see inconsistent results.  Using the "
13821 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13822 "the qemu binary at the same time as the handle is created."
13823 msgstr ""
13824
13825 # type: =head2
13826 #: ../src/guestfs-actions.pod:5555
13827 msgid "guestfs_set_recovery_proc"
13828 msgstr ""
13829
13830 # type: verbatim
13831 #: ../src/guestfs-actions.pod:5557
13832 #, no-wrap
13833 msgid ""
13834 " int\n"
13835 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13836 "                            int recoveryproc);\n"
13837 "\n"
13838 msgstr ""
13839
13840 # type: textblock
13841 #: ../src/guestfs-actions.pod:5561
13842 msgid ""
13843 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13844 "not create a recovery process.  The purpose of the recovery process is to "
13845 "stop runaway qemu processes in the case where the main program aborts "
13846 "abruptly."
13847 msgstr ""
13848
13849 # type: textblock
13850 #: ../src/guestfs-actions.pod:5566
13851 msgid ""
13852 "This only has any effect if called before C<guestfs_launch>, and the default "
13853 "is true."
13854 msgstr ""
13855
13856 # type: textblock
13857 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13858 msgid ""
13859 "About the only time when you would want to disable this is if the main "
13860 "process will fork itself into the background (\"daemonize\" itself).  In "
13861 "this case the recovery process thinks that the main program has disappeared "
13862 "and so kills qemu, which is not very helpful."
13863 msgstr ""
13864
13865 # type: =head2
13866 #: ../src/guestfs-actions.pod:5579
13867 msgid "guestfs_set_selinux"
13868 msgstr ""
13869
13870 # type: verbatim
13871 #: ../src/guestfs-actions.pod:5581
13872 #, no-wrap
13873 msgid ""
13874 " int\n"
13875 " guestfs_set_selinux (guestfs_h *g,\n"
13876 "                      int selinux);\n"
13877 "\n"
13878 msgstr ""
13879
13880 # type: textblock
13881 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13882 msgid ""
13883 "This sets the selinux flag that is passed to the appliance at boot time.  "
13884 "The default is C<selinux=0> (disabled)."
13885 msgstr ""
13886
13887 # type: textblock
13888 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13889 msgid ""
13890 "Note that if SELinux is enabled, it is always in Permissive mode "
13891 "(C<enforcing=0>)."
13892 msgstr ""
13893
13894 # type: =head2
13895 #: ../src/guestfs-actions.pod:5598
13896 msgid "guestfs_set_trace"
13897 msgstr ""
13898
13899 # type: verbatim
13900 #: ../src/guestfs-actions.pod:5600
13901 #, no-wrap
13902 msgid ""
13903 " int\n"
13904 " guestfs_set_trace (guestfs_h *g,\n"
13905 "                    int trace);\n"
13906 "\n"
13907 msgstr ""
13908
13909 # type: textblock
13910 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13911 msgid ""
13912 "If the command trace flag is set to 1, then commands are printed on stderr "
13913 "before they are executed in a format which is very similar to the one used "
13914 "by guestfish.  In other words, you can run a program with this enabled, and "
13915 "you will get out a script which you can feed to guestfish to perform the "
13916 "same set of actions."
13917 msgstr ""
13918
13919 # type: textblock
13920 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13921 msgid ""
13922 "If you want to trace C API calls into libguestfs (and other libraries) then "
13923 "possibly a better way is to use the external ltrace(1) command."
13924 msgstr ""
13925
13926 # type: textblock
13927 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13928 msgid ""
13929 "Command traces are disabled unless the environment variable "
13930 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13931 msgstr ""
13932
13933 # type: =head2
13934 #: ../src/guestfs-actions.pod:5622
13935 msgid "guestfs_set_verbose"
13936 msgstr ""
13937
13938 # type: verbatim
13939 #: ../src/guestfs-actions.pod:5624
13940 #, no-wrap
13941 msgid ""
13942 " int\n"
13943 " guestfs_set_verbose (guestfs_h *g,\n"
13944 "                      int verbose);\n"
13945 "\n"
13946 msgstr ""
13947
13948 # type: textblock
13949 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13950 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13951 msgstr ""
13952
13953 # type: textblock
13954 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13955 msgid ""
13956 "Verbose messages are disabled unless the environment variable "
13957 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13958 msgstr ""
13959
13960 # type: =head2
13961 #: ../src/guestfs-actions.pod:5637
13962 msgid "guestfs_setcon"
13963 msgstr ""
13964
13965 # type: verbatim
13966 #: ../src/guestfs-actions.pod:5639
13967 #, no-wrap
13968 msgid ""
13969 " int\n"
13970 " guestfs_setcon (guestfs_h *g,\n"
13971 "                 const char *context);\n"
13972 "\n"
13973 msgstr ""
13974
13975 # type: textblock
13976 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13977 msgid ""
13978 "This sets the SELinux security context of the daemon to the string "
13979 "C<context>."
13980 msgstr ""
13981
13982 # type: textblock
13983 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13984 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13985 msgstr ""
13986
13987 # type: =head2
13988 #: ../src/guestfs-actions.pod:5652
13989 msgid "guestfs_setxattr"
13990 msgstr ""
13991
13992 # type: verbatim
13993 #: ../src/guestfs-actions.pod:5654
13994 #, no-wrap
13995 msgid ""
13996 " int\n"
13997 " guestfs_setxattr (guestfs_h *g,\n"
13998 "                   const char *xattr,\n"
13999 "                   const char *val,\n"
14000 "                   int vallen,\n"
14001 "                   const char *path);\n"
14002 "\n"
14003 msgstr ""
14004
14005 # type: textblock
14006 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
14007 msgid ""
14008 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14009 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14010 msgstr ""
14011
14012 # type: textblock
14013 #: ../src/guestfs-actions.pod:5665
14014 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14015 msgstr ""
14016
14017 # type: =head2
14018 #: ../src/guestfs-actions.pod:5671
14019 msgid "guestfs_sfdisk"
14020 msgstr ""
14021
14022 # type: verbatim
14023 #: ../src/guestfs-actions.pod:5673
14024 #, no-wrap
14025 msgid ""
14026 " int\n"
14027 " guestfs_sfdisk (guestfs_h *g,\n"
14028 "                 const char *device,\n"
14029 "                 int cyls,\n"
14030 "                 int heads,\n"
14031 "                 int sectors,\n"
14032 "                 char *const *lines);\n"
14033 "\n"
14034 msgstr ""
14035
14036 # type: textblock
14037 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
14038 msgid ""
14039 "This is a direct interface to the L<sfdisk(8)> program for creating "
14040 "partitions on block devices."
14041 msgstr ""
14042
14043 # type: textblock
14044 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
14045 msgid "C<device> should be a block device, for example C</dev/sda>."
14046 msgstr ""
14047
14048 # type: textblock
14049 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
14050 msgid ""
14051 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14052 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14053 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14054 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14055 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14056 "the kernel) cannot work out the right geometry and you will need to tell it."
14057 msgstr ""
14058
14059 # type: textblock
14060 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
14061 msgid ""
14062 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14063 "refer to the L<sfdisk(8)> manpage."
14064 msgstr ""
14065
14066 # type: textblock
14067 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
14068 msgid ""
14069 "To create a single partition occupying the whole disk, you would pass "
14070 "C<lines> as a single element list, when the single element being the string "
14071 "C<,> (comma)."
14072 msgstr ""
14073
14074 # type: textblock
14075 #: ../src/guestfs-actions.pod:5701
14076 msgid ""
14077 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14078 msgstr ""
14079
14080 # type: =head2
14081 #: ../src/guestfs-actions.pod:5711
14082 msgid "guestfs_sfdiskM"
14083 msgstr ""
14084
14085 # type: verbatim
14086 #: ../src/guestfs-actions.pod:5713
14087 #, no-wrap
14088 msgid ""
14089 " int\n"
14090 " guestfs_sfdiskM (guestfs_h *g,\n"
14091 "                  const char *device,\n"
14092 "                  char *const *lines);\n"
14093 "\n"
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:5718
14098 msgid ""
14099 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14100 "partition sizes are specified in megabytes only (rounded to the nearest "
14101 "cylinder) and you don't need to specify the cyls, heads and sectors "
14102 "parameters which were rarely if ever used anyway."
14103 msgstr ""
14104
14105 # type: textblock
14106 #: ../src/guestfs-actions.pod:5724
14107 msgid ""
14108 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14109 "C<guestfs_part_disk>"
14110 msgstr ""
14111
14112 # type: =head2
14113 #: ../src/guestfs-actions.pod:5734
14114 msgid "guestfs_sfdisk_N"
14115 msgstr ""
14116
14117 # type: verbatim
14118 #: ../src/guestfs-actions.pod:5736
14119 #, no-wrap
14120 msgid ""
14121 " int\n"
14122 " guestfs_sfdisk_N (guestfs_h *g,\n"
14123 "                   const char *device,\n"
14124 "                   int partnum,\n"
14125 "                   int cyls,\n"
14126 "                   int heads,\n"
14127 "                   int sectors,\n"
14128 "                   const char *line);\n"
14129 "\n"
14130 msgstr ""
14131
14132 # type: textblock
14133 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
14134 msgid ""
14135 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14136 "(note: C<n> counts from 1)."
14137 msgstr ""
14138
14139 # type: textblock
14140 #: ../src/guestfs-actions.pod:5748
14141 msgid ""
14142 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14143 "for the cyls/heads/sectors parameters."
14144 msgstr ""
14145
14146 # type: textblock
14147 #: ../src/guestfs-actions.pod:5751
14148 msgid "See also: C<guestfs_part_add>"
14149 msgstr ""
14150
14151 # type: =head2
14152 #: ../src/guestfs-actions.pod:5760
14153 msgid "guestfs_sfdisk_disk_geometry"
14154 msgstr ""
14155
14156 # type: verbatim
14157 #: ../src/guestfs-actions.pod:5762
14158 #, no-wrap
14159 msgid ""
14160 " char *\n"
14161 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14162 "                               const char *device);\n"
14163 "\n"
14164 msgstr ""
14165
14166 # type: textblock
14167 #: ../src/guestfs-actions.pod:5766
14168 msgid ""
14169 "This displays the disk geometry of C<device> read from the partition table.  "
14170 "Especially in the case where the underlying block device has been resized, "
14171 "this can be different from the kernel's idea of the geometry (see "
14172 "C<guestfs_sfdisk_kernel_geometry>)."
14173 msgstr ""
14174
14175 # type: textblock
14176 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787
14177 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14178 msgid "The result is in human-readable format, and not designed to be parsed."
14179 msgstr ""
14180
14181 # type: =head2
14182 #: ../src/guestfs-actions.pod:5779
14183 msgid "guestfs_sfdisk_kernel_geometry"
14184 msgstr ""
14185
14186 # type: verbatim
14187 #: ../src/guestfs-actions.pod:5781
14188 #, no-wrap
14189 msgid ""
14190 " char *\n"
14191 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14192 "                                 const char *device);\n"
14193 "\n"
14194 msgstr ""
14195
14196 # type: textblock
14197 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
14198 msgid "This displays the kernel's idea of the geometry of C<device>."
14199 msgstr ""
14200
14201 # type: =head2
14202 #: ../src/guestfs-actions.pod:5795
14203 msgid "guestfs_sfdisk_l"
14204 msgstr ""
14205
14206 # type: verbatim
14207 #: ../src/guestfs-actions.pod:5797
14208 #, no-wrap
14209 msgid ""
14210 " char *\n"
14211 " guestfs_sfdisk_l (guestfs_h *g,\n"
14212 "                   const char *device);\n"
14213 "\n"
14214 msgstr ""
14215
14216 # type: textblock
14217 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
14218 msgid ""
14219 "This displays the partition table on C<device>, in the human-readable output "
14220 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14221 msgstr ""
14222
14223 # type: textblock
14224 #: ../src/guestfs-actions.pod:5805
14225 msgid "See also: C<guestfs_part_list>"
14226 msgstr ""
14227
14228 # type: =head2
14229 #: ../src/guestfs-actions.pod:5812
14230 msgid "guestfs_sh"
14231 msgstr ""
14232
14233 # type: verbatim
14234 #: ../src/guestfs-actions.pod:5814
14235 #, no-wrap
14236 msgid ""
14237 " char *\n"
14238 " guestfs_sh (guestfs_h *g,\n"
14239 "             const char *command);\n"
14240 "\n"
14241 msgstr ""
14242
14243 # type: textblock
14244 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
14245 msgid ""
14246 "This call runs a command from the guest filesystem via the guest's C</bin/"
14247 "sh>."
14248 msgstr ""
14249
14250 # type: textblock
14251 #: ../src/guestfs-actions.pod:5821
14252 msgid "This is like C<guestfs_command>, but passes the command to:"
14253 msgstr ""
14254
14255 # type: verbatim
14256 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
14257 #, no-wrap
14258 msgid ""
14259 " /bin/sh -c \"command\"\n"
14260 "\n"
14261 msgstr ""
14262
14263 # type: textblock
14264 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
14265 msgid ""
14266 "Depending on the guest's shell, this usually results in wildcards being "
14267 "expanded, shell expressions being interpolated and so on."
14268 msgstr ""
14269
14270 # type: textblock
14271 #: ../src/guestfs-actions.pod:5829
14272 msgid "All the provisos about C<guestfs_command> apply to this call."
14273 msgstr ""
14274
14275 # type: =head2
14276 #: ../src/guestfs-actions.pod:5836
14277 msgid "guestfs_sh_lines"
14278 msgstr ""
14279
14280 # type: verbatim
14281 #: ../src/guestfs-actions.pod:5838
14282 #, no-wrap
14283 msgid ""
14284 " char **\n"
14285 " guestfs_sh_lines (guestfs_h *g,\n"
14286 "                   const char *command);\n"
14287 "\n"
14288 msgstr ""
14289
14290 # type: textblock
14291 #: ../src/guestfs-actions.pod:5842
14292 msgid ""
14293 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14294 "lines."
14295 msgstr ""
14296
14297 # type: textblock
14298 #: ../src/guestfs-actions.pod:5845
14299 msgid "See also: C<guestfs_command_lines>"
14300 msgstr ""
14301
14302 # type: =head2
14303 #: ../src/guestfs-actions.pod:5853
14304 msgid "guestfs_sleep"
14305 msgstr ""
14306
14307 # type: verbatim
14308 #: ../src/guestfs-actions.pod:5855
14309 #, no-wrap
14310 msgid ""
14311 " int\n"
14312 " guestfs_sleep (guestfs_h *g,\n"
14313 "                int secs);\n"
14314 "\n"
14315 msgstr ""
14316
14317 # type: textblock
14318 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
14319 msgid "Sleep for C<secs> seconds."
14320 msgstr ""
14321
14322 # type: textblock
14323 #: ../src/guestfs-actions.pod:5863
14324 msgid "(Added in 1.0.41)"
14325 msgstr ""
14326
14327 # type: =head2
14328 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
14329 msgid "guestfs_stat"
14330 msgstr ""
14331
14332 # type: verbatim
14333 #: ../src/guestfs-actions.pod:5867
14334 #, no-wrap
14335 msgid ""
14336 " struct guestfs_stat *\n"
14337 " guestfs_stat (guestfs_h *g,\n"
14338 "               const char *path);\n"
14339 "\n"
14340 msgstr ""
14341
14342 # type: textblock
14343 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
14344 msgid "This is the same as the C<stat(2)> system call."
14345 msgstr ""
14346
14347 # type: =head2
14348 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
14349 msgid "guestfs_statvfs"
14350 msgstr ""
14351
14352 # type: verbatim
14353 #: ../src/guestfs-actions.pod:5883
14354 #, no-wrap
14355 msgid ""
14356 " struct guestfs_statvfs *\n"
14357 " guestfs_statvfs (guestfs_h *g,\n"
14358 "                  const char *path);\n"
14359 "\n"
14360 msgstr ""
14361
14362 # type: textblock
14363 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
14364 msgid ""
14365 "Returns file system statistics for any mounted file system.  C<path> should "
14366 "be a file or directory in the mounted file system (typically it is the mount "
14367 "point itself, but it doesn't need to be)."
14368 msgstr ""
14369
14370 # type: textblock
14371 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
14372 msgid "This is the same as the C<statvfs(2)> system call."
14373 msgstr ""
14374
14375 # type: textblock
14376 #: ../src/guestfs-actions.pod:5893
14377 msgid ""
14378 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14379 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14380 msgstr ""
14381
14382 # type: =head2
14383 #: ../src/guestfs-actions.pod:5899
14384 msgid "guestfs_strings"
14385 msgstr ""
14386
14387 # type: verbatim
14388 #: ../src/guestfs-actions.pod:5901
14389 #, no-wrap
14390 msgid ""
14391 " char **\n"
14392 " guestfs_strings (guestfs_h *g,\n"
14393 "                  const char *path);\n"
14394 "\n"
14395 msgstr ""
14396
14397 # type: textblock
14398 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
14399 msgid ""
14400 "This runs the L<strings(1)> command on a file and returns the list of "
14401 "printable strings found."
14402 msgstr ""
14403
14404 # type: =head2
14405 #: ../src/guestfs-actions.pod:5917
14406 msgid "guestfs_strings_e"
14407 msgstr ""
14408
14409 # type: verbatim
14410 #: ../src/guestfs-actions.pod:5919
14411 #, no-wrap
14412 msgid ""
14413 " char **\n"
14414 " guestfs_strings_e (guestfs_h *g,\n"
14415 "                    const char *encoding,\n"
14416 "                    const char *path);\n"
14417 "\n"
14418 msgstr ""
14419
14420 # type: textblock
14421 #: ../src/guestfs-actions.pod:5924
14422 msgid ""
14423 "This is like the C<guestfs_strings> command, but allows you to specify the "
14424 "encoding of strings that are looked for in the source file C<path>."
14425 msgstr ""
14426
14427 # type: textblock
14428 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
14429 msgid "Allowed encodings are:"
14430 msgstr ""
14431
14432 # type: =item
14433 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
14434 msgid "s"
14435 msgstr ""
14436
14437 # type: textblock
14438 #: ../src/guestfs-actions.pod:5934
14439 msgid ""
14440 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14441 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14442 msgstr ""
14443
14444 # type: =item
14445 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
14446 msgid "S"
14447 msgstr ""
14448
14449 # type: textblock
14450 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
14451 msgid "Single 8-bit-byte characters."
14452 msgstr ""
14453
14454 # type: =item
14455 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
14456 msgid "b"
14457 msgstr ""
14458
14459 # type: textblock
14460 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
14461 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14462 msgstr ""
14463
14464 # type: =item
14465 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
14466 msgid "l (lower case letter L)"
14467 msgstr ""
14468
14469 # type: textblock
14470 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
14471 msgid ""
14472 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14473 "examining binaries in Windows guests."
14474 msgstr ""
14475
14476 # type: =item
14477 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14478 msgid "B"
14479 msgstr ""
14480
14481 # type: textblock
14482 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14483 msgid "32-bit big endian such as UCS-4BE."
14484 msgstr ""
14485
14486 # type: =item
14487 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14488 msgid "L"
14489 msgstr ""
14490
14491 # type: textblock
14492 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14493 msgid "32-bit little endian such as UCS-4LE."
14494 msgstr ""
14495
14496 # type: textblock
14497 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14498 msgid "The returned strings are transcoded to UTF-8."
14499 msgstr ""
14500
14501 # type: =head2
14502 #: ../src/guestfs-actions.pod:5972
14503 msgid "guestfs_swapoff_device"
14504 msgstr ""
14505
14506 # type: verbatim
14507 #: ../src/guestfs-actions.pod:5974
14508 #, no-wrap
14509 msgid ""
14510 " int\n"
14511 " guestfs_swapoff_device (guestfs_h *g,\n"
14512 "                         const char *device);\n"
14513 "\n"
14514 msgstr ""
14515
14516 # type: textblock
14517 #: ../src/guestfs-actions.pod:5978
14518 msgid ""
14519 "This command disables the libguestfs appliance swap device or partition "
14520 "named C<device>.  See C<guestfs_swapon_device>."
14521 msgstr ""
14522
14523 # type: =head2
14524 #: ../src/guestfs-actions.pod:5986
14525 msgid "guestfs_swapoff_file"
14526 msgstr ""
14527
14528 # type: verbatim
14529 #: ../src/guestfs-actions.pod:5988
14530 #, no-wrap
14531 msgid ""
14532 " int\n"
14533 " guestfs_swapoff_file (guestfs_h *g,\n"
14534 "                       const char *file);\n"
14535 "\n"
14536 msgstr ""
14537
14538 # type: textblock
14539 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14540 msgid "This command disables the libguestfs appliance swap on file."
14541 msgstr ""
14542
14543 # type: =head2
14544 #: ../src/guestfs-actions.pod:5998
14545 msgid "guestfs_swapoff_label"
14546 msgstr ""
14547
14548 # type: verbatim
14549 #: ../src/guestfs-actions.pod:6000
14550 #, no-wrap
14551 msgid ""
14552 " int\n"
14553 " guestfs_swapoff_label (guestfs_h *g,\n"
14554 "                        const char *label);\n"
14555 "\n"
14556 msgstr ""
14557
14558 # type: textblock
14559 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14560 msgid ""
14561 "This command disables the libguestfs appliance swap on labeled swap "
14562 "partition."
14563 msgstr ""
14564
14565 # type: =head2
14566 #: ../src/guestfs-actions.pod:6011
14567 msgid "guestfs_swapoff_uuid"
14568 msgstr ""
14569
14570 # type: verbatim
14571 #: ../src/guestfs-actions.pod:6013
14572 #, no-wrap
14573 msgid ""
14574 " int\n"
14575 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14576 "                       const char *uuid);\n"
14577 "\n"
14578 msgstr ""
14579
14580 # type: textblock
14581 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14582 msgid ""
14583 "This command disables the libguestfs appliance swap partition with the given "
14584 "UUID."
14585 msgstr ""
14586
14587 # type: =head2
14588 #: ../src/guestfs-actions.pod:6024
14589 msgid "guestfs_swapon_device"
14590 msgstr ""
14591
14592 # type: verbatim
14593 #: ../src/guestfs-actions.pod:6026
14594 #, no-wrap
14595 msgid ""
14596 " int\n"
14597 " guestfs_swapon_device (guestfs_h *g,\n"
14598 "                        const char *device);\n"
14599 "\n"
14600 msgstr ""
14601
14602 # type: textblock
14603 #: ../src/guestfs-actions.pod:6030
14604 msgid ""
14605 "This command enables the libguestfs appliance to use the swap device or "
14606 "partition named C<device>.  The increased memory is made available for all "
14607 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14608 msgstr ""
14609
14610 # type: textblock
14611 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14612 msgid ""
14613 "Note that you should not swap to existing guest swap partitions unless you "
14614 "know what you are doing.  They may contain hibernation information, or other "
14615 "information that the guest doesn't want you to trash.  You also risk leaking "
14616 "information about the host to the guest this way.  Instead, attach a new "
14617 "host device to the guest and swap on that."
14618 msgstr ""
14619
14620 # type: =head2
14621 #: ../src/guestfs-actions.pod:6046
14622 msgid "guestfs_swapon_file"
14623 msgstr ""
14624
14625 # type: verbatim
14626 #: ../src/guestfs-actions.pod:6048
14627 #, no-wrap
14628 msgid ""
14629 " int\n"
14630 " guestfs_swapon_file (guestfs_h *g,\n"
14631 "                      const char *file);\n"
14632 "\n"
14633 msgstr ""
14634
14635 # type: textblock
14636 #: ../src/guestfs-actions.pod:6052
14637 msgid ""
14638 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14639 "notes."
14640 msgstr ""
14641
14642 # type: =head2
14643 #: ../src/guestfs-actions.pod:6059
14644 msgid "guestfs_swapon_label"
14645 msgstr ""
14646
14647 # type: verbatim
14648 #: ../src/guestfs-actions.pod:6061
14649 #, no-wrap
14650 msgid ""
14651 " int\n"
14652 " guestfs_swapon_label (guestfs_h *g,\n"
14653 "                       const char *label);\n"
14654 "\n"
14655 msgstr ""
14656
14657 # type: textblock
14658 #: ../src/guestfs-actions.pod:6065
14659 msgid ""
14660 "This command enables swap to a labeled swap partition.  See "
14661 "C<guestfs_swapon_device> for other notes."
14662 msgstr ""
14663
14664 # type: =head2
14665 #: ../src/guestfs-actions.pod:6072
14666 msgid "guestfs_swapon_uuid"
14667 msgstr ""
14668
14669 # type: verbatim
14670 #: ../src/guestfs-actions.pod:6074
14671 #, no-wrap
14672 msgid ""
14673 " int\n"
14674 " guestfs_swapon_uuid (guestfs_h *g,\n"
14675 "                      const char *uuid);\n"
14676 "\n"
14677 msgstr ""
14678
14679 # type: textblock
14680 #: ../src/guestfs-actions.pod:6078
14681 msgid ""
14682 "This command enables swap to a swap partition with the given UUID.  See "
14683 "C<guestfs_swapon_device> for other notes."
14684 msgstr ""
14685
14686 # type: =head2
14687 #: ../src/guestfs-actions.pod:6085
14688 msgid "guestfs_sync"
14689 msgstr ""
14690
14691 # type: verbatim
14692 #: ../src/guestfs-actions.pod:6087
14693 #, no-wrap
14694 msgid ""
14695 " int\n"
14696 " guestfs_sync (guestfs_h *g);\n"
14697 "\n"
14698 msgstr ""
14699
14700 # type: textblock
14701 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14702 msgid ""
14703 "This syncs the disk, so that any writes are flushed through to the "
14704 "underlying disk image."
14705 msgstr ""
14706
14707 # type: textblock
14708 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14709 msgid ""
14710 "You should always call this if you have modified a disk image, before "
14711 "closing the handle."
14712 msgstr ""
14713
14714 # type: =head2
14715 #: ../src/guestfs-actions.pod:6100
14716 msgid "guestfs_tail"
14717 msgstr ""
14718
14719 # type: verbatim
14720 #: ../src/guestfs-actions.pod:6102
14721 #, no-wrap
14722 msgid ""
14723 " char **\n"
14724 " guestfs_tail (guestfs_h *g,\n"
14725 "               const char *path);\n"
14726 "\n"
14727 msgstr ""
14728
14729 # type: textblock
14730 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14731 msgid ""
14732 "This command returns up to the last 10 lines of a file as a list of strings."
14733 msgstr ""
14734
14735 # type: =head2
14736 #: ../src/guestfs-actions.pod:6118
14737 msgid "guestfs_tail_n"
14738 msgstr ""
14739
14740 # type: verbatim
14741 #: ../src/guestfs-actions.pod:6120
14742 #, no-wrap
14743 msgid ""
14744 " char **\n"
14745 " guestfs_tail_n (guestfs_h *g,\n"
14746 "                 int nrlines,\n"
14747 "                 const char *path);\n"
14748 "\n"
14749 msgstr ""
14750
14751 # type: textblock
14752 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14753 msgid ""
14754 "If the parameter C<nrlines> is a positive number, this returns the last "
14755 "C<nrlines> lines of the file C<path>."
14756 msgstr ""
14757
14758 # type: textblock
14759 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14760 msgid ""
14761 "If the parameter C<nrlines> is a negative number, this returns lines from "
14762 "the file C<path>, starting with the C<-nrlines>th line."
14763 msgstr ""
14764
14765 # type: =head2
14766 #: ../src/guestfs-actions.pod:6142
14767 msgid "guestfs_tar_in"
14768 msgstr ""
14769
14770 # type: verbatim
14771 #: ../src/guestfs-actions.pod:6144
14772 #, no-wrap
14773 msgid ""
14774 " int\n"
14775 " guestfs_tar_in (guestfs_h *g,\n"
14776 "                 const char *tarfile,\n"
14777 "                 const char *directory);\n"
14778 "\n"
14779 msgstr ""
14780
14781 # type: textblock
14782 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14783 msgid ""
14784 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14785 "tar file) into C<directory>."
14786 msgstr ""
14787
14788 # type: textblock
14789 #: ../src/guestfs-actions.pod:6152
14790 msgid ""
14791 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14792 msgstr ""
14793
14794 # type: textblock
14795 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174
14796 #: ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14797 msgid "(Added in 1.0.3)"
14798 msgstr ""
14799
14800 # type: =head2
14801 #: ../src/guestfs-actions.pod:6159
14802 msgid "guestfs_tar_out"
14803 msgstr ""
14804
14805 # type: verbatim
14806 #: ../src/guestfs-actions.pod:6161
14807 #, no-wrap
14808 msgid ""
14809 " int\n"
14810 " guestfs_tar_out (guestfs_h *g,\n"
14811 "                  const char *directory,\n"
14812 "                  const char *tarfile);\n"
14813 "\n"
14814 msgstr ""
14815
14816 # type: textblock
14817 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14818 msgid ""
14819 "This command packs the contents of C<directory> and downloads it to local "
14820 "file C<tarfile>."
14821 msgstr ""
14822
14823 # type: textblock
14824 #: ../src/guestfs-actions.pod:6169
14825 msgid ""
14826 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14827 "C<guestfs_txz_out>."
14828 msgstr ""
14829
14830 # type: =head2
14831 #: ../src/guestfs-actions.pod:6176
14832 msgid "guestfs_tgz_in"
14833 msgstr ""
14834
14835 # type: verbatim
14836 #: ../src/guestfs-actions.pod:6178
14837 #, no-wrap
14838 msgid ""
14839 " int\n"
14840 " guestfs_tgz_in (guestfs_h *g,\n"
14841 "                 const char *tarball,\n"
14842 "                 const char *directory);\n"
14843 "\n"
14844 msgstr ""
14845
14846 # type: textblock
14847 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14848 msgid ""
14849 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14850 "tar file) into C<directory>."
14851 msgstr ""
14852
14853 # type: textblock
14854 #: ../src/guestfs-actions.pod:6186
14855 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14856 msgstr ""
14857
14858 # type: =head2
14859 #: ../src/guestfs-actions.pod:6192
14860 msgid "guestfs_tgz_out"
14861 msgstr ""
14862
14863 # type: verbatim
14864 #: ../src/guestfs-actions.pod:6194
14865 #, no-wrap
14866 msgid ""
14867 " int\n"
14868 " guestfs_tgz_out (guestfs_h *g,\n"
14869 "                  const char *directory,\n"
14870 "                  const char *tarball);\n"
14871 "\n"
14872 msgstr ""
14873
14874 # type: textblock
14875 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14876 msgid ""
14877 "This command packs the contents of C<directory> and downloads it to local "
14878 "file C<tarball>."
14879 msgstr ""
14880
14881 # type: textblock
14882 #: ../src/guestfs-actions.pod:6202
14883 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14884 msgstr ""
14885
14886 # type: =head2
14887 #: ../src/guestfs-actions.pod:6208
14888 msgid "guestfs_touch"
14889 msgstr ""
14890
14891 # type: verbatim
14892 #: ../src/guestfs-actions.pod:6210
14893 #, no-wrap
14894 msgid ""
14895 " int\n"
14896 " guestfs_touch (guestfs_h *g,\n"
14897 "                const char *path);\n"
14898 "\n"
14899 msgstr ""
14900
14901 # type: textblock
14902 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14903 msgid ""
14904 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14905 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14906 "length file."
14907 msgstr ""
14908
14909 # type: textblock
14910 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14911 msgid ""
14912 "This command only works on regular files, and will fail on other file types "
14913 "such as directories, symbolic links, block special etc."
14914 msgstr ""
14915
14916 # type: =head2
14917 #: ../src/guestfs-actions.pod:6225
14918 msgid "guestfs_truncate"
14919 msgstr ""
14920
14921 # type: verbatim
14922 #: ../src/guestfs-actions.pod:6227
14923 #, no-wrap
14924 msgid ""
14925 " int\n"
14926 " guestfs_truncate (guestfs_h *g,\n"
14927 "                   const char *path);\n"
14928 "\n"
14929 msgstr ""
14930
14931 # type: textblock
14932 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14933 msgid ""
14934 "This command truncates C<path> to a zero-length file.  The file must exist "
14935 "already."
14936 msgstr ""
14937
14938 # type: =head2
14939 #: ../src/guestfs-actions.pod:6238
14940 msgid "guestfs_truncate_size"
14941 msgstr ""
14942
14943 # type: verbatim
14944 #: ../src/guestfs-actions.pod:6240
14945 #, no-wrap
14946 msgid ""
14947 " int\n"
14948 " guestfs_truncate_size (guestfs_h *g,\n"
14949 "                        const char *path,\n"
14950 "                        int64_t size);\n"
14951 "\n"
14952 msgstr ""
14953
14954 # type: textblock
14955 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14956 msgid ""
14957 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14958 "already."
14959 msgstr ""
14960
14961 # type: textblock
14962 #: ../src/guestfs-actions.pod:6248
14963 msgid ""
14964 "If the current file size is less than C<size> then the file is extended to "
14965 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14966 "blocks are not allocated for the file until you write to it).  To create a "
14967 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14968 msgstr ""
14969
14970 # type: =head2
14971 #: ../src/guestfs-actions.pod:6258
14972 msgid "guestfs_tune2fs_l"
14973 msgstr ""
14974
14975 # type: verbatim
14976 #: ../src/guestfs-actions.pod:6260
14977 #, no-wrap
14978 msgid ""
14979 " char **\n"
14980 " guestfs_tune2fs_l (guestfs_h *g,\n"
14981 "                    const char *device);\n"
14982 "\n"
14983 msgstr ""
14984
14985 # type: textblock
14986 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
14987 msgid ""
14988 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14989 "C<device>."
14990 msgstr ""
14991
14992 # type: textblock
14993 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
14994 msgid ""
14995 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14996 "for more details.  The list of fields returned isn't clearly defined, and "
14997 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14998 "and the filesystem itself."
14999 msgstr ""
15000
15001 # type: =head2
15002 #: ../src/guestfs-actions.pod:6280
15003 msgid "guestfs_txz_in"
15004 msgstr ""
15005
15006 # type: verbatim
15007 #: ../src/guestfs-actions.pod:6282
15008 #, no-wrap
15009 msgid ""
15010 " int\n"
15011 " guestfs_txz_in (guestfs_h *g,\n"
15012 "                 const char *tarball,\n"
15013 "                 const char *directory);\n"
15014 "\n"
15015 msgstr ""
15016
15017 # type: textblock
15018 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
15019 msgid ""
15020 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15021 "tar file) into C<directory>."
15022 msgstr ""
15023
15024 # type: =head2
15025 #: ../src/guestfs-actions.pod:6294
15026 msgid "guestfs_txz_out"
15027 msgstr ""
15028
15029 # type: verbatim
15030 #: ../src/guestfs-actions.pod:6296
15031 #, no-wrap
15032 msgid ""
15033 " int\n"
15034 " guestfs_txz_out (guestfs_h *g,\n"
15035 "                  const char *directory,\n"
15036 "                  const char *tarball);\n"
15037 "\n"
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
15042 msgid ""
15043 "This command packs the contents of C<directory> and downloads it to local "
15044 "file C<tarball> (as an xz compressed tar archive)."
15045 msgstr ""
15046
15047 # type: =head2
15048 #: ../src/guestfs-actions.pod:6308
15049 msgid "guestfs_umask"
15050 msgstr ""
15051
15052 # type: verbatim
15053 #: ../src/guestfs-actions.pod:6310
15054 #, no-wrap
15055 msgid ""
15056 " int\n"
15057 " guestfs_umask (guestfs_h *g,\n"
15058 "                int mask);\n"
15059 "\n"
15060 msgstr ""
15061
15062 # type: textblock
15063 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
15064 msgid ""
15065 "This function sets the mask used for creating new files and device nodes to "
15066 "C<mask & 0777>."
15067 msgstr ""
15068
15069 # type: textblock
15070 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
15071 msgid ""
15072 "Typical umask values would be C<022> which creates new files with "
15073 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15074 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15075 msgstr ""
15076
15077 # type: textblock
15078 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
15079 msgid ""
15080 "The default umask is C<022>.  This is important because it means that "
15081 "directories and device nodes will be created with C<0644> or C<0755> mode "
15082 "even if you specify C<0777>."
15083 msgstr ""
15084
15085 # type: textblock
15086 #: ../src/guestfs-actions.pod:6326
15087 msgid ""
15088 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15089 "C<guestfs_mkdir>."
15090 msgstr ""
15091
15092 # type: textblock
15093 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
15094 msgid "This call returns the previous umask."
15095 msgstr ""
15096
15097 # type: =head2
15098 #: ../src/guestfs-actions.pod:6335
15099 msgid "guestfs_umount"
15100 msgstr ""
15101
15102 # type: verbatim
15103 #: ../src/guestfs-actions.pod:6337
15104 #, no-wrap
15105 msgid ""
15106 " int\n"
15107 " guestfs_umount (guestfs_h *g,\n"
15108 "                 const char *pathordevice);\n"
15109 "\n"
15110 msgstr ""
15111
15112 # type: textblock
15113 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
15114 msgid ""
15115 "This unmounts the given filesystem.  The filesystem may be specified either "
15116 "by its mountpoint (path) or the device which contains the filesystem."
15117 msgstr ""
15118
15119 # type: =head2
15120 #: ../src/guestfs-actions.pod:6349
15121 msgid "guestfs_umount_all"
15122 msgstr ""
15123
15124 # type: verbatim
15125 #: ../src/guestfs-actions.pod:6351
15126 #, no-wrap
15127 msgid ""
15128 " int\n"
15129 " guestfs_umount_all (guestfs_h *g);\n"
15130 "\n"
15131 msgstr ""
15132
15133 # type: textblock
15134 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
15135 msgid "This unmounts all mounted filesystems."
15136 msgstr ""
15137
15138 # type: textblock
15139 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
15140 msgid "Some internal mounts are not unmounted by this call."
15141 msgstr ""
15142
15143 # type: =head2
15144 #: ../src/guestfs-actions.pod:6362
15145 msgid "guestfs_upload"
15146 msgstr ""
15147
15148 # type: verbatim
15149 #: ../src/guestfs-actions.pod:6364
15150 #, no-wrap
15151 msgid ""
15152 " int\n"
15153 " guestfs_upload (guestfs_h *g,\n"
15154 "                 const char *filename,\n"
15155 "                 const char *remotefilename);\n"
15156 "\n"
15157 msgstr ""
15158
15159 # type: textblock
15160 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388
15161 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15162 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15163 msgstr ""
15164
15165 # type: textblock
15166 #: ../src/guestfs-actions.pod:6374
15167 msgid "See also C<guestfs_download>."
15168 msgstr ""
15169
15170 # type: =head2
15171 #: ../src/guestfs-actions.pod:6380
15172 msgid "guestfs_upload_offset"
15173 msgstr ""
15174
15175 # type: verbatim
15176 #: ../src/guestfs-actions.pod:6382
15177 #, no-wrap
15178 msgid ""
15179 " int\n"
15180 " guestfs_upload_offset (guestfs_h *g,\n"
15181 "                        const char *filename,\n"
15182 "                        const char *remotefilename,\n"
15183 "                        int64_t offset);\n"
15184 "\n"
15185 msgstr ""
15186
15187 # type: textblock
15188 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
15189 msgid ""
15190 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15191 "The intention is to overwrite parts of existing files or devices, although "
15192 "if a non-existant file is specified then it is created with a \"hole\" "
15193 "before C<offset>.  The size of the data written is implicit in the size of "
15194 "the source C<filename>."
15195 msgstr ""
15196
15197 # type: textblock
15198 #: ../src/guestfs-actions.pod:6398
15199 msgid ""
15200 "Note that there is no limit on the amount of data that can be uploaded with "
15201 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15202 "full amount unless an error occurs."
15203 msgstr ""
15204
15205 # type: textblock
15206 #: ../src/guestfs-actions.pod:6403
15207 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15208 msgstr ""
15209
15210 # type: =head2
15211 #: ../src/guestfs-actions.pod:6409
15212 msgid "guestfs_utimens"
15213 msgstr ""
15214
15215 # type: verbatim
15216 #: ../src/guestfs-actions.pod:6411
15217 #, no-wrap
15218 msgid ""
15219 " int\n"
15220 " guestfs_utimens (guestfs_h *g,\n"
15221 "                  const char *path,\n"
15222 "                  int64_t atsecs,\n"
15223 "                  int64_t atnsecs,\n"
15224 "                  int64_t mtsecs,\n"
15225 "                  int64_t mtnsecs);\n"
15226 "\n"
15227 msgstr ""
15228
15229 # type: textblock
15230 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
15231 msgid "This command sets the timestamps of a file with nanosecond precision."
15232 msgstr ""
15233
15234 # type: textblock
15235 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
15236 msgid ""
15237 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15238 "from the epoch."
15239 msgstr ""
15240
15241 # type: textblock
15242 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
15243 msgid ""
15244 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15245 "nanoseconds from the epoch."
15246 msgstr ""
15247
15248 # type: textblock
15249 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
15250 msgid ""
15251 "If the C<*nsecs> field contains the special value C<-1> then the "
15252 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15253 "ignored in this case)."
15254 msgstr ""
15255
15256 # type: textblock
15257 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
15258 msgid ""
15259 "If the C<*nsecs> field contains the special value C<-2> then the "
15260 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15261 "in this case)."
15262 msgstr ""
15263
15264 # type: =head2
15265 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
15266 msgid "guestfs_version"
15267 msgstr ""
15268
15269 # type: verbatim
15270 #: ../src/guestfs-actions.pod:6442
15271 #, no-wrap
15272 msgid ""
15273 " struct guestfs_version *\n"
15274 " guestfs_version (guestfs_h *g);\n"
15275 "\n"
15276 msgstr ""
15277
15278 # type: textblock
15279 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
15280 msgid ""
15281 "Return the libguestfs version number that the program is linked against."
15282 msgstr ""
15283
15284 # type: textblock
15285 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
15286 msgid ""
15287 "Note that because of dynamic linking this is not necessarily the version of "
15288 "libguestfs that you compiled against.  You can compile the program, and then "
15289 "at runtime dynamically link against a completely different C<libguestfs.so> "
15290 "library."
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
15295 msgid ""
15296 "This call was added in version C<1.0.58>.  In previous versions of "
15297 "libguestfs there was no way to get the version number.  From C code you can "
15298 "use dynamic linker functions to find out if this symbol exists (if it "
15299 "doesn't, then it's an earlier version)."
15300 msgstr ""
15301
15302 # type: textblock
15303 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
15304 msgid ""
15305 "The call returns a structure with four elements.  The first three (C<major>, "
15306 "C<minor> and C<release>) are numbers and correspond to the usual version "
15307 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15308 "but may be used for distro-specific information."
15309 msgstr ""
15310
15311 # type: textblock
15312 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
15313 msgid ""
15314 "To construct the original version string: C<$major.$minor.$release$extra>"
15315 msgstr ""
15316
15317 # type: textblock
15318 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
15319 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15320 msgstr ""
15321
15322 # type: textblock
15323 #: ../src/guestfs-actions.pod:6470
15324 msgid ""
15325 "I<Note:> Don't use this call to test for availability of features.  In "
15326 "enterprise distributions we backport features from later versions into "
15327 "earlier versions, making this an unreliable way to test for features.  Use "
15328 "C<guestfs_available> instead."
15329 msgstr ""
15330
15331 # type: textblock
15332 #: ../src/guestfs-actions.pod:6476
15333 msgid ""
15334 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15335 "error.  I<The caller must call C<guestfs_free_version> after use>."
15336 msgstr ""
15337
15338 # type: textblock
15339 #: ../src/guestfs-actions.pod:6480
15340 msgid "(Added in 1.0.58)"
15341 msgstr ""
15342
15343 # type: =head2
15344 #: ../src/guestfs-actions.pod:6482
15345 msgid "guestfs_vfs_label"
15346 msgstr ""
15347
15348 # type: verbatim
15349 #: ../src/guestfs-actions.pod:6484
15350 #, no-wrap
15351 msgid ""
15352 " char *\n"
15353 " guestfs_vfs_label (guestfs_h *g,\n"
15354 "                    const char *device);\n"
15355 "\n"
15356 msgstr ""
15357
15358 # type: textblock
15359 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
15360 msgid "This returns the filesystem label of the filesystem on C<device>."
15361 msgstr ""
15362
15363 # type: textblock
15364 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
15365 msgid "If the filesystem is unlabeled, this returns the empty string."
15366 msgstr ""
15367
15368 # type: textblock
15369 #: ../src/guestfs-actions.pod:6493
15370 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15371 msgstr ""
15372
15373 # type: textblock
15374 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
15375 msgid "(Added in 1.3.18)"
15376 msgstr ""
15377
15378 # type: =head2
15379 #: ../src/guestfs-actions.pod:6500
15380 msgid "guestfs_vfs_type"
15381 msgstr ""
15382
15383 # type: verbatim
15384 #: ../src/guestfs-actions.pod:6502
15385 #, no-wrap
15386 msgid ""
15387 " char *\n"
15388 " guestfs_vfs_type (guestfs_h *g,\n"
15389 "                   const char *device);\n"
15390 "\n"
15391 msgstr ""
15392
15393 # type: textblock
15394 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
15395 msgid ""
15396 "This command gets the filesystem type corresponding to the filesystem on "
15397 "C<device>."
15398 msgstr ""
15399
15400 # type: textblock
15401 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
15402 msgid ""
15403 "For most filesystems, the result is the name of the Linux VFS module which "
15404 "would be used to mount this filesystem if you mounted it without specifying "
15405 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15406 msgstr ""
15407
15408 # type: =head2
15409 #: ../src/guestfs-actions.pod:6519
15410 msgid "guestfs_vfs_uuid"
15411 msgstr ""
15412
15413 # type: verbatim
15414 #: ../src/guestfs-actions.pod:6521
15415 #, no-wrap
15416 msgid ""
15417 " char *\n"
15418 " guestfs_vfs_uuid (guestfs_h *g,\n"
15419 "                   const char *device);\n"
15420 "\n"
15421 msgstr ""
15422
15423 # type: textblock
15424 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
15425 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15426 msgstr ""
15427
15428 # type: textblock
15429 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
15430 msgid "If the filesystem does not have a UUID, this returns the empty string."
15431 msgstr ""
15432
15433 # type: textblock
15434 #: ../src/guestfs-actions.pod:6530
15435 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15436 msgstr ""
15437
15438 # type: =head2
15439 #: ../src/guestfs-actions.pod:6537
15440 msgid "guestfs_vg_activate"
15441 msgstr ""
15442
15443 # type: verbatim
15444 #: ../src/guestfs-actions.pod:6539
15445 #, no-wrap
15446 msgid ""
15447 " int\n"
15448 " guestfs_vg_activate (guestfs_h *g,\n"
15449 "                      int activate,\n"
15450 "                      char *const *volgroups);\n"
15451 "\n"
15452 msgstr ""
15453
15454 # type: textblock
15455 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
15456 msgid ""
15457 "This command activates or (if C<activate> is false) deactivates all logical "
15458 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15459 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15460 "deactivated, then those devices disappear."
15461 msgstr ""
15462
15463 # type: textblock
15464 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
15465 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15466 msgstr ""
15467
15468 # type: textblock
15469 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
15470 msgid ""
15471 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15472 "activated or deactivated."
15473 msgstr ""
15474
15475 # type: =head2
15476 #: ../src/guestfs-actions.pod:6559
15477 msgid "guestfs_vg_activate_all"
15478 msgstr ""
15479
15480 # type: verbatim
15481 #: ../src/guestfs-actions.pod:6561
15482 #, no-wrap
15483 msgid ""
15484 " int\n"
15485 " guestfs_vg_activate_all (guestfs_h *g,\n"
15486 "                          int activate);\n"
15487 "\n"
15488 msgstr ""
15489
15490 # type: textblock
15491 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15492 msgid ""
15493 "This command activates or (if C<activate> is false) deactivates all logical "
15494 "volumes in all volume groups.  If activated, then they are made known to the "
15495 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15496 "those devices disappear."
15497 msgstr ""
15498
15499 # type: textblock
15500 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15501 msgid "This command is the same as running C<vgchange -a y|n>"
15502 msgstr ""
15503
15504 # type: =head2
15505 #: ../src/guestfs-actions.pod:6577
15506 msgid "guestfs_vgcreate"
15507 msgstr ""
15508
15509 # type: verbatim
15510 #: ../src/guestfs-actions.pod:6579
15511 #, no-wrap
15512 msgid ""
15513 " int\n"
15514 " guestfs_vgcreate (guestfs_h *g,\n"
15515 "                   const char *volgroup,\n"
15516 "                   char *const *physvols);\n"
15517 "\n"
15518 msgstr ""
15519
15520 # type: textblock
15521 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15522 msgid ""
15523 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15524 "of physical volumes C<physvols>."
15525 msgstr ""
15526
15527 # type: =head2
15528 #: ../src/guestfs-actions.pod:6591
15529 msgid "guestfs_vglvuuids"
15530 msgstr ""
15531
15532 # type: verbatim
15533 #: ../src/guestfs-actions.pod:6593
15534 #, no-wrap
15535 msgid ""
15536 " char **\n"
15537 " guestfs_vglvuuids (guestfs_h *g,\n"
15538 "                    const char *vgname);\n"
15539 "\n"
15540 msgstr ""
15541
15542 # type: textblock
15543 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15544 msgid ""
15545 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15546 "volumes created in this volume group."
15547 msgstr ""
15548
15549 # type: textblock
15550 #: ../src/guestfs-actions.pod:6600
15551 msgid ""
15552 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15553 "associate logical volumes and volume groups."
15554 msgstr ""
15555
15556 # type: textblock
15557 #: ../src/guestfs-actions.pod:6603
15558 msgid "See also C<guestfs_vgpvuuids>."
15559 msgstr ""
15560
15561 # type: =head2
15562 #: ../src/guestfs-actions.pod:6611
15563 msgid "guestfs_vgpvuuids"
15564 msgstr ""
15565
15566 # type: verbatim
15567 #: ../src/guestfs-actions.pod:6613
15568 #, no-wrap
15569 msgid ""
15570 " char **\n"
15571 " guestfs_vgpvuuids (guestfs_h *g,\n"
15572 "                    const char *vgname);\n"
15573 "\n"
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15578 msgid ""
15579 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15580 "volumes that this volume group resides on."
15581 msgstr ""
15582
15583 # type: textblock
15584 #: ../src/guestfs-actions.pod:6620
15585 msgid ""
15586 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15587 "associate physical volumes and volume groups."
15588 msgstr ""
15589
15590 # type: textblock
15591 #: ../src/guestfs-actions.pod:6623
15592 msgid "See also C<guestfs_vglvuuids>."
15593 msgstr ""
15594
15595 # type: =head2
15596 #: ../src/guestfs-actions.pod:6631
15597 msgid "guestfs_vgremove"
15598 msgstr ""
15599
15600 # type: verbatim
15601 #: ../src/guestfs-actions.pod:6633
15602 #, no-wrap
15603 msgid ""
15604 " int\n"
15605 " guestfs_vgremove (guestfs_h *g,\n"
15606 "                   const char *vgname);\n"
15607 "\n"
15608 msgstr ""
15609
15610 # type: textblock
15611 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15612 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15613 msgstr ""
15614
15615 # type: textblock
15616 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15617 msgid ""
15618 "This also forcibly removes all logical volumes in the volume group (if any)."
15619 msgstr ""
15620
15621 # type: =head2
15622 #: ../src/guestfs-actions.pod:6646
15623 msgid "guestfs_vgrename"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #: ../src/guestfs-actions.pod:6648
15628 #, no-wrap
15629 msgid ""
15630 " int\n"
15631 " guestfs_vgrename (guestfs_h *g,\n"
15632 "                   const char *volgroup,\n"
15633 "                   const char *newvolgroup);\n"
15634 "\n"
15635 msgstr ""
15636
15637 # type: textblock
15638 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15639 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15640 msgstr ""
15641
15642 # type: =head2
15643 #: ../src/guestfs-actions.pod:6659
15644 msgid "guestfs_vgs"
15645 msgstr ""
15646
15647 # type: verbatim
15648 #: ../src/guestfs-actions.pod:6661
15649 #, no-wrap
15650 msgid ""
15651 " char **\n"
15652 " guestfs_vgs (guestfs_h *g);\n"
15653 "\n"
15654 msgstr ""
15655
15656 # type: textblock
15657 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15658 msgid ""
15659 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15660 "> command."
15661 msgstr ""
15662
15663 # type: textblock
15664 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15665 msgid ""
15666 "This returns a list of just the volume group names that were detected (eg. "
15667 "C<VolGroup00>)."
15668 msgstr ""
15669
15670 # type: textblock
15671 #: ../src/guestfs-actions.pod:6670
15672 msgid "See also C<guestfs_vgs_full>."
15673 msgstr ""
15674
15675 # type: =head2
15676 #: ../src/guestfs-actions.pod:6678
15677 msgid "guestfs_vgs_full"
15678 msgstr ""
15679
15680 # type: verbatim
15681 #: ../src/guestfs-actions.pod:6680
15682 #, no-wrap
15683 msgid ""
15684 " struct guestfs_lvm_vg_list *\n"
15685 " guestfs_vgs_full (guestfs_h *g);\n"
15686 "\n"
15687 msgstr ""
15688
15689 # type: textblock
15690 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15691 msgid ""
15692 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15693 "> command.  The \"full\" version includes all fields."
15694 msgstr ""
15695
15696 # type: textblock
15697 #: ../src/guestfs-actions.pod:6686
15698 msgid ""
15699 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15700 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15701 msgstr ""
15702
15703 # type: =head2
15704 #: ../src/guestfs-actions.pod:6692
15705 msgid "guestfs_vgscan"
15706 msgstr ""
15707
15708 # type: verbatim
15709 #: ../src/guestfs-actions.pod:6694
15710 #, no-wrap
15711 msgid ""
15712 " int\n"
15713 " guestfs_vgscan (guestfs_h *g);\n"
15714 "\n"
15715 msgstr ""
15716
15717 # type: textblock
15718 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15719 msgid ""
15720 "This rescans all block devices and rebuilds the list of LVM physical "
15721 "volumes, volume groups and logical volumes."
15722 msgstr ""
15723
15724 # type: =head2
15725 #: ../src/guestfs-actions.pod:6704
15726 msgid "guestfs_vguuid"
15727 msgstr ""
15728
15729 # type: verbatim
15730 #: ../src/guestfs-actions.pod:6706
15731 #, no-wrap
15732 msgid ""
15733 " char *\n"
15734 " guestfs_vguuid (guestfs_h *g,\n"
15735 "                 const char *vgname);\n"
15736 "\n"
15737 msgstr ""
15738
15739 # type: textblock
15740 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15741 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15742 msgstr ""
15743
15744 # type: =head2
15745 #: ../src/guestfs-actions.pod:6717
15746 msgid "guestfs_wait_ready"
15747 msgstr ""
15748
15749 # type: verbatim
15750 #: ../src/guestfs-actions.pod:6719
15751 #, no-wrap
15752 msgid ""
15753 " int\n"
15754 " guestfs_wait_ready (guestfs_h *g);\n"
15755 "\n"
15756 msgstr ""
15757
15758 # type: textblock
15759 #: ../src/guestfs-actions.pod:6722
15760 msgid "This function is a no op."
15761 msgstr ""
15762
15763 # type: textblock
15764 #: ../src/guestfs-actions.pod:6724
15765 msgid ""
15766 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15767 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15768 "is no longer necessary because C<guestfs_launch> now does the waiting."
15769 msgstr ""
15770
15771 # type: textblock
15772 #: ../src/guestfs-actions.pod:6729
15773 msgid ""
15774 "If you see any calls to this function in code then you can just remove them, "
15775 "unless you want to retain compatibility with older versions of the API."
15776 msgstr ""
15777
15778 # type: =head2
15779 #: ../src/guestfs-actions.pod:6737
15780 msgid "guestfs_wc_c"
15781 msgstr ""
15782
15783 # type: verbatim
15784 #: ../src/guestfs-actions.pod:6739
15785 #, no-wrap
15786 msgid ""
15787 " int\n"
15788 " guestfs_wc_c (guestfs_h *g,\n"
15789 "               const char *path);\n"
15790 "\n"
15791 msgstr ""
15792
15793 # type: textblock
15794 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15795 msgid ""
15796 "This command counts the characters in a file, using the C<wc -c> external "
15797 "command."
15798 msgstr ""
15799
15800 # type: =head2
15801 #: ../src/guestfs-actions.pod:6750
15802 msgid "guestfs_wc_l"
15803 msgstr ""
15804
15805 # type: verbatim
15806 #: ../src/guestfs-actions.pod:6752
15807 #, no-wrap
15808 msgid ""
15809 " int\n"
15810 " guestfs_wc_l (guestfs_h *g,\n"
15811 "               const char *path);\n"
15812 "\n"
15813 msgstr ""
15814
15815 # type: textblock
15816 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15817 msgid ""
15818 "This command counts the lines in a file, using the C<wc -l> external command."
15819 msgstr ""
15820
15821 # type: =head2
15822 #: ../src/guestfs-actions.pod:6763
15823 msgid "guestfs_wc_w"
15824 msgstr ""
15825
15826 # type: verbatim
15827 #: ../src/guestfs-actions.pod:6765
15828 #, no-wrap
15829 msgid ""
15830 " int\n"
15831 " guestfs_wc_w (guestfs_h *g,\n"
15832 "               const char *path);\n"
15833 "\n"
15834 msgstr ""
15835
15836 # type: textblock
15837 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15838 msgid ""
15839 "This command counts the words in a file, using the C<wc -w> external command."
15840 msgstr ""
15841
15842 # type: =head2
15843 #: ../src/guestfs-actions.pod:6776
15844 msgid "guestfs_write"
15845 msgstr ""
15846
15847 # type: verbatim
15848 #: ../src/guestfs-actions.pod:6778
15849 #, no-wrap
15850 msgid ""
15851 " int\n"
15852 " guestfs_write (guestfs_h *g,\n"
15853 "                const char *path,\n"
15854 "                const char *content,\n"
15855 "                size_t content_size);\n"
15856 "\n"
15857 msgstr ""
15858
15859 # type: textblock
15860 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15861 msgid ""
15862 "This call creates a file called C<path>.  The content of the file is the "
15863 "string C<content> (which can contain any 8 bit data)."
15864 msgstr ""
15865
15866 # type: =head2
15867 #: ../src/guestfs-actions.pod:6794
15868 msgid "guestfs_write_file"
15869 msgstr ""
15870
15871 # type: verbatim
15872 #: ../src/guestfs-actions.pod:6796
15873 #, no-wrap
15874 msgid ""
15875 " int\n"
15876 " guestfs_write_file (guestfs_h *g,\n"
15877 "                     const char *path,\n"
15878 "                     const char *content,\n"
15879 "                     int size);\n"
15880 "\n"
15881 msgstr ""
15882
15883 # type: textblock
15884 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15885 msgid ""
15886 "This call creates a file called C<path>.  The contents of the file is the "
15887 "string C<content> (which can contain any 8 bit data), with length C<size>."
15888 msgstr ""
15889
15890 # type: textblock
15891 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15892 msgid ""
15893 "As a special case, if C<size> is C<0> then the length is calculated using "
15894 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15895 msgstr ""
15896
15897 # type: textblock
15898 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15899 msgid ""
15900 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15901 "I<not> work, even if the length is specified."
15902 msgstr ""
15903
15904 # type: textblock
15905 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15906 msgid ""
15907 "This function is deprecated.  In new code, use the C<write> call instead."
15908 msgstr ""
15909
15910 # type: =head2
15911 #: ../src/guestfs-actions.pod:6827
15912 msgid "guestfs_zegrep"
15913 msgstr ""
15914
15915 # type: verbatim
15916 #: ../src/guestfs-actions.pod:6829
15917 #, no-wrap
15918 msgid ""
15919 " char **\n"
15920 " guestfs_zegrep (guestfs_h *g,\n"
15921 "                 const char *regex,\n"
15922 "                 const char *path);\n"
15923 "\n"
15924 msgstr ""
15925
15926 # type: textblock
15927 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15928 msgid ""
15929 "This calls the external C<zegrep> program and returns the matching lines."
15930 msgstr ""
15931
15932 # type: =head2
15933 #: ../src/guestfs-actions.pod:6846
15934 msgid "guestfs_zegrepi"
15935 msgstr ""
15936
15937 # type: verbatim
15938 #: ../src/guestfs-actions.pod:6848
15939 #, no-wrap
15940 msgid ""
15941 " char **\n"
15942 " guestfs_zegrepi (guestfs_h *g,\n"
15943 "                  const char *regex,\n"
15944 "                  const char *path);\n"
15945 "\n"
15946 msgstr ""
15947
15948 # type: textblock
15949 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15950 msgid ""
15951 "This calls the external C<zegrep -i> program and returns the matching lines."
15952 msgstr ""
15953
15954 # type: =head2
15955 #: ../src/guestfs-actions.pod:6865
15956 msgid "guestfs_zero"
15957 msgstr ""
15958
15959 # type: verbatim
15960 #: ../src/guestfs-actions.pod:6867
15961 #, no-wrap
15962 msgid ""
15963 " int\n"
15964 " guestfs_zero (guestfs_h *g,\n"
15965 "               const char *device);\n"
15966 "\n"
15967 msgstr ""
15968
15969 # type: textblock
15970 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15971 msgid "This command writes zeroes over the first few blocks of C<device>."
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15976 msgid ""
15977 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15978 "securely wipe the device).  It should be sufficient to remove any partition "
15979 "tables, filesystem superblocks and so on."
15980 msgstr ""
15981
15982 # type: textblock
15983 #: ../src/guestfs-actions.pod:6877
15984 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15985 msgstr ""
15986
15987 # type: =head2
15988 #: ../src/guestfs-actions.pod:6888
15989 msgid "guestfs_zero_device"
15990 msgstr ""
15991
15992 # type: verbatim
15993 #: ../src/guestfs-actions.pod:6890
15994 #, no-wrap
15995 msgid ""
15996 " int\n"
15997 " guestfs_zero_device (guestfs_h *g,\n"
15998 "                      const char *device);\n"
15999 "\n"
16000 msgstr ""
16001
16002 # type: textblock
16003 #: ../src/guestfs-actions.pod:6894
16004 msgid ""
16005 "This command writes zeroes over the entire C<device>.  Compare with "
16006 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16007 msgstr ""
16008
16009 # type: textblock
16010 #: ../src/guestfs-actions.pod:6908
16011 msgid "(Added in 1.3.1)"
16012 msgstr ""
16013
16014 # type: =head2
16015 #: ../src/guestfs-actions.pod:6910
16016 msgid "guestfs_zerofree"
16017 msgstr ""
16018
16019 # type: verbatim
16020 #: ../src/guestfs-actions.pod:6912
16021 #, no-wrap
16022 msgid ""
16023 " int\n"
16024 " guestfs_zerofree (guestfs_h *g,\n"
16025 "                   const char *device);\n"
16026 "\n"
16027 msgstr ""
16028
16029 # type: textblock
16030 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
16031 msgid ""
16032 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16033 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16034 "possible to compress the filesystem more effectively."
16035 msgstr ""
16036
16037 # type: textblock
16038 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
16039 msgid "You should B<not> run this program if the filesystem is mounted."
16040 msgstr ""
16041
16042 # type: textblock
16043 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
16044 msgid ""
16045 "It is possible that using this program can damage the filesystem or data on "
16046 "the filesystem."
16047 msgstr ""
16048
16049 # type: =head2
16050 #: ../src/guestfs-actions.pod:6931
16051 msgid "guestfs_zfgrep"
16052 msgstr ""
16053
16054 # type: verbatim
16055 #: ../src/guestfs-actions.pod:6933
16056 #, no-wrap
16057 msgid ""
16058 " char **\n"
16059 " guestfs_zfgrep (guestfs_h *g,\n"
16060 "                 const char *pattern,\n"
16061 "                 const char *path);\n"
16062 "\n"
16063 msgstr ""
16064
16065 # type: textblock
16066 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
16067 msgid ""
16068 "This calls the external C<zfgrep> program and returns the matching lines."
16069 msgstr ""
16070
16071 # type: =head2
16072 #: ../src/guestfs-actions.pod:6950
16073 msgid "guestfs_zfgrepi"
16074 msgstr ""
16075
16076 # type: verbatim
16077 #: ../src/guestfs-actions.pod:6952
16078 #, no-wrap
16079 msgid ""
16080 " char **\n"
16081 " guestfs_zfgrepi (guestfs_h *g,\n"
16082 "                  const char *pattern,\n"
16083 "                  const char *path);\n"
16084 "\n"
16085 msgstr ""
16086
16087 # type: textblock
16088 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
16089 msgid ""
16090 "This calls the external C<zfgrep -i> program and returns the matching lines."
16091 msgstr ""
16092
16093 # type: =head2
16094 #: ../src/guestfs-actions.pod:6969
16095 msgid "guestfs_zfile"
16096 msgstr ""
16097
16098 # type: verbatim
16099 #: ../src/guestfs-actions.pod:6971
16100 #, no-wrap
16101 msgid ""
16102 " char *\n"
16103 " guestfs_zfile (guestfs_h *g,\n"
16104 "                const char *meth,\n"
16105 "                const char *path);\n"
16106 "\n"
16107 msgstr ""
16108
16109 # type: textblock
16110 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
16111 msgid ""
16112 "This command runs C<file> after first decompressing C<path> using C<method>."
16113 msgstr ""
16114
16115 # type: textblock
16116 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
16117 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16118 msgstr ""
16119
16120 # type: textblock
16121 #: ../src/guestfs-actions.pod:6981
16122 msgid ""
16123 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16124 "files."
16125 msgstr ""
16126
16127 # type: textblock
16128 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
16129 msgid ""
16130 "This function is deprecated.  In new code, use the C<file> call instead."
16131 msgstr ""
16132
16133 # type: =head2
16134 #: ../src/guestfs-actions.pod:6996
16135 msgid "guestfs_zgrep"
16136 msgstr ""
16137
16138 # type: verbatim
16139 #: ../src/guestfs-actions.pod:6998
16140 #, no-wrap
16141 msgid ""
16142 " char **\n"
16143 " guestfs_zgrep (guestfs_h *g,\n"
16144 "                const char *regex,\n"
16145 "                const char *path);\n"
16146 "\n"
16147 msgstr ""
16148
16149 # type: textblock
16150 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
16151 msgid ""
16152 "This calls the external C<zgrep> program and returns the matching lines."
16153 msgstr ""
16154
16155 # type: =head2
16156 #: ../src/guestfs-actions.pod:7015
16157 msgid "guestfs_zgrepi"
16158 msgstr ""
16159
16160 # type: verbatim
16161 #: ../src/guestfs-actions.pod:7017
16162 #, no-wrap
16163 msgid ""
16164 " char **\n"
16165 " guestfs_zgrepi (guestfs_h *g,\n"
16166 "                 const char *regex,\n"
16167 "                 const char *path);\n"
16168 "\n"
16169 msgstr ""
16170
16171 # type: textblock
16172 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
16173 msgid ""
16174 "This calls the external C<zgrep -i> program and returns the matching lines."
16175 msgstr ""
16176
16177 # type: =item
16178 #: ../src/guestfs-availability.pod:3
16179 msgid "B<augeas>"
16180 msgstr ""
16181
16182 # type: textblock
16183 #: ../src/guestfs-availability.pod:5
16184 msgid ""
16185 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16186 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16187 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16188 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16189 "L</guestfs_aug_save> L</guestfs_aug_set>"
16190 msgstr ""
16191
16192 # type: =item
16193 #: ../src/guestfs-availability.pod:21
16194 msgid "B<inotify>"
16195 msgstr ""
16196
16197 # type: textblock
16198 #: ../src/guestfs-availability.pod:23
16199 msgid ""
16200 "The following functions: L</guestfs_inotify_add_watch> L</"
16201 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16202 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16203 msgstr ""
16204
16205 # type: =item
16206 #: ../src/guestfs-availability.pod:31
16207 msgid "B<linuxfsuuid>"
16208 msgstr ""
16209
16210 # type: textblock
16211 #: ../src/guestfs-availability.pod:33
16212 msgid ""
16213 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16214 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16215 msgstr ""
16216
16217 # type: =item
16218 #: ../src/guestfs-availability.pod:40
16219 msgid "B<linuxmodules>"
16220 msgstr ""
16221
16222 # type: textblock
16223 #: ../src/guestfs-availability.pod:42
16224 msgid "The following functions: L</guestfs_modprobe>"
16225 msgstr ""
16226
16227 # type: =item
16228 #: ../src/guestfs-availability.pod:45
16229 msgid "B<linuxxattrs>"
16230 msgstr ""
16231
16232 # type: textblock
16233 #: ../src/guestfs-availability.pod:47
16234 msgid ""
16235 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16236 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16237 "guestfs_removexattr> L</guestfs_setxattr>"
16238 msgstr ""
16239
16240 # type: =item
16241 #: ../src/guestfs-availability.pod:56
16242 msgid "B<luks>"
16243 msgstr ""
16244
16245 # type: textblock
16246 #: ../src/guestfs-availability.pod:58
16247 msgid ""
16248 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16249 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16250 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16251 msgstr ""
16252
16253 # type: =item
16254 #: ../src/guestfs-availability.pod:67
16255 msgid "B<lvm2>"
16256 msgstr ""
16257
16258 # type: textblock
16259 #: ../src/guestfs-availability.pod:69
16260 msgid ""
16261 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16262 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16263 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16264 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16265 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16266 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16267 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16268 msgstr ""
16269
16270 # type: =item
16271 #: ../src/guestfs-availability.pod:92
16272 msgid "B<mknod>"
16273 msgstr ""
16274
16275 # type: textblock
16276 #: ../src/guestfs-availability.pod:94
16277 msgid ""
16278 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16279 "guestfs_mknod_b> L</guestfs_mknod_c>"
16280 msgstr ""
16281
16282 # type: =item
16283 #: ../src/guestfs-availability.pod:100
16284 msgid "B<ntfs3g>"
16285 msgstr ""
16286
16287 # type: textblock
16288 #: ../src/guestfs-availability.pod:102
16289 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16290 msgstr ""
16291
16292 # type: =item
16293 #: ../src/guestfs-availability.pod:105
16294 msgid "B<ntfsprogs>"
16295 msgstr ""
16296
16297 # type: textblock
16298 #: ../src/guestfs-availability.pod:107
16299 msgid ""
16300 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16301 msgstr ""
16302
16303 # type: =item
16304 #: ../src/guestfs-availability.pod:111
16305 msgid "B<realpath>"
16306 msgstr ""
16307
16308 # type: textblock
16309 #: ../src/guestfs-availability.pod:113
16310 msgid "The following functions: L</guestfs_realpath>"
16311 msgstr ""
16312
16313 # type: =item
16314 #: ../src/guestfs-availability.pod:116
16315 msgid "B<scrub>"
16316 msgstr ""
16317
16318 # type: textblock
16319 #: ../src/guestfs-availability.pod:118
16320 msgid ""
16321 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16322 "guestfs_scrub_freespace>"
16323 msgstr ""
16324
16325 # type: =item
16326 #: ../src/guestfs-availability.pod:123
16327 msgid "B<selinux>"
16328 msgstr ""
16329
16330 # type: textblock
16331 #: ../src/guestfs-availability.pod:125
16332 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16333 msgstr ""
16334
16335 # type: =item
16336 #: ../src/guestfs-availability.pod:129
16337 msgid "B<xz>"
16338 msgstr ""
16339
16340 # type: textblock
16341 #: ../src/guestfs-availability.pod:131
16342 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16343 msgstr ""
16344
16345 # type: =item
16346 #: ../src/guestfs-availability.pod:135
16347 msgid "B<zerofree>"
16348 msgstr ""
16349
16350 # type: textblock
16351 #: ../src/guestfs-availability.pod:137
16352 msgid "The following functions: L</guestfs_zerofree>"
16353 msgstr ""
16354
16355 # type: =head2
16356 #: ../src/guestfs-structs.pod:1
16357 msgid "guestfs_int_bool"
16358 msgstr ""
16359
16360 # type: verbatim
16361 #: ../src/guestfs-structs.pod:3
16362 #, no-wrap
16363 msgid ""
16364 " struct guestfs_int_bool {\n"
16365 "   int32_t i;\n"
16366 "   int32_t b;\n"
16367 " };\n"
16368 " \n"
16369 msgstr ""
16370
16371 # type: verbatim
16372 #: ../src/guestfs-structs.pod:8
16373 #, no-wrap
16374 msgid ""
16375 " struct guestfs_int_bool_list {\n"
16376 "   uint32_t len; /* Number of elements in list. */\n"
16377 "   struct guestfs_int_bool *val; /* Elements. */\n"
16378 " };\n"
16379 " \n"
16380 msgstr ""
16381
16382 # type: verbatim
16383 #: ../src/guestfs-structs.pod:13
16384 #, no-wrap
16385 msgid ""
16386 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16387 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16388 "\n"
16389 msgstr ""
16390
16391 # type: =head2
16392 #: ../src/guestfs-structs.pod:16
16393 msgid "guestfs_lvm_pv"
16394 msgstr ""
16395
16396 # type: verbatim
16397 #: ../src/guestfs-structs.pod:18
16398 #, no-wrap
16399 msgid ""
16400 " struct guestfs_lvm_pv {\n"
16401 "   char *pv_name;\n"
16402 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16403 "   char pv_uuid[32];\n"
16404 "   char *pv_fmt;\n"
16405 "   uint64_t pv_size;\n"
16406 "   uint64_t dev_size;\n"
16407 "   uint64_t pv_free;\n"
16408 "   uint64_t pv_used;\n"
16409 "   char *pv_attr;\n"
16410 "   int64_t pv_pe_count;\n"
16411 "   int64_t pv_pe_alloc_count;\n"
16412 "   char *pv_tags;\n"
16413 "   uint64_t pe_start;\n"
16414 "   int64_t pv_mda_count;\n"
16415 "   uint64_t pv_mda_free;\n"
16416 " };\n"
16417 " \n"
16418 msgstr ""
16419
16420 # type: verbatim
16421 #: ../src/guestfs-structs.pod:36
16422 #, no-wrap
16423 msgid ""
16424 " struct guestfs_lvm_pv_list {\n"
16425 "   uint32_t len; /* Number of elements in list. */\n"
16426 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16427 " };\n"
16428 " \n"
16429 msgstr ""
16430
16431 # type: verbatim
16432 #: ../src/guestfs-structs.pod:41
16433 #, no-wrap
16434 msgid ""
16435 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16436 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16437 "\n"
16438 msgstr ""
16439
16440 # type: =head2
16441 #: ../src/guestfs-structs.pod:44
16442 msgid "guestfs_lvm_vg"
16443 msgstr ""
16444
16445 # type: verbatim
16446 #: ../src/guestfs-structs.pod:46
16447 #, no-wrap
16448 msgid ""
16449 " struct guestfs_lvm_vg {\n"
16450 "   char *vg_name;\n"
16451 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16452 "   char vg_uuid[32];\n"
16453 "   char *vg_fmt;\n"
16454 "   char *vg_attr;\n"
16455 "   uint64_t vg_size;\n"
16456 "   uint64_t vg_free;\n"
16457 "   char *vg_sysid;\n"
16458 "   uint64_t vg_extent_size;\n"
16459 "   int64_t vg_extent_count;\n"
16460 "   int64_t vg_free_count;\n"
16461 "   int64_t max_lv;\n"
16462 "   int64_t max_pv;\n"
16463 "   int64_t pv_count;\n"
16464 "   int64_t lv_count;\n"
16465 "   int64_t snap_count;\n"
16466 "   int64_t vg_seqno;\n"
16467 "   char *vg_tags;\n"
16468 "   int64_t vg_mda_count;\n"
16469 "   uint64_t vg_mda_free;\n"
16470 " };\n"
16471 " \n"
16472 msgstr ""
16473
16474 # type: verbatim
16475 #: ../src/guestfs-structs.pod:69
16476 #, no-wrap
16477 msgid ""
16478 " struct guestfs_lvm_vg_list {\n"
16479 "   uint32_t len; /* Number of elements in list. */\n"
16480 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16481 " };\n"
16482 " \n"
16483 msgstr ""
16484
16485 # type: verbatim
16486 #: ../src/guestfs-structs.pod:74
16487 #, no-wrap
16488 msgid ""
16489 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16490 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16491 "\n"
16492 msgstr ""
16493
16494 # type: =head2
16495 #: ../src/guestfs-structs.pod:77
16496 msgid "guestfs_lvm_lv"
16497 msgstr ""
16498
16499 # type: verbatim
16500 #: ../src/guestfs-structs.pod:79
16501 #, no-wrap
16502 msgid ""
16503 " struct guestfs_lvm_lv {\n"
16504 "   char *lv_name;\n"
16505 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16506 "   char lv_uuid[32];\n"
16507 "   char *lv_attr;\n"
16508 "   int64_t lv_major;\n"
16509 "   int64_t lv_minor;\n"
16510 "   int64_t lv_kernel_major;\n"
16511 "   int64_t lv_kernel_minor;\n"
16512 "   uint64_t lv_size;\n"
16513 "   int64_t seg_count;\n"
16514 "   char *origin;\n"
16515 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16516 "   float snap_percent;\n"
16517 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16518 "   float copy_percent;\n"
16519 "   char *move_pv;\n"
16520 "   char *lv_tags;\n"
16521 "   char *mirror_log;\n"
16522 "   char *modules;\n"
16523 " };\n"
16524 " \n"
16525 msgstr ""
16526
16527 # type: verbatim
16528 #: ../src/guestfs-structs.pod:101
16529 #, no-wrap
16530 msgid ""
16531 " struct guestfs_lvm_lv_list {\n"
16532 "   uint32_t len; /* Number of elements in list. */\n"
16533 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16534 " };\n"
16535 " \n"
16536 msgstr ""
16537
16538 # type: verbatim
16539 #: ../src/guestfs-structs.pod:106
16540 #, no-wrap
16541 msgid ""
16542 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16543 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16544 "\n"
16545 msgstr ""
16546
16547 # type: verbatim
16548 #: ../src/guestfs-structs.pod:111
16549 #, no-wrap
16550 msgid ""
16551 " struct guestfs_stat {\n"
16552 "   int64_t dev;\n"
16553 "   int64_t ino;\n"
16554 "   int64_t mode;\n"
16555 "   int64_t nlink;\n"
16556 "   int64_t uid;\n"
16557 "   int64_t gid;\n"
16558 "   int64_t rdev;\n"
16559 "   int64_t size;\n"
16560 "   int64_t blksize;\n"
16561 "   int64_t blocks;\n"
16562 "   int64_t atime;\n"
16563 "   int64_t mtime;\n"
16564 "   int64_t ctime;\n"
16565 " };\n"
16566 " \n"
16567 msgstr ""
16568
16569 # type: verbatim
16570 #: ../src/guestfs-structs.pod:127
16571 #, no-wrap
16572 msgid ""
16573 " struct guestfs_stat_list {\n"
16574 "   uint32_t len; /* Number of elements in list. */\n"
16575 "   struct guestfs_stat *val; /* Elements. */\n"
16576 " };\n"
16577 " \n"
16578 msgstr ""
16579
16580 # type: verbatim
16581 #: ../src/guestfs-structs.pod:132
16582 #, no-wrap
16583 msgid ""
16584 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16585 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16586 "\n"
16587 msgstr ""
16588
16589 # type: verbatim
16590 #: ../src/guestfs-structs.pod:137
16591 #, no-wrap
16592 msgid ""
16593 " struct guestfs_statvfs {\n"
16594 "   int64_t bsize;\n"
16595 "   int64_t frsize;\n"
16596 "   int64_t blocks;\n"
16597 "   int64_t bfree;\n"
16598 "   int64_t bavail;\n"
16599 "   int64_t files;\n"
16600 "   int64_t ffree;\n"
16601 "   int64_t favail;\n"
16602 "   int64_t fsid;\n"
16603 "   int64_t flag;\n"
16604 "   int64_t namemax;\n"
16605 " };\n"
16606 " \n"
16607 msgstr ""
16608
16609 # type: verbatim
16610 #: ../src/guestfs-structs.pod:151
16611 #, no-wrap
16612 msgid ""
16613 " struct guestfs_statvfs_list {\n"
16614 "   uint32_t len; /* Number of elements in list. */\n"
16615 "   struct guestfs_statvfs *val; /* Elements. */\n"
16616 " };\n"
16617 " \n"
16618 msgstr ""
16619
16620 # type: verbatim
16621 #: ../src/guestfs-structs.pod:156
16622 #, no-wrap
16623 msgid ""
16624 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16625 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16626 "\n"
16627 msgstr ""
16628
16629 # type: =head2
16630 #: ../src/guestfs-structs.pod:159
16631 msgid "guestfs_dirent"
16632 msgstr ""
16633
16634 # type: verbatim
16635 #: ../src/guestfs-structs.pod:161
16636 #, no-wrap
16637 msgid ""
16638 " struct guestfs_dirent {\n"
16639 "   int64_t ino;\n"
16640 "   char ftyp;\n"
16641 "   char *name;\n"
16642 " };\n"
16643 " \n"
16644 msgstr ""
16645
16646 # type: verbatim
16647 #: ../src/guestfs-structs.pod:167
16648 #, no-wrap
16649 msgid ""
16650 " struct guestfs_dirent_list {\n"
16651 "   uint32_t len; /* Number of elements in list. */\n"
16652 "   struct guestfs_dirent *val; /* Elements. */\n"
16653 " };\n"
16654 " \n"
16655 msgstr ""
16656
16657 # type: verbatim
16658 #: ../src/guestfs-structs.pod:172
16659 #, no-wrap
16660 msgid ""
16661 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16662 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16663 "\n"
16664 msgstr ""
16665
16666 # type: verbatim
16667 #: ../src/guestfs-structs.pod:177
16668 #, no-wrap
16669 msgid ""
16670 " struct guestfs_version {\n"
16671 "   int64_t major;\n"
16672 "   int64_t minor;\n"
16673 "   int64_t release;\n"
16674 "   char *extra;\n"
16675 " };\n"
16676 " \n"
16677 msgstr ""
16678
16679 # type: verbatim
16680 #: ../src/guestfs-structs.pod:184
16681 #, no-wrap
16682 msgid ""
16683 " struct guestfs_version_list {\n"
16684 "   uint32_t len; /* Number of elements in list. */\n"
16685 "   struct guestfs_version *val; /* Elements. */\n"
16686 " };\n"
16687 " \n"
16688 msgstr ""
16689
16690 # type: verbatim
16691 #: ../src/guestfs-structs.pod:189
16692 #, no-wrap
16693 msgid ""
16694 " void guestfs_free_version (struct guestfs_free_version *);\n"
16695 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16696 "\n"
16697 msgstr ""
16698
16699 # type: =head2
16700 #: ../src/guestfs-structs.pod:192
16701 msgid "guestfs_xattr"
16702 msgstr ""
16703
16704 # type: verbatim
16705 #: ../src/guestfs-structs.pod:194
16706 #, no-wrap
16707 msgid ""
16708 " struct guestfs_xattr {\n"
16709 "   char *attrname;\n"
16710 "   /* The next two fields describe a byte array. */\n"
16711 "   uint32_t attrval_len;\n"
16712 "   char *attrval;\n"
16713 " };\n"
16714 " \n"
16715 msgstr ""
16716
16717 # type: verbatim
16718 #: ../src/guestfs-structs.pod:201
16719 #, no-wrap
16720 msgid ""
16721 " struct guestfs_xattr_list {\n"
16722 "   uint32_t len; /* Number of elements in list. */\n"
16723 "   struct guestfs_xattr *val; /* Elements. */\n"
16724 " };\n"
16725 " \n"
16726 msgstr ""
16727
16728 # type: verbatim
16729 #: ../src/guestfs-structs.pod:206
16730 #, no-wrap
16731 msgid ""
16732 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16733 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16734 "\n"
16735 msgstr ""
16736
16737 # type: =head2
16738 #: ../src/guestfs-structs.pod:209
16739 msgid "guestfs_inotify_event"
16740 msgstr ""
16741
16742 # type: verbatim
16743 #: ../src/guestfs-structs.pod:211
16744 #, no-wrap
16745 msgid ""
16746 " struct guestfs_inotify_event {\n"
16747 "   int64_t in_wd;\n"
16748 "   uint32_t in_mask;\n"
16749 "   uint32_t in_cookie;\n"
16750 "   char *in_name;\n"
16751 " };\n"
16752 " \n"
16753 msgstr ""
16754
16755 # type: verbatim
16756 #: ../src/guestfs-structs.pod:218
16757 #, no-wrap
16758 msgid ""
16759 " struct guestfs_inotify_event_list {\n"
16760 "   uint32_t len; /* Number of elements in list. */\n"
16761 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16762 " };\n"
16763 " \n"
16764 msgstr ""
16765
16766 # type: verbatim
16767 #: ../src/guestfs-structs.pod:223
16768 #, no-wrap
16769 msgid ""
16770 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16771 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16772 "\n"
16773 msgstr ""
16774
16775 # type: =head2
16776 #: ../src/guestfs-structs.pod:226
16777 msgid "guestfs_partition"
16778 msgstr ""
16779
16780 # type: verbatim
16781 #: ../src/guestfs-structs.pod:228
16782 #, no-wrap
16783 msgid ""
16784 " struct guestfs_partition {\n"
16785 "   int32_t part_num;\n"
16786 "   uint64_t part_start;\n"
16787 "   uint64_t part_end;\n"
16788 "   uint64_t part_size;\n"
16789 " };\n"
16790 " \n"
16791 msgstr ""
16792
16793 # type: verbatim
16794 #: ../src/guestfs-structs.pod:235
16795 #, no-wrap
16796 msgid ""
16797 " struct guestfs_partition_list {\n"
16798 "   uint32_t len; /* Number of elements in list. */\n"
16799 "   struct guestfs_partition *val; /* Elements. */\n"
16800 " };\n"
16801 " \n"
16802 msgstr ""
16803
16804 # type: verbatim
16805 #: ../src/guestfs-structs.pod:240
16806 #, no-wrap
16807 msgid ""
16808 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16809 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16810 "\n"
16811 msgstr ""
16812
16813 # type: =head2
16814 #: ../src/guestfs-structs.pod:243
16815 msgid "guestfs_application"
16816 msgstr ""
16817
16818 # type: verbatim
16819 #: ../src/guestfs-structs.pod:245
16820 #, no-wrap
16821 msgid ""
16822 " struct guestfs_application {\n"
16823 "   char *app_name;\n"
16824 "   char *app_display_name;\n"
16825 "   int32_t app_epoch;\n"
16826 "   char *app_version;\n"
16827 "   char *app_release;\n"
16828 "   char *app_install_path;\n"
16829 "   char *app_trans_path;\n"
16830 "   char *app_publisher;\n"
16831 "   char *app_url;\n"
16832 "   char *app_source_package;\n"
16833 "   char *app_summary;\n"
16834 "   char *app_description;\n"
16835 " };\n"
16836 " \n"
16837 msgstr ""
16838
16839 # type: verbatim
16840 #: ../src/guestfs-structs.pod:260
16841 #, no-wrap
16842 msgid ""
16843 " struct guestfs_application_list {\n"
16844 "   uint32_t len; /* Number of elements in list. */\n"
16845 "   struct guestfs_application *val; /* Elements. */\n"
16846 " };\n"
16847 " \n"
16848 msgstr ""
16849
16850 # type: verbatim
16851 #: ../src/guestfs-structs.pod:265
16852 #, no-wrap
16853 msgid ""
16854 " void guestfs_free_application (struct guestfs_free_application *);\n"
16855 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16856 "\n"
16857 msgstr ""
16858
16859 # type: textblock
16860 #: ../fish/guestfish.pod:5
16861 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16862 msgstr ""
16863
16864 # type: verbatim
16865 #: ../fish/guestfish.pod:9
16866 #, no-wrap
16867 msgid ""
16868 " guestfish [--options] [commands]\n"
16869 "\n"
16870 msgstr ""
16871
16872 # type: verbatim
16873 #: ../fish/guestfish.pod:11
16874 #, no-wrap
16875 msgid ""
16876 " guestfish\n"
16877 "\n"
16878 msgstr ""
16879
16880 # type: verbatim
16881 #: ../fish/guestfish.pod:13
16882 #, no-wrap
16883 msgid ""
16884 " guestfish [--ro|--rw] -a disk.img\n"
16885 "\n"
16886 msgstr ""
16887
16888 # type: verbatim
16889 #: ../fish/guestfish.pod:15
16890 #, no-wrap
16891 msgid ""
16892 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16893 "\n"
16894 msgstr ""
16895
16896 # type: verbatim
16897 #: ../fish/guestfish.pod:17
16898 #, no-wrap
16899 msgid ""
16900 " guestfish -d libvirt-domain\n"
16901 "\n"
16902 msgstr ""
16903
16904 # type: verbatim
16905 #: ../fish/guestfish.pod:19
16906 #, no-wrap
16907 msgid ""
16908 " guestfish [--ro|--rw] -a disk.img -i\n"
16909 "\n"
16910 msgstr ""
16911
16912 # type: verbatim
16913 #: ../fish/guestfish.pod:21
16914 #, no-wrap
16915 msgid ""
16916 " guestfish -d libvirt-domain -i\n"
16917 "\n"
16918 msgstr ""
16919
16920 # type: =head1
16921 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16922 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16923 #: ../tools/virt-rescue.pl:41
16924 msgid "WARNING"
16925 msgstr ""
16926
16927 # type: textblock
16928 #: ../fish/guestfish.pod:25
16929 msgid ""
16930 "Using guestfish in read/write mode on live virtual machines can be "
16931 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16932 "option to use guestfish safely if the disk image or virtual machine might be "
16933 "live."
16934 msgstr ""
16935
16936 # type: textblock
16937 #: ../fish/guestfish.pod:32
16938 msgid ""
16939 "Guestfish is a shell and command-line tool for examining and modifying "
16940 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16941 "functionality of the guestfs API, see L<guestfs(3)>."
16942 msgstr ""
16943
16944 # type: textblock
16945 #: ../fish/guestfish.pod:36
16946 msgid ""
16947 "Guestfish gives you structured access to the libguestfs API, from shell "
16948 "scripts or the command line or interactively.  If you want to rescue a "
16949 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16950 "command."
16951 msgstr ""
16952
16953 # type: =head1
16954 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847
16955 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16956 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16957 msgid "EXAMPLES"
16958 msgstr ""
16959
16960 # type: =head2
16961 #: ../fish/guestfish.pod:43
16962 msgid "As an interactive shell"
16963 msgstr ""
16964
16965 # type: verbatim
16966 #: ../fish/guestfish.pod:45
16967 #, no-wrap
16968 msgid ""
16969 " $ guestfish\n"
16970 " \n"
16971 msgstr ""
16972
16973 # type: verbatim
16974 #: ../fish/guestfish.pod:47
16975 #, no-wrap
16976 msgid ""
16977 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16978 " editing virtual machine filesystems.\n"
16979 " \n"
16980 msgstr ""
16981
16982 # type: verbatim
16983 #: ../fish/guestfish.pod:50
16984 #, no-wrap
16985 msgid ""
16986 " Type: 'help' for a list of commands\n"
16987 "       'man' to read the manual\n"
16988 "       'quit' to quit the shell\n"
16989 " \n"
16990 msgstr ""
16991
16992 # type: verbatim
16993 #: ../fish/guestfish.pod:54
16994 #, no-wrap
16995 msgid ""
16996 " ><fs> add-ro disk.img\n"
16997 " ><fs> run\n"
16998 " ><fs> list-filesystems\n"
16999 " /dev/sda1: ext4\n"
17000 " /dev/vg_guest/lv_root: ext4\n"
17001 " /dev/vg_guest/lv_swap: swap\n"
17002 " ><fs> mount /dev/vg_guest/lv_root /\n"
17003 " ><fs> cat /etc/fstab\n"
17004 " # /etc/fstab\n"
17005 " # Created by anaconda\n"
17006 " [...]\n"
17007 " ><fs> exit\n"
17008 "\n"
17009 msgstr ""
17010
17011 # type: =head2
17012 #: ../fish/guestfish.pod:67
17013 msgid "From shell scripts"
17014 msgstr ""
17015
17016 # type: textblock
17017 #: ../fish/guestfish.pod:69
17018 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17019 msgstr ""
17020
17021 # type: verbatim
17022 #: ../fish/guestfish.pod:71
17023 #, no-wrap
17024 msgid ""
17025 " guestfish <<_EOF_\n"
17026 " add disk.img\n"
17027 " run\n"
17028 " mount /dev/vg_guest/lv_root /\n"
17029 " write /etc/motd \"Welcome, new users\"\n"
17030 " _EOF_\n"
17031 "\n"
17032 msgstr ""
17033
17034 # type: textblock
17035 #: ../fish/guestfish.pod:78
17036 msgid "List the LVM logical volumes in a disk image:"
17037 msgstr ""
17038
17039 # type: verbatim
17040 #: ../fish/guestfish.pod:80
17041 #, no-wrap
17042 msgid ""
17043 " guestfish -a disk.img --ro <<_EOF_\n"
17044 " run\n"
17045 " lvs\n"
17046 " _EOF_\n"
17047 "\n"
17048 msgstr ""
17049
17050 # type: textblock
17051 #: ../fish/guestfish.pod:85
17052 msgid "List all the filesystems in a disk image:"
17053 msgstr ""
17054
17055 # type: verbatim
17056 #: ../fish/guestfish.pod:87
17057 #, no-wrap
17058 msgid ""
17059 " guestfish -a disk.img --ro <<_EOF_\n"
17060 " run\n"
17061 " list-filesystems\n"
17062 " _EOF_\n"
17063 "\n"
17064 msgstr ""
17065
17066 # type: =head2
17067 #: ../fish/guestfish.pod:92
17068 msgid "On one command line"
17069 msgstr ""
17070
17071 # type: textblock
17072 #: ../fish/guestfish.pod:94
17073 msgid "Update C</etc/resolv.conf> in a guest:"
17074 msgstr ""
17075
17076 # type: verbatim
17077 #: ../fish/guestfish.pod:96
17078 #, no-wrap
17079 msgid ""
17080 " guestfish \\\n"
17081 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17082 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17083 "\n"
17084 msgstr ""
17085
17086 # type: textblock
17087 #: ../fish/guestfish.pod:100
17088 msgid "Edit C</boot/grub/grub.conf> interactively:"
17089 msgstr ""
17090
17091 # type: verbatim
17092 #: ../fish/guestfish.pod:102
17093 #, no-wrap
17094 msgid ""
17095 " guestfish --rw --add disk.img \\\n"
17096 "   --mount /dev/vg_guest/lv_root \\\n"
17097 "   --mount /dev/sda1:/boot \\\n"
17098 "   edit /boot/grub/grub.conf\n"
17099 "\n"
17100 msgstr ""
17101
17102 # type: =head2
17103 #: ../fish/guestfish.pod:107
17104 msgid "Mount disks automatically"
17105 msgstr ""
17106
17107 # type: textblock
17108 #: ../fish/guestfish.pod:109
17109 msgid ""
17110 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17111 msgstr ""
17112
17113 # type: verbatim
17114 #: ../fish/guestfish.pod:112
17115 #, no-wrap
17116 msgid ""
17117 " guestfish --ro -a disk.img -i cat /etc/group\n"
17118 "\n"
17119 msgstr ""
17120
17121 # type: verbatim
17122 #: ../fish/guestfish.pod:114
17123 #, no-wrap
17124 msgid ""
17125 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17126 "\n"
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish.pod:116
17131 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17132 msgstr ""
17133
17134 # type: verbatim
17135 #: ../fish/guestfish.pod:118
17136 #, no-wrap
17137 msgid ""
17138 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17139 "\n"
17140 msgstr ""
17141
17142 # type: =head2
17143 #: ../fish/guestfish.pod:120
17144 msgid "As a script interpreter"
17145 msgstr ""
17146
17147 # type: textblock
17148 #: ../fish/guestfish.pod:122
17149 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17150 msgstr ""
17151
17152 # type: verbatim
17153 #: ../fish/guestfish.pod:124
17154 #, no-wrap
17155 msgid ""
17156 " #!/usr/bin/guestfish -f\n"
17157 " sparse test1.img 100M\n"
17158 " run\n"
17159 " part-disk /dev/sda mbr\n"
17160 " mkfs ext2 /dev/sda1\n"
17161 "\n"
17162 msgstr ""
17163
17164 # type: =head2
17165 #: ../fish/guestfish.pod:130
17166 msgid "Start with a prepared disk"
17167 msgstr ""
17168
17169 # type: textblock
17170 #: ../fish/guestfish.pod:132
17171 msgid ""
17172 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17173 "single ext2-formatted partition:"
17174 msgstr ""
17175
17176 # type: verbatim
17177 #: ../fish/guestfish.pod:135
17178 #, no-wrap
17179 msgid ""
17180 " guestfish -N fs\n"
17181 "\n"
17182 msgstr ""
17183
17184 # type: textblock
17185 #: ../fish/guestfish.pod:137
17186 msgid "To list what is available do:"
17187 msgstr ""
17188
17189 # type: verbatim
17190 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
17191 #, no-wrap
17192 msgid ""
17193 " guestfish -N help | less\n"
17194 "\n"
17195 msgstr ""
17196
17197 # type: =head2
17198 #: ../fish/guestfish.pod:141
17199 msgid "Remote control"
17200 msgstr ""
17201
17202 # type: verbatim
17203 #: ../fish/guestfish.pod:143
17204 #, no-wrap
17205 msgid ""
17206 " eval \"`guestfish --listen`\"\n"
17207 " guestfish --remote add-ro disk.img\n"
17208 " guestfish --remote run\n"
17209 " guestfish --remote lvs\n"
17210 "\n"
17211 msgstr ""
17212
17213 # type: =head1
17214 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17215 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17216 #: ../tools/virt-win-reg.pl:171 ../tools/virt-resize.pl:256
17217 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17218 #: ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153
17219 #: ../tools/virt-list-partitions.pl:54
17220 msgid "OPTIONS"
17221 msgstr ""
17222
17223 # type: =item
17224 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17225 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17226 #: ../tools/virt-resize.pl:264 ../tools/virt-list-filesystems.pl:61
17227 #: ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111
17228 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
17229 msgid "B<--help>"
17230 msgstr ""
17231
17232 # type: textblock
17233 #: ../fish/guestfish.pod:154
17234 msgid "Displays general help on options."
17235 msgstr ""
17236
17237 # type: =item
17238 #: ../fish/guestfish.pod:156
17239 msgid "B<-h> | B<--cmd-help>"
17240 msgstr ""
17241
17242 # type: textblock
17243 #: ../fish/guestfish.pod:158
17244 msgid "Lists all available guestfish commands."
17245 msgstr ""
17246
17247 # type: =item
17248 #: ../fish/guestfish.pod:160
17249 msgid "B<-h cmd> | B<--cmd-help cmd>"
17250 msgstr ""
17251
17252 # type: textblock
17253 #: ../fish/guestfish.pod:162
17254 msgid "Displays detailed help on a single command C<cmd>."
17255 msgstr ""
17256
17257 # type: =item
17258 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17259 msgid "B<-a image> | B<--add image>"
17260 msgstr ""
17261
17262 # type: textblock
17263 #: ../fish/guestfish.pod:166
17264 msgid "Add a block device or virtual machine image to the shell."
17265 msgstr ""
17266
17267 # type: textblock
17268 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17269 msgid ""
17270 "The format of the disk image is auto-detected.  To override this and force a "
17271 "particular format use the I<--format=..> option."
17272 msgstr ""
17273
17274 # type: =item
17275 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17276 msgid "B<-c URI> | B<--connect URI>"
17277 msgstr ""
17278
17279 # type: textblock
17280 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17281 msgid ""
17282 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17283 "URI to use.  The default is to use the default libvirt connection."
17284 msgstr ""
17285
17286 # type: =item
17287 #: ../fish/guestfish.pod:177
17288 msgid "B<--csh>"
17289 msgstr ""
17290
17291 # type: textblock
17292 #: ../fish/guestfish.pod:179
17293 msgid ""
17294 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17295 "section L</REMOTE CONTROL AND CSH> below."
17296 msgstr ""
17297
17298 # type: =item
17299 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17300 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17301 msgstr ""
17302
17303 # type: textblock
17304 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17305 msgid ""
17306 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17307 "used, then any libvirt domain can be used.  However in write mode, only "
17308 "libvirt domains which are shut down can be named here."
17309 msgstr ""
17310
17311 # type: =item
17312 #: ../fish/guestfish.pod:188
17313 msgid "B<-D> | B<--no-dest-paths>"
17314 msgstr ""
17315
17316 # type: textblock
17317 #: ../fish/guestfish.pod:190
17318 msgid ""
17319 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17320 "to hit the tab key to complete paths on the guest filesystem, but this "
17321 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17322 "allow this feature to be disabled."
17323 msgstr ""
17324
17325 # type: =item
17326 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17327 msgid "B<--echo-keys>"
17328 msgstr ""
17329
17330 # type: textblock
17331 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17332 msgid ""
17333 "When prompting for keys and passphrases, guestfish normally turns echoing "
17334 "off so you cannot see what you are typing.  If you are not worried about "
17335 "Tempest attacks and there is no one else in the room you can specify this "
17336 "flag to see what you are typing."
17337 msgstr ""
17338
17339 # type: =item
17340 #: ../fish/guestfish.pod:202
17341 msgid "B<-f file> | B<--file file>"
17342 msgstr ""
17343
17344 # type: textblock
17345 #: ../fish/guestfish.pod:204
17346 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17347 msgstr ""
17348
17349 # type: verbatim
17350 #: ../fish/guestfish.pod:207
17351 #, no-wrap
17352 msgid ""
17353 " #!/usr/bin/guestfish -f\n"
17354 "\n"
17355 msgstr ""
17356
17357 # type: =item
17358 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17359 msgid "B<--format=raw|qcow2|..> | B<--format>"
17360 msgstr ""
17361
17362 # type: textblock
17363 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17364 msgid ""
17365 "The default for the I<-a> option is to auto-detect the format of the disk "
17366 "image.  Using this forces the disk format for I<-a> options which follow on "
17367 "the command line.  Using I<--format> with no argument switches back to auto-"
17368 "detection for subsequent I<-a> options."
17369 msgstr ""
17370
17371 # type: textblock
17372 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17373 msgid "For example:"
17374 msgstr ""
17375
17376 # type: verbatim
17377 #: ../fish/guestfish.pod:218
17378 #, no-wrap
17379 msgid ""
17380 " guestfish --format=raw -a disk.img\n"
17381 "\n"
17382 msgstr ""
17383
17384 # type: textblock
17385 #: ../fish/guestfish.pod:220
17386 msgid "forces raw format (no auto-detection) for C<disk.img>."
17387 msgstr ""
17388
17389 # type: verbatim
17390 #: ../fish/guestfish.pod:222
17391 #, no-wrap
17392 msgid ""
17393 " guestfish --format=raw -a disk.img --format -a another.img\n"
17394 "\n"
17395 msgstr ""
17396
17397 # type: textblock
17398 #: ../fish/guestfish.pod:224
17399 msgid ""
17400 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17401 "detection for C<another.img>."
17402 msgstr ""
17403
17404 # type: textblock
17405 #: ../fish/guestfish.pod:227
17406 msgid ""
17407 "If you have untrusted raw-format guest disk images, you should use this "
17408 "option to specify the disk format.  This avoids a possible security problem "
17409 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17410 msgstr ""
17411
17412 # type: =item
17413 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17414 msgid "B<-i> | B<--inspector>"
17415 msgstr ""
17416
17417 # type: textblock
17418 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17419 msgid ""
17420 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17421 "system and mount filesystems as they would be mounted on the real virtual "
17422 "machine."
17423 msgstr ""
17424
17425 # type: textblock
17426 #: ../fish/guestfish.pod:238
17427 msgid "Typical usage is either:"
17428 msgstr ""
17429
17430 # type: verbatim
17431 #: ../fish/guestfish.pod:240
17432 #, no-wrap
17433 msgid ""
17434 " guestfish -d myguest -i\n"
17435 "\n"
17436 msgstr ""
17437
17438 # type: textblock
17439 #: ../fish/guestfish.pod:242
17440 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17441 msgstr ""
17442
17443 # type: verbatim
17444 #: ../fish/guestfish.pod:244
17445 #, no-wrap
17446 msgid ""
17447 " guestfish --ro -d myguest -i\n"
17448 "\n"
17449 msgstr ""
17450
17451 # type: textblock
17452 #: ../fish/guestfish.pod:246
17453 msgid "(for active domains, readonly), or specify the block device directly:"
17454 msgstr ""
17455
17456 # type: verbatim
17457 #: ../fish/guestfish.pod:248
17458 #, no-wrap
17459 msgid ""
17460 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17461 "\n"
17462 msgstr ""
17463
17464 # type: textblock
17465 #: ../fish/guestfish.pod:250
17466 msgid ""
17467 "Note that the command line syntax changed slightly over older versions of "
17468 "guestfish.  You can still use the old syntax:"
17469 msgstr ""
17470
17471 # type: verbatim
17472 #: ../fish/guestfish.pod:253
17473 #, no-wrap
17474 msgid ""
17475 " guestfish [--ro] -i disk.img\n"
17476 "\n"
17477 msgstr ""
17478
17479 # type: verbatim
17480 #: ../fish/guestfish.pod:255
17481 #, no-wrap
17482 msgid ""
17483 " guestfish [--ro] -i libvirt-domain\n"
17484 "\n"
17485 msgstr ""
17486
17487 # type: =item
17488 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17489 msgid "B<--keys-from-stdin>"
17490 msgstr ""
17491
17492 # type: textblock
17493 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17494 msgid ""
17495 "Read key or passphrase parameters from stdin.  The default is to try to read "
17496 "passphrases from the user by opening C</dev/tty>."
17497 msgstr ""
17498
17499 # type: =item
17500 #: ../fish/guestfish.pod:262
17501 msgid "B<--listen>"
17502 msgstr ""
17503
17504 # type: textblock
17505 #: ../fish/guestfish.pod:264
17506 msgid ""
17507 "Fork into the background and listen for remote commands.  See section L</"
17508 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17509 msgstr ""
17510
17511 # type: =item
17512 #: ../fish/guestfish.pod:267
17513 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17514 msgstr ""
17515
17516 # type: textblock
17517 #: ../fish/guestfish.pod:269
17518 msgid "Mount the named partition or logical volume on the given mountpoint."
17519 msgstr ""
17520
17521 # type: textblock
17522 #: ../fish/guestfish.pod:271
17523 msgid "If the mountpoint is omitted, it defaults to C</>."
17524 msgstr ""
17525
17526 # type: textblock
17527 #: ../fish/guestfish.pod:273
17528 msgid "You have to mount something on C</> before most commands will work."
17529 msgstr ""
17530
17531 # type: textblock
17532 #: ../fish/guestfish.pod:275
17533 msgid ""
17534 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17535 "launched."
17536 msgstr ""
17537
17538 # type: textblock
17539 #: ../fish/guestfish.pod:278
17540 msgid ""
17541 "If you don't know what filesystems a disk image contains, you can either run "
17542 "guestfish without this option, then list the partitions, filesystems and LVs "
17543 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17544 "commands), or you can use the L<virt-filesystems(1)> program."
17545 msgstr ""
17546
17547 # type: =item
17548 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17549 msgid "B<-n> | B<--no-sync>"
17550 msgstr ""
17551
17552 # type: textblock
17553 #: ../fish/guestfish.pod:286
17554 msgid ""
17555 "Disable autosync.  This is enabled by default.  See the discussion of "
17556 "autosync in the L<guestfs(3)> manpage."
17557 msgstr ""
17558
17559 # type: =item
17560 #: ../fish/guestfish.pod:289
17561 msgid "B<-N type> | B<--new type> | B<-N help>"
17562 msgstr ""
17563
17564 # type: textblock
17565 #: ../fish/guestfish.pod:291
17566 msgid ""
17567 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17568 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17569 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17570 "IMAGES> below."
17571 msgstr ""
17572
17573 # type: =item
17574 #: ../fish/guestfish.pod:296
17575 msgid "B<--progress-bars>"
17576 msgstr ""
17577
17578 # type: textblock
17579 #: ../fish/guestfish.pod:298
17580 msgid "Enable progress bars, even when guestfish is used non-interactively."
17581 msgstr ""
17582
17583 # type: textblock
17584 #: ../fish/guestfish.pod:300
17585 msgid ""
17586 "Progress bars are enabled by default when guestfish is used as an "
17587 "interactive shell."
17588 msgstr ""
17589
17590 # type: =item
17591 #: ../fish/guestfish.pod:303
17592 msgid "B<--no-progress-bars>"
17593 msgstr ""
17594
17595 # type: textblock
17596 #: ../fish/guestfish.pod:305
17597 msgid "Disable progress bars."
17598 msgstr ""
17599
17600 # type: =item
17601 #: ../fish/guestfish.pod:307
17602 msgid "B<--remote[=pid]>"
17603 msgstr ""
17604
17605 # type: textblock
17606 #: ../fish/guestfish.pod:309
17607 msgid ""
17608 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17609 "CONTROL GUESTFISH OVER A SOCKET> below."
17610 msgstr ""
17611
17612 # type: =item
17613 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17614 msgid "B<-r> | B<--ro>"
17615 msgstr ""
17616
17617 # type: textblock
17618 #: ../fish/guestfish.pod:314
17619 msgid ""
17620 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17621 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17622 msgstr ""
17623
17624 # type: textblock
17625 #: ../fish/guestfish.pod:317 ../tools/virt-rescue.pl:187
17626 msgid ""
17627 "The option must always be used if the disk image or virtual machine might be "
17628 "running, and is generally recommended in cases where you don't need write "
17629 "access to the disk."
17630 msgstr ""
17631
17632 # type: textblock
17633 #: ../fish/guestfish.pod:321
17634 msgid ""
17635 "Note that prepared disk images created with I<-N> are not affected by the "
17636 "I<--ro> option."
17637 msgstr ""
17638
17639 # type: textblock
17640 #: ../fish/guestfish.pod:324
17641 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17642 msgstr ""
17643
17644 # type: =item
17645 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17646 #: ../tools/virt-rescue.pl:195
17647 msgid "B<--selinux>"
17648 msgstr ""
17649
17650 # type: textblock
17651 #: ../fish/guestfish.pod:328
17652 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17653 msgstr ""
17654
17655 # type: =item
17656 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17657 msgid "B<-v> | B<--verbose>"
17658 msgstr ""
17659
17660 # type: textblock
17661 #: ../fish/guestfish.pod:332
17662 msgid ""
17663 "Enable very verbose messages.  This is particularly useful if you find a bug."
17664 msgstr ""
17665
17666 # type: =item
17667 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17668 msgid "B<-V> | B<--version>"
17669 msgstr ""
17670
17671 # type: textblock
17672 #: ../fish/guestfish.pod:337
17673 msgid "Display the guestfish / libguestfs version number and exit."
17674 msgstr ""
17675
17676 # type: =item
17677 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17678 msgid "B<-w> | B<--rw>"
17679 msgstr ""
17680
17681 # type: textblock
17682 #: ../fish/guestfish.pod:341
17683 msgid ""
17684 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17685 "WRITE> below."
17686 msgstr ""
17687
17688 # type: =item
17689 #: ../fish/guestfish.pod:344
17690 msgid "B<-x>"
17691 msgstr ""
17692
17693 # type: textblock
17694 #: ../fish/guestfish.pod:346
17695 msgid "Echo each command before executing it."
17696 msgstr ""
17697
17698 # type: =head1
17699 #: ../fish/guestfish.pod:350
17700 msgid "COMMANDS ON COMMAND LINE"
17701 msgstr ""
17702
17703 # type: textblock
17704 #: ../fish/guestfish.pod:352
17705 msgid ""
17706 "Any additional (non-option) arguments are treated as commands to execute."
17707 msgstr ""
17708
17709 # type: textblock
17710 #: ../fish/guestfish.pod:355
17711 msgid ""
17712 "Commands to execute should be separated by a colon (C<:>), where the colon "
17713 "is a separate parameter.  Thus:"
17714 msgstr ""
17715
17716 # type: verbatim
17717 #: ../fish/guestfish.pod:358
17718 #, no-wrap
17719 msgid ""
17720 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17721 "\n"
17722 msgstr ""
17723
17724 # type: textblock
17725 #: ../fish/guestfish.pod:360
17726 msgid ""
17727 "If there are no additional arguments, then we enter a shell, either an "
17728 "interactive shell with a prompt (if the input is a terminal) or a non-"
17729 "interactive shell."
17730 msgstr ""
17731
17732 # type: textblock
17733 #: ../fish/guestfish.pod:364
17734 msgid ""
17735 "In either command line mode or non-interactive shell, the first command that "
17736 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17737 "prompt) if a command fails, you can continue to enter commands."
17738 msgstr ""
17739
17740 # type: =head1
17741 #: ../fish/guestfish.pod:369
17742 msgid "USING launch (OR run)"
17743 msgstr ""
17744
17745 # type: textblock
17746 #: ../fish/guestfish.pod:371
17747 msgid ""
17748 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17749 "then launch it, then mount any disks you need, and finally issue actions/"
17750 "commands.  So the general order of the day is:"
17751 msgstr ""
17752
17753 # type: textblock
17754 #: ../fish/guestfish.pod:379
17755 msgid "add or -a/--add"
17756 msgstr ""
17757
17758 # type: textblock
17759 #: ../fish/guestfish.pod:383
17760 msgid "launch (aka run)"
17761 msgstr ""
17762
17763 # type: textblock
17764 #: ../fish/guestfish.pod:387
17765 msgid "mount or -m/--mount"
17766 msgstr ""
17767
17768 # type: textblock
17769 #: ../fish/guestfish.pod:391
17770 msgid "any other commands"
17771 msgstr ""
17772
17773 # type: textblock
17774 #: ../fish/guestfish.pod:395
17775 msgid ""
17776 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17777 "guest before mounting or performing any other commands."
17778 msgstr ""
17779
17780 # type: textblock
17781 #: ../fish/guestfish.pod:398
17782 msgid ""
17783 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17784 "I<--new> options were given then C<run> is done automatically, simply "
17785 "because guestfish can't perform the action you asked for without doing this."
17786 msgstr ""
17787
17788 # type: =head1
17789 #: ../fish/guestfish.pod:403
17790 msgid "OPENING DISKS FOR READ AND WRITE"
17791 msgstr ""
17792
17793 # type: textblock
17794 #: ../fish/guestfish.pod:405
17795 msgid ""
17796 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17797 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17798 "open disk images read-only or for writing."
17799 msgstr ""
17800
17801 # type: textblock
17802 #: ../fish/guestfish.pod:409
17803 msgid ""
17804 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17805 "disk images supplied on the command line for write.  To open a disk image "
17806 "read-only you have to do I<-a image --ro>."
17807 msgstr ""
17808
17809 # type: textblock
17810 #: ../fish/guestfish.pod:413
17811 msgid ""
17812 "This matters: If you accidentally open a live VM disk image writable then "
17813 "you will cause irreversible disk corruption."
17814 msgstr ""
17815
17816 # type: textblock
17817 #: ../fish/guestfish.pod:416
17818 msgid ""
17819 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17820 "images will be opened read-only.  You will have to either specify "
17821 "I<guestfish --rw> or change a configuration file in order to get write "
17822 "access for disk images specified by those other command line options."
17823 msgstr ""
17824
17825 # type: textblock
17826 #: ../fish/guestfish.pod:421
17827 msgid ""
17828 "This version of guestfish has a I<--rw> option which does nothing (it is "
17829 "already the default).  However it is highly recommended that you use this "
17830 "option to indicate that guestfish needs write access, and to prepare your "
17831 "scripts for the day when this option will be required for write access."
17832 msgstr ""
17833
17834 # type: textblock
17835 #: ../fish/guestfish.pod:427
17836 msgid ""
17837 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17838 "other libguestfs program apart from guestfish and guestmount."
17839 msgstr ""
17840
17841 # type: =head1
17842 #: ../fish/guestfish.pod:430
17843 msgid "QUOTING"
17844 msgstr ""
17845
17846 # type: textblock
17847 #: ../fish/guestfish.pod:432
17848 msgid ""
17849 "You can quote ordinary parameters using either single or double quotes.  For "
17850 "example:"
17851 msgstr ""
17852
17853 # type: verbatim
17854 #: ../fish/guestfish.pod:435
17855 #, no-wrap
17856 msgid ""
17857 " add \"file with a space.img\"\n"
17858 "\n"
17859 msgstr ""
17860
17861 # type: verbatim
17862 #: ../fish/guestfish.pod:437
17863 #, no-wrap
17864 msgid ""
17865 " rm '/file name'\n"
17866 "\n"
17867 msgstr ""
17868
17869 # type: verbatim
17870 #: ../fish/guestfish.pod:439
17871 #, no-wrap
17872 msgid ""
17873 " rm '/\"'\n"
17874 "\n"
17875 msgstr ""
17876
17877 # type: textblock
17878 #: ../fish/guestfish.pod:441
17879 msgid ""
17880 "A few commands require a list of strings to be passed.  For these, use a "
17881 "whitespace-separated list, enclosed in quotes.  Strings containing "
17882 "whitespace to be passed through must be enclosed in single quotes.  A "
17883 "literal single quote must be escaped with a backslash."
17884 msgstr ""
17885
17886 # type: verbatim
17887 #: ../fish/guestfish.pod:446
17888 #, no-wrap
17889 msgid ""
17890 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17891 " command \"/bin/echo 'foo      bar'\"\n"
17892 " command \"/bin/echo \\'foo\\'\"\n"
17893 "\n"
17894 msgstr ""
17895
17896 # type: =head1
17897 #: ../fish/guestfish.pod:450
17898 msgid "OPTIONAL ARGUMENTS"
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish.pod:452
17903 msgid ""
17904 "Some commands take optional arguments.  These arguments appear in this "
17905 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17906 msgstr ""
17907
17908 # type: verbatim
17909 #: ../fish/guestfish.pod:456
17910 #, no-wrap
17911 msgid ""
17912 " add-drive-opts filename\n"
17913 "\n"
17914 msgstr ""
17915
17916 # type: verbatim
17917 #: ../fish/guestfish.pod:458
17918 #, no-wrap
17919 msgid ""
17920 " add-drive-opts filename readonly:true\n"
17921 "\n"
17922 msgstr ""
17923
17924 # type: verbatim
17925 #: ../fish/guestfish.pod:460
17926 #, no-wrap
17927 msgid ""
17928 " add-drive-opts filename format:qcow2 readonly:false\n"
17929 "\n"
17930 msgstr ""
17931
17932 # type: textblock
17933 #: ../fish/guestfish.pod:462
17934 msgid ""
17935 "Each optional argument can appear at most once.  All optional arguments must "
17936 "appear after the required ones."
17937 msgstr ""
17938
17939 # type: =head1
17940 #: ../fish/guestfish.pod:465
17941 msgid "NUMBERS"
17942 msgstr ""
17943
17944 # type: textblock
17945 #: ../fish/guestfish.pod:467
17946 msgid ""
17947 "This section applies to all commands which can take integers as parameters."
17948 msgstr ""
17949
17950 # type: =head2
17951 #: ../fish/guestfish.pod:470
17952 msgid "SIZE SUFFIX"
17953 msgstr ""
17954
17955 # type: textblock
17956 #: ../fish/guestfish.pod:472
17957 msgid ""
17958 "When the command takes a parameter measured in bytes, you can use one of the "
17959 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17960 msgstr ""
17961
17962 # type: =item
17963 #: ../fish/guestfish.pod:478
17964 msgid "B<k> or B<K> or B<KiB>"
17965 msgstr ""
17966
17967 # type: textblock
17968 #: ../fish/guestfish.pod:480
17969 msgid "The size in kilobytes (multiplied by 1024)."
17970 msgstr ""
17971
17972 # type: =item
17973 #: ../fish/guestfish.pod:482
17974 msgid "B<KB>"
17975 msgstr ""
17976
17977 # type: textblock
17978 #: ../fish/guestfish.pod:484
17979 msgid "The size in SI 1000 byte units."
17980 msgstr ""
17981
17982 # type: =item
17983 #: ../fish/guestfish.pod:486
17984 msgid "B<M> or B<MiB>"
17985 msgstr ""
17986
17987 # type: textblock
17988 #: ../fish/guestfish.pod:488
17989 msgid "The size in megabytes (multiplied by 1048576)."
17990 msgstr ""
17991
17992 # type: =item
17993 #: ../fish/guestfish.pod:490
17994 msgid "B<MB>"
17995 msgstr ""
17996
17997 # type: textblock
17998 #: ../fish/guestfish.pod:492
17999 msgid "The size in SI 1000000 byte units."
18000 msgstr ""
18001
18002 # type: =item
18003 #: ../fish/guestfish.pod:494
18004 msgid "B<G> or B<GiB>"
18005 msgstr ""
18006
18007 # type: textblock
18008 #: ../fish/guestfish.pod:496
18009 msgid "The size in gigabytes (multiplied by 2**30)."
18010 msgstr ""
18011
18012 # type: =item
18013 #: ../fish/guestfish.pod:498
18014 msgid "B<GB>"
18015 msgstr ""
18016
18017 # type: textblock
18018 #: ../fish/guestfish.pod:500
18019 msgid "The size in SI 10**9 byte units."
18020 msgstr ""
18021
18022 # type: =item
18023 #: ../fish/guestfish.pod:502
18024 msgid "B<T> or B<TiB>"
18025 msgstr ""
18026
18027 # type: textblock
18028 #: ../fish/guestfish.pod:504
18029 msgid "The size in terabytes (multiplied by 2**40)."
18030 msgstr ""
18031
18032 # type: =item
18033 #: ../fish/guestfish.pod:506
18034 msgid "B<TB>"
18035 msgstr ""
18036
18037 # type: textblock
18038 #: ../fish/guestfish.pod:508
18039 msgid "The size in SI 10**12 byte units."
18040 msgstr ""
18041
18042 # type: =item
18043 #: ../fish/guestfish.pod:510
18044 msgid "B<P> or B<PiB>"
18045 msgstr ""
18046
18047 # type: textblock
18048 #: ../fish/guestfish.pod:512
18049 msgid "The size in petabytes (multiplied by 2**50)."
18050 msgstr ""
18051
18052 # type: =item
18053 #: ../fish/guestfish.pod:514
18054 msgid "B<PB>"
18055 msgstr ""
18056
18057 # type: textblock
18058 #: ../fish/guestfish.pod:516
18059 msgid "The size in SI 10**15 byte units."
18060 msgstr ""
18061
18062 # type: =item
18063 #: ../fish/guestfish.pod:518
18064 msgid "B<E> or B<EiB>"
18065 msgstr ""
18066
18067 # type: textblock
18068 #: ../fish/guestfish.pod:520
18069 msgid "The size in exabytes (multiplied by 2**60)."
18070 msgstr ""
18071
18072 # type: =item
18073 #: ../fish/guestfish.pod:522
18074 msgid "B<EB>"
18075 msgstr ""
18076
18077 # type: textblock
18078 #: ../fish/guestfish.pod:524
18079 msgid "The size in SI 10**18 byte units."
18080 msgstr ""
18081
18082 # type: =item
18083 #: ../fish/guestfish.pod:526
18084 msgid "B<Z> or B<ZiB>"
18085 msgstr ""
18086
18087 # type: textblock
18088 #: ../fish/guestfish.pod:528
18089 msgid "The size in zettabytes (multiplied by 2**70)."
18090 msgstr ""
18091
18092 # type: =item
18093 #: ../fish/guestfish.pod:530
18094 msgid "B<ZB>"
18095 msgstr ""
18096
18097 # type: textblock
18098 #: ../fish/guestfish.pod:532
18099 msgid "The size in SI 10**21 byte units."
18100 msgstr ""
18101
18102 # type: =item
18103 #: ../fish/guestfish.pod:534
18104 msgid "B<Y> or B<YiB>"
18105 msgstr ""
18106
18107 # type: textblock
18108 #: ../fish/guestfish.pod:536
18109 msgid "The size in yottabytes (multiplied by 2**80)."
18110 msgstr ""
18111
18112 # type: =item
18113 #: ../fish/guestfish.pod:538
18114 msgid "B<YB>"
18115 msgstr ""
18116
18117 # type: textblock
18118 #: ../fish/guestfish.pod:540
18119 msgid "The size in SI 10**24 byte units."
18120 msgstr ""
18121
18122 # type: verbatim
18123 #: ../fish/guestfish.pod:546
18124 #, no-wrap
18125 msgid ""
18126 " truncate-size /file 1G\n"
18127 "\n"
18128 msgstr ""
18129
18130 # type: textblock
18131 #: ../fish/guestfish.pod:548
18132 msgid "would truncate the file to 1 gigabyte."
18133 msgstr ""
18134
18135 # type: textblock
18136 #: ../fish/guestfish.pod:550
18137 msgid ""
18138 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18139 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18140 "suffix will probably not do what you expect."
18141 msgstr ""
18142
18143 # type: =head2
18144 #: ../fish/guestfish.pod:554
18145 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18146 msgstr ""
18147
18148 # type: textblock
18149 #: ../fish/guestfish.pod:556
18150 msgid ""
18151 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18152 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18153 msgstr ""
18154
18155 # type: verbatim
18156 #: ../fish/guestfish.pod:559
18157 #, no-wrap
18158 msgid ""
18159 " 1234      decimal number 1234\n"
18160 " 02322     octal number, equivalent to decimal 1234\n"
18161 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18162 "\n"
18163 msgstr ""
18164
18165 # type: textblock
18166 #: ../fish/guestfish.pod:563
18167 msgid ""
18168 "When using the C<chmod> command, you almost always want to specify an octal "
18169 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18170 "L<chmod(1)> program):"
18171 msgstr ""
18172
18173 # type: verbatim
18174 #: ../fish/guestfish.pod:567
18175 #, no-wrap
18176 msgid ""
18177 " chmod 0777 /public  # OK\n"
18178 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18179 "\n"
18180 msgstr ""
18181
18182 # type: textblock
18183 #: ../fish/guestfish.pod:570
18184 msgid ""
18185 "Commands that return numbers usually print them in decimal, but some "
18186 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18187 "octal, preceeded by C<0>)."
18188 msgstr ""
18189
18190 # type: =head1
18191 #: ../fish/guestfish.pod:574
18192 msgid "WILDCARDS AND GLOBBING"
18193 msgstr ""
18194
18195 # type: textblock
18196 #: ../fish/guestfish.pod:576
18197 msgid ""
18198 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18199 "(globbing) by default.  So for example the following will not do what you "
18200 "expect:"
18201 msgstr ""
18202
18203 # type: verbatim
18204 #: ../fish/guestfish.pod:580
18205 #, no-wrap
18206 msgid ""
18207 " rm-rf /home/*\n"
18208 "\n"
18209 msgstr ""
18210
18211 # type: textblock
18212 #: ../fish/guestfish.pod:582
18213 msgid ""
18214 "Assuming you don't have a directory called literally C</home/*> then the "
18215 "above command will return an error."
18216 msgstr ""
18217
18218 # type: textblock
18219 #: ../fish/guestfish.pod:585
18220 msgid "To perform wildcard expansion, use the C<glob> command."
18221 msgstr ""
18222
18223 # type: verbatim
18224 #: ../fish/guestfish.pod:587
18225 #, no-wrap
18226 msgid ""
18227 " glob rm-rf /home/*\n"
18228 "\n"
18229 msgstr ""
18230
18231 # type: textblock
18232 #: ../fish/guestfish.pod:589
18233 msgid ""
18234 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18235 "many times), equivalent to:"
18236 msgstr ""
18237
18238 # type: verbatim
18239 #: ../fish/guestfish.pod:592
18240 #, no-wrap
18241 msgid ""
18242 " rm-rf /home/jim\n"
18243 " rm-rf /home/joe\n"
18244 " rm-rf /home/mary\n"
18245 "\n"
18246 msgstr ""
18247
18248 # type: textblock
18249 #: ../fish/guestfish.pod:596
18250 msgid "C<glob> only works on simple guest paths and not on device names."
18251 msgstr ""
18252
18253 # type: textblock
18254 #: ../fish/guestfish.pod:598
18255 msgid ""
18256 "If you have several parameters, each containing a wildcard, then glob will "
18257 "perform a Cartesian product."
18258 msgstr ""
18259
18260 # type: =head1
18261 #: ../fish/guestfish.pod:601
18262 msgid "COMMENTS"
18263 msgstr ""
18264
18265 # type: textblock
18266 #: ../fish/guestfish.pod:603
18267 msgid ""
18268 "Any line which starts with a I<#> character is treated as a comment and "
18269 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18270 "a command.  For example:"
18271 msgstr ""
18272
18273 # type: verbatim
18274 #: ../fish/guestfish.pod:607
18275 #, no-wrap
18276 msgid ""
18277 " # this is a comment\n"
18278 "         # this is a comment\n"
18279 " foo # NOT a comment\n"
18280 "\n"
18281 msgstr ""
18282
18283 # type: textblock
18284 #: ../fish/guestfish.pod:611
18285 msgid "Blank lines are also ignored."
18286 msgstr ""
18287
18288 # type: =head1
18289 #: ../fish/guestfish.pod:613
18290 msgid "RUNNING COMMANDS LOCALLY"
18291 msgstr ""
18292
18293 # type: textblock
18294 #: ../fish/guestfish.pod:615
18295 msgid ""
18296 "Any line which starts with a I<!> character is treated as a command sent to "
18297 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18298 msgstr ""
18299
18300 # type: verbatim
18301 #: ../fish/guestfish.pod:619
18302 #, no-wrap
18303 msgid ""
18304 " !mkdir local\n"
18305 " tgz-out /remote local/remote-data.tar.gz\n"
18306 "\n"
18307 msgstr ""
18308
18309 # type: textblock
18310 #: ../fish/guestfish.pod:622
18311 msgid ""
18312 "will create a directory C<local> on the host, and then export the contents "
18313 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18314 "(See C<tgz-out>)."
18315 msgstr ""
18316
18317 # type: textblock
18318 #: ../fish/guestfish.pod:626
18319 msgid ""
18320 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18321 "effect, due to the way that subprocesses work in Unix."
18322 msgstr ""
18323
18324 # type: =head1
18325 #: ../fish/guestfish.pod:629
18326 msgid "PIPES"
18327 msgstr ""
18328
18329 # type: textblock
18330 #: ../fish/guestfish.pod:631
18331 msgid ""
18332 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18333 "command (a guestfish command) to the second command (any host command).  For "
18334 "example:"
18335 msgstr ""
18336
18337 # type: verbatim
18338 #: ../fish/guestfish.pod:635
18339 #, no-wrap
18340 msgid ""
18341 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18342 "\n"
18343 msgstr ""
18344
18345 # type: textblock
18346 #: ../fish/guestfish.pod:637
18347 msgid ""
18348 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18349 "program).  The above command would list all accounts in the guest filesystem "
18350 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18351 msgstr ""
18352
18353 # type: verbatim
18354 #: ../fish/guestfish.pod:642
18355 #, no-wrap
18356 msgid ""
18357 " hexdump /bin/ls | head\n"
18358 " list-devices | tail -1\n"
18359 " tgz-out / - | tar ztf -\n"
18360 "\n"
18361 msgstr ""
18362
18363 # type: textblock
18364 #: ../fish/guestfish.pod:646
18365 msgid ""
18366 "The space before the pipe symbol is required, any space after the pipe "
18367 "symbol is optional.  Everything after the pipe symbol is just passed "
18368 "straight to the host shell, so it can contain redirections, globs and "
18369 "anything else that makes sense on the host side."
18370 msgstr ""
18371
18372 # type: textblock
18373 #: ../fish/guestfish.pod:651
18374 msgid ""
18375 "To use a literal argument which begins with a pipe symbol, you have to quote "
18376 "it, eg:"
18377 msgstr ""
18378
18379 # type: verbatim
18380 #: ../fish/guestfish.pod:654
18381 #, no-wrap
18382 msgid ""
18383 " echo \"|\"\n"
18384 "\n"
18385 msgstr ""
18386
18387 # type: =head1
18388 #: ../fish/guestfish.pod:656
18389 msgid "HOME DIRECTORIES"
18390 msgstr ""
18391
18392 # type: textblock
18393 #: ../fish/guestfish.pod:658
18394 msgid ""
18395 "If a parameter starts with the character C<~> then the tilde may be expanded "
18396 "as a home directory path (either C<~> for the current user's home directory, "
18397 "or C<~user> for another user)."
18398 msgstr ""
18399
18400 # type: textblock
18401 #: ../fish/guestfish.pod:662
18402 msgid ""
18403 "Note that home directory expansion happens for users known I<on the host>, "
18404 "not in the guest filesystem."
18405 msgstr ""
18406
18407 # type: textblock
18408 #: ../fish/guestfish.pod:665
18409 msgid ""
18410 "To use a literal argument which begins with a tilde, you have to quote it, "
18411 "eg:"
18412 msgstr ""
18413
18414 # type: verbatim
18415 #: ../fish/guestfish.pod:668
18416 #, no-wrap
18417 msgid ""
18418 " echo \"~\"\n"
18419 "\n"
18420 msgstr ""
18421
18422 # type: textblock
18423 #: ../fish/guestfish.pod:672
18424 msgid ""
18425 "Libguestfs has some support for Linux guests encrypted according to the "
18426 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18427 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18428 "LUKS is supported."
18429 msgstr ""
18430
18431 # type: textblock
18432 #: ../fish/guestfish.pod:677
18433 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18434 msgstr ""
18435
18436 # type: verbatim
18437 #: ../fish/guestfish.pod:679
18438 #, no-wrap
18439 msgid ""
18440 " ><fs> vfs-type /dev/sda2\n"
18441 " crypto_LUKS\n"
18442 "\n"
18443 msgstr ""
18444
18445 # type: textblock
18446 #: ../fish/guestfish.pod:682
18447 msgid ""
18448 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18449 "device called C</dev/mapper/luksdev>."
18450 msgstr ""
18451
18452 # type: verbatim
18453 #: ../fish/guestfish.pod:685
18454 #, no-wrap
18455 msgid ""
18456 " ><fs> luks-open /dev/sda2 luksdev\n"
18457 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18458 "\n"
18459 msgstr ""
18460
18461 # type: textblock
18462 #: ../fish/guestfish.pod:688
18463 msgid ""
18464 "Finally you have to tell LVM to scan for volume groups on the newly created "
18465 "mapper device:"
18466 msgstr ""
18467
18468 # type: verbatim
18469 #: ../fish/guestfish.pod:691
18470 #, no-wrap
18471 msgid ""
18472 " vgscan\n"
18473 " vg-activate-all true\n"
18474 "\n"
18475 msgstr ""
18476
18477 # type: textblock
18478 #: ../fish/guestfish.pod:694
18479 msgid "The logical volume(s) can now be mounted in the usual way."
18480 msgstr ""
18481
18482 # type: textblock
18483 #: ../fish/guestfish.pod:696
18484 msgid ""
18485 "Before closing a LUKS device you must unmount any logical volumes on it and "
18486 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18487 "one.  Then you can close the mapper device:"
18488 msgstr ""
18489
18490 # type: verbatim
18491 #: ../fish/guestfish.pod:700
18492 #, no-wrap
18493 msgid ""
18494 " vg-activate false /dev/VG\n"
18495 " luks-close /dev/mapper/luksdev\n"
18496 "\n"
18497 msgstr ""
18498
18499 # type: =head1
18500 #: ../fish/guestfish.pod:703
18501 msgid "WINDOWS PATHS"
18502 msgstr ""
18503
18504 # type: textblock
18505 #: ../fish/guestfish.pod:705
18506 msgid ""
18507 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18508 "(with some limitations).  The following commands are equivalent:"
18509 msgstr ""
18510
18511 # type: verbatim
18512 #: ../fish/guestfish.pod:708
18513 #, no-wrap
18514 msgid ""
18515 " file /WINDOWS/system32/config/system.LOG\n"
18516 "\n"
18517 msgstr ""
18518
18519 # type: verbatim
18520 #: ../fish/guestfish.pod:710
18521 #, no-wrap
18522 msgid ""
18523 " file win:/windows/system32/config/system.log\n"
18524 "\n"
18525 msgstr ""
18526
18527 # type: verbatim
18528 #: ../fish/guestfish.pod:712
18529 #, no-wrap
18530 msgid ""
18531 " file win:\\windows\\system32\\config\\system.log\n"
18532 "\n"
18533 msgstr ""
18534
18535 # type: verbatim
18536 #: ../fish/guestfish.pod:714
18537 #, no-wrap
18538 msgid ""
18539 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18540 "\n"
18541 msgstr ""
18542
18543 # type: textblock
18544 #: ../fish/guestfish.pod:716
18545 msgid ""
18546 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18547 "handles case insensitivity like Windows would.  This only works in argument "
18548 "positions that expect a path."
18549 msgstr ""
18550
18551 # type: =head1
18552 #: ../fish/guestfish.pod:720
18553 msgid "UPLOADING AND DOWNLOADING FILES"
18554 msgstr ""
18555
18556 # type: textblock
18557 #: ../fish/guestfish.pod:722
18558 msgid ""
18559 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18560 "others which upload from or download to a local file, you can use the "
18561 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18562 msgstr ""
18563
18564 # type: verbatim
18565 #: ../fish/guestfish.pod:726
18566 #, no-wrap
18567 msgid ""
18568 " upload - /foo\n"
18569 "\n"
18570 msgstr ""
18571
18572 # type: textblock
18573 #: ../fish/guestfish.pod:728
18574 msgid ""
18575 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18576 msgstr ""
18577
18578 # type: verbatim
18579 #: ../fish/guestfish.pod:731
18580 #, no-wrap
18581 msgid ""
18582 " tar-out /etc - | tar tf -\n"
18583 "\n"
18584 msgstr ""
18585
18586 # type: textblock
18587 #: ../fish/guestfish.pod:733
18588 msgid ""
18589 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18590 "command (see L</PIPES>)."
18591 msgstr ""
18592
18593 # type: textblock
18594 #: ../fish/guestfish.pod:736
18595 msgid ""
18596 "When using C<-> to read from stdin, the input is read up to the end of "
18597 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18598 "some arbitrary end marker:"
18599 msgstr ""
18600
18601 # type: verbatim
18602 #: ../fish/guestfish.pod:740
18603 #, no-wrap
18604 msgid ""
18605 " upload -<<END /foo\n"
18606 " input line 1\n"
18607 " input line 2\n"
18608 " input line 3\n"
18609 " END\n"
18610 "\n"
18611 msgstr ""
18612
18613 # type: textblock
18614 #: ../fish/guestfish.pod:746
18615 msgid ""
18616 "Any string of characters can be used instead of C<END>.  The end marker must "
18617 "appear on a line of its own, without any preceeding or following characters "
18618 "(not even spaces)."
18619 msgstr ""
18620
18621 # type: textblock
18622 #: ../fish/guestfish.pod:750
18623 msgid ""
18624 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18625 "upload local files (so-called \"FileIn\" parameters in the generator)."
18626 msgstr ""
18627
18628 # type: =head1
18629 #: ../fish/guestfish.pod:753
18630 msgid "EXIT ON ERROR BEHAVIOUR"
18631 msgstr ""
18632
18633 # type: textblock
18634 #: ../fish/guestfish.pod:755
18635 msgid ""
18636 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18637 "taking commands from a human over a tty), and will exit on the first error "
18638 "in non-interactive mode (scripts, commands given on the command line)."
18639 msgstr ""
18640
18641 # type: textblock
18642 #: ../fish/guestfish.pod:760
18643 msgid ""
18644 "If you prefix a command with a I<-> character, then that command will not "
18645 "cause guestfish to exit, even if that (one) command returns an error."
18646 msgstr ""
18647
18648 # type: =head1
18649 #: ../fish/guestfish.pod:764
18650 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18651 msgstr ""
18652
18653 # type: textblock
18654 #: ../fish/guestfish.pod:766
18655 msgid ""
18656 "Guestfish can be remote-controlled over a socket.  This is useful "
18657 "particularly in shell scripts where you want to make several different "
18658 "changes to a filesystem, but you don't want the overhead of starting up a "
18659 "guestfish process each time."
18660 msgstr ""
18661
18662 # type: textblock
18663 #: ../fish/guestfish.pod:771
18664 msgid "Start a guestfish server process using:"
18665 msgstr ""
18666
18667 # type: verbatim
18668 #: ../fish/guestfish.pod:773
18669 #, no-wrap
18670 msgid ""
18671 " eval \"`guestfish --listen`\"\n"
18672 "\n"
18673 msgstr ""
18674
18675 # type: textblock
18676 #: ../fish/guestfish.pod:775
18677 msgid "and then send it commands by doing:"
18678 msgstr ""
18679
18680 # type: verbatim
18681 #: ../fish/guestfish.pod:777
18682 #, no-wrap
18683 msgid ""
18684 " guestfish --remote cmd [...]\n"
18685 "\n"
18686 msgstr ""
18687
18688 # type: textblock
18689 #: ../fish/guestfish.pod:779
18690 msgid "To cause the server to exit, send it the exit command:"
18691 msgstr ""
18692
18693 # type: verbatim
18694 #: ../fish/guestfish.pod:781
18695 #, no-wrap
18696 msgid ""
18697 " guestfish --remote exit\n"
18698 "\n"
18699 msgstr ""
18700
18701 # type: textblock
18702 #: ../fish/guestfish.pod:783
18703 msgid ""
18704 "Note that the server will normally exit if there is an error in a command.  "
18705 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18706 "BEHAVIOUR>."
18707 msgstr ""
18708
18709 # type: =head2
18710 #: ../fish/guestfish.pod:787
18711 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18712 msgstr ""
18713
18714 # type: textblock
18715 #: ../fish/guestfish.pod:789
18716 msgid ""
18717 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18718 "is how the I<--remote> option knows where to send the commands.  You can "
18719 "have several guestfish listener processes running using:"
18720 msgstr ""
18721
18722 # type: verbatim
18723 #: ../fish/guestfish.pod:793
18724 #, no-wrap
18725 msgid ""
18726 " eval \"`guestfish --listen`\"\n"
18727 " pid1=$GUESTFISH_PID\n"
18728 " eval \"`guestfish --listen`\"\n"
18729 " pid2=$GUESTFISH_PID\n"
18730 " ...\n"
18731 " guestfish --remote=$pid1 cmd\n"
18732 " guestfish --remote=$pid2 cmd\n"
18733 "\n"
18734 msgstr ""
18735
18736 # type: =head2
18737 #: ../fish/guestfish.pod:801
18738 msgid "REMOTE CONTROL AND CSH"
18739 msgstr ""
18740
18741 # type: textblock
18742 #: ../fish/guestfish.pod:803
18743 msgid ""
18744 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18745 "option:"
18746 msgstr ""
18747
18748 # type: verbatim
18749 #: ../fish/guestfish.pod:806
18750 #, no-wrap
18751 msgid ""
18752 " eval \"`guestfish --listen --csh`\"\n"
18753 "\n"
18754 msgstr ""
18755
18756 # type: =head2
18757 #: ../fish/guestfish.pod:808
18758 msgid "REMOTE CONTROL DETAILS"
18759 msgstr ""
18760
18761 # type: textblock
18762 #: ../fish/guestfish.pod:810
18763 msgid ""
18764 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18765 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18766 "and C<$PID> is the process ID of the server."
18767 msgstr ""
18768
18769 # type: textblock
18770 #: ../fish/guestfish.pod:814
18771 msgid "Guestfish client and server versions must match exactly."
18772 msgstr ""
18773
18774 # type: =head1
18775 #: ../fish/guestfish.pod:816
18776 msgid "PREPARED DISK IMAGES"
18777 msgstr ""
18778
18779 # type: textblock
18780 #: ../fish/guestfish.pod:818
18781 msgid ""
18782 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18783 "preformatted disk images that guestfish can make for you to save typing.  "
18784 "This is particularly useful for testing purposes.  This option is used "
18785 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18786 "can be mixed with I<-a>)."
18787 msgstr ""
18788
18789 # type: textblock
18790 #: ../fish/guestfish.pod:824
18791 msgid ""
18792 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18793 "the second and so on.  Existing files in the current directory are "
18794 "I<overwritten>."
18795 msgstr ""
18796
18797 # type: textblock
18798 #: ../fish/guestfish.pod:828
18799 msgid ""
18800 "The type briefly describes how the disk should be sized, partitioned, how "
18801 "filesystem(s) should be created, and how content should be added.  "
18802 "Optionally the type can be followed by extra parameters, separated by C<:> "
18803 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18804 "allocated disk, containing a single partition, with the partition formatted "
18805 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18806 "disk instead."
18807 msgstr ""
18808
18809 # type: textblock
18810 #: ../fish/guestfish.pod:836
18811 msgid "To list the available types and any extra parameters they take, run:"
18812 msgstr ""
18813
18814 # type: textblock
18815 #: ../fish/guestfish.pod:840
18816 msgid ""
18817 "Note that the prepared filesystem is not mounted.  You would usually have to "
18818 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18819 msgstr ""
18820
18821 # type: textblock
18822 #: ../fish/guestfish.pod:844
18823 msgid ""
18824 "If any I<-N> or I<--new> options are given, the guest is automatically "
18825 "launched."
18826 msgstr ""
18827
18828 # type: textblock
18829 #: ../fish/guestfish.pod:849
18830 msgid "Create a 100MB disk with an ext4-formatted partition:"
18831 msgstr ""
18832
18833 # type: verbatim
18834 #: ../fish/guestfish.pod:851
18835 #, no-wrap
18836 msgid ""
18837 " guestfish -N fs:ext4\n"
18838 "\n"
18839 msgstr ""
18840
18841 # type: textblock
18842 #: ../fish/guestfish.pod:853
18843 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18844 msgstr ""
18845
18846 # type: verbatim
18847 #: ../fish/guestfish.pod:855
18848 #, no-wrap
18849 msgid ""
18850 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18851 "\n"
18852 msgstr ""
18853
18854 # type: textblock
18855 #: ../fish/guestfish.pod:857
18856 msgid "Create a blank 200MB disk:"
18857 msgstr ""
18858
18859 # type: verbatim
18860 #: ../fish/guestfish.pod:859
18861 #, no-wrap
18862 msgid ""
18863 " guestfish -N disk:200M\n"
18864 "\n"
18865 msgstr ""
18866
18867 # type: =head1
18868 #: ../fish/guestfish.pod:861
18869 msgid "PROGRESS BARS"
18870 msgstr ""
18871
18872 # type: textblock
18873 #: ../fish/guestfish.pod:863
18874 msgid ""
18875 "Some (not all) long-running commands send progress notification messages as "
18876 "they are running.  Guestfish turns these messages into progress bars."
18877 msgstr ""
18878
18879 # type: textblock
18880 #: ../fish/guestfish.pod:867
18881 msgid ""
18882 "When a command that supports progress bars takes longer than two seconds to "
18883 "run, and if progress bars are enabled, then you will see one appearing below "
18884 "the command:"
18885 msgstr ""
18886
18887 # type: verbatim
18888 #: ../fish/guestfish.pod:871
18889 #, no-wrap
18890 msgid ""
18891 " ><fs> copy-size /large-file /another-file 2048M\n"
18892 " / 10% [#####-----------------------------------------] 00:30\n"
18893 "\n"
18894 msgstr ""
18895
18896 # type: textblock
18897 #: ../fish/guestfish.pod:874
18898 msgid ""
18899 "The spinner on the left hand side moves round once for every progress "
18900 "notification received from the backend.  This is a (reasonably) golden "
18901 "assurance that the command is \"doing something\" even if the progress bar "
18902 "is not moving, because the command is able to send the progress "
18903 "notifications.  When the bar reaches 100% and the command finishes, the "
18904 "spinner disappears."
18905 msgstr ""
18906
18907 # type: textblock
18908 #: ../fish/guestfish.pod:881
18909 msgid ""
18910 "Progress bars are enabled by default when guestfish is used interactively.  "
18911 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18912 "and you can disable them completely using I<--no-progress-bars>."
18913 msgstr ""
18914
18915 # type: =head1
18916 #: ../fish/guestfish.pod:886
18917 msgid "GUESTFISH COMMANDS"
18918 msgstr ""
18919
18920 # type: textblock
18921 #: ../fish/guestfish.pod:888
18922 msgid ""
18923 "The commands in this section are guestfish convenience commands, in other "
18924 "words, they are not part of the L<guestfs(3)> API."
18925 msgstr ""
18926
18927 # type: =head2
18928 #: ../fish/guestfish.pod:891
18929 msgid "help"
18930 msgstr ""
18931
18932 # type: verbatim
18933 #: ../fish/guestfish.pod:893
18934 #, no-wrap
18935 msgid ""
18936 " help\n"
18937 " help cmd\n"
18938 "\n"
18939 msgstr ""
18940
18941 # type: textblock
18942 #: ../fish/guestfish.pod:896
18943 msgid "Without any parameter, this provides general help."
18944 msgstr ""
18945
18946 # type: textblock
18947 #: ../fish/guestfish.pod:898
18948 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18949 msgstr ""
18950
18951 # type: =head2
18952 #: ../fish/guestfish.pod:900
18953 msgid "quit | exit"
18954 msgstr ""
18955
18956 # type: textblock
18957 #: ../fish/guestfish.pod:902
18958 msgid "This exits guestfish.  You can also use C<^D> key."
18959 msgstr ""
18960
18961 # type: textblock
18962 #: ../fish/guestfish.pod:904
18963 msgid "@FISH_COMMANDS@"
18964 msgstr ""
18965
18966 # type: =head1
18967 #: ../fish/guestfish.pod:906
18968 msgid "COMMANDS"
18969 msgstr ""
18970
18971 # type: =head1
18972 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18973 msgid "EXIT CODE"
18974 msgstr ""
18975
18976 # type: textblock
18977 #: ../fish/guestfish.pod:912
18978 msgid ""
18979 "guestfish returns 0 if the commands completed without error, or 1 if there "
18980 "was an error."
18981 msgstr ""
18982
18983 # type: =item
18984 #: ../fish/guestfish.pod:919
18985 msgid "EDITOR"
18986 msgstr ""
18987
18988 # type: textblock
18989 #: ../fish/guestfish.pod:921
18990 msgid ""
18991 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18992 "C<vi>."
18993 msgstr ""
18994
18995 # type: =item
18996 #: ../fish/guestfish.pod:924
18997 msgid "GUESTFISH_PID"
18998 msgstr ""
18999
19000 # type: textblock
19001 #: ../fish/guestfish.pod:926
19002 msgid ""
19003 "Used with the I<--remote> option to specify the remote guestfish process to "
19004 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19005 msgstr ""
19006
19007 # type: =item
19008 #: ../fish/guestfish.pod:930
19009 msgid "HEXEDITOR"
19010 msgstr ""
19011
19012 # type: textblock
19013 #: ../fish/guestfish.pod:932
19014 msgid ""
19015 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19016 "not specified, the external L<hexedit(1)> program is used."
19017 msgstr ""
19018
19019 # type: =item
19020 #: ../fish/guestfish.pod:936
19021 msgid "HOME"
19022 msgstr ""
19023
19024 # type: textblock
19025 #: ../fish/guestfish.pod:938
19026 msgid ""
19027 "If compiled with GNU readline support, various files in the home directory "
19028 "can be used.  See L</FILES>."
19029 msgstr ""
19030
19031 # type: textblock
19032 #: ../fish/guestfish.pod:947
19033 msgid ""
19034 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19035 "effect as using the B<-v> option."
19036 msgstr ""
19037
19038 # type: textblock
19039 #: ../fish/guestfish.pod:959
19040 msgid ""
19041 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19042 "the discussion of paths in L<guestfs(3)>."
19043 msgstr ""
19044
19045 # type: textblock
19046 #: ../fish/guestfish.pod:970
19047 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19048 msgstr ""
19049
19050 # type: =item
19051 #: ../fish/guestfish.pod:972
19052 msgid "PAGER"
19053 msgstr ""
19054
19055 # type: textblock
19056 #: ../fish/guestfish.pod:974
19057 msgid ""
19058 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19059 "C<more>."
19060 msgstr ""
19061
19062 # type: =head1
19063 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
19064 msgid "FILES"
19065 msgstr ""
19066
19067 # type: =item
19068 #: ../fish/guestfish.pod:993
19069 msgid "$HOME/.guestfish"
19070 msgstr ""
19071
19072 # type: textblock
19073 #: ../fish/guestfish.pod:995
19074 msgid ""
19075 "If compiled with GNU readline support, then the command history is saved in "
19076 "this file."
19077 msgstr ""
19078
19079 # type: =item
19080 #: ../fish/guestfish.pod:998
19081 msgid "$HOME/.inputrc"
19082 msgstr ""
19083
19084 # type: =item
19085 #: ../fish/guestfish.pod:1000
19086 msgid "/etc/inputrc"
19087 msgstr ""
19088
19089 # type: textblock
19090 #: ../fish/guestfish.pod:1002
19091 msgid ""
19092 "If compiled with GNU readline support, then these files can be used to "
19093 "configure readline.  For further information, please see L<readline(3)/"
19094 "INITIALIZATION FILE>."
19095 msgstr ""
19096
19097 # type: textblock
19098 #: ../fish/guestfish.pod:1006
19099 msgid "To write rules which only apply to guestfish, use:"
19100 msgstr ""
19101
19102 # type: verbatim
19103 #: ../fish/guestfish.pod:1008
19104 #, no-wrap
19105 msgid ""
19106 " $if guestfish\n"
19107 " ...\n"
19108 " $endif\n"
19109 "\n"
19110 msgstr ""
19111
19112 # type: textblock
19113 #: ../fish/guestfish.pod:1012
19114 msgid ""
19115 "Variables that you can set in inputrc that change the behaviour of guestfish "
19116 "in useful ways include:"
19117 msgstr ""
19118
19119 # type: =item
19120 #: ../fish/guestfish.pod:1017
19121 msgid "completion-ignore-case (default: on)"
19122 msgstr ""
19123
19124 # type: textblock
19125 #: ../fish/guestfish.pod:1019
19126 msgid ""
19127 "By default, guestfish will ignore case when tab-completing paths on the "
19128 "disk.  Use:"
19129 msgstr ""
19130
19131 # type: verbatim
19132 #: ../fish/guestfish.pod:1022
19133 #, no-wrap
19134 msgid ""
19135 " set completion-ignore-case off\n"
19136 "\n"
19137 msgstr ""
19138
19139 # type: textblock
19140 #: ../fish/guestfish.pod:1024
19141 msgid "to make guestfish case sensitive."
19142 msgstr ""
19143
19144 # type: =item
19145 #: ../fish/guestfish.pod:1028
19146 msgid "test1.img"
19147 msgstr ""
19148
19149 # type: =item
19150 #: ../fish/guestfish.pod:1030
19151 msgid "test2.img (etc)"
19152 msgstr ""
19153
19154 # type: textblock
19155 #: ../fish/guestfish.pod:1032
19156 msgid ""
19157 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19158 "will be created in the file C<test1.img> in the current directory.  The "
19159 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19160 "the same name will be overwritten."
19161 msgstr ""
19162
19163 # type: textblock
19164 #: ../fish/guestfish.pod:1041
19165 msgid ""
19166 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19167 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19168 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19169 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19170 "L<hexedit(1)>."
19171 msgstr ""
19172
19173 # type: textblock
19174 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124
19175 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19176 #: ../tools/virt-win-reg.pl:518 ../tools/virt-resize.pl:1514
19177 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19178 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
19179 #: ../tools/virt-list-partitions.pl:277
19180 msgid ""
19181 "This program is free software; you can redistribute it and/or modify it "
19182 "under the terms of the GNU General Public License as published by the Free "
19183 "Software Foundation; either version 2 of the License, or (at your option) "
19184 "any later version."
19185 msgstr ""
19186
19187 # type: textblock
19188 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129
19189 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19190 #: ../tools/virt-win-reg.pl:523 ../tools/virt-resize.pl:1519
19191 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19192 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
19193 #: ../tools/virt-list-partitions.pl:282
19194 msgid ""
19195 "This program is distributed in the hope that it will be useful, but WITHOUT "
19196 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19197 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19198 "more details."
19199 msgstr ""
19200
19201 # type: textblock
19202 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134
19203 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19204 #: ../tools/virt-win-reg.pl:528 ../tools/virt-resize.pl:1524
19205 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19206 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
19207 #: ../tools/virt-list-partitions.pl:287
19208 msgid ""
19209 "You should have received a copy of the GNU General Public License along with "
19210 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19211 "Ave, Cambridge, MA 02139, USA."
19212 msgstr ""
19213
19214 # type: =head2
19215 #: ../fish/guestfish-actions.pod:1
19216 msgid "add-cdrom"
19217 msgstr ""
19218
19219 # type: verbatim
19220 #: ../fish/guestfish-actions.pod:3
19221 #, no-wrap
19222 msgid ""
19223 " add-cdrom filename\n"
19224 "\n"
19225 msgstr ""
19226
19227 # type: textblock
19228 #: ../fish/guestfish-actions.pod:15
19229 msgid ""
19230 "This call checks for the existence of C<filename>.  This stops you from "
19231 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19232 "and C<http:> URLs.  To specify those, use the general L</config> call "
19233 "instead."
19234 msgstr ""
19235
19236 # type: textblock
19237 #: ../fish/guestfish-actions.pod:22
19238 msgid ""
19239 "If you just want to add an ISO file (often you use this as an efficient way "
19240 "to transfer large files into the guest), then you should probably use L</add-"
19241 "drive-ro> instead."
19242 msgstr ""
19243
19244 # type: =head2
19245 #: ../fish/guestfish-actions.pod:35
19246 msgid "add-domain"
19247 msgstr ""
19248
19249 # type: =head2
19250 #: ../fish/guestfish-actions.pod:37
19251 msgid "domain"
19252 msgstr ""
19253
19254 # type: verbatim
19255 #: ../fish/guestfish-actions.pod:39
19256 #, no-wrap
19257 msgid ""
19258 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19259 "\n"
19260 msgstr ""
19261
19262 # type: textblock
19263 #: ../fish/guestfish-actions.pod:41
19264 msgid ""
19265 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19266 "It works by connecting to libvirt, requesting the domain and domain XML from "
19267 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19268 msgstr ""
19269
19270 # type: textblock
19271 #: ../fish/guestfish-actions.pod:58
19272 msgid ""
19273 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19274 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19275 "libvirt URI (or one set through an environment variable, see the libvirt "
19276 "documentation for full details).  If you are using the C API directly then "
19277 "it is more flexible to create the libvirt connection object yourself, get "
19278 "the domain object, and call L</add-libvirt-dom>."
19279 msgstr ""
19280
19281 # type: textblock
19282 #: ../fish/guestfish-actions.pod:66
19283 msgid ""
19284 "The other optional parameters are passed directly through to L</add-drive-"
19285 "opts>."
19286 msgstr ""
19287
19288 # type: textblock
19289 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19290 msgid ""
19291 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19292 msgstr ""
19293
19294 # type: =head2
19295 #: ../fish/guestfish-actions.pod:71
19296 msgid "add-drive"
19297 msgstr ""
19298
19299 # type: verbatim
19300 #: ../fish/guestfish-actions.pod:73
19301 #, no-wrap
19302 msgid ""
19303 " add-drive filename\n"
19304 "\n"
19305 msgstr ""
19306
19307 # type: textblock
19308 #: ../fish/guestfish-actions.pod:75
19309 msgid ""
19310 "This function is the equivalent of calling L</add-drive-opts> with no "
19311 "optional parameters, so the disk is added writable, with the format being "
19312 "detected automatically."
19313 msgstr ""
19314
19315 # type: textblock
19316 #: ../fish/guestfish-actions.pod:79
19317 msgid ""
19318 "Automatic detection of the format opens you up to a potential security hole "
19319 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19320 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19321 "you should think about replacing calls to this function with calls to L</add-"
19322 "drive-opts>, and specifying the format."
19323 msgstr ""
19324
19325 # type: =head2
19326 #: ../fish/guestfish-actions.pod:86
19327 msgid "add-drive-opts"
19328 msgstr ""
19329
19330 # type: =head2
19331 #: ../fish/guestfish-actions.pod:88
19332 msgid "add"
19333 msgstr ""
19334
19335 # type: verbatim
19336 #: ../fish/guestfish-actions.pod:90
19337 #, no-wrap
19338 msgid ""
19339 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19340 "\n"
19341 msgstr ""
19342
19343 # type: textblock
19344 #: ../fish/guestfish-actions.pod:117
19345 msgid ""
19346 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19347 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19348 "include C<raw> and C<qcow2>."
19349 msgstr ""
19350
19351 # type: textblock
19352 #: ../fish/guestfish-actions.pod:128
19353 msgid ""
19354 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19355 "add-drive-with-if> call (q.v.)"
19356 msgstr ""
19357
19358 # type: =head2
19359 #: ../fish/guestfish-actions.pod:135
19360 msgid "add-drive-ro"
19361 msgstr ""
19362
19363 # type: =head2
19364 #: ../fish/guestfish-actions.pod:137
19365 msgid "add-ro"
19366 msgstr ""
19367
19368 # type: verbatim
19369 #: ../fish/guestfish-actions.pod:139
19370 #, no-wrap
19371 msgid ""
19372 " add-drive-ro filename\n"
19373 "\n"
19374 msgstr ""
19375
19376 # type: textblock
19377 #: ../fish/guestfish-actions.pod:141
19378 msgid ""
19379 "This function is the equivalent of calling L</add-drive-opts> with the "
19380 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19381 "is added read-only, with the format being detected automatically."
19382 msgstr ""
19383
19384 # type: =head2
19385 #: ../fish/guestfish-actions.pod:146
19386 msgid "add-drive-ro-with-if"
19387 msgstr ""
19388
19389 # type: verbatim
19390 #: ../fish/guestfish-actions.pod:148
19391 #, no-wrap
19392 msgid ""
19393 " add-drive-ro-with-if filename iface\n"
19394 "\n"
19395 msgstr ""
19396
19397 # type: textblock
19398 #: ../fish/guestfish-actions.pod:150
19399 msgid ""
19400 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19401 "interface emulation to use at run time."
19402 msgstr ""
19403
19404 # type: =head2
19405 #: ../fish/guestfish-actions.pod:160
19406 msgid "add-drive-with-if"
19407 msgstr ""
19408
19409 # type: verbatim
19410 #: ../fish/guestfish-actions.pod:162
19411 #, no-wrap
19412 msgid ""
19413 " add-drive-with-if filename iface\n"
19414 "\n"
19415 msgstr ""
19416
19417 # type: textblock
19418 #: ../fish/guestfish-actions.pod:164
19419 msgid ""
19420 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19421 "interface emulation to use at run time."
19422 msgstr ""
19423
19424 # type: =head2
19425 #: ../fish/guestfish-actions.pod:174
19426 msgid "aug-clear"
19427 msgstr ""
19428
19429 # type: verbatim
19430 #: ../fish/guestfish-actions.pod:176
19431 #, no-wrap
19432 msgid ""
19433 " aug-clear augpath\n"
19434 "\n"
19435 msgstr ""
19436
19437 # type: =head2
19438 #: ../fish/guestfish-actions.pod:181
19439 msgid "aug-close"
19440 msgstr ""
19441
19442 # type: verbatim
19443 #: ../fish/guestfish-actions.pod:183
19444 #, no-wrap
19445 msgid ""
19446 " aug-close\n"
19447 "\n"
19448 msgstr ""
19449
19450 # type: textblock
19451 #: ../fish/guestfish-actions.pod:185
19452 msgid ""
19453 "Close the current Augeas handle and free up any resources used by it.  After "
19454 "calling this, you have to call L</aug-init> again before you can use any "
19455 "other Augeas functions."
19456 msgstr ""
19457
19458 # type: =head2
19459 #: ../fish/guestfish-actions.pod:190
19460 msgid "aug-defnode"
19461 msgstr ""
19462
19463 # type: verbatim
19464 #: ../fish/guestfish-actions.pod:192
19465 #, no-wrap
19466 msgid ""
19467 " aug-defnode name expr val\n"
19468 "\n"
19469 msgstr ""
19470
19471 # type: textblock
19472 #: ../fish/guestfish-actions.pod:197
19473 msgid ""
19474 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19475 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19476 "containing that single node."
19477 msgstr ""
19478
19479 # type: =head2
19480 #: ../fish/guestfish-actions.pod:205
19481 msgid "aug-defvar"
19482 msgstr ""
19483
19484 # type: verbatim
19485 #: ../fish/guestfish-actions.pod:207
19486 #, no-wrap
19487 msgid ""
19488 " aug-defvar name expr\n"
19489 "\n"
19490 msgstr ""
19491
19492 # type: =head2
19493 #: ../fish/guestfish-actions.pod:216
19494 msgid "aug-get"
19495 msgstr ""
19496
19497 # type: verbatim
19498 #: ../fish/guestfish-actions.pod:218
19499 #, no-wrap
19500 msgid ""
19501 " aug-get augpath\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: =head2
19506 #: ../fish/guestfish-actions.pod:223
19507 msgid "aug-init"
19508 msgstr ""
19509
19510 # type: verbatim
19511 #: ../fish/guestfish-actions.pod:225
19512 #, no-wrap
19513 msgid ""
19514 " aug-init root flags\n"
19515 "\n"
19516 msgstr ""
19517
19518 # type: textblock
19519 #: ../fish/guestfish-actions.pod:231
19520 msgid "You must call this before using any other L</aug-*> commands."
19521 msgstr ""
19522
19523 # type: textblock
19524 #: ../fish/guestfish-actions.pod:266
19525 msgid "Do not load the tree in L</aug-init>."
19526 msgstr ""
19527
19528 # type: textblock
19529 #: ../fish/guestfish-actions.pod:270
19530 msgid "To close the handle, you can call L</aug-close>."
19531 msgstr ""
19532
19533 # type: =head2
19534 #: ../fish/guestfish-actions.pod:274
19535 msgid "aug-insert"
19536 msgstr ""
19537
19538 # type: verbatim
19539 #: ../fish/guestfish-actions.pod:276
19540 #, no-wrap
19541 msgid ""
19542 " aug-insert augpath label true|false\n"
19543 "\n"
19544 msgstr ""
19545
19546 # type: =head2
19547 #: ../fish/guestfish-actions.pod:286
19548 msgid "aug-load"
19549 msgstr ""
19550
19551 # type: verbatim
19552 #: ../fish/guestfish-actions.pod:288
19553 #, no-wrap
19554 msgid ""
19555 " aug-load\n"
19556 "\n"
19557 msgstr ""
19558
19559 # type: =head2
19560 #: ../fish/guestfish-actions.pod:295
19561 msgid "aug-ls"
19562 msgstr ""
19563
19564 # type: verbatim
19565 #: ../fish/guestfish-actions.pod:297
19566 #, no-wrap
19567 msgid ""
19568 " aug-ls augpath\n"
19569 "\n"
19570 msgstr ""
19571
19572 # type: textblock
19573 #: ../fish/guestfish-actions.pod:299
19574 msgid ""
19575 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19576 "resulting nodes into alphabetical order."
19577 msgstr ""
19578
19579 # type: =head2
19580 #: ../fish/guestfish-actions.pod:302
19581 msgid "aug-match"
19582 msgstr ""
19583
19584 # type: verbatim
19585 #: ../fish/guestfish-actions.pod:304
19586 #, no-wrap
19587 msgid ""
19588 " aug-match augpath\n"
19589 "\n"
19590 msgstr ""
19591
19592 # type: =head2
19593 #: ../fish/guestfish-actions.pod:310
19594 msgid "aug-mv"
19595 msgstr ""
19596
19597 # type: verbatim
19598 #: ../fish/guestfish-actions.pod:312
19599 #, no-wrap
19600 msgid ""
19601 " aug-mv src dest\n"
19602 "\n"
19603 msgstr ""
19604
19605 # type: =head2
19606 #: ../fish/guestfish-actions.pod:317
19607 msgid "aug-rm"
19608 msgstr ""
19609
19610 # type: verbatim
19611 #: ../fish/guestfish-actions.pod:319
19612 #, no-wrap
19613 msgid ""
19614 " aug-rm augpath\n"
19615 "\n"
19616 msgstr ""
19617
19618 # type: =head2
19619 #: ../fish/guestfish-actions.pod:325
19620 msgid "aug-save"
19621 msgstr ""
19622
19623 # type: verbatim
19624 #: ../fish/guestfish-actions.pod:327
19625 #, no-wrap
19626 msgid ""
19627 " aug-save\n"
19628 "\n"
19629 msgstr ""
19630
19631 # type: textblock
19632 #: ../fish/guestfish-actions.pod:331
19633 msgid ""
19634 "The flags which were passed to L</aug-init> affect exactly how files are "
19635 "saved."
19636 msgstr ""
19637
19638 # type: =head2
19639 #: ../fish/guestfish-actions.pod:334
19640 msgid "aug-set"
19641 msgstr ""
19642
19643 # type: verbatim
19644 #: ../fish/guestfish-actions.pod:336
19645 #, no-wrap
19646 msgid ""
19647 " aug-set augpath val\n"
19648 "\n"
19649 msgstr ""
19650
19651 # type: textblock
19652 #: ../fish/guestfish-actions.pod:340
19653 msgid ""
19654 "In the Augeas API, it is possible to clear a node by setting the value to "
19655 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19656 "this call.  Instead you must use the L</aug-clear> call."
19657 msgstr ""
19658
19659 # type: =head2
19660 #: ../fish/guestfish-actions.pod:345
19661 msgid "available"
19662 msgstr ""
19663
19664 # type: verbatim
19665 #: ../fish/guestfish-actions.pod:347
19666 #, no-wrap
19667 msgid ""
19668 " available 'groups ...'\n"
19669 "\n"
19670 msgstr ""
19671
19672 # type: textblock
19673 #: ../fish/guestfish-actions.pod:353
19674 msgid ""
19675 "The libguestfs groups, and the functions that those groups correspond to, "
19676 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19677 "runtime by calling L</available-all-groups>."
19678 msgstr ""
19679
19680 # type: textblock
19681 #: ../fish/guestfish-actions.pod:377
19682 msgid "You must call L</launch> before calling this function."
19683 msgstr ""
19684
19685 # type: textblock
19686 #: ../fish/guestfish-actions.pod:399
19687 msgid ""
19688 "This call was added in version C<1.0.80>.  In previous versions of "
19689 "libguestfs all you could do would be to speculatively execute a command to "
19690 "find out if the daemon implemented it.  See also L</version>."
19691 msgstr ""
19692
19693 # type: =head2
19694 #: ../fish/guestfish-actions.pod:406
19695 msgid "available-all-groups"
19696 msgstr ""
19697
19698 # type: verbatim
19699 #: ../fish/guestfish-actions.pod:408
19700 #, no-wrap
19701 msgid ""
19702 " available-all-groups\n"
19703 "\n"
19704 msgstr ""
19705
19706 # type: textblock
19707 #: ../fish/guestfish-actions.pod:410
19708 msgid ""
19709 "This command returns a list of all optional groups that this daemon knows "
19710 "about.  Note this returns both supported and unsupported groups.  To find "
19711 "out which ones the daemon can actually support you have to call L</"
19712 "available> on each member of the returned list."
19713 msgstr ""
19714
19715 # type: textblock
19716 #: ../fish/guestfish-actions.pod:416
19717 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19718 msgstr ""
19719
19720 # type: =head2
19721 #: ../fish/guestfish-actions.pod:418
19722 msgid "base64-in"
19723 msgstr ""
19724
19725 # type: verbatim
19726 #: ../fish/guestfish-actions.pod:420
19727 #, no-wrap
19728 msgid ""
19729 " base64-in (base64file|-) filename\n"
19730 "\n"
19731 msgstr ""
19732
19733 # type: textblock
19734 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19735 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19736 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19737 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19738 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19739 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19740 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19741 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19742 msgstr ""
19743
19744 # type: =head2
19745 #: ../fish/guestfish-actions.pod:427
19746 msgid "base64-out"
19747 msgstr ""
19748
19749 # type: verbatim
19750 #: ../fish/guestfish-actions.pod:429
19751 #, no-wrap
19752 msgid ""
19753 " base64-out filename (base64file|-)\n"
19754 "\n"
19755 msgstr ""
19756
19757 # type: =head2
19758 #: ../fish/guestfish-actions.pod:436
19759 msgid "blockdev-flushbufs"
19760 msgstr ""
19761
19762 # type: verbatim
19763 #: ../fish/guestfish-actions.pod:438
19764 #, no-wrap
19765 msgid ""
19766 " blockdev-flushbufs device\n"
19767 "\n"
19768 msgstr ""
19769
19770 # type: =head2
19771 #: ../fish/guestfish-actions.pod:445
19772 msgid "blockdev-getbsz"
19773 msgstr ""
19774
19775 # type: verbatim
19776 #: ../fish/guestfish-actions.pod:447
19777 #, no-wrap
19778 msgid ""
19779 " blockdev-getbsz device\n"
19780 "\n"
19781 msgstr ""
19782
19783 # type: =head2
19784 #: ../fish/guestfish-actions.pod:456
19785 msgid "blockdev-getro"
19786 msgstr ""
19787
19788 # type: verbatim
19789 #: ../fish/guestfish-actions.pod:458
19790 #, no-wrap
19791 msgid ""
19792 " blockdev-getro device\n"
19793 "\n"
19794 msgstr ""
19795
19796 # type: =head2
19797 #: ../fish/guestfish-actions.pod:465
19798 msgid "blockdev-getsize64"
19799 msgstr ""
19800
19801 # type: verbatim
19802 #: ../fish/guestfish-actions.pod:467
19803 #, no-wrap
19804 msgid ""
19805 " blockdev-getsize64 device\n"
19806 "\n"
19807 msgstr ""
19808
19809 # type: textblock
19810 #: ../fish/guestfish-actions.pod:471
19811 msgid "See also L</blockdev-getsz>."
19812 msgstr ""
19813
19814 # type: =head2
19815 #: ../fish/guestfish-actions.pod:475
19816 msgid "blockdev-getss"
19817 msgstr ""
19818
19819 # type: verbatim
19820 #: ../fish/guestfish-actions.pod:477
19821 #, no-wrap
19822 msgid ""
19823 " blockdev-getss device\n"
19824 "\n"
19825 msgstr ""
19826
19827 # type: textblock
19828 #: ../fish/guestfish-actions.pod:482
19829 msgid ""
19830 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19831 msgstr ""
19832
19833 # type: =head2
19834 #: ../fish/guestfish-actions.pod:487
19835 msgid "blockdev-getsz"
19836 msgstr ""
19837
19838 # type: verbatim
19839 #: ../fish/guestfish-actions.pod:489
19840 #, no-wrap
19841 msgid ""
19842 " blockdev-getsz device\n"
19843 "\n"
19844 msgstr ""
19845
19846 # type: textblock
19847 #: ../fish/guestfish-actions.pod:494
19848 msgid ""
19849 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19850 "blockdev-getsize64> for the more useful I<size in bytes>."
19851 msgstr ""
19852
19853 # type: =head2
19854 #: ../fish/guestfish-actions.pod:500
19855 msgid "blockdev-rereadpt"
19856 msgstr ""
19857
19858 # type: verbatim
19859 #: ../fish/guestfish-actions.pod:502
19860 #, no-wrap
19861 msgid ""
19862 " blockdev-rereadpt device\n"
19863 "\n"
19864 msgstr ""
19865
19866 # type: =head2
19867 #: ../fish/guestfish-actions.pod:508
19868 msgid "blockdev-setbsz"
19869 msgstr ""
19870
19871 # type: verbatim
19872 #: ../fish/guestfish-actions.pod:510
19873 #, no-wrap
19874 msgid ""
19875 " blockdev-setbsz device blocksize\n"
19876 "\n"
19877 msgstr ""
19878
19879 # type: =head2
19880 #: ../fish/guestfish-actions.pod:519
19881 msgid "blockdev-setro"
19882 msgstr ""
19883
19884 # type: verbatim
19885 #: ../fish/guestfish-actions.pod:521
19886 #, no-wrap
19887 msgid ""
19888 " blockdev-setro device\n"
19889 "\n"
19890 msgstr ""
19891
19892 # type: =head2
19893 #: ../fish/guestfish-actions.pod:527
19894 msgid "blockdev-setrw"
19895 msgstr ""
19896
19897 # type: verbatim
19898 #: ../fish/guestfish-actions.pod:529
19899 #, no-wrap
19900 msgid ""
19901 " blockdev-setrw device\n"
19902 "\n"
19903 msgstr ""
19904
19905 # type: =head2
19906 #: ../fish/guestfish-actions.pod:535
19907 msgid "case-sensitive-path"
19908 msgstr ""
19909
19910 # type: verbatim
19911 #: ../fish/guestfish-actions.pod:537
19912 #, no-wrap
19913 msgid ""
19914 " case-sensitive-path path\n"
19915 "\n"
19916 msgstr ""
19917
19918 # type: textblock
19919 #: ../fish/guestfish-actions.pod:561
19920 msgid ""
19921 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19922 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19923 "the directories were originally created under Windows)."
19924 msgstr ""
19925
19926 # type: textblock
19927 #: ../fish/guestfish-actions.pod:569
19928 msgid "See also L</realpath>."
19929 msgstr ""
19930
19931 # type: =head2
19932 #: ../fish/guestfish-actions.pod:571
19933 msgid "cat"
19934 msgstr ""
19935
19936 # type: verbatim
19937 #: ../fish/guestfish-actions.pod:573
19938 #, no-wrap
19939 msgid ""
19940 " cat path\n"
19941 "\n"
19942 msgstr ""
19943
19944 # type: textblock
19945 #: ../fish/guestfish-actions.pod:577
19946 msgid ""
19947 "Note that this function cannot correctly handle binary files (specifically, "
19948 "files containing C<\\0> character which is treated as end of string).  For "
19949 "those you need to use the L</read-file> or L</download> functions which have "
19950 "a more complex interface."
19951 msgstr ""
19952
19953 # type: =head2
19954 #: ../fish/guestfish-actions.pod:585
19955 msgid "checksum"
19956 msgstr ""
19957
19958 # type: verbatim
19959 #: ../fish/guestfish-actions.pod:587
19960 #, no-wrap
19961 msgid ""
19962 " checksum csumtype path\n"
19963 "\n"
19964 msgstr ""
19965
19966 # type: textblock
19967 #: ../fish/guestfish-actions.pod:630
19968 msgid "To get the checksum for a device, use L</checksum-device>."
19969 msgstr ""
19970
19971 # type: textblock
19972 #: ../fish/guestfish-actions.pod:632
19973 msgid "To get the checksums for many files, use L</checksums-out>."
19974 msgstr ""
19975
19976 # type: =head2
19977 #: ../fish/guestfish-actions.pod:634
19978 msgid "checksum-device"
19979 msgstr ""
19980
19981 # type: verbatim
19982 #: ../fish/guestfish-actions.pod:636
19983 #, no-wrap
19984 msgid ""
19985 " checksum-device csumtype device\n"
19986 "\n"
19987 msgstr ""
19988
19989 # type: textblock
19990 #: ../fish/guestfish-actions.pod:638
19991 msgid ""
19992 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19993 "device named C<device>.  For the types of checksums supported see the L</"
19994 "checksum> command."
19995 msgstr ""
19996
19997 # type: =head2
19998 #: ../fish/guestfish-actions.pod:642
19999 msgid "checksums-out"
20000 msgstr ""
20001
20002 # type: verbatim
20003 #: ../fish/guestfish-actions.pod:644
20004 #, no-wrap
20005 msgid ""
20006 " checksums-out csumtype directory (sumsfile|-)\n"
20007 "\n"
20008 msgstr ""
20009
20010 # type: =head2
20011 #: ../fish/guestfish-actions.pod:660
20012 msgid "chmod"
20013 msgstr ""
20014
20015 # type: verbatim
20016 #: ../fish/guestfish-actions.pod:662
20017 #, no-wrap
20018 msgid ""
20019 " chmod mode path\n"
20020 "\n"
20021 msgstr ""
20022
20023 # type: =head2
20024 #: ../fish/guestfish-actions.pod:673
20025 msgid "chown"
20026 msgstr ""
20027
20028 # type: verbatim
20029 #: ../fish/guestfish-actions.pod:675
20030 #, no-wrap
20031 msgid ""
20032 " chown owner group path\n"
20033 "\n"
20034 msgstr ""
20035
20036 # type: =head2
20037 #: ../fish/guestfish-actions.pod:683
20038 msgid "command"
20039 msgstr ""
20040
20041 # type: verbatim
20042 #: ../fish/guestfish-actions.pod:685
20043 #, no-wrap
20044 msgid ""
20045 " command 'arguments ...'\n"
20046 "\n"
20047 msgstr ""
20048
20049 # type: textblock
20050 #: ../fish/guestfish-actions.pod:692
20051 msgid ""
20052 "The single parameter is an argv-style list of arguments.  The first element "
20053 "is the name of the program to run.  Subsequent elements are parameters.  The "
20054 "list must be non-empty (ie. must contain a program name).  Note that the "
20055 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20056 msgstr ""
20057
20058 # type: =head2
20059 #: ../fish/guestfish-actions.pod:720
20060 msgid "command-lines"
20061 msgstr ""
20062
20063 # type: verbatim
20064 #: ../fish/guestfish-actions.pod:722
20065 #, no-wrap
20066 msgid ""
20067 " command-lines 'arguments ...'\n"
20068 "\n"
20069 msgstr ""
20070
20071 # type: textblock
20072 #: ../fish/guestfish-actions.pod:724
20073 msgid ""
20074 "This is the same as L</command>, but splits the result into a list of lines."
20075 msgstr ""
20076
20077 # type: textblock
20078 #: ../fish/guestfish-actions.pod:727
20079 msgid "See also: L</sh-lines>"
20080 msgstr ""
20081
20082 # type: =head2
20083 #: ../fish/guestfish-actions.pod:732
20084 msgid "config"
20085 msgstr ""
20086
20087 # type: verbatim
20088 #: ../fish/guestfish-actions.pod:734
20089 #, no-wrap
20090 msgid ""
20091 " config qemuparam qemuvalue\n"
20092 "\n"
20093 msgstr ""
20094
20095 # type: =head2
20096 #: ../fish/guestfish-actions.pod:745
20097 msgid "copy-size"
20098 msgstr ""
20099
20100 # type: verbatim
20101 #: ../fish/guestfish-actions.pod:747
20102 #, no-wrap
20103 msgid ""
20104 " copy-size src dest size\n"
20105 "\n"
20106 msgstr ""
20107
20108 # type: =head2
20109 #: ../fish/guestfish-actions.pod:755
20110 msgid "cp"
20111 msgstr ""
20112
20113 # type: verbatim
20114 #: ../fish/guestfish-actions.pod:757
20115 #, no-wrap
20116 msgid ""
20117 " cp src dest\n"
20118 "\n"
20119 msgstr ""
20120
20121 # type: =head2
20122 #: ../fish/guestfish-actions.pod:762
20123 msgid "cp-a"
20124 msgstr ""
20125
20126 # type: verbatim
20127 #: ../fish/guestfish-actions.pod:764
20128 #, no-wrap
20129 msgid ""
20130 " cp-a src dest\n"
20131 "\n"
20132 msgstr ""
20133
20134 # type: =head2
20135 #: ../fish/guestfish-actions.pod:769
20136 msgid "dd"
20137 msgstr ""
20138
20139 # type: verbatim
20140 #: ../fish/guestfish-actions.pod:771
20141 #, no-wrap
20142 msgid ""
20143 " dd src dest\n"
20144 "\n"
20145 msgstr ""
20146
20147 # type: textblock
20148 #: ../fish/guestfish-actions.pod:778
20149 msgid ""
20150 "If the destination is a device, it must be as large or larger than the "
20151 "source file or device, otherwise the copy will fail.  This command cannot do "
20152 "partial copies (see L</copy-size>)."
20153 msgstr ""
20154
20155 # type: =head2
20156 #: ../fish/guestfish-actions.pod:782
20157 msgid "df"
20158 msgstr ""
20159
20160 # type: verbatim
20161 #: ../fish/guestfish-actions.pod:784
20162 #, no-wrap
20163 msgid ""
20164 " df\n"
20165 "\n"
20166 msgstr ""
20167
20168 # type: =head2
20169 #: ../fish/guestfish-actions.pod:792
20170 msgid "df-h"
20171 msgstr ""
20172
20173 # type: verbatim
20174 #: ../fish/guestfish-actions.pod:794
20175 #, no-wrap
20176 msgid ""
20177 " df-h\n"
20178 "\n"
20179 msgstr ""
20180
20181 # type: =head2
20182 #: ../fish/guestfish-actions.pod:803
20183 msgid "dmesg"
20184 msgstr ""
20185
20186 # type: verbatim
20187 #: ../fish/guestfish-actions.pod:805
20188 #, no-wrap
20189 msgid ""
20190 " dmesg\n"
20191 "\n"
20192 msgstr ""
20193
20194 # type: textblock
20195 #: ../fish/guestfish-actions.pod:811
20196 msgid ""
20197 "Another way to get the same information is to enable verbose messages with "
20198 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20199 "before running the program."
20200 msgstr ""
20201
20202 # type: =head2
20203 #: ../fish/guestfish-actions.pod:816
20204 msgid "download"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #: ../fish/guestfish-actions.pod:818
20209 #, no-wrap
20210 msgid ""
20211 " download remotefilename (filename|-)\n"
20212 "\n"
20213 msgstr ""
20214
20215 # type: textblock
20216 #: ../fish/guestfish-actions.pod:825
20217 msgid "See also L</upload>, L</cat>."
20218 msgstr ""
20219
20220 # type: =head2
20221 #: ../fish/guestfish-actions.pod:829
20222 msgid "download-offset"
20223 msgstr ""
20224
20225 # type: verbatim
20226 #: ../fish/guestfish-actions.pod:831
20227 #, no-wrap
20228 msgid ""
20229 " download-offset remotefilename (filename|-) offset size\n"
20230 "\n"
20231 msgstr ""
20232
20233 # type: textblock
20234 #: ../fish/guestfish-actions.pod:839
20235 msgid ""
20236 "Note that there is no limit on the amount of data that can be downloaded "
20237 "with this call, unlike with L</pread>, and this call always reads the full "
20238 "amount unless an error occurs."
20239 msgstr ""
20240
20241 # type: textblock
20242 #: ../fish/guestfish-actions.pod:844
20243 msgid "See also L</download>, L</pread>."
20244 msgstr ""
20245
20246 # type: =head2
20247 #: ../fish/guestfish-actions.pod:848
20248 msgid "drop-caches"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #: ../fish/guestfish-actions.pod:850
20253 #, no-wrap
20254 msgid ""
20255 " drop-caches whattodrop\n"
20256 "\n"
20257 msgstr ""
20258
20259 # type: =head2
20260 #: ../fish/guestfish-actions.pod:862
20261 msgid "du"
20262 msgstr ""
20263
20264 # type: verbatim
20265 #: ../fish/guestfish-actions.pod:864
20266 #, no-wrap
20267 msgid ""
20268 " du path\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: =head2
20273 #: ../fish/guestfish-actions.pod:876
20274 msgid "e2fsck-f"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #: ../fish/guestfish-actions.pod:878
20279 #, no-wrap
20280 msgid ""
20281 " e2fsck-f device\n"
20282 "\n"
20283 msgstr ""
20284
20285 # type: textblock
20286 #: ../fish/guestfish-actions.pod:884
20287 msgid ""
20288 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20289 "should use L</fsck>."
20290 msgstr ""
20291
20292 # type: =head2
20293 #: ../fish/guestfish-actions.pod:887
20294 msgid "echo-daemon"
20295 msgstr ""
20296
20297 # type: verbatim
20298 #: ../fish/guestfish-actions.pod:889
20299 #, no-wrap
20300 msgid ""
20301 " echo-daemon 'words ...'\n"
20302 "\n"
20303 msgstr ""
20304
20305 # type: textblock
20306 #: ../fish/guestfish-actions.pod:896
20307 msgid "See also L</ping-daemon>."
20308 msgstr ""
20309
20310 # type: =head2
20311 #: ../fish/guestfish-actions.pod:898
20312 msgid "egrep"
20313 msgstr ""
20314
20315 # type: verbatim
20316 #: ../fish/guestfish-actions.pod:900
20317 #, no-wrap
20318 msgid ""
20319 " egrep regex path\n"
20320 "\n"
20321 msgstr ""
20322
20323 # type: =head2
20324 #: ../fish/guestfish-actions.pod:908
20325 msgid "egrepi"
20326 msgstr ""
20327
20328 # type: verbatim
20329 #: ../fish/guestfish-actions.pod:910
20330 #, no-wrap
20331 msgid ""
20332 " egrepi regex path\n"
20333 "\n"
20334 msgstr ""
20335
20336 # type: =head2
20337 #: ../fish/guestfish-actions.pod:918
20338 msgid "equal"
20339 msgstr ""
20340
20341 # type: verbatim
20342 #: ../fish/guestfish-actions.pod:920
20343 #, no-wrap
20344 msgid ""
20345 " equal file1 file2\n"
20346 "\n"
20347 msgstr ""
20348
20349 # type: =head2
20350 #: ../fish/guestfish-actions.pod:927
20351 msgid "exists"
20352 msgstr ""
20353
20354 # type: verbatim
20355 #: ../fish/guestfish-actions.pod:929
20356 #, no-wrap
20357 msgid ""
20358 " exists path\n"
20359 "\n"
20360 msgstr ""
20361
20362 # type: textblock
20363 #: ../fish/guestfish-actions.pod:934
20364 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20365 msgstr ""
20366
20367 # type: =head2
20368 #: ../fish/guestfish-actions.pod:936
20369 msgid "fallocate"
20370 msgstr ""
20371
20372 # type: verbatim
20373 #: ../fish/guestfish-actions.pod:938
20374 #, no-wrap
20375 msgid ""
20376 " fallocate path len\n"
20377 "\n"
20378 msgstr ""
20379
20380 # type: =head2
20381 #: ../fish/guestfish-actions.pod:955
20382 msgid "fallocate64"
20383 msgstr ""
20384
20385 # type: verbatim
20386 #: ../fish/guestfish-actions.pod:957
20387 #, no-wrap
20388 msgid ""
20389 " fallocate64 path len\n"
20390 "\n"
20391 msgstr ""
20392
20393 # type: textblock
20394 #: ../fish/guestfish-actions.pod:963
20395 msgid ""
20396 "Note that this call allocates disk blocks for the file.  To create a sparse "
20397 "file use L</truncate-size> instead."
20398 msgstr ""
20399
20400 # type: textblock
20401 #: ../fish/guestfish-actions.pod:966
20402 msgid ""
20403 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20404 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20405 "maximum size of files created through that call to 1GB."
20406 msgstr ""
20407
20408 # type: =head2
20409 #: ../fish/guestfish-actions.pod:975
20410 msgid "fgrep"
20411 msgstr ""
20412
20413 # type: verbatim
20414 #: ../fish/guestfish-actions.pod:977
20415 #, no-wrap
20416 msgid ""
20417 " fgrep pattern path\n"
20418 "\n"
20419 msgstr ""
20420
20421 # type: =head2
20422 #: ../fish/guestfish-actions.pod:985
20423 msgid "fgrepi"
20424 msgstr ""
20425
20426 # type: verbatim
20427 #: ../fish/guestfish-actions.pod:987
20428 #, no-wrap
20429 msgid ""
20430 " fgrepi pattern path\n"
20431 "\n"
20432 msgstr ""
20433
20434 # type: =head2
20435 #: ../fish/guestfish-actions.pod:995
20436 msgid "file"
20437 msgstr ""
20438
20439 # type: verbatim
20440 #: ../fish/guestfish-actions.pod:997
20441 #, no-wrap
20442 msgid ""
20443 " file path\n"
20444 "\n"
20445 msgstr ""
20446
20447 # type: textblock
20448 #: ../fish/guestfish-actions.pod:1009
20449 msgid ""
20450 "This command can also be used on C</dev/> devices (and partitions, LV "
20451 "names).  You can for example use this to determine if a device contains a "
20452 "filesystem, although it's usually better to use L</vfs-type>."
20453 msgstr ""
20454
20455 # type: =head2
20456 #: ../fish/guestfish-actions.pod:1019
20457 msgid "file-architecture"
20458 msgstr ""
20459
20460 # type: verbatim
20461 #: ../fish/guestfish-actions.pod:1021
20462 #, no-wrap
20463 msgid ""
20464 " file-architecture filename\n"
20465 "\n"
20466 msgstr ""
20467
20468 # type: =head2
20469 #: ../fish/guestfish-actions.pod:1124
20470 msgid "filesize"
20471 msgstr ""
20472
20473 # type: verbatim
20474 #: ../fish/guestfish-actions.pod:1126
20475 #, no-wrap
20476 msgid ""
20477 " filesize file\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: textblock
20482 #: ../fish/guestfish-actions.pod:1130
20483 msgid ""
20484 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20485 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20486 msgstr ""
20487
20488 # type: =head2
20489 #: ../fish/guestfish-actions.pod:1134
20490 msgid "fill"
20491 msgstr ""
20492
20493 # type: verbatim
20494 #: ../fish/guestfish-actions.pod:1136
20495 #, no-wrap
20496 msgid ""
20497 " fill c len path\n"
20498 "\n"
20499 msgstr ""
20500
20501 # type: textblock
20502 #: ../fish/guestfish-actions.pod:1142
20503 msgid ""
20504 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20505 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20506 "L</fill-pattern>."
20507 msgstr ""
20508
20509 # type: =head2
20510 #: ../fish/guestfish-actions.pod:1147
20511 msgid "fill-pattern"
20512 msgstr ""
20513
20514 # type: verbatim
20515 #: ../fish/guestfish-actions.pod:1149
20516 #, no-wrap
20517 msgid ""
20518 " fill-pattern pattern len path\n"
20519 "\n"
20520 msgstr ""
20521
20522 # type: textblock
20523 #: ../fish/guestfish-actions.pod:1151
20524 msgid ""
20525 "This function is like L</fill> except that it creates a new file of length "
20526 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20527 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20528 "bytes."
20529 msgstr ""
20530
20531 # type: =head2
20532 #: ../fish/guestfish-actions.pod:1156
20533 msgid "find"
20534 msgstr ""
20535
20536 # type: verbatim
20537 #: ../fish/guestfish-actions.pod:1158
20538 #, no-wrap
20539 msgid ""
20540 " find directory\n"
20541 "\n"
20542 msgstr ""
20543
20544 # type: textblock
20545 #: ../fish/guestfish-actions.pod:1172
20546 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20547 msgstr ""
20548
20549 # type: textblock
20550 #: ../fish/guestfish-actions.pod:1185
20551 msgid "See also L</find0>."
20552 msgstr ""
20553
20554 # type: =head2
20555 #: ../fish/guestfish-actions.pod:1190
20556 msgid "find0"
20557 msgstr ""
20558
20559 # type: verbatim
20560 #: ../fish/guestfish-actions.pod:1192
20561 #, no-wrap
20562 msgid ""
20563 " find0 directory (files|-)\n"
20564 "\n"
20565 msgstr ""
20566
20567 # type: textblock
20568 #: ../fish/guestfish-actions.pod:1198
20569 msgid ""
20570 "This command works the same way as L</find> with the following exceptions:"
20571 msgstr ""
20572
20573 # type: =head2
20574 #: ../fish/guestfish-actions.pod:1225
20575 msgid "findfs-label"
20576 msgstr ""
20577
20578 # type: verbatim
20579 #: ../fish/guestfish-actions.pod:1227
20580 #, no-wrap
20581 msgid ""
20582 " findfs-label label\n"
20583 "\n"
20584 msgstr ""
20585
20586 # type: textblock
20587 #: ../fish/guestfish-actions.pod:1233
20588 msgid "To find the label of a filesystem, use L</vfs-label>."
20589 msgstr ""
20590
20591 # type: =head2
20592 #: ../fish/guestfish-actions.pod:1235
20593 msgid "findfs-uuid"
20594 msgstr ""
20595
20596 # type: verbatim
20597 #: ../fish/guestfish-actions.pod:1237
20598 #, no-wrap
20599 msgid ""
20600 " findfs-uuid uuid\n"
20601 "\n"
20602 msgstr ""
20603
20604 # type: textblock
20605 #: ../fish/guestfish-actions.pod:1243
20606 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20607 msgstr ""
20608
20609 # type: =head2
20610 #: ../fish/guestfish-actions.pod:1245
20611 msgid "fsck"
20612 msgstr ""
20613
20614 # type: verbatim
20615 #: ../fish/guestfish-actions.pod:1247
20616 #, no-wrap
20617 msgid ""
20618 " fsck fstype device\n"
20619 "\n"
20620 msgstr ""
20621
20622 # type: =head2
20623 #: ../fish/guestfish-actions.pod:1277
20624 msgid "get-append"
20625 msgstr ""
20626
20627 # type: verbatim
20628 #: ../fish/guestfish-actions.pod:1279
20629 #, no-wrap
20630 msgid ""
20631 " get-append\n"
20632 "\n"
20633 msgstr ""
20634
20635 # type: =head2
20636 #: ../fish/guestfish-actions.pod:1286
20637 msgid "get-autosync"
20638 msgstr ""
20639
20640 # type: verbatim
20641 #: ../fish/guestfish-actions.pod:1288
20642 #, no-wrap
20643 msgid ""
20644 " get-autosync\n"
20645 "\n"
20646 msgstr ""
20647
20648 # type: =head2
20649 #: ../fish/guestfish-actions.pod:1292
20650 msgid "get-direct"
20651 msgstr ""
20652
20653 # type: verbatim
20654 #: ../fish/guestfish-actions.pod:1294
20655 #, no-wrap
20656 msgid ""
20657 " get-direct\n"
20658 "\n"
20659 msgstr ""
20660
20661 # type: =head2
20662 #: ../fish/guestfish-actions.pod:1298
20663 msgid "get-e2label"
20664 msgstr ""
20665
20666 # type: verbatim
20667 #: ../fish/guestfish-actions.pod:1300
20668 #, no-wrap
20669 msgid ""
20670 " get-e2label device\n"
20671 "\n"
20672 msgstr ""
20673
20674 # type: =head2
20675 #: ../fish/guestfish-actions.pod:1312
20676 msgid "get-e2uuid"
20677 msgstr ""
20678
20679 # type: verbatim
20680 #: ../fish/guestfish-actions.pod:1314
20681 #, no-wrap
20682 msgid ""
20683 " get-e2uuid device\n"
20684 "\n"
20685 msgstr ""
20686
20687 # type: =head2
20688 #: ../fish/guestfish-actions.pod:1326
20689 msgid "get-memsize"
20690 msgstr ""
20691
20692 # type: verbatim
20693 #: ../fish/guestfish-actions.pod:1328
20694 #, no-wrap
20695 msgid ""
20696 " get-memsize\n"
20697 "\n"
20698 msgstr ""
20699
20700 # type: textblock
20701 #: ../fish/guestfish-actions.pod:1333
20702 msgid ""
20703 "If L</set-memsize> was not called on this handle, and if "
20704 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20705 "value for memsize."
20706 msgstr ""
20707
20708 # type: =head2
20709 #: ../fish/guestfish-actions.pod:1340
20710 msgid "get-network"
20711 msgstr ""
20712
20713 # type: verbatim
20714 #: ../fish/guestfish-actions.pod:1342
20715 #, no-wrap
20716 msgid ""
20717 " get-network\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:1346
20723 msgid "get-path"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:1348
20728 #, no-wrap
20729 msgid ""
20730 " get-path\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: =head2
20735 #: ../fish/guestfish-actions.pod:1355
20736 msgid "get-pid"
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:1357
20741 msgid "pid"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:1359
20746 #, no-wrap
20747 msgid ""
20748 " get-pid\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:1366
20754 msgid "get-qemu"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #: ../fish/guestfish-actions.pod:1368
20759 #, no-wrap
20760 msgid ""
20761 " get-qemu\n"
20762 "\n"
20763 msgstr ""
20764
20765 # type: =head2
20766 #: ../fish/guestfish-actions.pod:1375
20767 msgid "get-recovery-proc"
20768 msgstr ""
20769
20770 # type: verbatim
20771 #: ../fish/guestfish-actions.pod:1377
20772 #, no-wrap
20773 msgid ""
20774 " get-recovery-proc\n"
20775 "\n"
20776 msgstr ""
20777
20778 # type: =head2
20779 #: ../fish/guestfish-actions.pod:1381
20780 msgid "get-selinux"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #: ../fish/guestfish-actions.pod:1383
20785 #, no-wrap
20786 msgid ""
20787 " get-selinux\n"
20788 "\n"
20789 msgstr ""
20790
20791 # type: textblock
20792 #: ../fish/guestfish-actions.pod:1385
20793 msgid ""
20794 "This returns the current setting of the selinux flag which is passed to the "
20795 "appliance at boot time.  See L</set-selinux>."
20796 msgstr ""
20797
20798 # type: =head2
20799 #: ../fish/guestfish-actions.pod:1391
20800 msgid "get-state"
20801 msgstr ""
20802
20803 # type: verbatim
20804 #: ../fish/guestfish-actions.pod:1393
20805 #, no-wrap
20806 msgid ""
20807 " get-state\n"
20808 "\n"
20809 msgstr ""
20810
20811 # type: =head2
20812 #: ../fish/guestfish-actions.pod:1400
20813 msgid "get-trace"
20814 msgstr ""
20815
20816 # type: verbatim
20817 #: ../fish/guestfish-actions.pod:1402
20818 #, no-wrap
20819 msgid ""
20820 " get-trace\n"
20821 "\n"
20822 msgstr ""
20823
20824 # type: =head2
20825 #: ../fish/guestfish-actions.pod:1406
20826 msgid "get-umask"
20827 msgstr ""
20828
20829 # type: verbatim
20830 #: ../fish/guestfish-actions.pod:1408
20831 #, no-wrap
20832 msgid ""
20833 " get-umask\n"
20834 "\n"
20835 msgstr ""
20836
20837 # type: textblock
20838 #: ../fish/guestfish-actions.pod:1410
20839 msgid ""
20840 "Return the current umask.  By default the umask is C<022> unless it has been "
20841 "set by calling L</umask>."
20842 msgstr ""
20843
20844 # type: =head2
20845 #: ../fish/guestfish-actions.pod:1413
20846 msgid "get-verbose"
20847 msgstr ""
20848
20849 # type: verbatim
20850 #: ../fish/guestfish-actions.pod:1415
20851 #, no-wrap
20852 msgid ""
20853 " get-verbose\n"
20854 "\n"
20855 msgstr ""
20856
20857 # type: =head2
20858 #: ../fish/guestfish-actions.pod:1419
20859 msgid "getcon"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #: ../fish/guestfish-actions.pod:1421
20864 #, no-wrap
20865 msgid ""
20866 " getcon\n"
20867 "\n"
20868 msgstr ""
20869
20870 # type: textblock
20871 #: ../fish/guestfish-actions.pod:1425
20872 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20873 msgstr ""
20874
20875 # type: =head2
20876 #: ../fish/guestfish-actions.pod:1428
20877 msgid "getxattrs"
20878 msgstr ""
20879
20880 # type: verbatim
20881 #: ../fish/guestfish-actions.pod:1430
20882 #, no-wrap
20883 msgid ""
20884 " getxattrs path\n"
20885 "\n"
20886 msgstr ""
20887
20888 # type: textblock
20889 #: ../fish/guestfish-actions.pod:1438
20890 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20891 msgstr ""
20892
20893 # type: =head2
20894 #: ../fish/guestfish-actions.pod:1440
20895 msgid "glob-expand"
20896 msgstr ""
20897
20898 # type: verbatim
20899 #: ../fish/guestfish-actions.pod:1442
20900 #, no-wrap
20901 msgid ""
20902 " glob-expand pattern\n"
20903 "\n"
20904 msgstr ""
20905
20906 # type: =head2
20907 #: ../fish/guestfish-actions.pod:1455
20908 msgid "grep"
20909 msgstr ""
20910
20911 # type: verbatim
20912 #: ../fish/guestfish-actions.pod:1457
20913 #, no-wrap
20914 msgid ""
20915 " grep regex path\n"
20916 "\n"
20917 msgstr ""
20918
20919 # type: =head2
20920 #: ../fish/guestfish-actions.pod:1465
20921 msgid "grepi"
20922 msgstr ""
20923
20924 # type: verbatim
20925 #: ../fish/guestfish-actions.pod:1467
20926 #, no-wrap
20927 msgid ""
20928 " grepi regex path\n"
20929 "\n"
20930 msgstr ""
20931
20932 # type: =head2
20933 #: ../fish/guestfish-actions.pod:1475
20934 msgid "grub-install"
20935 msgstr ""
20936
20937 # type: verbatim
20938 #: ../fish/guestfish-actions.pod:1477
20939 #, no-wrap
20940 msgid ""
20941 " grub-install root device\n"
20942 "\n"
20943 msgstr ""
20944
20945 # type: =head2
20946 #: ../fish/guestfish-actions.pod:1493
20947 msgid "head"
20948 msgstr ""
20949
20950 # type: verbatim
20951 #: ../fish/guestfish-actions.pod:1495
20952 #, no-wrap
20953 msgid ""
20954 " head path\n"
20955 "\n"
20956 msgstr ""
20957
20958 # type: =head2
20959 #: ../fish/guestfish-actions.pod:1503
20960 msgid "head-n"
20961 msgstr ""
20962
20963 # type: verbatim
20964 #: ../fish/guestfish-actions.pod:1505
20965 #, no-wrap
20966 msgid ""
20967 " head-n nrlines path\n"
20968 "\n"
20969 msgstr ""
20970
20971 # type: =head2
20972 #: ../fish/guestfish-actions.pod:1518
20973 msgid "hexdump"
20974 msgstr ""
20975
20976 # type: verbatim
20977 #: ../fish/guestfish-actions.pod:1520
20978 #, no-wrap
20979 msgid ""
20980 " hexdump path\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: =head2
20985 #: ../fish/guestfish-actions.pod:1528
20986 msgid "initrd-cat"
20987 msgstr ""
20988
20989 # type: verbatim
20990 #: ../fish/guestfish-actions.pod:1530
20991 #, no-wrap
20992 msgid ""
20993 " initrd-cat initrdpath filename\n"
20994 "\n"
20995 msgstr ""
20996
20997 # type: textblock
20998 #: ../fish/guestfish-actions.pod:1542
20999 msgid "See also L</initrd-list>."
21000 msgstr ""
21001
21002 # type: =head2
21003 #: ../fish/guestfish-actions.pod:1547
21004 msgid "initrd-list"
21005 msgstr ""
21006
21007 # type: verbatim
21008 #: ../fish/guestfish-actions.pod:1549
21009 #, no-wrap
21010 msgid ""
21011 " initrd-list path\n"
21012 "\n"
21013 msgstr ""
21014
21015 # type: =head2
21016 #: ../fish/guestfish-actions.pod:1561
21017 msgid "inotify-add-watch"
21018 msgstr ""
21019
21020 # type: verbatim
21021 #: ../fish/guestfish-actions.pod:1563
21022 #, no-wrap
21023 msgid ""
21024 " inotify-add-watch path mask\n"
21025 "\n"
21026 msgstr ""
21027
21028 # type: =head2
21029 #: ../fish/guestfish-actions.pod:1575
21030 msgid "inotify-close"
21031 msgstr ""
21032
21033 # type: verbatim
21034 #: ../fish/guestfish-actions.pod:1577
21035 #, no-wrap
21036 msgid ""
21037 " inotify-close\n"
21038 "\n"
21039 msgstr ""
21040
21041 # type: =head2
21042 #: ../fish/guestfish-actions.pod:1583
21043 msgid "inotify-files"
21044 msgstr ""
21045
21046 # type: verbatim
21047 #: ../fish/guestfish-actions.pod:1585
21048 #, no-wrap
21049 msgid ""
21050 " inotify-files\n"
21051 "\n"
21052 msgstr ""
21053
21054 # type: textblock
21055 #: ../fish/guestfish-actions.pod:1587
21056 msgid ""
21057 "This function is a helpful wrapper around L</inotify-read> which just "
21058 "returns a list of pathnames of objects that were touched.  The returned "
21059 "pathnames are sorted and deduplicated."
21060 msgstr ""
21061
21062 # type: =head2
21063 #: ../fish/guestfish-actions.pod:1591
21064 msgid "inotify-init"
21065 msgstr ""
21066
21067 # type: verbatim
21068 #: ../fish/guestfish-actions.pod:1593
21069 #, no-wrap
21070 msgid ""
21071 " inotify-init maxevents\n"
21072 "\n"
21073 msgstr ""
21074
21075 # type: textblock
21076 #: ../fish/guestfish-actions.pod:1599
21077 msgid ""
21078 "C<maxevents> is the maximum number of events which will be queued up between "
21079 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21080 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21081 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21082 "but records the fact that it threw them away by setting a flag "
21083 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21084 msgstr ""
21085
21086 # type: textblock
21087 #: ../fish/guestfish-actions.pod:1609
21088 msgid ""
21089 "Before any events are generated, you have to add some watches to the "
21090 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21091 "L</inotify-watch-all>."
21092 msgstr ""
21093
21094 # type: textblock
21095 #: ../fish/guestfish-actions.pod:1615
21096 msgid ""
21097 "Queued up events should be read periodically by calling L</inotify-read> (or "
21098 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21099 "If you don't read the events out often enough then you risk the internal "
21100 "queue overflowing."
21101 msgstr ""
21102
21103 # type: textblock
21104 #: ../fish/guestfish-actions.pod:1622
21105 msgid ""
21106 "The handle should be closed after use by calling L</inotify-close>.  This "
21107 "also removes any watches automatically."
21108 msgstr ""
21109
21110 # type: =head2
21111 #: ../fish/guestfish-actions.pod:1631
21112 msgid "inotify-read"
21113 msgstr ""
21114
21115 # type: verbatim
21116 #: ../fish/guestfish-actions.pod:1633
21117 #, no-wrap
21118 msgid ""
21119 " inotify-read\n"
21120 "\n"
21121 msgstr ""
21122
21123 # type: =head2
21124 #: ../fish/guestfish-actions.pod:1646
21125 msgid "inotify-rm-watch"
21126 msgstr ""
21127
21128 # type: verbatim
21129 #: ../fish/guestfish-actions.pod:1648
21130 #, no-wrap
21131 msgid ""
21132 " inotify-rm-watch wd\n"
21133 "\n"
21134 msgstr ""
21135
21136 # type: textblock
21137 #: ../fish/guestfish-actions.pod:1650
21138 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21139 msgstr ""
21140
21141 # type: =head2
21142 #: ../fish/guestfish-actions.pod:1653
21143 msgid "inspect-get-arch"
21144 msgstr ""
21145
21146 # type: verbatim
21147 #: ../fish/guestfish-actions.pod:1655
21148 #, no-wrap
21149 msgid ""
21150 " inspect-get-arch root\n"
21151 "\n"
21152 msgstr ""
21153
21154 # type: textblock
21155 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21156 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21157 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21158 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21159 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21160 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21161 #: ../fish/guestfish-actions.pod:1966
21162 msgid ""
21163 "This function should only be called with a root device string as returned by "
21164 "L</inspect-os>."
21165 msgstr ""
21166
21167 # type: textblock
21168 #: ../fish/guestfish-actions.pod:1660
21169 msgid ""
21170 "This returns the architecture of the inspected operating system.  The "
21171 "possible return values are listed under L</file-architecture>."
21172 msgstr ""
21173
21174 # type: =head2
21175 #: ../fish/guestfish-actions.pod:1669
21176 msgid "inspect-get-distro"
21177 msgstr ""
21178
21179 # type: verbatim
21180 #: ../fish/guestfish-actions.pod:1671
21181 #, no-wrap
21182 msgid ""
21183 " inspect-get-distro root\n"
21184 "\n"
21185 msgstr ""
21186
21187 # type: =head2
21188 #: ../fish/guestfish-actions.pod:1743
21189 msgid "inspect-get-filesystems"
21190 msgstr ""
21191
21192 # type: verbatim
21193 #: ../fish/guestfish-actions.pod:1745
21194 #, no-wrap
21195 msgid ""
21196 " inspect-get-filesystems root\n"
21197 "\n"
21198 msgstr ""
21199
21200 # type: textblock
21201 #: ../fish/guestfish-actions.pod:1758
21202 msgid ""
21203 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21204 "get-mountpoints>."
21205 msgstr ""
21206
21207 # type: =head2
21208 #: ../fish/guestfish-actions.pod:1761
21209 msgid "inspect-get-hostname"
21210 msgstr ""
21211
21212 # type: verbatim
21213 #: ../fish/guestfish-actions.pod:1763
21214 #, no-wrap
21215 msgid ""
21216 " inspect-get-hostname root\n"
21217 "\n"
21218 msgstr ""
21219
21220 # type: =head2
21221 #: ../fish/guestfish-actions.pod:1776
21222 msgid "inspect-get-major-version"
21223 msgstr ""
21224
21225 # type: verbatim
21226 #: ../fish/guestfish-actions.pod:1778
21227 #, no-wrap
21228 msgid ""
21229 " inspect-get-major-version root\n"
21230 "\n"
21231 msgstr ""
21232
21233 # type: =head2
21234 #: ../fish/guestfish-actions.pod:1797
21235 msgid "inspect-get-minor-version"
21236 msgstr ""
21237
21238 # type: verbatim
21239 #: ../fish/guestfish-actions.pod:1799
21240 #, no-wrap
21241 msgid ""
21242 " inspect-get-minor-version root\n"
21243 "\n"
21244 msgstr ""
21245
21246 # type: textblock
21247 #: ../fish/guestfish-actions.pod:1809
21248 msgid ""
21249 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21250 "get-major-version>."
21251 msgstr ""
21252
21253 # type: =head2
21254 #: ../fish/guestfish-actions.pod:1812
21255 msgid "inspect-get-mountpoints"
21256 msgstr ""
21257
21258 # type: verbatim
21259 #: ../fish/guestfish-actions.pod:1814
21260 #, no-wrap
21261 msgid ""
21262 " inspect-get-mountpoints root\n"
21263 "\n"
21264 msgstr ""
21265
21266 # type: textblock
21267 #: ../fish/guestfish-actions.pod:1832
21268 msgid ""
21269 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21270 "get-filesystems>."
21271 msgstr ""
21272
21273 # type: =head2
21274 #: ../fish/guestfish-actions.pod:1835
21275 msgid "inspect-get-package-format"
21276 msgstr ""
21277
21278 # type: verbatim
21279 #: ../fish/guestfish-actions.pod:1837
21280 #, no-wrap
21281 msgid ""
21282 " inspect-get-package-format root\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: textblock
21287 #: ../fish/guestfish-actions.pod:1842
21288 msgid ""
21289 "This function and L</inspect-get-package-management> return the package "
21290 "format and package management tool used by the inspected operating system.  "
21291 "For example for Fedora these functions would return C<rpm> (package format) "
21292 "and C<yum> (package management)."
21293 msgstr ""
21294
21295 # type: =head2
21296 #: ../fish/guestfish-actions.pod:1857
21297 msgid "inspect-get-package-management"
21298 msgstr ""
21299
21300 # type: verbatim
21301 #: ../fish/guestfish-actions.pod:1859
21302 #, no-wrap
21303 msgid ""
21304 " inspect-get-package-management root\n"
21305 "\n"
21306 msgstr ""
21307
21308 # type: textblock
21309 #: ../fish/guestfish-actions.pod:1864
21310 msgid ""
21311 "L</inspect-get-package-format> and this function return the package format "
21312 "and package management tool used by the inspected operating system.  For "
21313 "example for Fedora these functions would return C<rpm> (package format) and "
21314 "C<yum> (package management)."
21315 msgstr ""
21316
21317 # type: =head2
21318 #: ../fish/guestfish-actions.pod:1881
21319 msgid "inspect-get-product-name"
21320 msgstr ""
21321
21322 # type: verbatim
21323 #: ../fish/guestfish-actions.pod:1883
21324 #, no-wrap
21325 msgid ""
21326 " inspect-get-product-name root\n"
21327 "\n"
21328 msgstr ""
21329
21330 # type: =head2
21331 #: ../fish/guestfish-actions.pod:1898
21332 msgid "inspect-get-roots"
21333 msgstr ""
21334
21335 # type: verbatim
21336 #: ../fish/guestfish-actions.pod:1900
21337 #, no-wrap
21338 msgid ""
21339 " inspect-get-roots\n"
21340 "\n"
21341 msgstr ""
21342
21343 # type: textblock
21344 #: ../fish/guestfish-actions.pod:1902
21345 msgid ""
21346 "This function is a convenient way to get the list of root devices, as "
21347 "returned from a previous call to L</inspect-os>, but without redoing the "
21348 "whole inspection process."
21349 msgstr ""
21350
21351 # type: textblock
21352 #: ../fish/guestfish-actions.pod:1906
21353 msgid ""
21354 "This returns an empty list if either no root devices were found or the "
21355 "caller has not called L</inspect-os>."
21356 msgstr ""
21357
21358 # type: =head2
21359 #: ../fish/guestfish-actions.pod:1911
21360 msgid "inspect-get-type"
21361 msgstr ""
21362
21363 # type: verbatim
21364 #: ../fish/guestfish-actions.pod:1913
21365 #, no-wrap
21366 msgid ""
21367 " inspect-get-type root\n"
21368 "\n"
21369 msgstr ""
21370
21371 # type: =head2
21372 #: ../fish/guestfish-actions.pod:1946
21373 msgid "inspect-get-windows-systemroot"
21374 msgstr ""
21375
21376 # type: verbatim
21377 #: ../fish/guestfish-actions.pod:1948
21378 #, no-wrap
21379 msgid ""
21380 " inspect-get-windows-systemroot root\n"
21381 "\n"
21382 msgstr ""
21383
21384 # type: =head2
21385 #: ../fish/guestfish-actions.pod:1962
21386 msgid "inspect-list-applications"
21387 msgstr ""
21388
21389 # type: verbatim
21390 #: ../fish/guestfish-actions.pod:1964
21391 #, no-wrap
21392 msgid ""
21393 " inspect-list-applications root\n"
21394 "\n"
21395 msgstr ""
21396
21397 # type: textblock
21398 #: ../fish/guestfish-actions.pod:1971
21399 msgid ""
21400 "I<Note:> This call works differently from other parts of the inspection "
21401 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21402 "then mount up the disks, before calling this.  Listing applications is a "
21403 "significantly more difficult operation which requires access to the full "
21404 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21405 "are just returning data cached in the libguestfs handle, this call actually "
21406 "reads parts of the mounted filesystems during the call."
21407 msgstr ""
21408
21409 # type: =head2
21410 #: ../fish/guestfish-actions.pod:2061
21411 msgid "inspect-os"
21412 msgstr ""
21413
21414 # type: verbatim
21415 #: ../fish/guestfish-actions.pod:2063
21416 #, no-wrap
21417 msgid ""
21418 " inspect-os\n"
21419 "\n"
21420 msgstr ""
21421
21422 # type: textblock
21423 #: ../fish/guestfish-actions.pod:2078
21424 msgid ""
21425 "You can pass the root string(s) returned to other L</inspect-get-*> "
21426 "functions in order to query further information about each operating system, "
21427 "such as the name and version."
21428 msgstr ""
21429
21430 # type: textblock
21431 #: ../fish/guestfish-actions.pod:2083
21432 msgid ""
21433 "This function uses other libguestfs features such as L</mount-ro> and L</"
21434 "umount-all> in order to mount and unmount filesystems and look at the "
21435 "contents.  This should be called with no disks currently mounted.  The "
21436 "function may also use Augeas, so any existing Augeas handle will be closed."
21437 msgstr ""
21438
21439 # type: textblock
21440 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21441 #: ../fish/guestfish-actions.pod:2297
21442 msgid "See also L</list-filesystems>."
21443 msgstr ""
21444
21445 # type: =head2
21446 #: ../fish/guestfish-actions.pod:2097
21447 msgid "is-blockdev"
21448 msgstr ""
21449
21450 # type: verbatim
21451 #: ../fish/guestfish-actions.pod:2099
21452 #, no-wrap
21453 msgid ""
21454 " is-blockdev path\n"
21455 "\n"
21456 msgstr ""
21457
21458 # type: textblock
21459 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21460 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21461 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21462 #: ../fish/guestfish-actions.pod:2203
21463 msgid "See also L</stat>."
21464 msgstr ""
21465
21466 # type: =head2
21467 #: ../fish/guestfish-actions.pod:2106
21468 msgid "is-busy"
21469 msgstr ""
21470
21471 # type: verbatim
21472 #: ../fish/guestfish-actions.pod:2108
21473 #, no-wrap
21474 msgid ""
21475 " is-busy\n"
21476 "\n"
21477 msgstr ""
21478
21479 # type: =head2
21480 #: ../fish/guestfish-actions.pod:2115
21481 msgid "is-chardev"
21482 msgstr ""
21483
21484 # type: verbatim
21485 #: ../fish/guestfish-actions.pod:2117
21486 #, no-wrap
21487 msgid ""
21488 " is-chardev path\n"
21489 "\n"
21490 msgstr ""
21491
21492 # type: =head2
21493 #: ../fish/guestfish-actions.pod:2124
21494 msgid "is-config"
21495 msgstr ""
21496
21497 # type: verbatim
21498 #: ../fish/guestfish-actions.pod:2126
21499 #, no-wrap
21500 msgid ""
21501 " is-config\n"
21502 "\n"
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:2133
21507 msgid "is-dir"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:2135
21512 #, no-wrap
21513 msgid ""
21514 " is-dir path\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: =head2
21519 #: ../fish/guestfish-actions.pod:2143
21520 msgid "is-fifo"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #: ../fish/guestfish-actions.pod:2145
21525 #, no-wrap
21526 msgid ""
21527 " is-fifo path\n"
21528 "\n"
21529 msgstr ""
21530
21531 # type: =head2
21532 #: ../fish/guestfish-actions.pod:2152
21533 msgid "is-file"
21534 msgstr ""
21535
21536 # type: verbatim
21537 #: ../fish/guestfish-actions.pod:2154
21538 #, no-wrap
21539 msgid ""
21540 " is-file path\n"
21541 "\n"
21542 msgstr ""
21543
21544 # type: =head2
21545 #: ../fish/guestfish-actions.pod:2162
21546 msgid "is-launching"
21547 msgstr ""
21548
21549 # type: verbatim
21550 #: ../fish/guestfish-actions.pod:2164
21551 #, no-wrap
21552 msgid ""
21553 " is-launching\n"
21554 "\n"
21555 msgstr ""
21556
21557 # type: =head2
21558 #: ../fish/guestfish-actions.pod:2171
21559 msgid "is-lv"
21560 msgstr ""
21561
21562 # type: verbatim
21563 #: ../fish/guestfish-actions.pod:2173
21564 #, no-wrap
21565 msgid ""
21566 " is-lv device\n"
21567 "\n"
21568 msgstr ""
21569
21570 # type: =head2
21571 #: ../fish/guestfish-actions.pod:2178
21572 msgid "is-ready"
21573 msgstr ""
21574
21575 # type: verbatim
21576 #: ../fish/guestfish-actions.pod:2180
21577 #, no-wrap
21578 msgid ""
21579 " is-ready\n"
21580 "\n"
21581 msgstr ""
21582
21583 # type: =head2
21584 #: ../fish/guestfish-actions.pod:2187
21585 msgid "is-socket"
21586 msgstr ""
21587
21588 # type: verbatim
21589 #: ../fish/guestfish-actions.pod:2189
21590 #, no-wrap
21591 msgid ""
21592 " is-socket path\n"
21593 "\n"
21594 msgstr ""
21595
21596 # type: =head2
21597 #: ../fish/guestfish-actions.pod:2196
21598 msgid "is-symlink"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #: ../fish/guestfish-actions.pod:2198
21603 #, no-wrap
21604 msgid ""
21605 " is-symlink path\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:2205
21611 msgid "kill-subprocess"
21612 msgstr ""
21613
21614 # type: verbatim
21615 #: ../fish/guestfish-actions.pod:2207
21616 #, no-wrap
21617 msgid ""
21618 " kill-subprocess\n"
21619 "\n"
21620 msgstr ""
21621
21622 # type: =head2
21623 #: ../fish/guestfish-actions.pod:2211
21624 msgid "launch"
21625 msgstr ""
21626
21627 # type: =head2
21628 #: ../fish/guestfish-actions.pod:2213
21629 msgid "run"
21630 msgstr ""
21631
21632 # type: verbatim
21633 #: ../fish/guestfish-actions.pod:2215
21634 #, no-wrap
21635 msgid ""
21636 " launch\n"
21637 "\n"
21638 msgstr ""
21639
21640 # type: =head2
21641 #: ../fish/guestfish-actions.pod:2223
21642 msgid "lchown"
21643 msgstr ""
21644
21645 # type: verbatim
21646 #: ../fish/guestfish-actions.pod:2225
21647 #, no-wrap
21648 msgid ""
21649 " lchown owner group path\n"
21650 "\n"
21651 msgstr ""
21652
21653 # type: textblock
21654 #: ../fish/guestfish-actions.pod:2227
21655 msgid ""
21656 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21657 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21658 "target."
21659 msgstr ""
21660
21661 # type: =head2
21662 #: ../fish/guestfish-actions.pod:2235
21663 msgid "lgetxattrs"
21664 msgstr ""
21665
21666 # type: verbatim
21667 #: ../fish/guestfish-actions.pod:2237
21668 #, no-wrap
21669 msgid ""
21670 " lgetxattrs path\n"
21671 "\n"
21672 msgstr ""
21673
21674 # type: textblock
21675 #: ../fish/guestfish-actions.pod:2239
21676 msgid ""
21677 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21678 "it returns the extended attributes of the link itself."
21679 msgstr ""
21680
21681 # type: =head2
21682 #: ../fish/guestfish-actions.pod:2243
21683 msgid "list-devices"
21684 msgstr ""
21685
21686 # type: verbatim
21687 #: ../fish/guestfish-actions.pod:2245
21688 #, no-wrap
21689 msgid ""
21690 " list-devices\n"
21691 "\n"
21692 msgstr ""
21693
21694 # type: =head2
21695 #: ../fish/guestfish-actions.pod:2253
21696 msgid "list-filesystems"
21697 msgstr ""
21698
21699 # type: verbatim
21700 #: ../fish/guestfish-actions.pod:2255
21701 #, no-wrap
21702 msgid ""
21703 " list-filesystems\n"
21704 "\n"
21705 msgstr ""
21706
21707 # type: textblock
21708 #: ../fish/guestfish-actions.pod:2274
21709 msgid ""
21710 "This command runs other libguestfs commands, which might include L</mount> "
21711 "and L</umount>, and therefore you should use this soon after launch and only "
21712 "when nothing is mounted."
21713 msgstr ""
21714
21715 # type: textblock
21716 #: ../fish/guestfish-actions.pod:2278
21717 msgid ""
21718 "Not all of the filesystems returned will be mountable.  In particular, swap "
21719 "partitions are returned in the list.  Also this command does not check that "
21720 "each filesystem found is valid and mountable, and some filesystems might be "
21721 "mountable but require special options.  Filesystems may not all belong to a "
21722 "single logical operating system (use L</inspect-os> to look for OSes)."
21723 msgstr ""
21724
21725 # type: =head2
21726 #: ../fish/guestfish-actions.pod:2286
21727 msgid "list-partitions"
21728 msgstr ""
21729
21730 # type: verbatim
21731 #: ../fish/guestfish-actions.pod:2288
21732 #, no-wrap
21733 msgid ""
21734 " list-partitions\n"
21735 "\n"
21736 msgstr ""
21737
21738 # type: textblock
21739 #: ../fish/guestfish-actions.pod:2294
21740 msgid ""
21741 "This does not return logical volumes.  For that you will need to call L</"
21742 "lvs>."
21743 msgstr ""
21744
21745 # type: =head2
21746 #: ../fish/guestfish-actions.pod:2299
21747 msgid "ll"
21748 msgstr ""
21749
21750 # type: verbatim
21751 #: ../fish/guestfish-actions.pod:2301
21752 #, no-wrap
21753 msgid ""
21754 " ll directory\n"
21755 "\n"
21756 msgstr ""
21757
21758 # type: =head2
21759 #: ../fish/guestfish-actions.pod:2309
21760 msgid "ln"
21761 msgstr ""
21762
21763 # type: verbatim
21764 #: ../fish/guestfish-actions.pod:2311
21765 #, no-wrap
21766 msgid ""
21767 " ln target linkname\n"
21768 "\n"
21769 msgstr ""
21770
21771 # type: =head2
21772 #: ../fish/guestfish-actions.pod:2315
21773 msgid "ln-f"
21774 msgstr ""
21775
21776 # type: verbatim
21777 #: ../fish/guestfish-actions.pod:2317
21778 #, no-wrap
21779 msgid ""
21780 " ln-f target linkname\n"
21781 "\n"
21782 msgstr ""
21783
21784 # type: =head2
21785 #: ../fish/guestfish-actions.pod:2322
21786 msgid "ln-s"
21787 msgstr ""
21788
21789 # type: verbatim
21790 #: ../fish/guestfish-actions.pod:2324
21791 #, no-wrap
21792 msgid ""
21793 " ln-s target linkname\n"
21794 "\n"
21795 msgstr ""
21796
21797 # type: =head2
21798 #: ../fish/guestfish-actions.pod:2328
21799 msgid "ln-sf"
21800 msgstr ""
21801
21802 # type: verbatim
21803 #: ../fish/guestfish-actions.pod:2330
21804 #, no-wrap
21805 msgid ""
21806 " ln-sf target linkname\n"
21807 "\n"
21808 msgstr ""
21809
21810 # type: =head2
21811 #: ../fish/guestfish-actions.pod:2335
21812 msgid "lremovexattr"
21813 msgstr ""
21814
21815 # type: verbatim
21816 #: ../fish/guestfish-actions.pod:2337
21817 #, no-wrap
21818 msgid ""
21819 " lremovexattr xattr path\n"
21820 "\n"
21821 msgstr ""
21822
21823 # type: textblock
21824 #: ../fish/guestfish-actions.pod:2339
21825 msgid ""
21826 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21827 "it removes an extended attribute of the link itself."
21828 msgstr ""
21829
21830 # type: =head2
21831 #: ../fish/guestfish-actions.pod:2343
21832 msgid "ls"
21833 msgstr ""
21834
21835 # type: verbatim
21836 #: ../fish/guestfish-actions.pod:2345
21837 #, no-wrap
21838 msgid ""
21839 " ls directory\n"
21840 "\n"
21841 msgstr ""
21842
21843 # type: textblock
21844 #: ../fish/guestfish-actions.pod:2351
21845 msgid ""
21846 "This command is mostly useful for interactive sessions.  Programs should "
21847 "probably use L</readdir> instead."
21848 msgstr ""
21849
21850 # type: =head2
21851 #: ../fish/guestfish-actions.pod:2354
21852 msgid "lsetxattr"
21853 msgstr ""
21854
21855 # type: verbatim
21856 #: ../fish/guestfish-actions.pod:2356
21857 #, no-wrap
21858 msgid ""
21859 " lsetxattr xattr val vallen path\n"
21860 "\n"
21861 msgstr ""
21862
21863 # type: textblock
21864 #: ../fish/guestfish-actions.pod:2358
21865 msgid ""
21866 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21867 "sets an extended attribute of the link itself."
21868 msgstr ""
21869
21870 # type: =head2
21871 #: ../fish/guestfish-actions.pod:2362
21872 msgid "lstat"
21873 msgstr ""
21874
21875 # type: verbatim
21876 #: ../fish/guestfish-actions.pod:2364
21877 #, no-wrap
21878 msgid ""
21879 " lstat path\n"
21880 "\n"
21881 msgstr ""
21882
21883 # type: textblock
21884 #: ../fish/guestfish-actions.pod:2368
21885 msgid ""
21886 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21887 "the link is stat-ed, not the file it refers to."
21888 msgstr ""
21889
21890 # type: =head2
21891 #: ../fish/guestfish-actions.pod:2374
21892 msgid "lstatlist"
21893 msgstr ""
21894
21895 # type: verbatim
21896 #: ../fish/guestfish-actions.pod:2376
21897 #, no-wrap
21898 msgid ""
21899 " lstatlist path 'names ...'\n"
21900 "\n"
21901 msgstr ""
21902
21903 # type: textblock
21904 #: ../fish/guestfish-actions.pod:2378
21905 msgid ""
21906 "This call allows you to perform the L</lstat> operation on multiple files, "
21907 "where all files are in the directory C<path>.  C<names> is the list of files "
21908 "from this directory."
21909 msgstr ""
21910
21911 # type: textblock
21912 #: ../fish/guestfish-actions.pod:2387
21913 msgid ""
21914 "This call is intended for programs that want to efficiently list a directory "
21915 "contents without making many round-trips.  See also L</lxattrlist> for a "
21916 "similarly efficient call for getting extended attributes.  Very long "
21917 "directory listings might cause the protocol message size to be exceeded, "
21918 "causing this call to fail.  The caller must split up such requests into "
21919 "smaller groups of names."
21920 msgstr ""
21921
21922 # type: =head2
21923 #: ../fish/guestfish-actions.pod:2395
21924 msgid "luks-add-key"
21925 msgstr ""
21926
21927 # type: verbatim
21928 #: ../fish/guestfish-actions.pod:2397
21929 #, no-wrap
21930 msgid ""
21931 " luks-add-key device keyslot\n"
21932 "\n"
21933 msgstr ""
21934
21935 # type: textblock
21936 #: ../fish/guestfish-actions.pod:2404
21937 msgid ""
21938 "Note that if C<keyslot> already contains a key, then this command will "
21939 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21940 msgstr ""
21941
21942 # type: textblock
21943 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21944 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21945 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21946 msgid ""
21947 "This command has one or more key or passphrase parameters.  Guestfish will "
21948 "prompt for these separately."
21949 msgstr ""
21950
21951 # type: =head2
21952 #: ../fish/guestfish-actions.pod:2411
21953 msgid "luks-close"
21954 msgstr ""
21955
21956 # type: verbatim
21957 #: ../fish/guestfish-actions.pod:2413
21958 #, no-wrap
21959 msgid ""
21960 " luks-close device\n"
21961 "\n"
21962 msgstr ""
21963
21964 # type: textblock
21965 #: ../fish/guestfish-actions.pod:2415
21966 msgid ""
21967 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21968 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21969 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21970 "block device."
21971 msgstr ""
21972
21973 # type: =head2
21974 #: ../fish/guestfish-actions.pod:2421
21975 msgid "luks-format"
21976 msgstr ""
21977
21978 # type: verbatim
21979 #: ../fish/guestfish-actions.pod:2423
21980 #, no-wrap
21981 msgid ""
21982 " luks-format device keyslot\n"
21983 "\n"
21984 msgstr ""
21985
21986 # type: =head2
21987 #: ../fish/guestfish-actions.pod:2436
21988 msgid "luks-format-cipher"
21989 msgstr ""
21990
21991 # type: verbatim
21992 #: ../fish/guestfish-actions.pod:2438
21993 #, no-wrap
21994 msgid ""
21995 " luks-format-cipher device keyslot cipher\n"
21996 "\n"
21997 msgstr ""
21998
21999 # type: textblock
22000 #: ../fish/guestfish-actions.pod:2440
22001 msgid ""
22002 "This command is the same as L</luks-format> but it also allows you to set "
22003 "the C<cipher> used."
22004 msgstr ""
22005
22006 # type: =head2
22007 #: ../fish/guestfish-actions.pod:2449
22008 msgid "luks-kill-slot"
22009 msgstr ""
22010
22011 # type: verbatim
22012 #: ../fish/guestfish-actions.pod:2451
22013 #, no-wrap
22014 msgid ""
22015 " luks-kill-slot device keyslot\n"
22016 "\n"
22017 msgstr ""
22018
22019 # type: =head2
22020 #: ../fish/guestfish-actions.pod:2460
22021 msgid "luks-open"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #: ../fish/guestfish-actions.pod:2462
22026 #, no-wrap
22027 msgid ""
22028 " luks-open device mapname\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: textblock
22033 #: ../fish/guestfish-actions.pod:2476
22034 msgid ""
22035 "If this block device contains LVM volume groups, then calling L</vgscan> "
22036 "followed by L</vg-activate-all> will make them visible."
22037 msgstr ""
22038
22039 # type: =head2
22040 #: ../fish/guestfish-actions.pod:2483
22041 msgid "luks-open-ro"
22042 msgstr ""
22043
22044 # type: verbatim
22045 #: ../fish/guestfish-actions.pod:2485
22046 #, no-wrap
22047 msgid ""
22048 " luks-open-ro device mapname\n"
22049 "\n"
22050 msgstr ""
22051
22052 # type: textblock
22053 #: ../fish/guestfish-actions.pod:2487
22054 msgid ""
22055 "This is the same as L</luks-open> except that a read-only mapping is created."
22056 msgstr ""
22057
22058 # type: =head2
22059 #: ../fish/guestfish-actions.pod:2493
22060 msgid "lvcreate"
22061 msgstr ""
22062
22063 # type: verbatim
22064 #: ../fish/guestfish-actions.pod:2495
22065 #, no-wrap
22066 msgid ""
22067 " lvcreate logvol volgroup mbytes\n"
22068 "\n"
22069 msgstr ""
22070
22071 # type: =head2
22072 #: ../fish/guestfish-actions.pod:2500
22073 msgid "lvm-canonical-lv-name"
22074 msgstr ""
22075
22076 # type: verbatim
22077 #: ../fish/guestfish-actions.pod:2502
22078 #, no-wrap
22079 msgid ""
22080 " lvm-canonical-lv-name lvname\n"
22081 "\n"
22082 msgstr ""
22083
22084 # type: textblock
22085 #: ../fish/guestfish-actions.pod:2511
22086 msgid "See also L</is-lv>."
22087 msgstr ""
22088
22089 # type: =head2
22090 #: ../fish/guestfish-actions.pod:2513
22091 msgid "lvm-clear-filter"
22092 msgstr ""
22093
22094 # type: verbatim
22095 #: ../fish/guestfish-actions.pod:2515
22096 #, no-wrap
22097 msgid ""
22098 " lvm-clear-filter\n"
22099 "\n"
22100 msgstr ""
22101
22102 # type: textblock
22103 #: ../fish/guestfish-actions.pod:2517
22104 msgid ""
22105 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22106 "block device."
22107 msgstr ""
22108
22109 # type: =head2
22110 #: ../fish/guestfish-actions.pod:2523
22111 msgid "lvm-remove-all"
22112 msgstr ""
22113
22114 # type: verbatim
22115 #: ../fish/guestfish-actions.pod:2525
22116 #, no-wrap
22117 msgid ""
22118 " lvm-remove-all\n"
22119 "\n"
22120 msgstr ""
22121
22122 # type: =head2
22123 #: ../fish/guestfish-actions.pod:2533
22124 msgid "lvm-set-filter"
22125 msgstr ""
22126
22127 # type: verbatim
22128 #: ../fish/guestfish-actions.pod:2535
22129 #, no-wrap
22130 msgid ""
22131 " lvm-set-filter 'devices ...'\n"
22132 "\n"
22133 msgstr ""
22134
22135 # type: =head2
22136 #: ../fish/guestfish-actions.pod:2560
22137 msgid "lvremove"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fish/guestfish-actions.pod:2562
22142 #, no-wrap
22143 msgid ""
22144 " lvremove device\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: =head2
22149 #: ../fish/guestfish-actions.pod:2570
22150 msgid "lvrename"
22151 msgstr ""
22152
22153 # type: verbatim
22154 #: ../fish/guestfish-actions.pod:2572
22155 #, no-wrap
22156 msgid ""
22157 " lvrename logvol newlogvol\n"
22158 "\n"
22159 msgstr ""
22160
22161 # type: =head2
22162 #: ../fish/guestfish-actions.pod:2576
22163 msgid "lvresize"
22164 msgstr ""
22165
22166 # type: verbatim
22167 #: ../fish/guestfish-actions.pod:2578
22168 #, no-wrap
22169 msgid ""
22170 " lvresize device mbytes\n"
22171 "\n"
22172 msgstr ""
22173
22174 # type: =head2
22175 #: ../fish/guestfish-actions.pod:2584
22176 msgid "lvresize-free"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-actions.pod:2586
22181 #, no-wrap
22182 msgid ""
22183 " lvresize-free lv percent\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: =head2
22188 #: ../fish/guestfish-actions.pod:2594
22189 msgid "lvs"
22190 msgstr ""
22191
22192 # type: verbatim
22193 #: ../fish/guestfish-actions.pod:2596
22194 #, no-wrap
22195 msgid ""
22196 " lvs\n"
22197 "\n"
22198 msgstr ""
22199
22200 # type: textblock
22201 #: ../fish/guestfish-actions.pod:2604
22202 msgid "See also L</lvs-full>, L</list-filesystems>."
22203 msgstr ""
22204
22205 # type: =head2
22206 #: ../fish/guestfish-actions.pod:2606
22207 msgid "lvs-full"
22208 msgstr ""
22209
22210 # type: verbatim
22211 #: ../fish/guestfish-actions.pod:2608
22212 #, no-wrap
22213 msgid ""
22214 " lvs-full\n"
22215 "\n"
22216 msgstr ""
22217
22218 # type: =head2
22219 #: ../fish/guestfish-actions.pod:2613
22220 msgid "lvuuid"
22221 msgstr ""
22222
22223 # type: verbatim
22224 #: ../fish/guestfish-actions.pod:2615
22225 #, no-wrap
22226 msgid ""
22227 " lvuuid device\n"
22228 "\n"
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:2619
22233 msgid "lxattrlist"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-actions.pod:2621
22238 #, no-wrap
22239 msgid ""
22240 " lxattrlist path 'names ...'\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: textblock
22245 #: ../fish/guestfish-actions.pod:2637
22246 msgid ""
22247 "This call is intended for programs that want to efficiently list a directory "
22248 "contents without making many round-trips.  See also L</lstatlist> for a "
22249 "similarly efficient call for getting standard stats.  Very long directory "
22250 "listings might cause the protocol message size to be exceeded, causing this "
22251 "call to fail.  The caller must split up such requests into smaller groups of "
22252 "names."
22253 msgstr ""
22254
22255 # type: =head2
22256 #: ../fish/guestfish-actions.pod:2645
22257 msgid "mkdir"
22258 msgstr ""
22259
22260 # type: verbatim
22261 #: ../fish/guestfish-actions.pod:2647
22262 #, no-wrap
22263 msgid ""
22264 " mkdir path\n"
22265 "\n"
22266 msgstr ""
22267
22268 # type: =head2
22269 #: ../fish/guestfish-actions.pod:2651
22270 msgid "mkdir-mode"
22271 msgstr ""
22272
22273 # type: verbatim
22274 #: ../fish/guestfish-actions.pod:2653
22275 #, no-wrap
22276 msgid ""
22277 " mkdir-mode path mode\n"
22278 "\n"
22279 msgstr ""
22280
22281 # type: textblock
22282 #: ../fish/guestfish-actions.pod:2662
22283 msgid "See also L</mkdir>, L</umask>"
22284 msgstr ""
22285
22286 # type: =head2
22287 #: ../fish/guestfish-actions.pod:2664
22288 msgid "mkdir-p"
22289 msgstr ""
22290
22291 # type: verbatim
22292 #: ../fish/guestfish-actions.pod:2666
22293 #, no-wrap
22294 msgid ""
22295 " mkdir-p path\n"
22296 "\n"
22297 msgstr ""
22298
22299 # type: =head2
22300 #: ../fish/guestfish-actions.pod:2671
22301 msgid "mkdtemp"
22302 msgstr ""
22303
22304 # type: verbatim
22305 #: ../fish/guestfish-actions.pod:2673
22306 #, no-wrap
22307 msgid ""
22308 " mkdtemp template\n"
22309 "\n"
22310 msgstr ""
22311
22312 # type: =head2
22313 #: ../fish/guestfish-actions.pod:2694
22314 msgid "mke2fs-J"
22315 msgstr ""
22316
22317 # type: verbatim
22318 #: ../fish/guestfish-actions.pod:2696
22319 #, no-wrap
22320 msgid ""
22321 " mke2fs-J fstype blocksize device journal\n"
22322 "\n"
22323 msgstr ""
22324
22325 # type: textblock
22326 #: ../fish/guestfish-actions.pod:2704
22327 msgid "See also L</mke2journal>."
22328 msgstr ""
22329
22330 # type: =head2
22331 #: ../fish/guestfish-actions.pod:2706
22332 msgid "mke2fs-JL"
22333 msgstr ""
22334
22335 # type: verbatim
22336 #: ../fish/guestfish-actions.pod:2708
22337 #, no-wrap
22338 msgid ""
22339 " mke2fs-JL fstype blocksize device label\n"
22340 "\n"
22341 msgstr ""
22342
22343 # type: textblock
22344 #: ../fish/guestfish-actions.pod:2713
22345 msgid "See also L</mke2journal-L>."
22346 msgstr ""
22347
22348 # type: =head2
22349 #: ../fish/guestfish-actions.pod:2715
22350 msgid "mke2fs-JU"
22351 msgstr ""
22352
22353 # type: verbatim
22354 #: ../fish/guestfish-actions.pod:2717
22355 #, no-wrap
22356 msgid ""
22357 " mke2fs-JU fstype blocksize device uuid\n"
22358 "\n"
22359 msgstr ""
22360
22361 # type: textblock
22362 #: ../fish/guestfish-actions.pod:2722
22363 msgid "See also L</mke2journal-U>."
22364 msgstr ""
22365
22366 # type: =head2
22367 #: ../fish/guestfish-actions.pod:2724
22368 msgid "mke2journal"
22369 msgstr ""
22370
22371 # type: verbatim
22372 #: ../fish/guestfish-actions.pod:2726
22373 #, no-wrap
22374 msgid ""
22375 " mke2journal blocksize device\n"
22376 "\n"
22377 msgstr ""
22378
22379 # type: =head2
22380 #: ../fish/guestfish-actions.pod:2733
22381 msgid "mke2journal-L"
22382 msgstr ""
22383
22384 # type: verbatim
22385 #: ../fish/guestfish-actions.pod:2735
22386 #, no-wrap
22387 msgid ""
22388 " mke2journal-L blocksize label device\n"
22389 "\n"
22390 msgstr ""
22391
22392 # type: =head2
22393 #: ../fish/guestfish-actions.pod:2739
22394 msgid "mke2journal-U"
22395 msgstr ""
22396
22397 # type: verbatim
22398 #: ../fish/guestfish-actions.pod:2741
22399 #, no-wrap
22400 msgid ""
22401 " mke2journal-U blocksize uuid device\n"
22402 "\n"
22403 msgstr ""
22404
22405 # type: =head2
22406 #: ../fish/guestfish-actions.pod:2745
22407 msgid "mkfifo"
22408 msgstr ""
22409
22410 # type: verbatim
22411 #: ../fish/guestfish-actions.pod:2747
22412 #, no-wrap
22413 msgid ""
22414 " mkfifo mode path\n"
22415 "\n"
22416 msgstr ""
22417
22418 # type: textblock
22419 #: ../fish/guestfish-actions.pod:2749
22420 msgid ""
22421 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22422 "is just a convenient wrapper around L</mknod>."
22423 msgstr ""
22424
22425 # type: =head2
22426 #: ../fish/guestfish-actions.pod:2755
22427 msgid "mkfs"
22428 msgstr ""
22429
22430 # type: verbatim
22431 #: ../fish/guestfish-actions.pod:2757
22432 #, no-wrap
22433 msgid ""
22434 " mkfs fstype device\n"
22435 "\n"
22436 msgstr ""
22437
22438 # type: =head2
22439 #: ../fish/guestfish-actions.pod:2763
22440 msgid "mkfs-b"
22441 msgstr ""
22442
22443 # type: verbatim
22444 #: ../fish/guestfish-actions.pod:2765
22445 #, no-wrap
22446 msgid ""
22447 " mkfs-b fstype blocksize device\n"
22448 "\n"
22449 msgstr ""
22450
22451 # type: textblock
22452 #: ../fish/guestfish-actions.pod:2767
22453 msgid ""
22454 "This call is similar to L</mkfs>, but it allows you to control the block "
22455 "size of the resulting filesystem.  Supported block sizes depend on the "
22456 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22457 msgstr ""
22458
22459 # type: =head2
22460 #: ../fish/guestfish-actions.pod:2775
22461 msgid "mkmountpoint"
22462 msgstr ""
22463
22464 # type: verbatim
22465 #: ../fish/guestfish-actions.pod:2777
22466 #, no-wrap
22467 msgid ""
22468 " mkmountpoint exemptpath\n"
22469 "\n"
22470 msgstr ""
22471
22472 # type: textblock
22473 #: ../fish/guestfish-actions.pod:2779
22474 msgid ""
22475 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22476 "to create extra mountpoints before mounting the first filesystem."
22477 msgstr ""
22478
22479 # type: textblock
22480 #: ../fish/guestfish-actions.pod:2803
22481 msgid ""
22482 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22483 "unexpected errors if you try to mix these calls.  It is safest to manually "
22484 "unmount filesystems and remove mountpoints after use."
22485 msgstr ""
22486
22487 # type: textblock
22488 #: ../fish/guestfish-actions.pod:2807
22489 msgid ""
22490 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22491 "for this to work for manual mountpoints, you must ensure that the innermost "
22492 "mountpoints have the longest pathnames, as in the example code above."
22493 msgstr ""
22494
22495 # type: textblock
22496 #: ../fish/guestfish-actions.pod:2814
22497 msgid ""
22498 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22499 "that L</umount-all> is called when the handle is closed which can also "
22500 "trigger these issues."
22501 msgstr ""
22502
22503 # type: =head2
22504 #: ../fish/guestfish-actions.pod:2818
22505 msgid "mknod"
22506 msgstr ""
22507
22508 # type: verbatim
22509 #: ../fish/guestfish-actions.pod:2820
22510 #, no-wrap
22511 msgid ""
22512 " mknod mode devmajor devminor path\n"
22513 "\n"
22514 msgstr ""
22515
22516 # type: textblock
22517 #: ../fish/guestfish-actions.pod:2830
22518 msgid ""
22519 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22520 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22521 "regular file).  These constants are available in the standard Linux header "
22522 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22523 "wrappers around this command which bitwise OR in the appropriate constant "
22524 "for you."
22525 msgstr ""
22526
22527 # type: =head2
22528 #: ../fish/guestfish-actions.pod:2840
22529 msgid "mknod-b"
22530 msgstr ""
22531
22532 # type: verbatim
22533 #: ../fish/guestfish-actions.pod:2842
22534 #, no-wrap
22535 msgid ""
22536 " mknod-b mode devmajor devminor path\n"
22537 "\n"
22538 msgstr ""
22539
22540 # type: textblock
22541 #: ../fish/guestfish-actions.pod:2844
22542 msgid ""
22543 "This call creates a block device node called C<path> with mode C<mode> and "
22544 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22545 "wrapper around L</mknod>."
22546 msgstr ""
22547
22548 # type: =head2
22549 #: ../fish/guestfish-actions.pod:2850
22550 msgid "mknod-c"
22551 msgstr ""
22552
22553 # type: verbatim
22554 #: ../fish/guestfish-actions.pod:2852
22555 #, no-wrap
22556 msgid ""
22557 " mknod-c mode devmajor devminor path\n"
22558 "\n"
22559 msgstr ""
22560
22561 # type: textblock
22562 #: ../fish/guestfish-actions.pod:2854
22563 msgid ""
22564 "This call creates a char device node called C<path> with mode C<mode> and "
22565 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22566 "wrapper around L</mknod>."
22567 msgstr ""
22568
22569 # type: =head2
22570 #: ../fish/guestfish-actions.pod:2860
22571 msgid "mkswap"
22572 msgstr ""
22573
22574 # type: verbatim
22575 #: ../fish/guestfish-actions.pod:2862
22576 #, no-wrap
22577 msgid ""
22578 " mkswap device\n"
22579 "\n"
22580 msgstr ""
22581
22582 # type: =head2
22583 #: ../fish/guestfish-actions.pod:2866
22584 msgid "mkswap-L"
22585 msgstr ""
22586
22587 # type: verbatim
22588 #: ../fish/guestfish-actions.pod:2868
22589 #, no-wrap
22590 msgid ""
22591 " mkswap-L label device\n"
22592 "\n"
22593 msgstr ""
22594
22595 # type: =head2
22596 #: ../fish/guestfish-actions.pod:2876
22597 msgid "mkswap-U"
22598 msgstr ""
22599
22600 # type: verbatim
22601 #: ../fish/guestfish-actions.pod:2878
22602 #, no-wrap
22603 msgid ""
22604 " mkswap-U uuid device\n"
22605 "\n"
22606 msgstr ""
22607
22608 # type: =head2
22609 #: ../fish/guestfish-actions.pod:2882
22610 msgid "mkswap-file"
22611 msgstr ""
22612
22613 # type: verbatim
22614 #: ../fish/guestfish-actions.pod:2884
22615 #, no-wrap
22616 msgid ""
22617 " mkswap-file path\n"
22618 "\n"
22619 msgstr ""
22620
22621 # type: textblock
22622 #: ../fish/guestfish-actions.pod:2888
22623 msgid ""
22624 "This command just writes a swap file signature to an existing file.  To "
22625 "create the file itself, use something like L</fallocate>."
22626 msgstr ""
22627
22628 # type: =head2
22629 #: ../fish/guestfish-actions.pod:2891
22630 msgid "modprobe"
22631 msgstr ""
22632
22633 # type: verbatim
22634 #: ../fish/guestfish-actions.pod:2893
22635 #, no-wrap
22636 msgid ""
22637 " modprobe modulename\n"
22638 "\n"
22639 msgstr ""
22640
22641 # type: =head2
22642 #: ../fish/guestfish-actions.pod:2900
22643 msgid "mount"
22644 msgstr ""
22645
22646 # type: verbatim
22647 #: ../fish/guestfish-actions.pod:2902
22648 #, no-wrap
22649 msgid ""
22650 " mount device mountpoint\n"
22651 "\n"
22652 msgstr ""
22653
22654 # type: textblock
22655 #: ../fish/guestfish-actions.pod:2918
22656 msgid ""
22657 "B<Important note:> When you use this call, the filesystem options C<sync> "
22658 "and C<noatime> are set implicitly.  This was originally done because we "
22659 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22660 "very large negative performance impact and negligible effect on "
22661 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22662 "code that needs performance, and instead use L</mount-options> (use an empty "
22663 "string for the first parameter if you don't want any options)."
22664 msgstr ""
22665
22666 # type: =head2
22667 #: ../fish/guestfish-actions.pod:2928
22668 msgid "mount-loop"
22669 msgstr ""
22670
22671 # type: verbatim
22672 #: ../fish/guestfish-actions.pod:2930
22673 #, no-wrap
22674 msgid ""
22675 " mount-loop file mountpoint\n"
22676 "\n"
22677 msgstr ""
22678
22679 # type: =head2
22680 #: ../fish/guestfish-actions.pod:2936
22681 msgid "mount-options"
22682 msgstr ""
22683
22684 # type: verbatim
22685 #: ../fish/guestfish-actions.pod:2938
22686 #, no-wrap
22687 msgid ""
22688 " mount-options options device mountpoint\n"
22689 "\n"
22690 msgstr ""
22691
22692 # type: textblock
22693 #: ../fish/guestfish-actions.pod:2940
22694 msgid ""
22695 "This is the same as the L</mount> command, but it allows you to set the "
22696 "mount options as for the L<mount(8)> I<-o> flag."
22697 msgstr ""
22698
22699 # type: =head2
22700 #: ../fish/guestfish-actions.pod:2948
22701 msgid "mount-ro"
22702 msgstr ""
22703
22704 # type: verbatim
22705 #: ../fish/guestfish-actions.pod:2950
22706 #, no-wrap
22707 msgid ""
22708 " mount-ro device mountpoint\n"
22709 "\n"
22710 msgstr ""
22711
22712 # type: textblock
22713 #: ../fish/guestfish-actions.pod:2952
22714 msgid ""
22715 "This is the same as the L</mount> command, but it mounts the filesystem with "
22716 "the read-only (I<-o ro>) flag."
22717 msgstr ""
22718
22719 # type: =head2
22720 #: ../fish/guestfish-actions.pod:2955
22721 msgid "mount-vfs"
22722 msgstr ""
22723
22724 # type: verbatim
22725 #: ../fish/guestfish-actions.pod:2957
22726 #, no-wrap
22727 msgid ""
22728 " mount-vfs options vfstype device mountpoint\n"
22729 "\n"
22730 msgstr ""
22731
22732 # type: textblock
22733 #: ../fish/guestfish-actions.pod:2959
22734 msgid ""
22735 "This is the same as the L</mount> command, but it allows you to set both the "
22736 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22737 msgstr ""
22738
22739 # type: =head2
22740 #: ../fish/guestfish-actions.pod:2963
22741 msgid "mountpoints"
22742 msgstr ""
22743
22744 # type: verbatim
22745 #: ../fish/guestfish-actions.pod:2965
22746 #, no-wrap
22747 msgid ""
22748 " mountpoints\n"
22749 "\n"
22750 msgstr ""
22751
22752 # type: textblock
22753 #: ../fish/guestfish-actions.pod:2967
22754 msgid ""
22755 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22756 "This one returns a hash table (map) of device name to directory where the "
22757 "device is mounted."
22758 msgstr ""
22759
22760 # type: =head2
22761 #: ../fish/guestfish-actions.pod:2971
22762 msgid "mounts"
22763 msgstr ""
22764
22765 # type: verbatim
22766 #: ../fish/guestfish-actions.pod:2973
22767 #, no-wrap
22768 msgid ""
22769 " mounts\n"
22770 "\n"
22771 msgstr ""
22772
22773 # type: textblock
22774 #: ../fish/guestfish-actions.pod:2980
22775 msgid "See also: L</mountpoints>"
22776 msgstr ""
22777
22778 # type: =head2
22779 #: ../fish/guestfish-actions.pod:2982
22780 msgid "mv"
22781 msgstr ""
22782
22783 # type: verbatim
22784 #: ../fish/guestfish-actions.pod:2984
22785 #, no-wrap
22786 msgid ""
22787 " mv src dest\n"
22788 "\n"
22789 msgstr ""
22790
22791 # type: =head2
22792 #: ../fish/guestfish-actions.pod:2989
22793 msgid "ntfs-3g-probe"
22794 msgstr ""
22795
22796 # type: verbatim
22797 #: ../fish/guestfish-actions.pod:2991
22798 #, no-wrap
22799 msgid ""
22800 " ntfs-3g-probe true|false device\n"
22801 "\n"
22802 msgstr ""
22803
22804 # type: =head2
22805 #: ../fish/guestfish-actions.pod:3005
22806 msgid "ntfsresize"
22807 msgstr ""
22808
22809 # type: verbatim
22810 #: ../fish/guestfish-actions.pod:3007
22811 #, no-wrap
22812 msgid ""
22813 " ntfsresize device\n"
22814 "\n"
22815 msgstr ""
22816
22817 # type: =head2
22818 #: ../fish/guestfish-actions.pod:3013
22819 msgid "ntfsresize-size"
22820 msgstr ""
22821
22822 # type: verbatim
22823 #: ../fish/guestfish-actions.pod:3015
22824 #, no-wrap
22825 msgid ""
22826 " ntfsresize-size device size\n"
22827 "\n"
22828 msgstr ""
22829
22830 # type: textblock
22831 #: ../fish/guestfish-actions.pod:3017
22832 msgid ""
22833 "This command is the same as L</ntfsresize> except that it allows you to "
22834 "specify the new size (in bytes) explicitly."
22835 msgstr ""
22836
22837 # type: =head2
22838 #: ../fish/guestfish-actions.pod:3020
22839 msgid "part-add"
22840 msgstr ""
22841
22842 # type: verbatim
22843 #: ../fish/guestfish-actions.pod:3022
22844 #, no-wrap
22845 msgid ""
22846 " part-add device prlogex startsect endsect\n"
22847 "\n"
22848 msgstr ""
22849
22850 # type: textblock
22851 #: ../fish/guestfish-actions.pod:3024
22852 msgid ""
22853 "This command adds a partition to C<device>.  If there is no partition table "
22854 "on the device, call L</part-init> first."
22855 msgstr ""
22856
22857 # type: textblock
22858 #: ../fish/guestfish-actions.pod:3036
22859 msgid ""
22860 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22861 "part-disk> to do that."
22862 msgstr ""
22863
22864 # type: =head2
22865 #: ../fish/guestfish-actions.pod:3039
22866 msgid "part-del"
22867 msgstr ""
22868
22869 # type: verbatim
22870 #: ../fish/guestfish-actions.pod:3041
22871 #, no-wrap
22872 msgid ""
22873 " part-del device partnum\n"
22874 "\n"
22875 msgstr ""
22876
22877 # type: =head2
22878 #: ../fish/guestfish-actions.pod:3049
22879 msgid "part-disk"
22880 msgstr ""
22881
22882 # type: verbatim
22883 #: ../fish/guestfish-actions.pod:3051
22884 #, no-wrap
22885 msgid ""
22886 " part-disk device parttype\n"
22887 "\n"
22888 msgstr ""
22889
22890 # type: textblock
22891 #: ../fish/guestfish-actions.pod:3053
22892 msgid ""
22893 "This command is simply a combination of L</part-init> followed by L</part-"
22894 "add> to create a single primary partition covering the whole disk."
22895 msgstr ""
22896
22897 # type: textblock
22898 #: ../fish/guestfish-actions.pod:3057
22899 msgid ""
22900 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22901 "possible values are described in L</part-init>."
22902 msgstr ""
22903
22904 # type: =head2
22905 #: ../fish/guestfish-actions.pod:3063
22906 msgid "part-get-bootable"
22907 msgstr ""
22908
22909 # type: verbatim
22910 #: ../fish/guestfish-actions.pod:3065
22911 #, no-wrap
22912 msgid ""
22913 " part-get-bootable device partnum\n"
22914 "\n"
22915 msgstr ""
22916
22917 # type: textblock
22918 #: ../fish/guestfish-actions.pod:3070
22919 msgid "See also L</part-set-bootable>."
22920 msgstr ""
22921
22922 # type: =head2
22923 #: ../fish/guestfish-actions.pod:3072
22924 msgid "part-get-mbr-id"
22925 msgstr ""
22926
22927 # type: verbatim
22928 #: ../fish/guestfish-actions.pod:3074
22929 #, no-wrap
22930 msgid ""
22931 " part-get-mbr-id device partnum\n"
22932 "\n"
22933 msgstr ""
22934
22935 # type: textblock
22936 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22937 msgid ""
22938 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22939 "undefined results for other partition table types (see L</part-get-"
22940 "parttype>)."
22941 msgstr ""
22942
22943 # type: =head2
22944 #: ../fish/guestfish-actions.pod:3083
22945 msgid "part-get-parttype"
22946 msgstr ""
22947
22948 # type: verbatim
22949 #: ../fish/guestfish-actions.pod:3085
22950 #, no-wrap
22951 msgid ""
22952 " part-get-parttype device\n"
22953 "\n"
22954 msgstr ""
22955
22956 # type: textblock
22957 #: ../fish/guestfish-actions.pod:3090
22958 msgid ""
22959 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22960 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22961 "possible, although unusual.  See L</part-init> for a full list."
22962 msgstr ""
22963
22964 # type: =head2
22965 #: ../fish/guestfish-actions.pod:3095
22966 msgid "part-init"
22967 msgstr ""
22968
22969 # type: verbatim
22970 #: ../fish/guestfish-actions.pod:3097
22971 #, no-wrap
22972 msgid ""
22973 " part-init device parttype\n"
22974 "\n"
22975 msgstr ""
22976
22977 # type: textblock
22978 #: ../fish/guestfish-actions.pod:3103
22979 msgid ""
22980 "Initially there are no partitions.  Following this, you should call L</part-"
22981 "add> for each partition required."
22982 msgstr ""
22983
22984 # type: =head2
22985 #: ../fish/guestfish-actions.pod:3166
22986 msgid "part-list"
22987 msgstr ""
22988
22989 # type: verbatim
22990 #: ../fish/guestfish-actions.pod:3168
22991 #, no-wrap
22992 msgid ""
22993 " part-list device\n"
22994 "\n"
22995 msgstr ""
22996
22997 # type: textblock
22998 #: ../fish/guestfish-actions.pod:3183
22999 msgid ""
23000 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23001 "the device's sector size, see L</blockdev-getss>."
23002 msgstr ""
23003
23004 # type: =head2
23005 #: ../fish/guestfish-actions.pod:3196
23006 msgid "part-set-bootable"
23007 msgstr ""
23008
23009 # type: verbatim
23010 #: ../fish/guestfish-actions.pod:3198
23011 #, no-wrap
23012 msgid ""
23013 " part-set-bootable device partnum true|false\n"
23014 "\n"
23015 msgstr ""
23016
23017 # type: =head2
23018 #: ../fish/guestfish-actions.pod:3207
23019 msgid "part-set-mbr-id"
23020 msgstr ""
23021
23022 # type: verbatim
23023 #: ../fish/guestfish-actions.pod:3209
23024 #, no-wrap
23025 msgid ""
23026 " part-set-mbr-id device partnum idbyte\n"
23027 "\n"
23028 msgstr ""
23029
23030 # type: =head2
23031 #: ../fish/guestfish-actions.pod:3221
23032 msgid "part-set-name"
23033 msgstr ""
23034
23035 # type: verbatim
23036 #: ../fish/guestfish-actions.pod:3223
23037 #, no-wrap
23038 msgid ""
23039 " part-set-name device partnum name\n"
23040 "\n"
23041 msgstr ""
23042
23043 # type: =head2
23044 #: ../fish/guestfish-actions.pod:3231
23045 msgid "part-to-dev"
23046 msgstr ""
23047
23048 # type: verbatim
23049 #: ../fish/guestfish-actions.pod:3233
23050 #, no-wrap
23051 msgid ""
23052 " part-to-dev partition\n"
23053 "\n"
23054 msgstr ""
23055
23056 # type: textblock
23057 #: ../fish/guestfish-actions.pod:3239
23058 msgid ""
23059 "The named partition must exist, for example as a string returned from L</"
23060 "list-partitions>."
23061 msgstr ""
23062
23063 # type: =head2
23064 #: ../fish/guestfish-actions.pod:3242
23065 msgid "ping-daemon"
23066 msgstr ""
23067
23068 # type: verbatim
23069 #: ../fish/guestfish-actions.pod:3244
23070 #, no-wrap
23071 msgid ""
23072 " ping-daemon\n"
23073 "\n"
23074 msgstr ""
23075
23076 # type: =head2
23077 #: ../fish/guestfish-actions.pod:3251
23078 msgid "pread"
23079 msgstr ""
23080
23081 # type: verbatim
23082 #: ../fish/guestfish-actions.pod:3253
23083 #, no-wrap
23084 msgid ""
23085 " pread path count offset\n"
23086 "\n"
23087 msgstr ""
23088
23089 # type: textblock
23090 #: ../fish/guestfish-actions.pod:3261
23091 msgid "See also L</pwrite>, L</pread-device>."
23092 msgstr ""
23093
23094 # type: =head2
23095 #: ../fish/guestfish-actions.pod:3266
23096 msgid "pread-device"
23097 msgstr ""
23098
23099 # type: verbatim
23100 #: ../fish/guestfish-actions.pod:3268
23101 #, no-wrap
23102 msgid ""
23103 " pread-device device count offset\n"
23104 "\n"
23105 msgstr ""
23106
23107 # type: textblock
23108 #: ../fish/guestfish-actions.pod:3276
23109 msgid "See also L</pread>."
23110 msgstr ""
23111
23112 # type: =head2
23113 #: ../fish/guestfish-actions.pod:3281
23114 msgid "pvcreate"
23115 msgstr ""
23116
23117 # type: verbatim
23118 #: ../fish/guestfish-actions.pod:3283
23119 #, no-wrap
23120 msgid ""
23121 " pvcreate device\n"
23122 "\n"
23123 msgstr ""
23124
23125 # type: =head2
23126 #: ../fish/guestfish-actions.pod:3289
23127 msgid "pvremove"
23128 msgstr ""
23129
23130 # type: verbatim
23131 #: ../fish/guestfish-actions.pod:3291
23132 #, no-wrap
23133 msgid ""
23134 " pvremove device\n"
23135 "\n"
23136 msgstr ""
23137
23138 # type: =head2
23139 #: ../fish/guestfish-actions.pod:3300
23140 msgid "pvresize"
23141 msgstr ""
23142
23143 # type: verbatim
23144 #: ../fish/guestfish-actions.pod:3302
23145 #, no-wrap
23146 msgid ""
23147 " pvresize device\n"
23148 "\n"
23149 msgstr ""
23150
23151 # type: =head2
23152 #: ../fish/guestfish-actions.pod:3307
23153 msgid "pvresize-size"
23154 msgstr ""
23155
23156 # type: verbatim
23157 #: ../fish/guestfish-actions.pod:3309
23158 #, no-wrap
23159 msgid ""
23160 " pvresize-size device size\n"
23161 "\n"
23162 msgstr ""
23163
23164 # type: textblock
23165 #: ../fish/guestfish-actions.pod:3311
23166 msgid ""
23167 "This command is the same as L</pvresize> except that it allows you to "
23168 "specify the new size (in bytes) explicitly."
23169 msgstr ""
23170
23171 # type: =head2
23172 #: ../fish/guestfish-actions.pod:3314
23173 msgid "pvs"
23174 msgstr ""
23175
23176 # type: verbatim
23177 #: ../fish/guestfish-actions.pod:3316
23178 #, no-wrap
23179 msgid ""
23180 " pvs\n"
23181 "\n"
23182 msgstr ""
23183
23184 # type: textblock
23185 #: ../fish/guestfish-actions.pod:3324
23186 msgid "See also L</pvs-full>."
23187 msgstr ""
23188
23189 # type: =head2
23190 #: ../fish/guestfish-actions.pod:3326
23191 msgid "pvs-full"
23192 msgstr ""
23193
23194 # type: verbatim
23195 #: ../fish/guestfish-actions.pod:3328
23196 #, no-wrap
23197 msgid ""
23198 " pvs-full\n"
23199 "\n"
23200 msgstr ""
23201
23202 # type: =head2
23203 #: ../fish/guestfish-actions.pod:3333
23204 msgid "pvuuid"
23205 msgstr ""
23206
23207 # type: verbatim
23208 #: ../fish/guestfish-actions.pod:3335
23209 #, no-wrap
23210 msgid ""
23211 " pvuuid device\n"
23212 "\n"
23213 msgstr ""
23214
23215 # type: =head2
23216 #: ../fish/guestfish-actions.pod:3339
23217 msgid "pwrite"
23218 msgstr ""
23219
23220 # type: verbatim
23221 #: ../fish/guestfish-actions.pod:3341
23222 #, no-wrap
23223 msgid ""
23224 " pwrite path content offset\n"
23225 "\n"
23226 msgstr ""
23227
23228 # type: textblock
23229 #: ../fish/guestfish-actions.pod:3352
23230 msgid "See also L</pread>, L</pwrite-device>."
23231 msgstr ""
23232
23233 # type: =head2
23234 #: ../fish/guestfish-actions.pod:3357
23235 msgid "pwrite-device"
23236 msgstr ""
23237
23238 # type: verbatim
23239 #: ../fish/guestfish-actions.pod:3359
23240 #, no-wrap
23241 msgid ""
23242 " pwrite-device device content offset\n"
23243 "\n"
23244 msgstr ""
23245
23246 # type: textblock
23247 #: ../fish/guestfish-actions.pod:3369
23248 msgid "See also L</pwrite>."
23249 msgstr ""
23250
23251 # type: =head2
23252 #: ../fish/guestfish-actions.pod:3374
23253 msgid "read-file"
23254 msgstr ""
23255
23256 # type: verbatim
23257 #: ../fish/guestfish-actions.pod:3376
23258 #, no-wrap
23259 msgid ""
23260 " read-file path\n"
23261 "\n"
23262 msgstr ""
23263
23264 # type: textblock
23265 #: ../fish/guestfish-actions.pod:3381
23266 msgid ""
23267 "Unlike L</cat>, this function can correctly handle files that contain "
23268 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23269 "is limited in the total size of file that can be handled."
23270 msgstr ""
23271
23272 # type: =head2
23273 #: ../fish/guestfish-actions.pod:3389
23274 msgid "read-lines"
23275 msgstr ""
23276
23277 # type: verbatim
23278 #: ../fish/guestfish-actions.pod:3391
23279 #, no-wrap
23280 msgid ""
23281 " read-lines path\n"
23282 "\n"
23283 msgstr ""
23284
23285 # type: textblock
23286 #: ../fish/guestfish-actions.pod:3398
23287 msgid ""
23288 "Note that this function cannot correctly handle binary files (specifically, "
23289 "files containing C<\\0> character which is treated as end of line).  For "
23290 "those you need to use the L</read-file> function which has a more complex "
23291 "interface."
23292 msgstr ""
23293
23294 # type: =head2
23295 #: ../fish/guestfish-actions.pod:3403
23296 msgid "readdir"
23297 msgstr ""
23298
23299 # type: verbatim
23300 #: ../fish/guestfish-actions.pod:3405
23301 #, no-wrap
23302 msgid ""
23303 " readdir dir\n"
23304 "\n"
23305 msgstr ""
23306
23307 # type: textblock
23308 #: ../fish/guestfish-actions.pod:3457
23309 msgid ""
23310 "This function is primarily intended for use by programs.  To get a simple "
23311 "list of names, use L</ls>.  To get a printable directory for human "
23312 "consumption, use L</ll>."
23313 msgstr ""
23314
23315 # type: =head2
23316 #: ../fish/guestfish-actions.pod:3461
23317 msgid "readlink"
23318 msgstr ""
23319
23320 # type: verbatim
23321 #: ../fish/guestfish-actions.pod:3463
23322 #, no-wrap
23323 msgid ""
23324 " readlink path\n"
23325 "\n"
23326 msgstr ""
23327
23328 # type: =head2
23329 #: ../fish/guestfish-actions.pod:3467
23330 msgid "readlinklist"
23331 msgstr ""
23332
23333 # type: verbatim
23334 #: ../fish/guestfish-actions.pod:3469
23335 #, no-wrap
23336 msgid ""
23337 " readlinklist path 'names ...'\n"
23338 "\n"
23339 msgstr ""
23340
23341 # type: =head2
23342 #: ../fish/guestfish-actions.pod:3493
23343 msgid "realpath"
23344 msgstr ""
23345
23346 # type: verbatim
23347 #: ../fish/guestfish-actions.pod:3495
23348 #, no-wrap
23349 msgid ""
23350 " realpath path\n"
23351 "\n"
23352 msgstr ""
23353
23354 # type: =head2
23355 #: ../fish/guestfish-actions.pod:3500
23356 msgid "removexattr"
23357 msgstr ""
23358
23359 # type: verbatim
23360 #: ../fish/guestfish-actions.pod:3502
23361 #, no-wrap
23362 msgid ""
23363 " removexattr xattr path\n"
23364 "\n"
23365 msgstr ""
23366
23367 # type: textblock
23368 #: ../fish/guestfish-actions.pod:3507
23369 msgid "See also: L</lremovexattr>, L<attr(5)>."
23370 msgstr ""
23371
23372 # type: =head2
23373 #: ../fish/guestfish-actions.pod:3509
23374 msgid "resize2fs"
23375 msgstr ""
23376
23377 # type: verbatim
23378 #: ../fish/guestfish-actions.pod:3511
23379 #, no-wrap
23380 msgid ""
23381 " resize2fs device\n"
23382 "\n"
23383 msgstr ""
23384
23385 # type: textblock
23386 #: ../fish/guestfish-actions.pod:3516
23387 msgid ""
23388 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23389 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23390 "gives an error about this and sometimes not.  In any case, it is always safe "
23391 "to call L</e2fsck-f> before calling this function."
23392 msgstr ""
23393
23394 # type: =head2
23395 #: ../fish/guestfish-actions.pod:3522
23396 msgid "resize2fs-size"
23397 msgstr ""
23398
23399 # type: verbatim
23400 #: ../fish/guestfish-actions.pod:3524
23401 #, no-wrap
23402 msgid ""
23403 " resize2fs-size device size\n"
23404 "\n"
23405 msgstr ""
23406
23407 # type: textblock
23408 #: ../fish/guestfish-actions.pod:3526
23409 msgid ""
23410 "This command is the same as L</resize2fs> except that it allows you to "
23411 "specify the new size (in bytes) explicitly."
23412 msgstr ""
23413
23414 # type: =head2
23415 #: ../fish/guestfish-actions.pod:3529
23416 msgid "rm"
23417 msgstr ""
23418
23419 # type: verbatim
23420 #: ../fish/guestfish-actions.pod:3531
23421 #, no-wrap
23422 msgid ""
23423 " rm path\n"
23424 "\n"
23425 msgstr ""
23426
23427 # type: =head2
23428 #: ../fish/guestfish-actions.pod:3535
23429 msgid "rm-rf"
23430 msgstr ""
23431
23432 # type: verbatim
23433 #: ../fish/guestfish-actions.pod:3537
23434 #, no-wrap
23435 msgid ""
23436 " rm-rf path\n"
23437 "\n"
23438 msgstr ""
23439
23440 # type: =head2
23441 #: ../fish/guestfish-actions.pod:3543
23442 msgid "rmdir"
23443 msgstr ""
23444
23445 # type: verbatim
23446 #: ../fish/guestfish-actions.pod:3545
23447 #, no-wrap
23448 msgid ""
23449 " rmdir path\n"
23450 "\n"
23451 msgstr ""
23452
23453 # type: =head2
23454 #: ../fish/guestfish-actions.pod:3549
23455 msgid "rmmountpoint"
23456 msgstr ""
23457
23458 # type: verbatim
23459 #: ../fish/guestfish-actions.pod:3551
23460 #, no-wrap
23461 msgid ""
23462 " rmmountpoint exemptpath\n"
23463 "\n"
23464 msgstr ""
23465
23466 # type: textblock
23467 #: ../fish/guestfish-actions.pod:3553
23468 msgid ""
23469 "This calls removes a mountpoint that was previously created with L</"
23470 "mkmountpoint>.  See L</mkmountpoint> for full details."
23471 msgstr ""
23472
23473 # type: =head2
23474 #: ../fish/guestfish-actions.pod:3557
23475 msgid "scrub-device"
23476 msgstr ""
23477
23478 # type: verbatim
23479 #: ../fish/guestfish-actions.pod:3559
23480 #, no-wrap
23481 msgid ""
23482 " scrub-device device\n"
23483 "\n"
23484 msgstr ""
23485
23486 # type: =head2
23487 #: ../fish/guestfish-actions.pod:3570
23488 msgid "scrub-file"
23489 msgstr ""
23490
23491 # type: verbatim
23492 #: ../fish/guestfish-actions.pod:3572
23493 #, no-wrap
23494 msgid ""
23495 " scrub-file file\n"
23496 "\n"
23497 msgstr ""
23498
23499 # type: =head2
23500 #: ../fish/guestfish-actions.pod:3582
23501 msgid "scrub-freespace"
23502 msgstr ""
23503
23504 # type: verbatim
23505 #: ../fish/guestfish-actions.pod:3584
23506 #, no-wrap
23507 msgid ""
23508 " scrub-freespace dir\n"
23509 "\n"
23510 msgstr ""
23511
23512 # type: textblock
23513 #: ../fish/guestfish-actions.pod:3586
23514 msgid ""
23515 "This command creates the directory C<dir> and then fills it with files until "
23516 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23517 "deletes them.  The intention is to scrub any free space on the partition "
23518 "containing C<dir>."
23519 msgstr ""
23520
23521 # type: =head2
23522 #: ../fish/guestfish-actions.pod:3595
23523 msgid "set-append"
23524 msgstr ""
23525
23526 # type: =head2
23527 #: ../fish/guestfish-actions.pod:3597
23528 msgid "append"
23529 msgstr ""
23530
23531 # type: verbatim
23532 #: ../fish/guestfish-actions.pod:3599
23533 #, no-wrap
23534 msgid ""
23535 " set-append append\n"
23536 "\n"
23537 msgstr ""
23538
23539 # type: =head2
23540 #: ../fish/guestfish-actions.pod:3610
23541 msgid "set-autosync"
23542 msgstr ""
23543
23544 # type: =head2
23545 #: ../fish/guestfish-actions.pod:3612
23546 msgid "autosync"
23547 msgstr ""
23548
23549 # type: verbatim
23550 #: ../fish/guestfish-actions.pod:3614
23551 #, no-wrap
23552 msgid ""
23553 " set-autosync true|false\n"
23554 "\n"
23555 msgstr ""
23556
23557 # type: textblock
23558 #: ../fish/guestfish-actions.pod:3616
23559 msgid ""
23560 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23561 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23562 "closed (also if the program exits without closing handles)."
23563 msgstr ""
23564
23565 # type: =head2
23566 #: ../fish/guestfish-actions.pod:3624
23567 msgid "set-direct"
23568 msgstr ""
23569
23570 # type: =head2
23571 #: ../fish/guestfish-actions.pod:3626
23572 msgid "direct"
23573 msgstr ""
23574
23575 # type: verbatim
23576 #: ../fish/guestfish-actions.pod:3628
23577 #, no-wrap
23578 msgid ""
23579 " set-direct true|false\n"
23580 "\n"
23581 msgstr ""
23582
23583 # type: textblock
23584 #: ../fish/guestfish-actions.pod:3634
23585 msgid ""
23586 "One consequence of this is that log messages aren't caught by the library "
23587 "and handled by L</set-log-message-callback>, but go straight to stdout."
23588 msgstr ""
23589
23590 # type: =head2
23591 #: ../fish/guestfish-actions.pod:3643
23592 msgid "set-e2label"
23593 msgstr ""
23594
23595 # type: verbatim
23596 #: ../fish/guestfish-actions.pod:3645
23597 #, no-wrap
23598 msgid ""
23599 " set-e2label device label\n"
23600 "\n"
23601 msgstr ""
23602
23603 # type: textblock
23604 #: ../fish/guestfish-actions.pod:3651
23605 msgid ""
23606 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23607 "label on a filesystem."
23608 msgstr ""
23609
23610 # type: =head2
23611 #: ../fish/guestfish-actions.pod:3654
23612 msgid "set-e2uuid"
23613 msgstr ""
23614
23615 # type: verbatim
23616 #: ../fish/guestfish-actions.pod:3656
23617 #, no-wrap
23618 msgid ""
23619 " set-e2uuid device uuid\n"
23620 "\n"
23621 msgstr ""
23622
23623 # type: textblock
23624 #: ../fish/guestfish-actions.pod:3663
23625 msgid ""
23626 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23627 "UUID of a filesystem."
23628 msgstr ""
23629
23630 # type: =head2
23631 #: ../fish/guestfish-actions.pod:3666
23632 msgid "set-memsize"
23633 msgstr ""
23634
23635 # type: =head2
23636 #: ../fish/guestfish-actions.pod:3668
23637 msgid "memsize"
23638 msgstr ""
23639
23640 # type: verbatim
23641 #: ../fish/guestfish-actions.pod:3670
23642 #, no-wrap
23643 msgid ""
23644 " set-memsize memsize\n"
23645 "\n"
23646 msgstr ""
23647
23648 # type: textblock
23649 #: ../fish/guestfish-actions.pod:3672
23650 msgid ""
23651 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23652 "This only has any effect if called before L</launch>."
23653 msgstr ""
23654
23655 # type: =head2
23656 #: ../fish/guestfish-actions.pod:3683
23657 msgid "set-network"
23658 msgstr ""
23659
23660 # type: =head2
23661 #: ../fish/guestfish-actions.pod:3685
23662 msgid "network"
23663 msgstr ""
23664
23665 # type: verbatim
23666 #: ../fish/guestfish-actions.pod:3687
23667 #, no-wrap
23668 msgid ""
23669 " set-network true|false\n"
23670 "\n"
23671 msgstr ""
23672
23673 # type: textblock
23674 #: ../fish/guestfish-actions.pod:3695
23675 msgid ""
23676 "You must call this before calling L</launch>, otherwise it has no effect."
23677 msgstr ""
23678
23679 # type: =head2
23680 #: ../fish/guestfish-actions.pod:3698
23681 msgid "set-path"
23682 msgstr ""
23683
23684 # type: =head2
23685 #: ../fish/guestfish-actions.pod:3700
23686 msgid "path"
23687 msgstr ""
23688
23689 # type: verbatim
23690 #: ../fish/guestfish-actions.pod:3702
23691 #, no-wrap
23692 msgid ""
23693 " set-path searchpath\n"
23694 "\n"
23695 msgstr ""
23696
23697 # type: =head2
23698 #: ../fish/guestfish-actions.pod:3711
23699 msgid "set-qemu"
23700 msgstr ""
23701
23702 # type: =head2
23703 #: ../fish/guestfish-actions.pod:3713
23704 msgid "qemu"
23705 msgstr ""
23706
23707 # type: verbatim
23708 #: ../fish/guestfish-actions.pod:3715
23709 #, no-wrap
23710 msgid ""
23711 " set-qemu qemu\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: =head2
23716 #: ../fish/guestfish-actions.pod:3735
23717 msgid "set-recovery-proc"
23718 msgstr ""
23719
23720 # type: =head2
23721 #: ../fish/guestfish-actions.pod:3737
23722 msgid "recovery-proc"
23723 msgstr ""
23724
23725 # type: verbatim
23726 #: ../fish/guestfish-actions.pod:3739
23727 #, no-wrap
23728 msgid ""
23729 " set-recovery-proc true|false\n"
23730 "\n"
23731 msgstr ""
23732
23733 # type: textblock
23734 #: ../fish/guestfish-actions.pod:3741
23735 msgid ""
23736 "If this is called with the parameter C<false> then L</launch> does not "
23737 "create a recovery process.  The purpose of the recovery process is to stop "
23738 "runaway qemu processes in the case where the main program aborts abruptly."
23739 msgstr ""
23740
23741 # type: textblock
23742 #: ../fish/guestfish-actions.pod:3746
23743 msgid ""
23744 "This only has any effect if called before L</launch>, and the default is "
23745 "true."
23746 msgstr ""
23747
23748 # type: =head2
23749 #: ../fish/guestfish-actions.pod:3755
23750 msgid "set-selinux"
23751 msgstr ""
23752
23753 # type: =head2
23754 #: ../fish/guestfish-actions.pod:3757
23755 msgid "selinux"
23756 msgstr ""
23757
23758 # type: verbatim
23759 #: ../fish/guestfish-actions.pod:3759
23760 #, no-wrap
23761 msgid ""
23762 " set-selinux true|false\n"
23763 "\n"
23764 msgstr ""
23765
23766 # type: =head2
23767 #: ../fish/guestfish-actions.pod:3770
23768 msgid "set-trace"
23769 msgstr ""
23770
23771 # type: =head2
23772 #: ../fish/guestfish-actions.pod:3772
23773 msgid "trace"
23774 msgstr ""
23775
23776 # type: verbatim
23777 #: ../fish/guestfish-actions.pod:3774
23778 #, no-wrap
23779 msgid ""
23780 " set-trace true|false\n"
23781 "\n"
23782 msgstr ""
23783
23784 # type: =head2
23785 #: ../fish/guestfish-actions.pod:3790
23786 msgid "set-verbose"
23787 msgstr ""
23788
23789 # type: =head2
23790 #: ../fish/guestfish-actions.pod:3792
23791 msgid "verbose"
23792 msgstr ""
23793
23794 # type: verbatim
23795 #: ../fish/guestfish-actions.pod:3794
23796 #, no-wrap
23797 msgid ""
23798 " set-verbose true|false\n"
23799 "\n"
23800 msgstr ""
23801
23802 # type: =head2
23803 #: ../fish/guestfish-actions.pod:3801
23804 msgid "setcon"
23805 msgstr ""
23806
23807 # type: verbatim
23808 #: ../fish/guestfish-actions.pod:3803
23809 #, no-wrap
23810 msgid ""
23811 " setcon context\n"
23812 "\n"
23813 msgstr ""
23814
23815 # type: =head2
23816 #: ../fish/guestfish-actions.pod:3810
23817 msgid "setxattr"
23818 msgstr ""
23819
23820 # type: verbatim
23821 #: ../fish/guestfish-actions.pod:3812
23822 #, no-wrap
23823 msgid ""
23824 " setxattr xattr val vallen path\n"
23825 "\n"
23826 msgstr ""
23827
23828 # type: textblock
23829 #: ../fish/guestfish-actions.pod:3818
23830 msgid "See also: L</lsetxattr>, L<attr(5)>."
23831 msgstr ""
23832
23833 # type: =head2
23834 #: ../fish/guestfish-actions.pod:3820
23835 msgid "sfdisk"
23836 msgstr ""
23837
23838 # type: verbatim
23839 #: ../fish/guestfish-actions.pod:3822
23840 #, no-wrap
23841 msgid ""
23842 " sfdisk device cyls heads sectors 'lines ...'\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../fish/guestfish-actions.pod:3844
23848 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23849 msgstr ""
23850
23851 # type: =head2
23852 #: ../fish/guestfish-actions.pod:3850
23853 msgid "sfdiskM"
23854 msgstr ""
23855
23856 # type: verbatim
23857 #: ../fish/guestfish-actions.pod:3852
23858 #, no-wrap
23859 msgid ""
23860 " sfdiskM device 'lines ...'\n"
23861 "\n"
23862 msgstr ""
23863
23864 # type: textblock
23865 #: ../fish/guestfish-actions.pod:3854
23866 msgid ""
23867 "This is a simplified interface to the L</sfdisk> command, where partition "
23868 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23869 "you don't need to specify the cyls, heads and sectors parameters which were "
23870 "rarely if ever used anyway."
23871 msgstr ""
23872
23873 # type: textblock
23874 #: ../fish/guestfish-actions.pod:3860
23875 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23876 msgstr ""
23877
23878 # type: =head2
23879 #: ../fish/guestfish-actions.pod:3866
23880 msgid "sfdisk-N"
23881 msgstr ""
23882
23883 # type: verbatim
23884 #: ../fish/guestfish-actions.pod:3868
23885 #, no-wrap
23886 msgid ""
23887 " sfdisk-N device partnum cyls heads sectors line\n"
23888 "\n"
23889 msgstr ""
23890
23891 # type: textblock
23892 #: ../fish/guestfish-actions.pod:3873
23893 msgid ""
23894 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23895 "cyls/heads/sectors parameters."
23896 msgstr ""
23897
23898 # type: textblock
23899 #: ../fish/guestfish-actions.pod:3876
23900 msgid "See also: L</part-add>"
23901 msgstr ""
23902
23903 # type: =head2
23904 #: ../fish/guestfish-actions.pod:3881
23905 msgid "sfdisk-disk-geometry"
23906 msgstr ""
23907
23908 # type: verbatim
23909 #: ../fish/guestfish-actions.pod:3883
23910 #, no-wrap
23911 msgid ""
23912 " sfdisk-disk-geometry device\n"
23913 "\n"
23914 msgstr ""
23915
23916 # type: textblock
23917 #: ../fish/guestfish-actions.pod:3885
23918 msgid ""
23919 "This displays the disk geometry of C<device> read from the partition table.  "
23920 "Especially in the case where the underlying block device has been resized, "
23921 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23922 "kernel-geometry>)."
23923 msgstr ""
23924
23925 # type: =head2
23926 #: ../fish/guestfish-actions.pod:3893
23927 msgid "sfdisk-kernel-geometry"
23928 msgstr ""
23929
23930 # type: verbatim
23931 #: ../fish/guestfish-actions.pod:3895
23932 #, no-wrap
23933 msgid ""
23934 " sfdisk-kernel-geometry device\n"
23935 "\n"
23936 msgstr ""
23937
23938 # type: =head2
23939 #: ../fish/guestfish-actions.pod:3902
23940 msgid "sfdisk-l"
23941 msgstr ""
23942
23943 # type: verbatim
23944 #: ../fish/guestfish-actions.pod:3904
23945 #, no-wrap
23946 msgid ""
23947 " sfdisk-l device\n"
23948 "\n"
23949 msgstr ""
23950
23951 # type: textblock
23952 #: ../fish/guestfish-actions.pod:3910
23953 msgid "See also: L</part-list>"
23954 msgstr ""
23955
23956 # type: =head2
23957 #: ../fish/guestfish-actions.pod:3912
23958 msgid "sh"
23959 msgstr ""
23960
23961 # type: verbatim
23962 #: ../fish/guestfish-actions.pod:3914
23963 #, no-wrap
23964 msgid ""
23965 " sh command\n"
23966 "\n"
23967 msgstr ""
23968
23969 # type: textblock
23970 #: ../fish/guestfish-actions.pod:3919
23971 msgid "This is like L</command>, but passes the command to:"
23972 msgstr ""
23973
23974 # type: textblock
23975 #: ../fish/guestfish-actions.pod:3927
23976 msgid "All the provisos about L</command> apply to this call."
23977 msgstr ""
23978
23979 # type: =head2
23980 #: ../fish/guestfish-actions.pod:3929
23981 msgid "sh-lines"
23982 msgstr ""
23983
23984 # type: verbatim
23985 #: ../fish/guestfish-actions.pod:3931
23986 #, no-wrap
23987 msgid ""
23988 " sh-lines command\n"
23989 "\n"
23990 msgstr ""
23991
23992 # type: textblock
23993 #: ../fish/guestfish-actions.pod:3933
23994 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23995 msgstr ""
23996
23997 # type: textblock
23998 #: ../fish/guestfish-actions.pod:3936
23999 msgid "See also: L</command-lines>"
24000 msgstr ""
24001
24002 # type: =head2
24003 #: ../fish/guestfish-actions.pod:3938
24004 msgid "sleep"
24005 msgstr ""
24006
24007 # type: verbatim
24008 #: ../fish/guestfish-actions.pod:3940
24009 #, no-wrap
24010 msgid ""
24011 " sleep secs\n"
24012 "\n"
24013 msgstr ""
24014
24015 # type: =head2
24016 #: ../fish/guestfish-actions.pod:3944
24017 msgid "stat"
24018 msgstr ""
24019
24020 # type: verbatim
24021 #: ../fish/guestfish-actions.pod:3946
24022 #, no-wrap
24023 msgid ""
24024 " stat path\n"
24025 "\n"
24026 msgstr ""
24027
24028 # type: =head2
24029 #: ../fish/guestfish-actions.pod:3952
24030 msgid "statvfs"
24031 msgstr ""
24032
24033 # type: verbatim
24034 #: ../fish/guestfish-actions.pod:3954
24035 #, no-wrap
24036 msgid ""
24037 " statvfs path\n"
24038 "\n"
24039 msgstr ""
24040
24041 # type: =head2
24042 #: ../fish/guestfish-actions.pod:3962
24043 msgid "strings"
24044 msgstr ""
24045
24046 # type: verbatim
24047 #: ../fish/guestfish-actions.pod:3964
24048 #, no-wrap
24049 msgid ""
24050 " strings path\n"
24051 "\n"
24052 msgstr ""
24053
24054 # type: =head2
24055 #: ../fish/guestfish-actions.pod:3972
24056 msgid "strings-e"
24057 msgstr ""
24058
24059 # type: verbatim
24060 #: ../fish/guestfish-actions.pod:3974
24061 #, no-wrap
24062 msgid ""
24063 " strings-e encoding path\n"
24064 "\n"
24065 msgstr ""
24066
24067 # type: textblock
24068 #: ../fish/guestfish-actions.pod:3976
24069 msgid ""
24070 "This is like the L</strings> command, but allows you to specify the encoding "
24071 "of strings that are looked for in the source file C<path>."
24072 msgstr ""
24073
24074 # type: textblock
24075 #: ../fish/guestfish-actions.pod:3986
24076 msgid ""
24077 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24078 "ISO-8859-X (this is what L</strings> uses)."
24079 msgstr ""
24080
24081 # type: =head2
24082 #: ../fish/guestfish-actions.pod:4018
24083 msgid "swapoff-device"
24084 msgstr ""
24085
24086 # type: verbatim
24087 #: ../fish/guestfish-actions.pod:4020
24088 #, no-wrap
24089 msgid ""
24090 " swapoff-device device\n"
24091 "\n"
24092 msgstr ""
24093
24094 # type: textblock
24095 #: ../fish/guestfish-actions.pod:4022
24096 msgid ""
24097 "This command disables the libguestfs appliance swap device or partition "
24098 "named C<device>.  See L</swapon-device>."
24099 msgstr ""
24100
24101 # type: =head2
24102 #: ../fish/guestfish-actions.pod:4026
24103 msgid "swapoff-file"
24104 msgstr ""
24105
24106 # type: verbatim
24107 #: ../fish/guestfish-actions.pod:4028
24108 #, no-wrap
24109 msgid ""
24110 " swapoff-file file\n"
24111 "\n"
24112 msgstr ""
24113
24114 # type: =head2
24115 #: ../fish/guestfish-actions.pod:4032
24116 msgid "swapoff-label"
24117 msgstr ""
24118
24119 # type: verbatim
24120 #: ../fish/guestfish-actions.pod:4034
24121 #, no-wrap
24122 msgid ""
24123 " swapoff-label label\n"
24124 "\n"
24125 msgstr ""
24126
24127 # type: =head2
24128 #: ../fish/guestfish-actions.pod:4039
24129 msgid "swapoff-uuid"
24130 msgstr ""
24131
24132 # type: verbatim
24133 #: ../fish/guestfish-actions.pod:4041
24134 #, no-wrap
24135 msgid ""
24136 " swapoff-uuid uuid\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: =head2
24141 #: ../fish/guestfish-actions.pod:4046
24142 msgid "swapon-device"
24143 msgstr ""
24144
24145 # type: verbatim
24146 #: ../fish/guestfish-actions.pod:4048
24147 #, no-wrap
24148 msgid ""
24149 " swapon-device device\n"
24150 "\n"
24151 msgstr ""
24152
24153 # type: textblock
24154 #: ../fish/guestfish-actions.pod:4050
24155 msgid ""
24156 "This command enables the libguestfs appliance to use the swap device or "
24157 "partition named C<device>.  The increased memory is made available for all "
24158 "commands, for example those run using L</command> or L</sh>."
24159 msgstr ""
24160
24161 # type: =head2
24162 #: ../fish/guestfish-actions.pod:4062
24163 msgid "swapon-file"
24164 msgstr ""
24165
24166 # type: verbatim
24167 #: ../fish/guestfish-actions.pod:4064
24168 #, no-wrap
24169 msgid ""
24170 " swapon-file file\n"
24171 "\n"
24172 msgstr ""
24173
24174 # type: textblock
24175 #: ../fish/guestfish-actions.pod:4066
24176 msgid ""
24177 "This command enables swap to a file.  See L</swapon-device> for other notes."
24178 msgstr ""
24179
24180 # type: =head2
24181 #: ../fish/guestfish-actions.pod:4069
24182 msgid "swapon-label"
24183 msgstr ""
24184
24185 # type: verbatim
24186 #: ../fish/guestfish-actions.pod:4071
24187 #, no-wrap
24188 msgid ""
24189 " swapon-label label\n"
24190 "\n"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../fish/guestfish-actions.pod:4073
24195 msgid ""
24196 "This command enables swap to a labeled swap partition.  See L</swapon-"
24197 "device> for other notes."
24198 msgstr ""
24199
24200 # type: =head2
24201 #: ../fish/guestfish-actions.pod:4076
24202 msgid "swapon-uuid"
24203 msgstr ""
24204
24205 # type: verbatim
24206 #: ../fish/guestfish-actions.pod:4078
24207 #, no-wrap
24208 msgid ""
24209 " swapon-uuid uuid\n"
24210 "\n"
24211 msgstr ""
24212
24213 # type: textblock
24214 #: ../fish/guestfish-actions.pod:4080
24215 msgid ""
24216 "This command enables swap to a swap partition with the given UUID.  See L</"
24217 "swapon-device> for other notes."
24218 msgstr ""
24219
24220 # type: =head2
24221 #: ../fish/guestfish-actions.pod:4083
24222 msgid "sync"
24223 msgstr ""
24224
24225 # type: verbatim
24226 #: ../fish/guestfish-actions.pod:4085
24227 #, no-wrap
24228 msgid ""
24229 " sync\n"
24230 "\n"
24231 msgstr ""
24232
24233 # type: =head2
24234 #: ../fish/guestfish-actions.pod:4093
24235 msgid "tail"
24236 msgstr ""
24237
24238 # type: verbatim
24239 #: ../fish/guestfish-actions.pod:4095
24240 #, no-wrap
24241 msgid ""
24242 " tail path\n"
24243 "\n"
24244 msgstr ""
24245
24246 # type: =head2
24247 #: ../fish/guestfish-actions.pod:4103
24248 msgid "tail-n"
24249 msgstr ""
24250
24251 # type: verbatim
24252 #: ../fish/guestfish-actions.pod:4105
24253 #, no-wrap
24254 msgid ""
24255 " tail-n nrlines path\n"
24256 "\n"
24257 msgstr ""
24258
24259 # type: =head2
24260 #: ../fish/guestfish-actions.pod:4118
24261 msgid "tar-in"
24262 msgstr ""
24263
24264 # type: verbatim
24265 #: ../fish/guestfish-actions.pod:4120
24266 #, no-wrap
24267 msgid ""
24268 " tar-in (tarfile|-) directory\n"
24269 "\n"
24270 msgstr ""
24271
24272 # type: textblock
24273 #: ../fish/guestfish-actions.pod:4125
24274 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24275 msgstr ""
24276
24277 # type: =head2
24278 #: ../fish/guestfish-actions.pod:4130
24279 msgid "tar-out"
24280 msgstr ""
24281
24282 # type: verbatim
24283 #: ../fish/guestfish-actions.pod:4132
24284 #, no-wrap
24285 msgid ""
24286 " tar-out directory (tarfile|-)\n"
24287 "\n"
24288 msgstr ""
24289
24290 # type: textblock
24291 #: ../fish/guestfish-actions.pod:4137
24292 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24293 msgstr ""
24294
24295 # type: =head2
24296 #: ../fish/guestfish-actions.pod:4142
24297 msgid "tgz-in"
24298 msgstr ""
24299
24300 # type: verbatim
24301 #: ../fish/guestfish-actions.pod:4144
24302 #, no-wrap
24303 msgid ""
24304 " tgz-in (tarball|-) directory\n"
24305 "\n"
24306 msgstr ""
24307
24308 # type: textblock
24309 #: ../fish/guestfish-actions.pod:4149
24310 msgid "To upload an uncompressed tarball, use L</tar-in>."
24311 msgstr ""
24312
24313 # type: =head2
24314 #: ../fish/guestfish-actions.pod:4153
24315 msgid "tgz-out"
24316 msgstr ""
24317
24318 # type: verbatim
24319 #: ../fish/guestfish-actions.pod:4155
24320 #, no-wrap
24321 msgid ""
24322 " tgz-out directory (tarball|-)\n"
24323 "\n"
24324 msgstr ""
24325
24326 # type: textblock
24327 #: ../fish/guestfish-actions.pod:4160
24328 msgid "To download an uncompressed tarball, use L</tar-out>."
24329 msgstr ""
24330
24331 # type: =head2
24332 #: ../fish/guestfish-actions.pod:4164
24333 msgid "touch"
24334 msgstr ""
24335
24336 # type: verbatim
24337 #: ../fish/guestfish-actions.pod:4166
24338 #, no-wrap
24339 msgid ""
24340 " touch path\n"
24341 "\n"
24342 msgstr ""
24343
24344 # type: =head2
24345 #: ../fish/guestfish-actions.pod:4175
24346 msgid "truncate"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #: ../fish/guestfish-actions.pod:4177
24351 #, no-wrap
24352 msgid ""
24353 " truncate path\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: =head2
24358 #: ../fish/guestfish-actions.pod:4182
24359 msgid "truncate-size"
24360 msgstr ""
24361
24362 # type: verbatim
24363 #: ../fish/guestfish-actions.pod:4184
24364 #, no-wrap
24365 msgid ""
24366 " truncate-size path size\n"
24367 "\n"
24368 msgstr ""
24369
24370 # type: textblock
24371 #: ../fish/guestfish-actions.pod:4189
24372 msgid ""
24373 "If the current file size is less than C<size> then the file is extended to "
24374 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24375 "blocks are not allocated for the file until you write to it).  To create a "
24376 "non-sparse file of zeroes, use L</fallocate64> instead."
24377 msgstr ""
24378
24379 # type: =head2
24380 #: ../fish/guestfish-actions.pod:4195
24381 msgid "tune2fs-l"
24382 msgstr ""
24383
24384 # type: verbatim
24385 #: ../fish/guestfish-actions.pod:4197
24386 #, no-wrap
24387 msgid ""
24388 " tune2fs-l device\n"
24389 "\n"
24390 msgstr ""
24391
24392 # type: =head2
24393 #: ../fish/guestfish-actions.pod:4207
24394 msgid "txz-in"
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../fish/guestfish-actions.pod:4209
24399 #, no-wrap
24400 msgid ""
24401 " txz-in (tarball|-) directory\n"
24402 "\n"
24403 msgstr ""
24404
24405 # type: =head2
24406 #: ../fish/guestfish-actions.pod:4216
24407 msgid "txz-out"
24408 msgstr ""
24409
24410 # type: verbatim
24411 #: ../fish/guestfish-actions.pod:4218
24412 #, no-wrap
24413 msgid ""
24414 " txz-out directory (tarball|-)\n"
24415 "\n"
24416 msgstr ""
24417
24418 # type: =head2
24419 #: ../fish/guestfish-actions.pod:4225
24420 msgid "umask"
24421 msgstr ""
24422
24423 # type: verbatim
24424 #: ../fish/guestfish-actions.pod:4227
24425 #, no-wrap
24426 msgid ""
24427 " umask mask\n"
24428 "\n"
24429 msgstr ""
24430
24431 # type: textblock
24432 #: ../fish/guestfish-actions.pod:4241
24433 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24434 msgstr ""
24435
24436 # type: =head2
24437 #: ../fish/guestfish-actions.pod:4246
24438 msgid "umount"
24439 msgstr ""
24440
24441 # type: =head2
24442 #: ../fish/guestfish-actions.pod:4248
24443 msgid "unmount"
24444 msgstr ""
24445
24446 # type: verbatim
24447 #: ../fish/guestfish-actions.pod:4250
24448 #, no-wrap
24449 msgid ""
24450 " umount pathordevice\n"
24451 "\n"
24452 msgstr ""
24453
24454 # type: =head2
24455 #: ../fish/guestfish-actions.pod:4256
24456 msgid "umount-all"
24457 msgstr ""
24458
24459 # type: =head2
24460 #: ../fish/guestfish-actions.pod:4258
24461 msgid "unmount-all"
24462 msgstr ""
24463
24464 # type: verbatim
24465 #: ../fish/guestfish-actions.pod:4260
24466 #, no-wrap
24467 msgid ""
24468 " umount-all\n"
24469 "\n"
24470 msgstr ""
24471
24472 # type: =head2
24473 #: ../fish/guestfish-actions.pod:4266
24474 msgid "upload"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #: ../fish/guestfish-actions.pod:4268
24479 #, no-wrap
24480 msgid ""
24481 " upload (filename|-) remotefilename\n"
24482 "\n"
24483 msgstr ""
24484
24485 # type: textblock
24486 #: ../fish/guestfish-actions.pod:4275
24487 msgid "See also L</download>."
24488 msgstr ""
24489
24490 # type: =head2
24491 #: ../fish/guestfish-actions.pod:4279
24492 msgid "upload-offset"
24493 msgstr ""
24494
24495 # type: verbatim
24496 #: ../fish/guestfish-actions.pod:4281
24497 #, no-wrap
24498 msgid ""
24499 " upload-offset (filename|-) remotefilename offset\n"
24500 "\n"
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../fish/guestfish-actions.pod:4293
24505 msgid ""
24506 "Note that there is no limit on the amount of data that can be uploaded with "
24507 "this call, unlike with L</pwrite>, and this call always writes the full "
24508 "amount unless an error occurs."
24509 msgstr ""
24510
24511 # type: textblock
24512 #: ../fish/guestfish-actions.pod:4298
24513 msgid "See also L</upload>, L</pwrite>."
24514 msgstr ""
24515
24516 # type: =head2
24517 #: ../fish/guestfish-actions.pod:4302
24518 msgid "utimens"
24519 msgstr ""
24520
24521 # type: verbatim
24522 #: ../fish/guestfish-actions.pod:4304
24523 #, no-wrap
24524 msgid ""
24525 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24526 "\n"
24527 msgstr ""
24528
24529 # type: =head2
24530 #: ../fish/guestfish-actions.pod:4323
24531 msgid "version"
24532 msgstr ""
24533
24534 # type: verbatim
24535 #: ../fish/guestfish-actions.pod:4325
24536 #, no-wrap
24537 msgid ""
24538 " version\n"
24539 "\n"
24540 msgstr ""
24541
24542 # type: textblock
24543 #: ../fish/guestfish-actions.pod:4352
24544 msgid ""
24545 "I<Note:> Don't use this call to test for availability of features.  In "
24546 "enterprise distributions we backport features from later versions into "
24547 "earlier versions, making this an unreliable way to test for features.  Use "
24548 "L</available> instead."
24549 msgstr ""
24550
24551 # type: =head2
24552 #: ../fish/guestfish-actions.pod:4358
24553 msgid "vfs-label"
24554 msgstr ""
24555
24556 # type: verbatim
24557 #: ../fish/guestfish-actions.pod:4360
24558 #, no-wrap
24559 msgid ""
24560 " vfs-label device\n"
24561 "\n"
24562 msgstr ""
24563
24564 # type: textblock
24565 #: ../fish/guestfish-actions.pod:4367
24566 msgid "To find a filesystem from the label, use L</findfs-label>."
24567 msgstr ""
24568
24569 # type: =head2
24570 #: ../fish/guestfish-actions.pod:4369
24571 msgid "vfs-type"
24572 msgstr ""
24573
24574 # type: verbatim
24575 #: ../fish/guestfish-actions.pod:4371
24576 #, no-wrap
24577 msgid ""
24578 " vfs-type device\n"
24579 "\n"
24580 msgstr ""
24581
24582 # type: =head2
24583 #: ../fish/guestfish-actions.pod:4381
24584 msgid "vfs-uuid"
24585 msgstr ""
24586
24587 # type: verbatim
24588 #: ../fish/guestfish-actions.pod:4383
24589 #, no-wrap
24590 msgid ""
24591 " vfs-uuid device\n"
24592 "\n"
24593 msgstr ""
24594
24595 # type: textblock
24596 #: ../fish/guestfish-actions.pod:4390
24597 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24598 msgstr ""
24599
24600 # type: =head2
24601 #: ../fish/guestfish-actions.pod:4392
24602 msgid "vg-activate"
24603 msgstr ""
24604
24605 # type: verbatim
24606 #: ../fish/guestfish-actions.pod:4394
24607 #, no-wrap
24608 msgid ""
24609 " vg-activate true|false 'volgroups ...'\n"
24610 "\n"
24611 msgstr ""
24612
24613 # type: =head2
24614 #: ../fish/guestfish-actions.pod:4407
24615 msgid "vg-activate-all"
24616 msgstr ""
24617
24618 # type: verbatim
24619 #: ../fish/guestfish-actions.pod:4409
24620 #, no-wrap
24621 msgid ""
24622 " vg-activate-all true|false\n"
24623 "\n"
24624 msgstr ""
24625
24626 # type: =head2
24627 #: ../fish/guestfish-actions.pod:4419
24628 msgid "vgcreate"
24629 msgstr ""
24630
24631 # type: verbatim
24632 #: ../fish/guestfish-actions.pod:4421
24633 #, no-wrap
24634 msgid ""
24635 " vgcreate volgroup 'physvols ...'\n"
24636 "\n"
24637 msgstr ""
24638
24639 # type: =head2
24640 #: ../fish/guestfish-actions.pod:4426
24641 msgid "vglvuuids"
24642 msgstr ""
24643
24644 # type: verbatim
24645 #: ../fish/guestfish-actions.pod:4428
24646 #, no-wrap
24647 msgid ""
24648 " vglvuuids vgname\n"
24649 "\n"
24650 msgstr ""
24651
24652 # type: textblock
24653 #: ../fish/guestfish-actions.pod:4433
24654 msgid ""
24655 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24656 "logical volumes and volume groups."
24657 msgstr ""
24658
24659 # type: textblock
24660 #: ../fish/guestfish-actions.pod:4436
24661 msgid "See also L</vgpvuuids>."
24662 msgstr ""
24663
24664 # type: =head2
24665 #: ../fish/guestfish-actions.pod:4438
24666 msgid "vgpvuuids"
24667 msgstr ""
24668
24669 # type: verbatim
24670 #: ../fish/guestfish-actions.pod:4440
24671 #, no-wrap
24672 msgid ""
24673 " vgpvuuids vgname\n"
24674 "\n"
24675 msgstr ""
24676
24677 # type: textblock
24678 #: ../fish/guestfish-actions.pod:4445
24679 msgid ""
24680 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24681 "physical volumes and volume groups."
24682 msgstr ""
24683
24684 # type: textblock
24685 #: ../fish/guestfish-actions.pod:4448
24686 msgid "See also L</vglvuuids>."
24687 msgstr ""
24688
24689 # type: =head2
24690 #: ../fish/guestfish-actions.pod:4450
24691 msgid "vgremove"
24692 msgstr ""
24693
24694 # type: verbatim
24695 #: ../fish/guestfish-actions.pod:4452
24696 #, no-wrap
24697 msgid ""
24698 " vgremove vgname\n"
24699 "\n"
24700 msgstr ""
24701
24702 # type: =head2
24703 #: ../fish/guestfish-actions.pod:4459
24704 msgid "vgrename"
24705 msgstr ""
24706
24707 # type: verbatim
24708 #: ../fish/guestfish-actions.pod:4461
24709 #, no-wrap
24710 msgid ""
24711 " vgrename volgroup newvolgroup\n"
24712 "\n"
24713 msgstr ""
24714
24715 # type: =head2
24716 #: ../fish/guestfish-actions.pod:4465
24717 msgid "vgs"
24718 msgstr ""
24719
24720 # type: verbatim
24721 #: ../fish/guestfish-actions.pod:4467
24722 #, no-wrap
24723 msgid ""
24724 " vgs\n"
24725 "\n"
24726 msgstr ""
24727
24728 # type: textblock
24729 #: ../fish/guestfish-actions.pod:4475
24730 msgid "See also L</vgs-full>."
24731 msgstr ""
24732
24733 # type: =head2
24734 #: ../fish/guestfish-actions.pod:4477
24735 msgid "vgs-full"
24736 msgstr ""
24737
24738 # type: verbatim
24739 #: ../fish/guestfish-actions.pod:4479
24740 #, no-wrap
24741 msgid ""
24742 " vgs-full\n"
24743 "\n"
24744 msgstr ""
24745
24746 # type: =head2
24747 #: ../fish/guestfish-actions.pod:4484
24748 msgid "vgscan"
24749 msgstr ""
24750
24751 # type: verbatim
24752 #: ../fish/guestfish-actions.pod:4486
24753 #, no-wrap
24754 msgid ""
24755 " vgscan\n"
24756 "\n"
24757 msgstr ""
24758
24759 # type: =head2
24760 #: ../fish/guestfish-actions.pod:4491
24761 msgid "vguuid"
24762 msgstr ""
24763
24764 # type: verbatim
24765 #: ../fish/guestfish-actions.pod:4493
24766 #, no-wrap
24767 msgid ""
24768 " vguuid vgname\n"
24769 "\n"
24770 msgstr ""
24771
24772 # type: =head2
24773 #: ../fish/guestfish-actions.pod:4497
24774 msgid "wc-c"
24775 msgstr ""
24776
24777 # type: verbatim
24778 #: ../fish/guestfish-actions.pod:4499
24779 #, no-wrap
24780 msgid ""
24781 " wc-c path\n"
24782 "\n"
24783 msgstr ""
24784
24785 # type: =head2
24786 #: ../fish/guestfish-actions.pod:4504
24787 msgid "wc-l"
24788 msgstr ""
24789
24790 # type: verbatim
24791 #: ../fish/guestfish-actions.pod:4506
24792 #, no-wrap
24793 msgid ""
24794 " wc-l path\n"
24795 "\n"
24796 msgstr ""
24797
24798 # type: =head2
24799 #: ../fish/guestfish-actions.pod:4511
24800 msgid "wc-w"
24801 msgstr ""
24802
24803 # type: verbatim
24804 #: ../fish/guestfish-actions.pod:4513
24805 #, no-wrap
24806 msgid ""
24807 " wc-w path\n"
24808 "\n"
24809 msgstr ""
24810
24811 # type: =head2
24812 #: ../fish/guestfish-actions.pod:4518
24813 msgid "write"
24814 msgstr ""
24815
24816 # type: verbatim
24817 #: ../fish/guestfish-actions.pod:4520
24818 #, no-wrap
24819 msgid ""
24820 " write path content\n"
24821 "\n"
24822 msgstr ""
24823
24824 # type: =head2
24825 #: ../fish/guestfish-actions.pod:4528
24826 msgid "write-file"
24827 msgstr ""
24828
24829 # type: verbatim
24830 #: ../fish/guestfish-actions.pod:4530
24831 #, no-wrap
24832 msgid ""
24833 " write-file path content size\n"
24834 "\n"
24835 msgstr ""
24836
24837 # type: =head2
24838 #: ../fish/guestfish-actions.pod:4553
24839 msgid "zegrep"
24840 msgstr ""
24841
24842 # type: verbatim
24843 #: ../fish/guestfish-actions.pod:4555
24844 #, no-wrap
24845 msgid ""
24846 " zegrep regex path\n"
24847 "\n"
24848 msgstr ""
24849
24850 # type: =head2
24851 #: ../fish/guestfish-actions.pod:4563
24852 msgid "zegrepi"
24853 msgstr ""
24854
24855 # type: verbatim
24856 #: ../fish/guestfish-actions.pod:4565
24857 #, no-wrap
24858 msgid ""
24859 " zegrepi regex path\n"
24860 "\n"
24861 msgstr ""
24862
24863 # type: =head2
24864 #: ../fish/guestfish-actions.pod:4573
24865 msgid "zero"
24866 msgstr ""
24867
24868 # type: verbatim
24869 #: ../fish/guestfish-actions.pod:4575
24870 #, no-wrap
24871 msgid ""
24872 " zero device\n"
24873 "\n"
24874 msgstr ""
24875
24876 # type: textblock
24877 #: ../fish/guestfish-actions.pod:4583
24878 msgid "See also: L</zero-device>, L</scrub-device>."
24879 msgstr ""
24880
24881 # type: =head2
24882 #: ../fish/guestfish-actions.pod:4585
24883 msgid "zero-device"
24884 msgstr ""
24885
24886 # type: verbatim
24887 #: ../fish/guestfish-actions.pod:4587
24888 #, no-wrap
24889 msgid ""
24890 " zero-device device\n"
24891 "\n"
24892 msgstr ""
24893
24894 # type: textblock
24895 #: ../fish/guestfish-actions.pod:4589
24896 msgid ""
24897 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24898 "which just zeroes the first few blocks of a device."
24899 msgstr ""
24900
24901 # type: =head2
24902 #: ../fish/guestfish-actions.pod:4596
24903 msgid "zerofree"
24904 msgstr ""
24905
24906 # type: verbatim
24907 #: ../fish/guestfish-actions.pod:4598
24908 #, no-wrap
24909 msgid ""
24910 " zerofree device\n"
24911 "\n"
24912 msgstr ""
24913
24914 # type: =head2
24915 #: ../fish/guestfish-actions.pod:4611
24916 msgid "zfgrep"
24917 msgstr ""
24918
24919 # type: verbatim
24920 #: ../fish/guestfish-actions.pod:4613
24921 #, no-wrap
24922 msgid ""
24923 " zfgrep pattern path\n"
24924 "\n"
24925 msgstr ""
24926
24927 # type: =head2
24928 #: ../fish/guestfish-actions.pod:4621
24929 msgid "zfgrepi"
24930 msgstr ""
24931
24932 # type: verbatim
24933 #: ../fish/guestfish-actions.pod:4623
24934 #, no-wrap
24935 msgid ""
24936 " zfgrepi pattern path\n"
24937 "\n"
24938 msgstr ""
24939
24940 # type: =head2
24941 #: ../fish/guestfish-actions.pod:4631
24942 msgid "zfile"
24943 msgstr ""
24944
24945 # type: verbatim
24946 #: ../fish/guestfish-actions.pod:4633
24947 #, no-wrap
24948 msgid ""
24949 " zfile meth path\n"
24950 "\n"
24951 msgstr ""
24952
24953 # type: textblock
24954 #: ../fish/guestfish-actions.pod:4640
24955 msgid ""
24956 "Since 1.0.63, use L</file> instead which can now process compressed files."
24957 msgstr ""
24958
24959 # type: =head2
24960 #: ../fish/guestfish-actions.pod:4650
24961 msgid "zgrep"
24962 msgstr ""
24963
24964 # type: verbatim
24965 #: ../fish/guestfish-actions.pod:4652
24966 #, no-wrap
24967 msgid ""
24968 " zgrep regex path\n"
24969 "\n"
24970 msgstr ""
24971
24972 # type: =head2
24973 #: ../fish/guestfish-actions.pod:4660
24974 msgid "zgrepi"
24975 msgstr ""
24976
24977 # type: verbatim
24978 #: ../fish/guestfish-actions.pod:4662
24979 #, no-wrap
24980 msgid ""
24981 " zgrepi regex path\n"
24982 "\n"
24983 msgstr ""
24984
24985 # type: =head2
24986 #: ../fish/guestfish-commands.pod:1
24987 msgid "alloc"
24988 msgstr ""
24989
24990 # type: =head2
24991 #: ../fish/guestfish-commands.pod:3
24992 msgid "allocate"
24993 msgstr ""
24994
24995 # type: verbatim
24996 #: ../fish/guestfish-commands.pod:5
24997 #, no-wrap
24998 msgid ""
24999 " alloc filename size\n"
25000 "\n"
25001 msgstr ""
25002
25003 # type: textblock
25004 #: ../fish/guestfish-commands.pod:7
25005 msgid ""
25006 "This creates an empty (zeroed) file of the given size, and then adds so it "
25007 "can be further examined."
25008 msgstr ""
25009
25010 # type: textblock
25011 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25012 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25013 msgstr ""
25014
25015 # type: textblock
25016 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25017 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25018 msgstr ""
25019
25020 # type: textblock
25021 #: ../fish/guestfish-commands.pod:14
25022 msgid ""
25023 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25024 "image, see L</PREPARED DISK IMAGES>."
25025 msgstr ""
25026
25027 # type: =head2
25028 #: ../fish/guestfish-commands.pod:17
25029 msgid "copy-in"
25030 msgstr ""
25031
25032 # type: verbatim
25033 #: ../fish/guestfish-commands.pod:19
25034 #, no-wrap
25035 msgid ""
25036 " copy-in local [local ...] /remotedir\n"
25037 "\n"
25038 msgstr ""
25039
25040 # type: textblock
25041 #: ../fish/guestfish-commands.pod:21
25042 msgid ""
25043 "C<copy-in> copies local files or directories recursively into the disk "
25044 "image, placing them in the directory called C</remotedir> (which must "
25045 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25046 "other commands as necessary."
25047 msgstr ""
25048
25049 # type: textblock
25050 #: ../fish/guestfish-commands.pod:26
25051 msgid ""
25052 "Multiple local files and directories can be specified, but the last "
25053 "parameter must always be a remote directory.  Wildcards cannot be used."
25054 msgstr ""
25055
25056 # type: =head2
25057 #: ../fish/guestfish-commands.pod:30
25058 msgid "copy-out"
25059 msgstr ""
25060
25061 # type: verbatim
25062 #: ../fish/guestfish-commands.pod:32
25063 #, no-wrap
25064 msgid ""
25065 " copy-out remote [remote ...] localdir\n"
25066 "\n"
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../fish/guestfish-commands.pod:34
25071 msgid ""
25072 "C<copy-out> copies remote files or directories recursively out of the disk "
25073 "image, placing them on the host disk in a local directory called C<localdir> "
25074 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25075 "download>, L</tar-out> and other commands as necessary."
25076 msgstr ""
25077
25078 # type: textblock
25079 #: ../fish/guestfish-commands.pod:40
25080 msgid ""
25081 "Multiple remote files and directories can be specified, but the last "
25082 "parameter must always be a local directory.  To download to the current "
25083 "directory, use C<.> as in:"
25084 msgstr ""
25085
25086 # type: verbatim
25087 #: ../fish/guestfish-commands.pod:44
25088 #, no-wrap
25089 msgid ""
25090 " copy-out /home .\n"
25091 "\n"
25092 msgstr ""
25093
25094 # type: textblock
25095 #: ../fish/guestfish-commands.pod:46
25096 msgid ""
25097 "Wildcards cannot be used in the ordinary command, but you can use them with "
25098 "the help of L</glob> like this:"
25099 msgstr ""
25100
25101 # type: verbatim
25102 #: ../fish/guestfish-commands.pod:49
25103 #, no-wrap
25104 msgid ""
25105 " glob copy-out /home/* .\n"
25106 "\n"
25107 msgstr ""
25108
25109 # type: =head2
25110 #: ../fish/guestfish-commands.pod:51
25111 msgid "echo"
25112 msgstr ""
25113
25114 # type: verbatim
25115 #: ../fish/guestfish-commands.pod:53
25116 #, no-wrap
25117 msgid ""
25118 " echo [params ...]\n"
25119 "\n"
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../fish/guestfish-commands.pod:55
25124 msgid "This echos the parameters to the terminal."
25125 msgstr ""
25126
25127 # type: =head2
25128 #: ../fish/guestfish-commands.pod:57
25129 msgid "edit"
25130 msgstr ""
25131
25132 # type: =head2
25133 #: ../fish/guestfish-commands.pod:59
25134 msgid "vi"
25135 msgstr ""
25136
25137 # type: =head2
25138 #: ../fish/guestfish-commands.pod:61
25139 msgid "emacs"
25140 msgstr ""
25141
25142 # type: verbatim
25143 #: ../fish/guestfish-commands.pod:63
25144 #, no-wrap
25145 msgid ""
25146 " edit filename\n"
25147 "\n"
25148 msgstr ""
25149
25150 # type: textblock
25151 #: ../fish/guestfish-commands.pod:65
25152 msgid ""
25153 "This is used to edit a file.  It downloads the file, edits it locally using "
25154 "your editor, then uploads the result."
25155 msgstr ""
25156
25157 # type: textblock
25158 #: ../fish/guestfish-commands.pod:68
25159 msgid ""
25160 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25161 "or C<emacs> you will get those corresponding editors."
25162 msgstr ""
25163
25164 # type: =head2
25165 #: ../fish/guestfish-commands.pod:72
25166 msgid "glob"
25167 msgstr ""
25168
25169 # type: verbatim
25170 #: ../fish/guestfish-commands.pod:74
25171 #, no-wrap
25172 msgid ""
25173 " glob command args...\n"
25174 "\n"
25175 msgstr ""
25176
25177 # type: textblock
25178 #: ../fish/guestfish-commands.pod:76
25179 msgid ""
25180 "Expand wildcards in any paths in the args list, and run C<command> "
25181 "repeatedly on each matching path."
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../fish/guestfish-commands.pod:79
25186 msgid "See L</WILDCARDS AND GLOBBING>."
25187 msgstr ""
25188
25189 # type: =head2
25190 #: ../fish/guestfish-commands.pod:81
25191 msgid "hexedit"
25192 msgstr ""
25193
25194 # type: verbatim
25195 #: ../fish/guestfish-commands.pod:83
25196 #, no-wrap
25197 msgid ""
25198 " hexedit <filename|device>\n"
25199 " hexedit <filename|device> <max>\n"
25200 " hexedit <filename|device> <start> <max>\n"
25201 "\n"
25202 msgstr ""
25203
25204 # type: textblock
25205 #: ../fish/guestfish-commands.pod:87
25206 msgid ""
25207 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25208 "device."
25209 msgstr ""
25210
25211 # type: textblock
25212 #: ../fish/guestfish-commands.pod:90
25213 msgid ""
25214 "This command works by downloading potentially the whole file or device, "
25215 "editing it locally, then uploading it.  If the file or device is large, you "
25216 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25217 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25218 "usual modifiers allowed such as C<1M> (1 megabyte)."
25219 msgstr ""
25220
25221 # type: textblock
25222 #: ../fish/guestfish-commands.pod:97
25223 msgid "For example to edit the first few sectors of a disk you might do:"
25224 msgstr ""
25225
25226 # type: verbatim
25227 #: ../fish/guestfish-commands.pod:100
25228 #, no-wrap
25229 msgid ""
25230 " hexedit /dev/sda 1M\n"
25231 "\n"
25232 msgstr ""
25233
25234 # type: textblock
25235 #: ../fish/guestfish-commands.pod:102
25236 msgid ""
25237 "which would allow you to edit anywhere within the first megabyte of the disk."
25238 msgstr ""
25239
25240 # type: textblock
25241 #: ../fish/guestfish-commands.pod:105
25242 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25243 msgstr ""
25244
25245 # type: verbatim
25246 #: ../fish/guestfish-commands.pod:107
25247 #, no-wrap
25248 msgid ""
25249 " hexedit /dev/sda1 0x400 0x400\n"
25250 "\n"
25251 msgstr ""
25252
25253 # type: textblock
25254 #: ../fish/guestfish-commands.pod:109
25255 msgid "(assuming the superblock is in the standard location)."
25256 msgstr ""
25257
25258 # type: textblock
25259 #: ../fish/guestfish-commands.pod:111
25260 msgid ""
25261 "This command requires the external L<hexedit(1)> program.  You can specify "
25262 "another program to use by setting the C<HEXEDITOR> environment variable."
25263 msgstr ""
25264
25265 # type: textblock
25266 #: ../fish/guestfish-commands.pod:115
25267 msgid "See also L</hexdump>."
25268 msgstr ""
25269
25270 # type: =head2
25271 #: ../fish/guestfish-commands.pod:117
25272 msgid "lcd"
25273 msgstr ""
25274
25275 # type: verbatim
25276 #: ../fish/guestfish-commands.pod:119
25277 #, no-wrap
25278 msgid ""
25279 " lcd directory\n"
25280 "\n"
25281 msgstr ""
25282
25283 # type: textblock
25284 #: ../fish/guestfish-commands.pod:121
25285 msgid ""
25286 "Change the local directory, ie. the current directory of guestfish itself."
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../fish/guestfish-commands.pod:124
25291 msgid "Note that C<!cd> won't do what you might expect."
25292 msgstr ""
25293
25294 # type: =head2
25295 #: ../fish/guestfish-commands.pod:126
25296 msgid "man"
25297 msgstr ""
25298
25299 # type: =head2
25300 #: ../fish/guestfish-commands.pod:128
25301 msgid "manual"
25302 msgstr ""
25303
25304 # type: verbatim
25305 #: ../fish/guestfish-commands.pod:130
25306 #, no-wrap
25307 msgid ""
25308 "  man\n"
25309 "\n"
25310 msgstr ""
25311
25312 # type: textblock
25313 #: ../fish/guestfish-commands.pod:132
25314 msgid "Opens the manual page for guestfish."
25315 msgstr ""
25316
25317 # type: =head2
25318 #: ../fish/guestfish-commands.pod:134
25319 msgid "more"
25320 msgstr ""
25321
25322 # type: =head2
25323 #: ../fish/guestfish-commands.pod:136
25324 msgid "less"
25325 msgstr ""
25326
25327 # type: verbatim
25328 #: ../fish/guestfish-commands.pod:138
25329 #, no-wrap
25330 msgid ""
25331 " more filename\n"
25332 "\n"
25333 msgstr ""
25334
25335 # type: verbatim
25336 #: ../fish/guestfish-commands.pod:140
25337 #, no-wrap
25338 msgid ""
25339 " less filename\n"
25340 "\n"
25341 msgstr ""
25342
25343 # type: textblock
25344 #: ../fish/guestfish-commands.pod:142
25345 msgid "This is used to view a file."
25346 msgstr ""
25347
25348 # type: textblock
25349 #: ../fish/guestfish-commands.pod:144
25350 msgid ""
25351 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25352 "C<less> you will get the C<less> command specifically."
25353 msgstr ""
25354
25355 # type: =head2
25356 #: ../fish/guestfish-commands.pod:147
25357 msgid "reopen"
25358 msgstr ""
25359
25360 # type: verbatim
25361 #: ../fish/guestfish-commands.pod:149
25362 #, no-wrap
25363 msgid ""
25364 "  reopen\n"
25365 "\n"
25366 msgstr ""
25367
25368 # type: textblock
25369 #: ../fish/guestfish-commands.pod:151
25370 msgid ""
25371 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25372 "normally, because the handle is closed properly when guestfish exits.  "
25373 "However this is occasionally useful for testing."
25374 msgstr ""
25375
25376 # type: =head2
25377 #: ../fish/guestfish-commands.pod:155
25378 msgid "sparse"
25379 msgstr ""
25380
25381 # type: verbatim
25382 #: ../fish/guestfish-commands.pod:157
25383 #, no-wrap
25384 msgid ""
25385 " sparse filename size\n"
25386 "\n"
25387 msgstr ""
25388
25389 # type: textblock
25390 #: ../fish/guestfish-commands.pod:159
25391 msgid ""
25392 "This creates an empty sparse file of the given size, and then adds so it can "
25393 "be further examined."
25394 msgstr ""
25395
25396 # type: textblock
25397 #: ../fish/guestfish-commands.pod:162
25398 msgid ""
25399 "In all respects it works the same as the L</alloc> command, except that the "
25400 "image file is allocated sparsely, which means that disk blocks are not "
25401 "assigned to the file until they are needed.  Sparse disk files only use "
25402 "space when written to, but they are slower and there is a danger you could "
25403 "run out of real disk space during a write operation."
25404 msgstr ""
25405
25406 # type: =head2
25407 #: ../fish/guestfish-commands.pod:172
25408 msgid "supported"
25409 msgstr ""
25410
25411 # type: verbatim
25412 #: ../fish/guestfish-commands.pod:174
25413 #, no-wrap
25414 msgid ""
25415 " supported\n"
25416 "\n"
25417 msgstr ""
25418
25419 # type: textblock
25420 #: ../fish/guestfish-commands.pod:176
25421 msgid ""
25422 "This command returns a list of the optional groups known to the daemon, and "
25423 "indicates which ones are supported by this build of the libguestfs appliance."
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../fish/guestfish-commands.pod:180
25428 msgid "See also L<guestfs(3)/AVAILABILITY>."
25429 msgstr ""
25430
25431 # type: =head2
25432 #: ../fish/guestfish-commands.pod:182
25433 msgid "time"
25434 msgstr ""
25435
25436 # type: verbatim
25437 #: ../fish/guestfish-commands.pod:184
25438 #, no-wrap
25439 msgid ""
25440 " time command args...\n"
25441 "\n"
25442 msgstr ""
25443
25444 # type: textblock
25445 #: ../fish/guestfish-commands.pod:186
25446 msgid ""
25447 "Run the command as usual, but print the elapsed time afterwards.  This can "
25448 "be useful for benchmarking operations."
25449 msgstr ""
25450
25451 # type: textblock
25452 #: ../test-tool/libguestfs-test-tool.pod:5
25453 msgid "libguestfs-test-tool - End user tests for libguestfs"
25454 msgstr ""
25455
25456 # type: verbatim
25457 #: ../test-tool/libguestfs-test-tool.pod:9
25458 #, no-wrap
25459 msgid ""
25460 " libguestfs-test-tool [--options]\n"
25461 "\n"
25462 msgstr ""
25463
25464 # type: textblock
25465 #: ../test-tool/libguestfs-test-tool.pod:13
25466 msgid ""
25467 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25468 "and developers, to allow them to check basic libguestfs functionality is "
25469 "working.  This is needed because libguestfs occasionally breaks for reasons "
25470 "beyond our control: usually because of changes in the underlying qemu or "
25471 "kernel packages, or the host environment."
25472 msgstr ""
25473
25474 # type: textblock
25475 #: ../test-tool/libguestfs-test-tool.pod:20
25476 msgid "If you suspect a problem in libguestfs, then just run:"
25477 msgstr ""
25478
25479 # type: verbatim
25480 #: ../test-tool/libguestfs-test-tool.pod:22
25481 #, no-wrap
25482 msgid ""
25483 " libguestfs-test-tool\n"
25484 "\n"
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../test-tool/libguestfs-test-tool.pod:24
25489 msgid "It will print lots of diagnostic messages."
25490 msgstr ""
25491
25492 # type: textblock
25493 #: ../test-tool/libguestfs-test-tool.pod:26
25494 msgid "If it runs to completion successfully, you will see this near the end:"
25495 msgstr ""
25496
25497 # type: verbatim
25498 #: ../test-tool/libguestfs-test-tool.pod:28
25499 #, no-wrap
25500 msgid ""
25501 " ===== TEST FINISHED OK =====\n"
25502 "\n"
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../test-tool/libguestfs-test-tool.pod:30
25507 msgid "and the test tool will exit with code 0."
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../test-tool/libguestfs-test-tool.pod:32
25512 msgid ""
25513 "If it fails (and/or exits with non-zero error code), please paste the "
25514 "B<complete, unedited> output of the test tool into a bug report.  More "
25515 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25516 "> website."
25517 msgstr ""
25518
25519 # type: =item
25520 #: ../test-tool/libguestfs-test-tool.pod:41
25521 msgid "I<--help>"
25522 msgstr ""
25523
25524 # type: textblock
25525 #: ../test-tool/libguestfs-test-tool.pod:43
25526 msgid "Display short usage information and exit."
25527 msgstr ""
25528
25529 # type: =item
25530 #: ../test-tool/libguestfs-test-tool.pod:45
25531 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../test-tool/libguestfs-test-tool.pod:47
25536 msgid ""
25537 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25538 "normally look in the C<$libexec> directory that was configured when the tool "
25539 "was built."
25540 msgstr ""
25541
25542 # type: =item
25543 #: ../test-tool/libguestfs-test-tool.pod:51
25544 msgid "I<--qemu qemu_binary>"
25545 msgstr ""
25546
25547 # type: textblock
25548 #: ../test-tool/libguestfs-test-tool.pod:53
25549 msgid ""
25550 "If you have downloaded another qemu binary, point this option at the full "
25551 "path of the binary to try it."
25552 msgstr ""
25553
25554 # type: =item
25555 #: ../test-tool/libguestfs-test-tool.pod:56
25556 msgid "I<--qemudir qemu_source_dir>"
25557 msgstr ""
25558
25559 # type: textblock
25560 #: ../test-tool/libguestfs-test-tool.pod:58
25561 msgid ""
25562 "If you have compiled qemu from source, point this option at the source "
25563 "directory to try it."
25564 msgstr ""
25565
25566 # type: =item
25567 #: ../test-tool/libguestfs-test-tool.pod:61
25568 msgid "I<--timeout N>"
25569 msgstr ""
25570
25571 # type: textblock
25572 #: ../test-tool/libguestfs-test-tool.pod:63
25573 msgid ""
25574 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25575 "does not usually need to be adjusted unless your machine is very slow."
25576 msgstr ""
25577
25578 # type: =head1
25579 #: ../test-tool/libguestfs-test-tool.pod:69
25580 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25581 msgstr ""
25582
25583 # type: textblock
25584 #: ../test-tool/libguestfs-test-tool.pod:71
25585 msgid ""
25586 "If you have compiled another version of qemu from source and would like to "
25587 "try that, then you can use the I<--qemudir> option to point to the qemu "
25588 "source directory."
25589 msgstr ""
25590
25591 # type: textblock
25592 #: ../test-tool/libguestfs-test-tool.pod:75
25593 msgid ""
25594 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25595 "option to point to the binary."
25596 msgstr ""
25597
25598 # type: textblock
25599 #: ../test-tool/libguestfs-test-tool.pod:78
25600 msgid ""
25601 "When using an alternate qemu with libguestfs, usually you would need to "
25602 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25603 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25604 "use either of the I<--qemudir> or I<--qemu> options."
25605 msgstr ""
25606
25607 # type: textblock
25608 #: ../test-tool/libguestfs-test-tool.pod:85
25609 msgid ""
25610 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25611 "I<1> if there was an error."
25612 msgstr ""
25613
25614 # type: =item
25615 #: ../test-tool/libguestfs-test-tool.pod:92
25616 msgid "/usr/libexec/libguestfs-test-tool-helper"
25617 msgstr ""
25618
25619 # type: textblock
25620 #: ../test-tool/libguestfs-test-tool.pod:94
25621 msgid ""
25622 "This helper program is run inside the appliance and provides additional "
25623 "tests."
25624 msgstr ""
25625
25626 # type: =item
25627 #: ../test-tool/libguestfs-test-tool.pod:97
25628 msgid "/usr/bin/mkisofs"
25629 msgstr ""
25630
25631 # type: textblock
25632 #: ../test-tool/libguestfs-test-tool.pod:99
25633 msgid ""
25634 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25635 "which is used as part of the tests."
25636 msgstr ""
25637
25638 # type: textblock
25639 #: ../test-tool/libguestfs-test-tool.pod:106
25640 msgid ""
25641 "For the full list of environment variables which may affect libguestfs, "
25642 "please see the L<guestfs(3)> manual page."
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../test-tool/libguestfs-test-tool.pod:111
25647 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25648 msgstr ""
25649
25650 # type: textblock
25651 #: ../test-tool/libguestfs-test-tool.pod:121
25652 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../fuse/guestmount.pod:5
25657 msgid ""
25658 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25659 msgstr ""
25660
25661 # type: verbatim
25662 #: ../fuse/guestmount.pod:9
25663 #, no-wrap
25664 msgid ""
25665 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25666 "\n"
25667 msgstr ""
25668
25669 # type: verbatim
25670 #: ../fuse/guestmount.pod:11
25671 #, no-wrap
25672 msgid ""
25673 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25674 "\n"
25675 msgstr ""
25676
25677 # type: verbatim
25678 #: ../fuse/guestmount.pod:13
25679 #, no-wrap
25680 msgid ""
25681 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25682 "\n"
25683 msgstr ""
25684
25685 # type: textblock
25686 #: ../fuse/guestmount.pod:17
25687 msgid ""
25688 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25689 "machines.  If you do this, you risk disk corruption in the VM."
25690 msgstr ""
25691
25692 # type: textblock
25693 #: ../fuse/guestmount.pod:22
25694 msgid ""
25695 "The guestmount program can be used to mount virtual machine filesystems and "
25696 "other disk images on the host.  It uses libguestfs for access to the guest "
25697 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25698 "a mountable device."
25699 msgstr ""
25700
25701 # type: textblock
25702 #: ../fuse/guestmount.pod:27
25703 msgid ""
25704 "Along with other options, you have to give at least one device (I<-a> "
25705 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25706 "option) or use the I<-i> inspection option.  How this works is better "
25707 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25708 "below."
25709 msgstr ""
25710
25711 # type: textblock
25712 #: ../fuse/guestmount.pod:33
25713 msgid ""
25714 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25715 "by you, and the filesystem will not be visible to any other users unless you "
25716 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25717 "the filesystem, use the C<fusermount -u> command."
25718 msgstr ""
25719
25720 # type: textblock
25721 #: ../fuse/guestmount.pod:41
25722 msgid ""
25723 "For a typical Windows guest which has its main filesystem on the first "
25724 "partition:"
25725 msgstr ""
25726
25727 # type: verbatim
25728 #: ../fuse/guestmount.pod:44
25729 #, no-wrap
25730 msgid ""
25731 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25732 "\n"
25733 msgstr ""
25734
25735 # type: textblock
25736 #: ../fuse/guestmount.pod:46
25737 msgid ""
25738 "For a typical Linux guest which has a /boot filesystem on the first "
25739 "partition, and the root filesystem on a logical volume:"
25740 msgstr ""
25741
25742 # type: verbatim
25743 #: ../fuse/guestmount.pod:49
25744 #, no-wrap
25745 msgid ""
25746 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25747 "\n"
25748 msgstr ""
25749
25750 # type: textblock
25751 #: ../fuse/guestmount.pod:51
25752 msgid "To get libguestfs to detect guest mountpoints for you:"
25753 msgstr ""
25754
25755 # type: verbatim
25756 #: ../fuse/guestmount.pod:53
25757 #, no-wrap
25758 msgid ""
25759 " guestmount -a guest.img -i --ro /mnt\n"
25760 "\n"
25761 msgstr ""
25762
25763 # type: textblock
25764 #: ../fuse/guestmount.pod:55
25765 msgid "For a libvirt guest called \"Guest\" you could do:"
25766 msgstr ""
25767
25768 # type: verbatim
25769 #: ../fuse/guestmount.pod:57
25770 #, no-wrap
25771 msgid ""
25772 " guestmount -d Guest -i --ro /mnt\n"
25773 "\n"
25774 msgstr ""
25775
25776 # type: textblock
25777 #: ../fuse/guestmount.pod:59
25778 msgid ""
25779 "If you don't know what filesystems are contained in a guest or disk image, "
25780 "use L<virt-filesystems(1)> first:"
25781 msgstr ""
25782
25783 # type: verbatim
25784 #: ../fuse/guestmount.pod:62
25785 #, no-wrap
25786 msgid ""
25787 " virt-filesystems MyGuest\n"
25788 "\n"
25789 msgstr ""
25790
25791 # type: textblock
25792 #: ../fuse/guestmount.pod:64
25793 msgid ""
25794 "If you want to trace the libguestfs calls but without excessive debugging "
25795 "information, we recommend:"
25796 msgstr ""
25797
25798 # type: verbatim
25799 #: ../fuse/guestmount.pod:67
25800 #, no-wrap
25801 msgid ""
25802 " guestmount [...] --trace /mnt\n"
25803 "\n"
25804 msgstr ""
25805
25806 # type: textblock
25807 #: ../fuse/guestmount.pod:69
25808 msgid "If you want to debug the program, we recommend:"
25809 msgstr ""
25810
25811 # type: verbatim
25812 #: ../fuse/guestmount.pod:71
25813 #, no-wrap
25814 msgid ""
25815 " guestmount [...] --trace --verbose /mnt\n"
25816 "\n"
25817 msgstr ""
25818
25819 # type: textblock
25820 #: ../fuse/guestmount.pod:79
25821 msgid "Add a block device or virtual machine image."
25822 msgstr ""
25823
25824 # type: =item
25825 #: ../fuse/guestmount.pod:96
25826 msgid "B<--dir-cache-timeout N>"
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../fuse/guestmount.pod:98
25831 msgid ""
25832 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25833 "seconds.  The readdir cache [actually, there are several semi-independent "
25834 "caches] is populated after a readdir(2) call with the stat and extended "
25835 "attributes of the files in the directory, in anticipation that they will be "
25836 "requested soon after."
25837 msgstr ""
25838
25839 # type: textblock
25840 #: ../fuse/guestmount.pod:104
25841 msgid ""
25842 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25843 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25844 "requests, only cache existing ones."
25845 msgstr ""
25846
25847 # type: textblock
25848 #: ../fuse/guestmount.pod:122
25849 msgid ""
25850 "If you have untrusted raw-format guest disk images, you should use this "
25851 "option to specify the disk format.  This avoids a possible security problem "
25852 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25853 "guestfs_add_drive_opts>."
25854 msgstr ""
25855
25856 # type: =item
25857 #: ../fuse/guestmount.pod:127
25858 msgid "B<--fuse-help>"
25859 msgstr ""
25860
25861 # type: textblock
25862 #: ../fuse/guestmount.pod:129
25863 msgid "Display help on special FUSE options (see I<-o> below)."
25864 msgstr ""
25865
25866 # type: textblock
25867 #: ../fuse/guestmount.pod:133
25868 msgid "Display brief help and exit."
25869 msgstr ""
25870
25871 # type: =item
25872 #: ../fuse/guestmount.pod:146
25873 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25874 msgstr ""
25875
25876 # type: textblock
25877 #: ../fuse/guestmount.pod:148
25878 msgid ""
25879 "Mount the named partition or logical volume on the given mountpoint B<in the "
25880 "guest> (this has nothing to do with mountpoints in the host)."
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../fuse/guestmount.pod:151
25885 msgid ""
25886 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25887 "something on C</>."
25888 msgstr ""
25889
25890 # type: textblock
25891 #: ../fuse/guestmount.pod:156
25892 msgid ""
25893 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25894 "unmounted.  If you specify this option, then we don't attempt to sync the "
25895 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25896 msgstr ""
25897
25898 # type: =item
25899 #: ../fuse/guestmount.pod:161
25900 msgid "B<-o option> | B<--option option>"
25901 msgstr ""
25902
25903 # type: textblock
25904 #: ../fuse/guestmount.pod:163
25905 msgid "Pass extra options to FUSE."
25906 msgstr ""
25907
25908 # type: textblock
25909 #: ../fuse/guestmount.pod:165
25910 msgid ""
25911 "To get a list of all the extra options supported by FUSE, use the command "
25912 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25913 "of them are a good idea."
25914 msgstr ""
25915
25916 # type: verbatim
25917 #: ../fuse/guestmount.pod:169
25918 #, no-wrap
25919 msgid ""
25920 " guestmount --fuse-help\n"
25921 "\n"
25922 msgstr ""
25923
25924 # type: textblock
25925 #: ../fuse/guestmount.pod:171
25926 msgid "Some potentially useful FUSE options:"
25927 msgstr ""
25928
25929 # type: =item
25930 #: ../fuse/guestmount.pod:175
25931 msgid "B<-o allow_other>"
25932 msgstr ""
25933
25934 # type: textblock
25935 #: ../fuse/guestmount.pod:177
25936 msgid "Allow other users to see the filesystem."
25937 msgstr ""
25938
25939 # type: =item
25940 #: ../fuse/guestmount.pod:179
25941 msgid "B<-o attr_timeout=N>"
25942 msgstr ""
25943
25944 # type: textblock
25945 #: ../fuse/guestmount.pod:181
25946 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25947 msgstr ""
25948
25949 # type: =item
25950 #: ../fuse/guestmount.pod:183
25951 msgid "B<-o kernel_cache>"
25952 msgstr ""
25953
25954 # type: textblock
25955 #: ../fuse/guestmount.pod:185
25956 msgid ""
25957 "Allow the kernel to cache files (reduces the number of reads that have to go "
25958 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25959 "afford the extra memory usage."
25960 msgstr ""
25961
25962 # type: =item
25963 #: ../fuse/guestmount.pod:189
25964 msgid "B<-o uid=N> B<-o gid=N>"
25965 msgstr ""
25966
25967 # type: textblock
25968 #: ../fuse/guestmount.pod:191
25969 msgid ""
25970 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25971 "the chosen values."
25972 msgstr ""
25973
25974 # type: textblock
25975 #: ../fuse/guestmount.pod:198
25976 msgid ""
25977 "Add devices and mount everything read-only.  Also disallow writes and make "
25978 "the disk appear read-only to FUSE."
25979 msgstr ""
25980
25981 # type: textblock
25982 #: ../fuse/guestmount.pod:201
25983 msgid ""
25984 "This is highly recommended if you are not going to edit the guest disk.  If "
25985 "the guest is running and this option is I<not> supplied, then there is a "
25986 "strong risk of disk corruption in the guest.  We try to prevent this from "
25987 "happening, but it is not always possible."
25988 msgstr ""
25989
25990 # type: textblock
25991 #: ../fuse/guestmount.pod:206
25992 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../fuse/guestmount.pod:210
25997 msgid "Enable SELinux support for the guest."
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../fuse/guestmount.pod:214
26002 msgid "Enable verbose messages from underlying libguestfs."
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../fuse/guestmount.pod:218
26007 msgid "Display the program version and exit."
26008 msgstr ""
26009
26010 # type: textblock
26011 #: ../fuse/guestmount.pod:222
26012 msgid ""
26013 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26014 "FOR READ AND WRITE>."
26015 msgstr ""
26016
26017 # type: =item
26018 #: ../fuse/guestmount.pod:225
26019 msgid "B<-x> | B<--trace>"
26020 msgstr ""
26021
26022 # type: textblock
26023 #: ../fuse/guestmount.pod:227
26024 msgid "Trace libguestfs calls."
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../fuse/guestmount.pod:229
26029 msgid "This also stops the daemon from forking into the background."
26030 msgstr ""
26031
26032 # type: textblock
26033 #: ../fuse/guestmount.pod:235
26034 msgid ""
26035 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26036 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26037 "net/>."
26038 msgstr ""
26039
26040 # type: textblock
26041 #: ../tools/virt-edit.pl:34
26042 msgid "virt-edit - Edit a file in a virtual machine"
26043 msgstr ""
26044
26045 # type: verbatim
26046 #: ../tools/virt-edit.pl:38
26047 #, no-wrap
26048 msgid ""
26049 " virt-edit [--options] domname file\n"
26050 "\n"
26051 msgstr ""
26052
26053 # type: verbatim
26054 #: ../tools/virt-edit.pl:40
26055 #, no-wrap
26056 msgid ""
26057 " virt-edit [--options] disk.img [disk.img ...] file\n"
26058 "\n"
26059 msgstr ""
26060
26061 # type: verbatim
26062 #: ../tools/virt-edit.pl:42
26063 #, no-wrap
26064 msgid ""
26065 " virt-edit [domname|disk.img] file -e 'expr'\n"
26066 "\n"
26067 msgstr ""
26068
26069 # type: textblock
26070 #: ../tools/virt-edit.pl:46
26071 msgid ""
26072 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26073 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26074 "doing this, but doesn't catch all cases."
26075 msgstr ""
26076
26077 # type: textblock
26078 #: ../tools/virt-edit.pl:52
26079 msgid ""
26080 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26081 "the named virtual machine (or disk image)."
26082 msgstr ""
26083
26084 # type: textblock
26085 #: ../tools/virt-edit.pl:55
26086 msgid ""
26087 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26088 "you should look at the L<guestfish(1)> tool."
26089 msgstr ""
26090
26091 # type: textblock
26092 #: ../tools/virt-edit.pl:60
26093 msgid "Edit the named files interactively:"
26094 msgstr ""
26095
26096 # type: verbatim
26097 #: ../tools/virt-edit.pl:62
26098 #, no-wrap
26099 msgid ""
26100 " virt-edit mydomain /boot/grub/grub.conf\n"
26101 "\n"
26102 msgstr ""
26103
26104 # type: verbatim
26105 #: ../tools/virt-edit.pl:64
26106 #, no-wrap
26107 msgid ""
26108 " virt-edit mydomain /etc/passwd\n"
26109 "\n"
26110 msgstr ""
26111
26112 # type: textblock
26113 #: ../tools/virt-edit.pl:66
26114 msgid ""
26115 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26116 "below).  To change the init default level to 5:"
26117 msgstr ""
26118
26119 # type: verbatim
26120 #: ../tools/virt-edit.pl:70
26121 #, no-wrap
26122 msgid ""
26123 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26124 "\n"
26125 msgstr ""
26126
26127 # type: textblock
26128 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26129 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26130 #: ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163
26131 #: ../tools/virt-list-partitions.pl:64
26132 msgid "Display brief help."
26133 msgstr ""
26134
26135 # type: =item
26136 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26137 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:69
26138 #: ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119
26139 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
26140 msgid "B<--version>"
26141 msgstr ""
26142
26143 # type: textblock
26144 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26145 #: ../tools/virt-resize.pl:274 ../tools/virt-list-filesystems.pl:71
26146 #: ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121
26147 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
26148 msgid "Display version number and exit."
26149 msgstr ""
26150
26151 # type: =item
26152 #: ../tools/virt-edit.pl:96
26153 msgid "B<--backup extension> | B<-b extension>"
26154 msgstr ""
26155
26156 # type: textblock
26157 #: ../tools/virt-edit.pl:98
26158 msgid ""
26159 "Create a backup of the original file I<in the guest disk image>.  The backup "
26160 "has the original filename with C<extension> added."
26161 msgstr ""
26162
26163 # type: textblock
26164 #: ../tools/virt-edit.pl:101
26165 msgid ""
26166 "Usually the first character of C<extension> would be a dot C<.> so you would "
26167 "write:"
26168 msgstr ""
26169
26170 # type: verbatim
26171 #: ../tools/virt-edit.pl:104
26172 #, no-wrap
26173 msgid ""
26174 " virt-edit -b .orig [etc]\n"
26175 "\n"
26176 msgstr ""
26177
26178 # type: textblock
26179 #: ../tools/virt-edit.pl:106
26180 msgid "By default, no backup file is made."
26181 msgstr ""
26182
26183 # type: =item
26184 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26185 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26186 #: ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:78
26187 msgid "B<--connect URI> | B<-c URI>"
26188 msgstr ""
26189
26190 # type: textblock
26191 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26192 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26193 #: ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:80
26194 msgid ""
26195 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26196 "to the default libvirt hypervisor."
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26201 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26202 #: ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:83
26203 msgid ""
26204 "If you specify guest block devices directly, then libvirt is not used at all."
26205 msgstr ""
26206
26207 # type: =item
26208 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26209 #: ../tools/virt-resize.pl:522 ../tools/virt-list-filesystems.pl:89
26210 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
26211 #: ../tools/virt-list-partitions.pl:90
26212 msgid "B<--format> raw"
26213 msgstr ""
26214
26215 # type: textblock
26216 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26217 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26218 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:92
26219 msgid ""
26220 "Specify the format of disk images given on the command line.  If this is "
26221 "omitted then the format is autodetected from the content of the disk image."
26222 msgstr ""
26223
26224 # type: textblock
26225 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26226 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26227 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:96
26228 msgid ""
26229 "If disk images are requested from libvirt, then this program asks libvirt "
26230 "for this information.  In this case, the value of the format parameter is "
26231 "ignored."
26232 msgstr ""
26233
26234 # type: textblock
26235 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26236 #: ../tools/virt-resize.pl:527 ../tools/virt-resize.pl:542
26237 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26238 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:100
26239 msgid ""
26240 "If working with untrusted raw-format guest disk images, you should ensure "
26241 "the format is always specified."
26242 msgstr ""
26243
26244 # type: =item
26245 #: ../tools/virt-edit.pl:141
26246 msgid "B<--expr EXPR> | B<-e EXPR>"
26247 msgstr ""
26248
26249 # type: textblock
26250 #: ../tools/virt-edit.pl:143
26251 msgid ""
26252 "Instead of launching the external editor, non-interactively apply the Perl "
26253 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26254 "EDITING> below."
26255 msgstr ""
26256
26257 # type: textblock
26258 #: ../tools/virt-edit.pl:147
26259 msgid ""
26260 "Be careful to properly quote the expression to prevent it from being altered "
26261 "by the shell."
26262 msgstr ""
26263
26264 # type: =head1
26265 #: ../tools/virt-edit.pl:268
26266 msgid "NON-INTERACTIVE EDITING"
26267 msgstr ""
26268
26269 # type: textblock
26270 #: ../tools/virt-edit.pl:270
26271 msgid ""
26272 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26273 "administrator can interactively edit the file."
26274 msgstr ""
26275
26276 # type: textblock
26277 #: ../tools/virt-edit.pl:273
26278 msgid ""
26279 "There are two ways also to use C<virt-edit> from scripts in order to make "
26280 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26281 "like this, it's less error-prone to write scripts directly using the "
26282 "libguestfs API and Augeas for configuration file editing.)"
26283 msgstr ""
26284
26285 # type: textblock
26286 #: ../tools/virt-edit.pl:279
26287 msgid ""
26288 "The first method is to temporarily set C<$EDITOR> to any script or program "
26289 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26290 "update C<tmpfile> in place however it likes."
26291 msgstr ""
26292
26293 # type: textblock
26294 #: ../tools/virt-edit.pl:283
26295 msgid ""
26296 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26297 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26298 "instances of C<foo> with C<bar> in a file:"
26299 msgstr ""
26300
26301 # type: verbatim
26302 #: ../tools/virt-edit.pl:287
26303 #, no-wrap
26304 msgid ""
26305 " virt-edit domname filename -e 's/foo/bar/'\n"
26306 "\n"
26307 msgstr ""
26308
26309 # type: textblock
26310 #: ../tools/virt-edit.pl:289
26311 msgid ""
26312 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26313 "For example to delete root's password you could do:"
26314 msgstr ""
26315
26316 # type: verbatim
26317 #: ../tools/virt-edit.pl:292
26318 #, no-wrap
26319 msgid ""
26320 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26321 "\n"
26322 msgstr ""
26323
26324 # type: textblock
26325 #: ../tools/virt-edit.pl:294
26326 msgid ""
26327 "What really happens is that the snippet is evaluated as a Perl expression "
26328 "for each line of the file.  The line, including the final C<\\n>, is passed "
26329 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26330 msgstr ""
26331
26332 # type: textblock
26333 #: ../tools/virt-edit.pl:299
26334 msgid ""
26335 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26336 "C<apache> user account from the password file you can do:"
26337 msgstr ""
26338
26339 # type: verbatim
26340 #: ../tools/virt-edit.pl:302
26341 #, no-wrap
26342 msgid ""
26343 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26344 "\n"
26345 msgstr ""
26346
26347 # type: textblock
26348 #: ../tools/virt-edit.pl:304
26349 msgid ""
26350 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26351 "the end of the file is rather difficult this way since there is no concept "
26352 "of \"last line of the file\" - your expression just doesn't get called "
26353 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26354 "want to do this."
26355 msgstr ""
26356
26357 # type: textblock
26358 #: ../tools/virt-edit.pl:310
26359 msgid ""
26360 "The variable C<$lineno> contains the current line number.  As is "
26361 "traditional, the first line in the file is number C<1>."
26362 msgstr ""
26363
26364 # type: textblock
26365 #: ../tools/virt-edit.pl:313
26366 msgid ""
26367 "The return value from the expression is ignored, but the expression may call "
26368 "C<die> in order to abort the whole program, leaving the original file "
26369 "untouched."
26370 msgstr ""
26371
26372 # type: textblock
26373 #: ../tools/virt-edit.pl:317
26374 msgid ""
26375 "Remember when matching the end of a line that C<$_> may contain the final C<"
26376 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26377 "newline then neither of these.  Thus to match or substitute some text at the "
26378 "end of a line, use this regular expression:"
26379 msgstr ""
26380
26381 # type: verbatim
26382 #: ../tools/virt-edit.pl:322
26383 #, no-wrap
26384 msgid ""
26385 " /some text(\\r?\\n)?$/\n"
26386 "\n"
26387 msgstr ""
26388
26389 # type: textblock
26390 #: ../tools/virt-edit.pl:324
26391 msgid ""
26392 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26393 "$_> itself (since that would remove all newlines from the file):"
26394 msgstr ""
26395
26396 # type: verbatim
26397 #: ../tools/virt-edit.pl:328
26398 #, no-wrap
26399 msgid ""
26400 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26401 "\n"
26402 msgstr ""
26403
26404 # type: =item
26405 #: ../tools/virt-edit.pl:334
26406 msgid "C<EDITOR>"
26407 msgstr ""
26408
26409 # type: textblock
26410 #: ../tools/virt-edit.pl:336
26411 msgid ""
26412 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26413 "\"emacs -nw\">"
26414 msgstr ""
26415
26416 # type: textblock
26417 #: ../tools/virt-edit.pl:339
26418 msgid "If not set, C<vi> is used."
26419 msgstr ""
26420
26421 # type: =head2
26422 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26423 #: ../tools/virt-win-reg.pl:477 ../tools/virt-resize.pl:1478
26424 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274
26425 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
26426 #: ../tools/virt-list-partitions.pl:250
26427 msgid "SHELL QUOTING"
26428 msgstr ""
26429
26430 # type: textblock
26431 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26432 #: ../tools/virt-resize.pl:1480 ../tools/virt-list-filesystems.pl:184
26433 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
26434 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:252
26435 msgid ""
26436 "Libvirt guest names can contain arbitrary characters, some of which have "
26437 "meaning to the shell such as C<#> and space.  You may need to quote or "
26438 "escape these characters on the command line.  See the shell manual page L<sh"
26439 "(1)> for details."
26440 msgstr ""
26441
26442 # type: textblock
26443 #: ../tools/virt-edit.pl:352
26444 msgid ""
26445 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26446 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26447 "L<perlre(1)>."
26448 msgstr ""
26449
26450 # type: =head1
26451 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26452 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:202
26453 #: ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277
26454 #: ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:269
26455 msgid "AUTHOR"
26456 msgstr ""
26457
26458 # type: textblock
26459 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26460 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:204
26461 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
26462 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:271
26463 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26464 msgstr ""
26465
26466 # type: textblock
26467 #: ../tools/virt-edit.pl:368 ../tools/virt-rescue.pl:283
26468 #: ../tools/virt-list-partitions.pl:275
26469 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26470 msgstr ""
26471
26472 # type: textblock
26473 #: ../tools/virt-win-reg.pl:37
26474 msgid ""
26475 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26476 msgstr ""
26477
26478 # type: verbatim
26479 #: ../tools/virt-win-reg.pl:41
26480 #, no-wrap
26481 msgid ""
26482 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26483 "\n"
26484 msgstr ""
26485
26486 # type: verbatim
26487 #: ../tools/virt-win-reg.pl:43
26488 #, no-wrap
26489 msgid ""
26490 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26491 "\n"
26492 msgstr ""
26493
26494 # type: verbatim
26495 #: ../tools/virt-win-reg.pl:45
26496 #, no-wrap
26497 msgid ""
26498 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26499 "\n"
26500 msgstr ""
26501
26502 # type: verbatim
26503 #: ../tools/virt-win-reg.pl:47
26504 #, no-wrap
26505 msgid ""
26506 " virt-win-reg --merge domname [input.reg ...]\n"
26507 "\n"
26508 msgstr ""
26509
26510 # type: verbatim
26511 #: ../tools/virt-win-reg.pl:49
26512 #, no-wrap
26513 msgid ""
26514 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26515 "\n"
26516 msgstr ""
26517
26518 # type: textblock
26519 #: ../tools/virt-win-reg.pl:53
26520 msgid ""
26521 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26522 "virtual machines.  If you do this, you I<will> get irreversible disk "
26523 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26524 "but doesn't catch all cases."
26525 msgstr ""
26526
26527 # type: textblock
26528 #: ../tools/virt-win-reg.pl:58
26529 msgid ""
26530 "Modifying the Windows Registry is an inherently risky operation.  The format "
26531 "is deliberately obscure and undocumented, and Registry changes can leave the "
26532 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26533 "you have a reliable backup first."
26534 msgstr ""
26535
26536 # type: textblock
26537 #: ../tools/virt-win-reg.pl:65
26538 msgid ""
26539 "This program can export and merge Windows Registry entries from a Windows "
26540 "guest."
26541 msgstr ""
26542
26543 # type: textblock
26544 #: ../tools/virt-win-reg.pl:68
26545 msgid ""
26546 "The first parameter is the libvirt guest name or the raw disk image of a "
26547 "Windows guest."
26548 msgstr ""
26549
26550 # type: textblock
26551 #: ../tools/virt-win-reg.pl:71
26552 msgid ""
26553 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26554 "exported (recursively).  For example:"
26555 msgstr ""
26556
26557 # type: verbatim
26558 #: ../tools/virt-win-reg.pl:74
26559 #, no-wrap
26560 msgid ""
26561 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26562 "\n"
26563 msgstr ""
26564
26565 # type: textblock
26566 #: ../tools/virt-win-reg.pl:76
26567 msgid ""
26568 "You can also display single values from within registry keys, for example:"
26569 msgstr ""
26570
26571 # type: verbatim
26572 #: ../tools/virt-win-reg.pl:79
26573 #, no-wrap
26574 msgid ""
26575 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26576 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26577 " Windows 7 Enterprise\n"
26578 "\n"
26579 msgstr ""
26580
26581 # type: textblock
26582 #: ../tools/virt-win-reg.pl:83
26583 msgid ""
26584 "With C<--merge>, you can merge a textual regedit file into the Windows "
26585 "Registry:"
26586 msgstr ""
26587
26588 # type: verbatim
26589 #: ../tools/virt-win-reg.pl:86
26590 #, no-wrap
26591 msgid ""
26592 " $ virt-win-reg --merge Windows7 changes.reg\n"
26593 "\n"
26594 msgstr ""
26595
26596 # type: =head2
26597 #: ../tools/virt-win-reg.pl:88
26598 msgid "SUPPORTED SYSTEMS"
26599 msgstr ""
26600
26601 # type: textblock
26602 #: ../tools/virt-win-reg.pl:90
26603 msgid ""
26604 "The program currently supports Windows NT-derived guests starting with "
26605 "Windows XP through to at least Windows 7."
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-win-reg.pl:93
26610 msgid ""
26611 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26612 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26613 "and C<HKEY_USERS\\.DEFAULT>."
26614 msgstr ""
26615
26616 # type: textblock
26617 #: ../tools/virt-win-reg.pl:97
26618 msgid ""
26619 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26620 "C<HKEY_USERS>."
26621 msgstr ""
26622
26623 # type: textblock
26624 #: ../tools/virt-win-reg.pl:100
26625 msgid ""
26626 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26627 "time."
26628 msgstr ""
26629
26630 # type: =head2
26631 #: ../tools/virt-win-reg.pl:103
26632 msgid "NOTE"
26633 msgstr ""
26634
26635 # type: textblock
26636 #: ../tools/virt-win-reg.pl:105
26637 msgid ""
26638 "This program is only meant for simple access to the registry.  If you want "
26639 "to do complicated things with the registry, we suggest you download the "
26640 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26641 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26642 "L<hivexregedit(1)>."
26643 msgstr ""
26644
26645 # type: =head2
26646 #: ../tools/virt-win-reg.pl:111
26647 msgid "ENCODING"
26648 msgstr ""
26649
26650 # type: textblock
26651 #: ../tools/virt-win-reg.pl:113
26652 msgid ""
26653 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26654 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26655 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26656 "Windows-style line endings, you may need to reencode the whole file before "
26657 "or after processing."
26658 msgstr ""
26659
26660 # type: textblock
26661 #: ../tools/virt-win-reg.pl:119
26662 msgid ""
26663 "To reencode a file from Windows format to Linux (before processing it with "
26664 "the C<--merge> option), you would do something like this:"
26665 msgstr ""
26666
26667 # type: verbatim
26668 #: ../tools/virt-win-reg.pl:122
26669 #, no-wrap
26670 msgid ""
26671 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26672 "\n"
26673 msgstr ""
26674
26675 # type: textblock
26676 #: ../tools/virt-win-reg.pl:124
26677 msgid ""
26678 "To go in the opposite direction, after exporting and before sending the file "
26679 "to a Windows user, do something like this:"
26680 msgstr ""
26681
26682 # type: verbatim
26683 #: ../tools/virt-win-reg.pl:127
26684 #, no-wrap
26685 msgid ""
26686 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26687 "\n"
26688 msgstr ""
26689
26690 # type: textblock
26691 #: ../tools/virt-win-reg.pl:129
26692 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26693 msgstr ""
26694
26695 # type: textblock
26696 #: ../tools/virt-win-reg.pl:131
26697 msgid ""
26698 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26699 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26700 "style (CRLF) line endings, like this:"
26701 msgstr ""
26702
26703 # type: verbatim
26704 #: ../tools/virt-win-reg.pl:135
26705 #, no-wrap
26706 msgid ""
26707 " $ file software.reg\n"
26708 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26709 " with CRLF line terminators\n"
26710 "\n"
26711 msgstr ""
26712
26713 # type: textblock
26714 #: ../tools/virt-win-reg.pl:139
26715 msgid "This file would need conversion before you could C<--merge> it."
26716 msgstr ""
26717
26718 # type: textblock
26719 #: ../tools/virt-win-reg.pl:143
26720 msgid ""
26721 "Be careful when passing parameters containing C<\\> (backslash) in the "
26722 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26723 "(but not both) to protect them from the shell."
26724 msgstr ""
26725
26726 # type: textblock
26727 #: ../tools/virt-win-reg.pl:147
26728 msgid "Paths and value names are case-insensitive."
26729 msgstr ""
26730
26731 # type: =head2
26732 #: ../tools/virt-win-reg.pl:149
26733 msgid "CurrentControlSet etc."
26734 msgstr ""
26735
26736 # type: textblock
26737 #: ../tools/virt-win-reg.pl:151
26738 msgid ""
26739 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26740 "Registry at the level of the hive file, and therefore you cannot modify "
26741 "these."
26742 msgstr ""
26743
26744 # type: textblock
26745 #: ../tools/virt-win-reg.pl:155
26746 msgid ""
26747 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26748 "circumstances it might refer to another control set.  The way to find out is "
26749 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26750 msgstr ""
26751
26752 # type: verbatim
26753 #: ../tools/virt-win-reg.pl:159
26754 #, no-wrap
26755 msgid ""
26756 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26757 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26758 " \"Current\"=dword:00000001\n"
26759 " \"Default\"=dword:00000001\n"
26760 " \"Failed\"=dword:00000000\n"
26761 " \"LastKnownGood\"=dword:00000002\n"
26762 "\n"
26763 msgstr ""
26764
26765 # type: textblock
26766 #: ../tools/virt-win-reg.pl:166
26767 msgid "\"Current\" is the one which Windows will choose when it boots."
26768 msgstr ""
26769
26770 # type: textblock
26771 #: ../tools/virt-win-reg.pl:168
26772 msgid ""
26773 "Similarly, other C<Current...> keys in the path may need to be replaced."
26774 msgstr ""
26775
26776 # type: =item
26777 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26778 msgid "B<--debug>"
26779 msgstr ""
26780
26781 # type: textblock
26782 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:500
26783 msgid "Enable debugging messages."
26784 msgstr ""
26785
26786 # type: =item
26787 #: ../tools/virt-win-reg.pl:232
26788 msgid "B<--merge>"
26789 msgstr ""
26790
26791 # type: textblock
26792 #: ../tools/virt-win-reg.pl:234
26793 msgid ""
26794 "In merge mode, this merges a textual regedit file into the Windows Registry "
26795 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26796 "displays or exports Registry entries instead."
26797 msgstr ""
26798
26799 # type: textblock
26800 #: ../tools/virt-win-reg.pl:238
26801 msgid ""
26802 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26803 "result in disk corruption.  However exporting (without this flag)  is always "
26804 "safe."
26805 msgstr ""
26806
26807 # type: =item
26808 #: ../tools/virt-win-reg.pl:246
26809 msgid "B<--encoding> UTF-16LE|ASCII"
26810 msgstr ""
26811
26812 # type: textblock
26813 #: ../tools/virt-win-reg.pl:248
26814 msgid ""
26815 "When merging (only), you may need to specify the encoding for strings to be "
26816 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26817 "(3)/ENCODING STRINGS>."
26818 msgstr ""
26819
26820 # type: textblock
26821 #: ../tools/virt-win-reg.pl:252
26822 msgid ""
26823 "The default is to use UTF-16LE, which should work with recent versions of "
26824 "Windows."
26825 msgstr ""
26826
26827 # type: textblock
26828 #: ../tools/virt-win-reg.pl:486
26829 msgid ""
26830 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26831 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26832 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26833 msgstr ""
26834
26835 # type: textblock
26836 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26837 msgid ""
26838 "When reporting bugs, please enable debugging and capture the I<complete> "
26839 "output:"
26840 msgstr ""
26841
26842 # type: verbatim
26843 #: ../tools/virt-win-reg.pl:504
26844 #, no-wrap
26845 msgid ""
26846 " export LIBGUESTFS_DEBUG=1\n"
26847 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26848 "\n"
26849 msgstr ""
26850
26851 # type: textblock
26852 #: ../tools/virt-win-reg.pl:507
26853 msgid ""
26854 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26855 "redhat.com/>"
26856 msgstr ""
26857
26858 # type: textblock
26859 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1512
26860 #: ../tools/virt-make-fs.pl:565
26861 msgid "Copyright (C) 2010 Red Hat Inc."
26862 msgstr ""
26863
26864 # type: textblock
26865 #: ../tools/virt-resize.pl:42
26866 msgid "virt-resize - Resize a virtual machine disk"
26867 msgstr ""
26868
26869 # type: verbatim
26870 #: ../tools/virt-resize.pl:46
26871 #, no-wrap
26872 msgid ""
26873 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26874 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26875 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26876 "\n"
26877 msgstr ""
26878
26879 # type: textblock
26880 #: ../tools/virt-resize.pl:52
26881 msgid ""
26882 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26883 "larger or smaller overall, and resizing or deleting any partitions contained "
26884 "within."
26885 msgstr ""
26886
26887 # type: textblock
26888 #: ../tools/virt-resize.pl:56
26889 msgid ""
26890 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26891 "not> be used on live virtual machines - for consistent results, shut the "
26892 "virtual machine down before resizing it."
26893 msgstr ""
26894
26895 # type: textblock
26896 #: ../tools/virt-resize.pl:60
26897 msgid ""
26898 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26899 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26900 msgstr ""
26901
26902 # type: textblock
26903 #: ../tools/virt-resize.pl:66
26904 msgid ""
26905 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26906 "fill the extra 5GB of space."
26907 msgstr ""
26908
26909 # type: verbatim
26910 #: ../tools/virt-resize.pl:69
26911 #, no-wrap
26912 msgid ""
26913 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26914 " virt-filesystems --long --h --all -a olddisk\n"
26915 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26916 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26917 "\n"
26918 msgstr ""
26919
26920 # type: textblock
26921 #: ../tools/virt-resize.pl:74
26922 msgid ""
26923 "As above, but make the /boot partition 200MB bigger, while giving the "
26924 "remaining space to /dev/sda2:"
26925 msgstr ""
26926
26927 # type: verbatim
26928 #: ../tools/virt-resize.pl:77
26929 #, no-wrap
26930 msgid ""
26931 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26932 "\n"
26933 msgstr ""
26934
26935 # type: textblock
26936 #: ../tools/virt-resize.pl:79
26937 msgid "As above, but the output format will be uncompressed qcow2:"
26938 msgstr ""
26939
26940 # type: verbatim
26941 #: ../tools/virt-resize.pl:81
26942 #, no-wrap
26943 msgid ""
26944 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26945 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26946 "\n"
26947 msgstr ""
26948
26949 # type: =head1
26950 #: ../tools/virt-resize.pl:84
26951 msgid "DETAILED USAGE"
26952 msgstr ""
26953
26954 # type: =head2
26955 #: ../tools/virt-resize.pl:86
26956 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26957 msgstr ""
26958
26959 # type: =item
26960 #: ../tools/virt-resize.pl:90
26961 msgid "1. Shut down the virtual machine"
26962 msgstr ""
26963
26964 # type: =item
26965 #: ../tools/virt-resize.pl:92
26966 msgid "2. Locate input disk image"
26967 msgstr ""
26968
26969 # type: textblock
26970 #: ../tools/virt-resize.pl:94
26971 msgid ""
26972 "Locate the input disk image (ie. the file or device on the host containing "
26973 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26974 "dumpxml> like this to find the disk image name:"
26975 msgstr ""
26976
26977 # type: verbatim
26978 #: ../tools/virt-resize.pl:98
26979 #, no-wrap
26980 msgid ""
26981 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26982 " Found 1 nodes:\n"
26983 " -- NODE --\n"
26984 " <source dev=\"/dev/vg/lv_guest\" />\n"
26985 "\n"
26986 msgstr ""
26987
26988 # type: =item
26989 #: ../tools/virt-resize.pl:103
26990 msgid "3. Look at current sizing"
26991 msgstr ""
26992
26993 # type: textblock
26994 #: ../tools/virt-resize.pl:105
26995 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
26996 msgstr ""
26997
26998 # type: verbatim
26999 #: ../tools/virt-resize.pl:108
27000 #, no-wrap
27001 msgid ""
27002 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27003 " Name       Type       Size  Parent\n"
27004 " /dev/sda1  partition  101M  /dev/sda\n"
27005 " /dev/sda2  partition  7.9G  /dev/sda\n"
27006 " /dev/sda   device     8.0G  -\n"
27007 "\n"
27008 msgstr ""
27009
27010 # type: textblock
27011 #: ../tools/virt-resize.pl:114
27012 msgid ""
27013 "(This example is a virtual machine with an 8 GB disk which we would like to "
27014 "expand up to 10 GB)."
27015 msgstr ""
27016
27017 # type: =item
27018 #: ../tools/virt-resize.pl:117
27019 msgid "4. Create output disk"
27020 msgstr ""
27021
27022 # type: textblock
27023 #: ../tools/virt-resize.pl:119
27024 msgid ""
27025 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27026 "to store the resized output disk."
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-resize.pl:122
27031 msgid ""
27032 "To store the resized disk image in a file, create a file of a suitable size:"
27033 msgstr ""
27034
27035 # type: verbatim
27036 #: ../tools/virt-resize.pl:125
27037 #, no-wrap
27038 msgid ""
27039 " # rm -f outdisk\n"
27040 " # truncate -s 10G outdisk\n"
27041 "\n"
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-resize.pl:128
27046 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27047 msgstr ""
27048
27049 # type: verbatim
27050 #: ../tools/virt-resize.pl:130
27051 #, no-wrap
27052 msgid ""
27053 " # lvcreate -L 10G -n lv_name vg_name\n"
27054 "\n"
27055 msgstr ""
27056
27057 # type: textblock
27058 #: ../tools/virt-resize.pl:132
27059 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27060 msgstr ""
27061
27062 # type: verbatim
27063 #: ../tools/virt-resize.pl:134
27064 #, no-wrap
27065 msgid ""
27066 " # virsh pool-list\n"
27067 " # virsh vol-create-as poolname newvol 10G\n"
27068 "\n"
27069 msgstr ""
27070
27071 # type: =item
27072 #: ../tools/virt-resize.pl:137
27073 msgid "5. Resize"
27074 msgstr ""
27075
27076 # type: textblock
27077 #: ../tools/virt-resize.pl:139
27078 msgid ""
27079 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27080 "file) and the output disk.  The output disk is the one created in the "
27081 "previous step."
27082 msgstr ""
27083
27084 # type: verbatim
27085 #: ../tools/virt-resize.pl:143
27086 #, no-wrap
27087 msgid ""
27088 " # virt-resize indisk outdisk\n"
27089 "\n"
27090 msgstr ""
27091
27092 # type: textblock
27093 #: ../tools/virt-resize.pl:145
27094 msgid ""
27095 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27096 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27097 "larger, then an extra, empty partition is created at the end of the disk "
27098 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27099 "error."
27100 msgstr ""
27101
27102 # type: textblock
27103 #: ../tools/virt-resize.pl:151
27104 msgid ""
27105 "More realistically you'd want to expand existing partitions in the disk "
27106 "image by passing extra options (for the full list see the L</OPTIONS> "
27107 "section below)."
27108 msgstr ""
27109
27110 # type: textblock
27111 #: ../tools/virt-resize.pl:155
27112 msgid ""
27113 "L</--expand> is the most useful option.  It expands the named partition "
27114 "within the disk to fill any extra space:"
27115 msgstr ""
27116
27117 # type: verbatim
27118 #: ../tools/virt-resize.pl:158
27119 #, no-wrap
27120 msgid ""
27121 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27122 "\n"
27123 msgstr ""
27124
27125 # type: textblock
27126 #: ../tools/virt-resize.pl:160
27127 msgid ""
27128 "(In this case, an extra partition is I<not> created at the end of the disk, "
27129 "because there will be no unused space)."
27130 msgstr ""
27131
27132 # type: textblock
27133 #: ../tools/virt-resize.pl:163
27134 msgid ""
27135 "L</--resize> is the other commonly used option.  The following would "
27136 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27137 "rest of the available space:"
27138 msgstr ""
27139
27140 # type: verbatim
27141 #: ../tools/virt-resize.pl:167
27142 #, no-wrap
27143 msgid ""
27144 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27145 "     indisk outdisk\n"
27146 "\n"
27147 msgstr ""
27148
27149 # type: textblock
27150 #: ../tools/virt-resize.pl:170
27151 msgid ""
27152 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27153 "if virt-resize knows how, it will resize the contents, the equivalent of "
27154 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27155 ">.  However virt-resize does not know how to resize some filesystems, so you "
27156 "would have to online resize them after booting the guest.  And virt-resize "
27157 "also does not resize anything inside an LVM PV, it just resizes the PV "
27158 "itself and leaves the user to resize any LVs inside that PV as desired."
27159 msgstr ""
27160
27161 # type: textblock
27162 #: ../tools/virt-resize.pl:179
27163 msgid "Other options are covered below."
27164 msgstr ""
27165
27166 # type: =item
27167 #: ../tools/virt-resize.pl:181
27168 msgid "6. Test"
27169 msgstr ""
27170
27171 # type: textblock
27172 #: ../tools/virt-resize.pl:183
27173 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27174 msgstr ""
27175
27176 # type: textblock
27177 #: ../tools/virt-resize.pl:185
27178 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27179 msgstr ""
27180
27181 # type: verbatim
27182 #: ../tools/virt-resize.pl:187
27183 #, no-wrap
27184 msgid ""
27185 " # virsh edit guestname\n"
27186 "\n"
27187 msgstr ""
27188
27189 # type: textblock
27190 #: ../tools/virt-resize.pl:189
27191 msgid ""
27192 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27193 "html#elementsDisks>"
27194 msgstr ""
27195
27196 # type: textblock
27197 #: ../tools/virt-resize.pl:192
27198 msgid "Then start up the domain with the new, resized disk:"
27199 msgstr ""
27200
27201 # type: verbatim
27202 #: ../tools/virt-resize.pl:194
27203 #, no-wrap
27204 msgid ""
27205 " # virsh start guestname\n"
27206 "\n"
27207 msgstr ""
27208
27209 # type: textblock
27210 #: ../tools/virt-resize.pl:196
27211 msgid ""
27212 "and check that it still works.  See also the L</NOTES> section below for "
27213 "additional information."
27214 msgstr ""
27215
27216 # type: =item
27217 #: ../tools/virt-resize.pl:199
27218 msgid "7. Resize LVs etc inside the guest"
27219 msgstr ""
27220
27221 # type: textblock
27222 #: ../tools/virt-resize.pl:201
27223 msgid "(This can also be done offline using L<guestfish(1)>)"
27224 msgstr ""
27225
27226 # type: textblock
27227 #: ../tools/virt-resize.pl:203
27228 msgid ""
27229 "Once the guest has booted you should see the new space available, at least "
27230 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27231 "may need to resize LVs inside PVs, and also resize filesystem types that "
27232 "virt-resize does not know how to expand."
27233 msgstr ""
27234
27235 # type: =head2
27236 #: ../tools/virt-resize.pl:210
27237 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27238 msgstr ""
27239
27240 # type: textblock
27241 #: ../tools/virt-resize.pl:212
27242 msgid ""
27243 "Shrinking is somewhat more complex than expanding, and only an overview is "
27244 "given here."
27245 msgstr ""
27246
27247 # type: textblock
27248 #: ../tools/virt-resize.pl:215
27249 msgid ""
27250 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27251 "filesystems).  The user has to shrink content before passing the disk image "
27252 "to virt-resize, and virt-resize will check that the content has been shrunk "
27253 "properly."
27254 msgstr ""
27255
27256 # type: textblock
27257 #: ../tools/virt-resize.pl:220
27258 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27259 msgstr ""
27260
27261 # type: textblock
27262 #: ../tools/virt-resize.pl:222
27263 msgid ""
27264 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27265 "steps 3 and 4 above to allocate a new disk image."
27266 msgstr ""
27267
27268 # type: textblock
27269 #: ../tools/virt-resize.pl:225
27270 msgid ""
27271 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27272 msgstr ""
27273
27274 # type: =head2
27275 #: ../tools/virt-resize.pl:228
27276 msgid "IGNORING OR DELETING PARTITIONS"
27277 msgstr ""
27278
27279 # type: textblock
27280 #: ../tools/virt-resize.pl:230
27281 msgid ""
27282 "virt-resize also gives a convenient way to ignore or delete partitions when "
27283 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27284 "up the copy where you don't care about the existing contents of a "
27285 "partition.  Deleting a partition removes it completely, but note that it "
27286 "also renumbers any partitions after the one which is deleted, which can "
27287 "leave some guests unbootable."
27288 msgstr ""
27289
27290 # type: =head2
27291 #: ../tools/virt-resize.pl:237
27292 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-resize.pl:239
27297 msgid ""
27298 "If the input disk is in qcow2 format, then you may prefer that the output is "
27299 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27300 "the fly.  The output format is simply determined by the format of the empty "
27301 "output container that you provide.  Thus to create qcow2 output, use:"
27302 msgstr ""
27303
27304 # type: verbatim
27305 #: ../tools/virt-resize.pl:245
27306 #, no-wrap
27307 msgid ""
27308 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27309 "\n"
27310 msgstr ""
27311
27312 # type: textblock
27313 #: ../tools/virt-resize.pl:247
27314 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27315 msgstr ""
27316
27317 # type: textblock
27318 #: ../tools/virt-resize.pl:249
27319 msgid "Similarly, to get non-sparse raw output use:"
27320 msgstr ""
27321
27322 # type: verbatim
27323 #: ../tools/virt-resize.pl:251
27324 #, no-wrap
27325 msgid ""
27326 " fallocate -l size outdisk\n"
27327 "\n"
27328 msgstr ""
27329
27330 # type: textblock
27331 #: ../tools/virt-resize.pl:253
27332 msgid ""
27333 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27334 "dev/zero of=outdisk bs=1M count=..>)"
27335 msgstr ""
27336
27337 # type: textblock
27338 #: ../tools/virt-resize.pl:266
27339 msgid "Display help."
27340 msgstr ""
27341
27342 # type: =item
27343 #: ../tools/virt-resize.pl:280
27344 msgid "B<--resize part=size>"
27345 msgstr ""
27346
27347 # type: textblock
27348 #: ../tools/virt-resize.pl:282
27349 msgid ""
27350 "Resize the named partition (expanding or shrinking it) so that it has the "
27351 "given size."
27352 msgstr ""
27353
27354 # type: textblock
27355 #: ../tools/virt-resize.pl:285
27356 msgid ""
27357 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27358 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27359 "Exabytes; or as a percentage of the current size; or as a relative number or "
27360 "percentage.  For example:"
27361 msgstr ""
27362
27363 # type: verbatim
27364 #: ../tools/virt-resize.pl:290
27365 #, no-wrap
27366 msgid ""
27367 " --resize /dev/sda2=10G\n"
27368 "\n"
27369 msgstr ""
27370
27371 # type: verbatim
27372 #: ../tools/virt-resize.pl:292
27373 #, no-wrap
27374 msgid ""
27375 " --resize /dev/sda4=90%\n"
27376 "\n"
27377 msgstr ""
27378
27379 # type: verbatim
27380 #: ../tools/virt-resize.pl:294
27381 #, no-wrap
27382 msgid ""
27383 " --resize /dev/sda2=+1G\n"
27384 "\n"
27385 msgstr ""
27386
27387 # type: verbatim
27388 #: ../tools/virt-resize.pl:296
27389 #, no-wrap
27390 msgid ""
27391 " --resize /dev/sda2=-200M\n"
27392 "\n"
27393 msgstr ""
27394
27395 # type: verbatim
27396 #: ../tools/virt-resize.pl:298
27397 #, no-wrap
27398 msgid ""
27399 " --resize /dev/sda1=+128K\n"
27400 "\n"
27401 msgstr ""
27402
27403 # type: verbatim
27404 #: ../tools/virt-resize.pl:300
27405 #, no-wrap
27406 msgid ""
27407 " --resize /dev/sda1=+10%\n"
27408 "\n"
27409 msgstr ""
27410
27411 # type: verbatim
27412 #: ../tools/virt-resize.pl:302
27413 #, no-wrap
27414 msgid ""
27415 " --resize /dev/sda1=-10%\n"
27416 "\n"
27417 msgstr ""
27418
27419 # type: textblock
27420 #: ../tools/virt-resize.pl:304
27421 msgid ""
27422 "You can increase the size of any partition.  Virt-resize will expand the "
27423 "direct content of the partition if it knows how (see C<--expand> below)."
27424 msgstr ""
27425
27426 # type: textblock
27427 #: ../tools/virt-resize.pl:308
27428 msgid ""
27429 "You can only I<decrease> the size of partitions that contain filesystems or "
27430 "PVs which have already been shrunk.  Virt-resize will check this has been "
27431 "done before proceeding, or else will print an error (see also C<--resize-"
27432 "force>)."
27433 msgstr ""
27434
27435 # type: textblock
27436 #: ../tools/virt-resize.pl:313 ../tools/virt-resize.pl:405
27437 #: ../tools/virt-resize.pl:422
27438 msgid "You can give this option multiple times."
27439 msgstr ""
27440
27441 # type: =item
27442 #: ../tools/virt-resize.pl:319
27443 msgid "B<--resize-force part=size>"
27444 msgstr ""
27445
27446 # type: textblock
27447 #: ../tools/virt-resize.pl:321
27448 msgid ""
27449 "This is the same as C<--resize> except that it will let you decrease the "
27450 "size of any partition.  Generally this means you will lose any data which "
27451 "was at the end of the partition you shrink, but you may not care about that "
27452 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27453 "as a swap partition)."
27454 msgstr ""
27455
27456 # type: textblock
27457 #: ../tools/virt-resize.pl:327
27458 msgid "See also the C<--ignore> option."
27459 msgstr ""
27460
27461 # type: =item
27462 #: ../tools/virt-resize.pl:333
27463 msgid "B<--expand part>"
27464 msgstr ""
27465
27466 # type: textblock
27467 #: ../tools/virt-resize.pl:335
27468 msgid ""
27469 "Expand the named partition so it uses up all extra space (space left over "
27470 "after any other resize changes that you request have been done)."
27471 msgstr ""
27472
27473 # type: textblock
27474 #: ../tools/virt-resize.pl:338
27475 msgid ""
27476 "If virt-resize knows how, it will expand the direct content of the "
27477 "partition.  For example, if the partition is an LVM PV, it will expand the "
27478 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27479 "content it doesn't know about alone."
27480 msgstr ""
27481
27482 # type: textblock
27483 #: ../tools/virt-resize.pl:343
27484 msgid "Currently virt-resize can resize:"
27485 msgstr ""
27486
27487 # type: textblock
27488 #: ../tools/virt-resize.pl:349
27489 msgid ""
27490 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27491 "partition."
27492 msgstr ""
27493
27494 # type: textblock
27495 #: ../tools/virt-resize.pl:354
27496 msgid ""
27497 "NTFS filesystems contained directly in a partition, if libguestfs was "
27498 "compiled with support for NTFS."
27499 msgstr ""
27500
27501 # type: textblock
27502 #: ../tools/virt-resize.pl:357
27503 msgid ""
27504 "The filesystem must have been shut down consistently last time it was used.  "
27505 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27506 "consistency check, so at the first boot after resizing Windows will check "
27507 "the disk."
27508 msgstr ""
27509
27510 # type: textblock
27511 #: ../tools/virt-resize.pl:364
27512 msgid ""
27513 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27514 "inside the PV.  The user will have to resize LVs as desired."
27515 msgstr ""
27516
27517 # type: textblock
27518 #: ../tools/virt-resize.pl:370 ../tools/virt-resize.pl:392
27519 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27520 msgstr ""
27521
27522 # type: =item
27523 #: ../tools/virt-resize.pl:376
27524 msgid "B<--shrink part>"
27525 msgstr ""
27526
27527 # type: textblock
27528 #: ../tools/virt-resize.pl:378
27529 msgid ""
27530 "Shrink the named partition until the overall disk image fits in the "
27531 "destination.  The named partition B<must> contain a filesystem or PV which "
27532 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27533 "online tools).  Virt-resize will check this and give an error if it has not "
27534 "been done."
27535 msgstr ""
27536
27537 # type: textblock
27538 #: ../tools/virt-resize.pl:384
27539 msgid ""
27540 "The amount by which the overall disk must be shrunk (after carrying out all "
27541 "other operations requested by the user) is called the \"deficit\".  For "
27542 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27543 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27544 "would give an error unless the user specified a partition to shrink and that "
27545 "partition had more than a gigabyte of free space."
27546 msgstr ""
27547
27548 # type: =item
27549 #: ../tools/virt-resize.pl:398
27550 msgid "B<--ignore part>"
27551 msgstr ""
27552
27553 # type: textblock
27554 #: ../tools/virt-resize.pl:400
27555 msgid ""
27556 "Ignore the named partition.  Effectively this means the partition is "
27557 "allocated on the destination disk, but the content is not copied across from "
27558 "the source disk.  The content of the partition will be blank (all zero "
27559 "bytes)."
27560 msgstr ""
27561
27562 # type: =item
27563 #: ../tools/virt-resize.pl:411
27564 msgid "B<--delete part>"
27565 msgstr ""
27566
27567 # type: textblock
27568 #: ../tools/virt-resize.pl:413
27569 msgid ""
27570 "Delete the named partition.  It would be more accurate to describe this as "
27571 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27572 "the original disk image is left intact."
27573 msgstr ""
27574
27575 # type: textblock
27576 #: ../tools/virt-resize.pl:417
27577 msgid ""
27578 "Note that when you delete a partition, then anything contained in the "
27579 "partition is also deleted.  Furthermore, this causes any partitions that "
27580 "come after to be I<renumbered>, which can easily make your guest unbootable."
27581 msgstr ""
27582
27583 # type: =item
27584 #: ../tools/virt-resize.pl:428
27585 msgid "B<--LV-expand logvol>"
27586 msgstr ""
27587
27588 # type: textblock
27589 #: ../tools/virt-resize.pl:430
27590 msgid ""
27591 "This takes the logical volume and, as a final step, expands it to fill all "
27592 "the space available in its volume group.  A typical usage, assuming a Linux "
27593 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27594 "lv_root> would be:"
27595 msgstr ""
27596
27597 # type: verbatim
27598 #: ../tools/virt-resize.pl:435
27599 #, no-wrap
27600 msgid ""
27601 " virt-resize indisk outdisk \\\n"
27602 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27603 "\n"
27604 msgstr ""
27605
27606 # type: textblock
27607 #: ../tools/virt-resize.pl:438
27608 msgid ""
27609 "This would first expand the partition (and PV), and then expand the root "
27610 "device to fill the extra space in the PV."
27611 msgstr ""
27612
27613 # type: textblock
27614 #: ../tools/virt-resize.pl:441
27615 msgid ""
27616 "The contents of the LV are also resized if virt-resize knows how to do "
27617 "that.  You can stop virt-resize from trying to expand the content by using "
27618 "the option C<--no-expand-content>."
27619 msgstr ""
27620
27621 # type: textblock
27622 #: ../tools/virt-resize.pl:445
27623 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-resize.pl:448
27628 msgid ""
27629 "You can give this option multiple times, I<but> it doesn't make sense to do "
27630 "this unless the logical volumes you specify are all in different volume "
27631 "groups."
27632 msgstr ""
27633
27634 # type: =item
27635 #: ../tools/virt-resize.pl:456
27636 msgid "B<--no-copy-boot-loader>"
27637 msgstr ""
27638
27639 # type: textblock
27640 #: ../tools/virt-resize.pl:458
27641 msgid ""
27642 "By default, virt-resize copies over some sectors at the start of the disk "
27643 "(up to the beginning of the first partition).  Commonly these sectors "
27644 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27645 "in order for the guest to boot correctly."
27646 msgstr ""
27647
27648 # type: textblock
27649 #: ../tools/virt-resize.pl:463
27650 msgid ""
27651 "If you specify this flag, then this initial copy is not done.  You may need "
27652 "to reinstall the boot loader in this case."
27653 msgstr ""
27654
27655 # type: =item
27656 #: ../tools/virt-resize.pl:471
27657 msgid "B<--no-extra-partition>"
27658 msgstr ""
27659
27660 # type: textblock
27661 #: ../tools/virt-resize.pl:473
27662 msgid ""
27663 "By default, virt-resize creates an extra partition if there is any extra, "
27664 "unused space after all resizing has happened.  Use this option to prevent "
27665 "the extra partition from being created.  If you do this then the extra space "
27666 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27667 "tool in the guest."
27668 msgstr ""
27669
27670 # type: textblock
27671 #: ../tools/virt-resize.pl:479
27672 msgid ""
27673 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27674 "will be created."
27675 msgstr ""
27676
27677 # type: =item
27678 #: ../tools/virt-resize.pl:486
27679 msgid "B<--no-expand-content>"
27680 msgstr ""
27681
27682 # type: textblock
27683 #: ../tools/virt-resize.pl:488
27684 msgid ""
27685 "By default, virt-resize will try to expand the direct contents of "
27686 "partitions, if it knows how (see C<--expand> option above)."
27687 msgstr ""
27688
27689 # type: textblock
27690 #: ../tools/virt-resize.pl:491
27691 msgid ""
27692 "If you give the C<--no-expand-content> option then virt-resize will not "
27693 "attempt this."
27694 msgstr ""
27695
27696 # type: =item
27697 #: ../tools/virt-resize.pl:498
27698 msgid "B<-d> | B<--debug>"
27699 msgstr ""
27700
27701 # type: =item
27702 #: ../tools/virt-resize.pl:506
27703 msgid "B<-n> | B<--dryrun>"
27704 msgstr ""
27705
27706 # type: textblock
27707 #: ../tools/virt-resize.pl:508
27708 msgid "Print a summary of what would be done, but don't do anything."
27709 msgstr ""
27710
27711 # type: =item
27712 #: ../tools/virt-resize.pl:514
27713 msgid "B<-q> | B<--quiet>"
27714 msgstr ""
27715
27716 # type: textblock
27717 #: ../tools/virt-resize.pl:516
27718 msgid "Don't print the summary."
27719 msgstr ""
27720
27721 # type: textblock
27722 #: ../tools/virt-resize.pl:524
27723 msgid ""
27724 "Specify the format of the input disk image.  If this flag is not given then "
27725 "it is auto-detected from the image itself."
27726 msgstr ""
27727
27728 # type: textblock
27729 #: ../tools/virt-resize.pl:530
27730 msgid ""
27731 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27732 "AND NON-SPARSE RAW FORMATS>."
27733 msgstr ""
27734
27735 # type: =item
27736 #: ../tools/virt-resize.pl:537
27737 msgid "B<--output-format> raw"
27738 msgstr ""
27739
27740 # type: textblock
27741 #: ../tools/virt-resize.pl:539
27742 msgid ""
27743 "Specify the format of the output disk image.  If this flag is not given then "
27744 "it is auto-detected from the image itself."
27745 msgstr ""
27746
27747 # type: textblock
27748 #: ../tools/virt-resize.pl:545
27749 msgid ""
27750 "Note that you still need to create the output disk with the right format.  "
27751 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27752 msgstr ""
27753
27754 # type: =head1
27755 #: ../tools/virt-resize.pl:1421 ../tools/virt-rescue.pl:90
27756 msgid "NOTES"
27757 msgstr ""
27758
27759 # type: =head2
27760 #: ../tools/virt-resize.pl:1423
27761 msgid "\"Partition 1 does not end on cylinder boundary.\""
27762 msgstr ""
27763
27764 # type: textblock
27765 #: ../tools/virt-resize.pl:1425
27766 msgid ""
27767 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27768 "means the partitions will not be aligned to the ancient CHS geometry.  "
27769 "However CHS geometry is meaningless for disks manufactured since the early "
27770 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27771 "cylinders is not required by any modern operating system."
27772 msgstr ""
27773
27774 # type: =head2
27775 #: ../tools/virt-resize.pl:1432
27776 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27777 msgstr ""
27778
27779 # type: textblock
27780 #: ../tools/virt-resize.pl:1434
27781 msgid ""
27782 "In Windows Vista and later versions, Microsoft switched to using a separate "
27783 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27784 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27785 "the boot partition.  Doing so seems to break the guest completely.  However "
27786 "expanding the second partition (ie. C: drive) should work."
27787 msgstr ""
27788
27789 # type: textblock
27790 #: ../tools/virt-resize.pl:1441
27791 msgid ""
27792 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27793 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27794 "it find errors) is nothing to worry about."
27795 msgstr ""
27796
27797 # type: =head2
27798 #: ../tools/virt-resize.pl:1445
27799 msgid "GUEST BOOT STUCK AT \"GRUB\""
27800 msgstr ""
27801
27802 # type: textblock
27803 #: ../tools/virt-resize.pl:1447
27804 msgid ""
27805 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27806 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27807 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27808 "although we think is to do with partition alignment."
27809 msgstr ""
27810
27811 # type: verbatim
27812 #: ../tools/virt-resize.pl:1452
27813 #, no-wrap
27814 msgid ""
27815 " guestfish -i -a newdisk\n"
27816 " ><fs> cat /boot/grub/device.map\n"
27817 " # check the contents of this file are sensible or\n"
27818 " # edit the file if necessary\n"
27819 " ><fs> grub-install / /dev/vda\n"
27820 " ><fs> exit\n"
27821 "\n"
27822 msgstr ""
27823
27824 # type: textblock
27825 #: ../tools/virt-resize.pl:1459
27826 msgid ""
27827 "For more flexible guest reconfiguration, including if you need to specify "
27828 "other parameters to grub-install, use L<virt-rescue(1)>."
27829 msgstr ""
27830
27831 # type: =head1
27832 #: ../tools/virt-resize.pl:1462
27833 msgid "ALTERNATIVE TOOLS"
27834 msgstr ""
27835
27836 # type: textblock
27837 #: ../tools/virt-resize.pl:1464
27838 msgid ""
27839 "There are several proprietary tools for resizing partitions.  We won't "
27840 "mention any here."
27841 msgstr ""
27842
27843 # type: textblock
27844 #: ../tools/virt-resize.pl:1467
27845 msgid ""
27846 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27847 "operations on disk images.  They can resize and move partitions, but I don't "
27848 "think they can do anything with the contents, and they certainly don't "
27849 "understand LVM."
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-resize.pl:1472
27854 msgid ""
27855 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27856 "but at a much lower level.  You will probably end up hand-calculating sector "
27857 "offsets, which is something that virt-resize was designed to avoid.  If you "
27858 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27859 "C<--debug> flag."
27860 msgstr ""
27861
27862 # type: textblock
27863 #: ../tools/virt-resize.pl:1487
27864 msgid ""
27865 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
27866 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
27867 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
27868 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
27869 "libguestfs.org/>."
27870 msgstr ""
27871
27872 # type: textblock
27873 #: ../tools/virt-list-filesystems.pl:32
27874 msgid ""
27875 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27876 msgstr ""
27877
27878 # type: verbatim
27879 #: ../tools/virt-list-filesystems.pl:36
27880 #, no-wrap
27881 msgid ""
27882 " virt-list-filesystems [--options] domname\n"
27883 "\n"
27884 msgstr ""
27885
27886 # type: verbatim
27887 #: ../tools/virt-list-filesystems.pl:38
27888 #, no-wrap
27889 msgid ""
27890 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27891 "\n"
27892 msgstr ""
27893
27894 # type: textblock
27895 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27896 msgid ""
27897 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27898 "replacement."
27899 msgstr ""
27900
27901 # type: textblock
27902 #: ../tools/virt-list-filesystems.pl:45
27903 msgid ""
27904 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27905 "are contained in a virtual machine or disk image."
27906 msgstr ""
27907
27908 # type: textblock
27909 #: ../tools/virt-list-filesystems.pl:49
27910 msgid ""
27911 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27912 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27913 "> tool."
27914 msgstr ""
27915
27916 # type: =item
27917 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27918 msgid "B<-l> | B<--long>"
27919 msgstr ""
27920
27921 # type: textblock
27922 #: ../tools/virt-list-filesystems.pl:108
27923 msgid ""
27924 "With this option, C<virt-list-filesystems> displays the type of each "
27925 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27926 msgstr ""
27927
27928 # type: =item
27929 #: ../tools/virt-list-filesystems.pl:115
27930 msgid "B<-a> | B<--all>"
27931 msgstr ""
27932
27933 # type: textblock
27934 #: ../tools/virt-list-filesystems.pl:117
27935 msgid ""
27936 "Normally we only show mountable filesystems.  If this option is given then "
27937 "swap devices are shown too."
27938 msgstr ""
27939
27940 # type: textblock
27941 #: ../tools/virt-list-filesystems.pl:191
27942 msgid ""
27943 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
27944 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27945 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27946 msgstr ""
27947
27948 # type: textblock
27949 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27950 msgid "Copyright (C) 2009 Red Hat Inc."
27951 msgstr ""
27952
27953 # type: textblock
27954 #: ../tools/virt-tar.pl:33
27955 msgid "virt-tar - Extract or upload files to a virtual machine"
27956 msgstr ""
27957
27958 # type: verbatim
27959 #: ../tools/virt-tar.pl:37
27960 #, no-wrap
27961 msgid ""
27962 " virt-tar [--options] -x domname directory tarball\n"
27963 "\n"
27964 msgstr ""
27965
27966 # type: verbatim
27967 #: ../tools/virt-tar.pl:39
27968 #, no-wrap
27969 msgid ""
27970 " virt-tar [--options] -u domname tarball directory\n"
27971 "\n"
27972 msgstr ""
27973
27974 # type: verbatim
27975 #: ../tools/virt-tar.pl:41
27976 #, no-wrap
27977 msgid ""
27978 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27979 "\n"
27980 msgstr ""
27981
27982 # type: verbatim
27983 #: ../tools/virt-tar.pl:43
27984 #, no-wrap
27985 msgid ""
27986 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27987 "\n"
27988 msgstr ""
27989
27990 # type: textblock
27991 #: ../tools/virt-tar.pl:47
27992 msgid "Download C</home> from the VM into a local tarball:"
27993 msgstr ""
27994
27995 # type: verbatim
27996 #: ../tools/virt-tar.pl:49
27997 #, no-wrap
27998 msgid ""
27999 " virt-tar -x domname /home home.tar\n"
28000 "\n"
28001 msgstr ""
28002
28003 # type: verbatim
28004 #: ../tools/virt-tar.pl:51
28005 #, no-wrap
28006 msgid ""
28007 " virt-tar -zx domname /home home.tar.gz\n"
28008 "\n"
28009 msgstr ""
28010
28011 # type: textblock
28012 #: ../tools/virt-tar.pl:53
28013 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28014 msgstr ""
28015
28016 # type: verbatim
28017 #: ../tools/virt-tar.pl:55
28018 #, no-wrap
28019 msgid ""
28020 " virt-tar -u domname uploadstuff.tar /tmp\n"
28021 "\n"
28022 msgstr ""
28023
28024 # type: verbatim
28025 #: ../tools/virt-tar.pl:57
28026 #, no-wrap
28027 msgid ""
28028 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28029 "\n"
28030 msgstr ""
28031
28032 # type: textblock
28033 #: ../tools/virt-tar.pl:61
28034 msgid ""
28035 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28036 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28037 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28038 msgstr ""
28039
28040 # type: textblock
28041 #: ../tools/virt-tar.pl:66
28042 msgid ""
28043 "You can use C<-x> (extract) on live virtual machines, but you might get "
28044 "inconsistent results or errors if there is filesystem activity inside the "
28045 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28046 "work, but the only way to guarantee consistent results is if the virtual "
28047 "machine is shut down."
28048 msgstr ""
28049
28050 # type: textblock
28051 #: ../tools/virt-tar.pl:74
28052 msgid ""
28053 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28054 "parts of a guest filesystem.  There are many possibilities: making backups, "
28055 "uploading data files, snooping on guest activity, fixing or customizing "
28056 "guests, etc."
28057 msgstr ""
28058
28059 # type: textblock
28060 #: ../tools/virt-tar.pl:79
28061 msgid ""
28062 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28063 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28064 "should look at the L<guestfish(1)> tool."
28065 msgstr ""
28066
28067 # type: textblock
28068 #: ../tools/virt-tar.pl:83
28069 msgid ""
28070 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28071 "its contents (recursively) from the virtual machine into a local tarball.  "
28072 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28073 "virtual machine.  You cannot use these two options together."
28074 msgstr ""
28075
28076 # type: textblock
28077 #: ../tools/virt-tar.pl:89
28078 msgid ""
28079 "In addition, you may need to use the C<-z> (gZip) option to enable "
28080 "compression.  When uploading, you have to specify C<-z> if the upload file "
28081 "is compressed because virt-tar won't detect this on its own."
28082 msgstr ""
28083
28084 # type: textblock
28085 #: ../tools/virt-tar.pl:93
28086 msgid ""
28087 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28088 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28089 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28090 "the L<libguestfs(3)> API)."
28091 msgstr ""
28092
28093 # type: =item
28094 #: ../tools/virt-tar.pl:151
28095 msgid "B<-x> | B<--extract> | B<--download>"
28096 msgstr ""
28097
28098 # type: =item
28099 #: ../tools/virt-tar.pl:153
28100 msgid "B<-u> | B<--upload>"
28101 msgstr ""
28102
28103 # type: textblock
28104 #: ../tools/virt-tar.pl:155
28105 msgid ""
28106 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28107 "local tarball."
28108 msgstr ""
28109
28110 # type: textblock
28111 #: ../tools/virt-tar.pl:158
28112 msgid ""
28113 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28114 "Please read the L</WARNING> section above before using this option."
28115 msgstr ""
28116
28117 # type: textblock
28118 #: ../tools/virt-tar.pl:162
28119 msgid "You must specify exactly one of these options."
28120 msgstr ""
28121
28122 # type: =item
28123 #: ../tools/virt-tar.pl:168
28124 msgid "B<-z> | B<--gzip>"
28125 msgstr ""
28126
28127 # type: textblock
28128 #: ../tools/virt-tar.pl:170
28129 msgid "Specify that the input or output tarball is gzip-compressed."
28130 msgstr ""
28131
28132 # type: textblock
28133 #: ../tools/virt-tar.pl:283
28134 msgid ""
28135 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28136 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28137 "org/>."
28138 msgstr ""
28139
28140 # type: textblock
28141 #: ../tools/virt-rescue.pl:33
28142 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28143 msgstr ""
28144
28145 # type: verbatim
28146 #: ../tools/virt-rescue.pl:37
28147 #, no-wrap
28148 msgid ""
28149 " virt-rescue [--options] domname\n"
28150 "\n"
28151 msgstr ""
28152
28153 # type: verbatim
28154 #: ../tools/virt-rescue.pl:39
28155 #, no-wrap
28156 msgid ""
28157 " virt-rescue [--options] disk.img [disk.img ...]\n"
28158 "\n"
28159 msgstr ""
28160
28161 # type: textblock
28162 #: ../tools/virt-rescue.pl:43
28163 msgid ""
28164 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28165 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28166 "you from doing this, but doesn't catch all cases."
28167 msgstr ""
28168
28169 # type: textblock
28170 #: ../tools/virt-rescue.pl:47
28171 msgid ""
28172 "However if you use the I<--ro> (read only) option, then you can attach a "
28173 "shell to a live virtual machine.  The results might be strange or "
28174 "inconsistent at times but you won't get disk corruption."
28175 msgstr ""
28176
28177 # type: textblock
28178 #: ../tools/virt-rescue.pl:53
28179 msgid ""
28180 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28181 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28182 "recovery tools which you can use to examine or rescue a virtual machine or "
28183 "disk image."
28184 msgstr ""
28185
28186 # type: textblock
28187 #: ../tools/virt-rescue.pl:58
28188 msgid ""
28189 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28190 "on disk image(s):"
28191 msgstr ""
28192
28193 # type: verbatim
28194 #: ../tools/virt-rescue.pl:61
28195 #, no-wrap
28196 msgid ""
28197 " virt-rescue GuestName\n"
28198 "\n"
28199 msgstr ""
28200
28201 # type: verbatim
28202 #: ../tools/virt-rescue.pl:63
28203 #, no-wrap
28204 msgid ""
28205 " virt-rescue --ro /path/to/disk.img\n"
28206 "\n"
28207 msgstr ""
28208
28209 # type: verbatim
28210 #: ../tools/virt-rescue.pl:65
28211 #, no-wrap
28212 msgid ""
28213 " virt-rescue /dev/sdc\n"
28214 "\n"
28215 msgstr ""
28216
28217 # type: textblock
28218 #: ../tools/virt-rescue.pl:67
28219 msgid "For live VMs you I<must> use the --ro option."
28220 msgstr ""
28221
28222 # type: textblock
28223 #: ../tools/virt-rescue.pl:69
28224 msgid ""
28225 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28226 "in an interactive bash shell where you can use many ordinary Linux "
28227 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28228 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28229 "is an empty directory called C</sysroot> where you can mount filesystems."
28230 msgstr ""
28231
28232 # type: textblock
28233 #: ../tools/virt-rescue.pl:76
28234 msgid ""
28235 "In the example below, we list logical volumes, then choose one to mount "
28236 "under C</sysroot>:"
28237 msgstr ""
28238
28239 # type: verbatim
28240 #: ../tools/virt-rescue.pl:79
28241 #, no-wrap
28242 msgid ""
28243 " ><rescue> lvs\n"
28244 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28245 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28246 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28247 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28248 " ><rescue> ls /sysroot\n"
28249 "\n"
28250 msgstr ""
28251
28252 # type: textblock
28253 #: ../tools/virt-rescue.pl:86
28254 msgid ""
28255 "If you don't know what filesystems are available on the virtual machine then "
28256 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28257 msgstr ""
28258
28259 # type: textblock
28260 #: ../tools/virt-rescue.pl:92
28261 msgid ""
28262 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28263 "virtual machine.  For example you can use it on a blank file if you want to "
28264 "partition that file (although we would recommend using L<guestfish(1)> "
28265 "instead as it is more suitable for this purpose).  You can even use virt-"
28266 "rescue on things like SD cards."
28267 msgstr ""
28268
28269 # type: textblock
28270 #: ../tools/virt-rescue.pl:98
28271 msgid ""
28272 "This tool is just designed for quick interactive hacking on a virtual "
28273 "machine.  For more structured access to a virtual machine disk image, you "
28274 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28275 "make scripted changes to guests, use L<guestfish(1)>."
28276 msgstr ""
28277
28278 # type: =item
28279 #: ../tools/virt-rescue.pl:127
28280 msgid "B<--append kernelopts>"
28281 msgstr ""
28282
28283 # type: textblock
28284 #: ../tools/virt-rescue.pl:129
28285 msgid "Pass additional options to the rescue kernel."
28286 msgstr ""
28287
28288 # type: =item
28289 #: ../tools/virt-rescue.pl:164
28290 msgid "B<--memsize MB> | B<-m MB>"
28291 msgstr ""
28292
28293 # type: textblock
28294 #: ../tools/virt-rescue.pl:166
28295 msgid ""
28296 "Change the amount of memory allocated to the rescue system.  The default is "
28297 "set by libguestfs and is small but adequate for running system tools.  The "
28298 "occasional program might need more memory.  The parameter is specified in "
28299 "megabytes."
28300 msgstr ""
28301
28302 # type: =item
28303 #: ../tools/virt-rescue.pl:175
28304 msgid "B<--network>"
28305 msgstr ""
28306
28307 # type: textblock
28308 #: ../tools/virt-rescue.pl:177
28309 msgid "Enable QEMU user networking in the guest."
28310 msgstr ""
28311
28312 # type: =item
28313 #: ../tools/virt-rescue.pl:183
28314 msgid "B<--ro> | B<-r>"
28315 msgstr ""
28316
28317 # type: textblock
28318 #: ../tools/virt-rescue.pl:185
28319 msgid "Open the image read-only."
28320 msgstr ""
28321
28322 # type: textblock
28323 #: ../tools/virt-rescue.pl:197
28324 msgid ""
28325 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28326 "SELINUX> before using this option."
28327 msgstr ""
28328
28329 # type: textblock
28330 #: ../tools/virt-rescue.pl:257
28331 msgid ""
28332 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28333 "ENVIRONMENT VARIABLES> for the complete list."
28334 msgstr ""
28335
28336 # type: textblock
28337 #: ../tools/virt-rescue.pl:269
28338 msgid ""
28339 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28340 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28341 msgstr ""
28342
28343 # type: textblock
28344 #: ../tools/virt-make-fs.pl:37
28345 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28346 msgstr ""
28347
28348 # type: verbatim
28349 #: ../tools/virt-make-fs.pl:41
28350 #, no-wrap
28351 msgid ""
28352 " virt-make-fs [--options] input.tar output.img\n"
28353 "\n"
28354 msgstr ""
28355
28356 # type: verbatim
28357 #: ../tools/virt-make-fs.pl:43
28358 #, no-wrap
28359 msgid ""
28360 " virt-make-fs [--options] input.tar.gz output.img\n"
28361 "\n"
28362 msgstr ""
28363
28364 # type: verbatim
28365 #: ../tools/virt-make-fs.pl:45
28366 #, no-wrap
28367 msgid ""
28368 " virt-make-fs [--options] directory output.img\n"
28369 "\n"
28370 msgstr ""
28371
28372 # type: textblock
28373 #: ../tools/virt-make-fs.pl:49
28374 msgid ""
28375 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28376 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28377 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28378 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28379 "you want to attach these filesystems to existing virtual machines (eg. to "
28380 "import large amounts of read-only data to a VM)."
28381 msgstr ""
28382
28383 # type: textblock
28384 #: ../tools/virt-make-fs.pl:57
28385 msgid "Basic usage is:"
28386 msgstr ""
28387
28388 # type: verbatim
28389 #: ../tools/virt-make-fs.pl:59
28390 #, no-wrap
28391 msgid ""
28392 " virt-make-fs input output\n"
28393 "\n"
28394 msgstr ""
28395
28396 # type: textblock
28397 #: ../tools/virt-make-fs.pl:61
28398 msgid ""
28399 "where C<input> is either a directory containing files that you want to add, "
28400 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28401 "C<output> is a disk image.  The input type is detected automatically.  The "
28402 "output disk image defaults to a raw ext2 image unless you specify extra "
28403 "flags (see L</OPTIONS> below)."
28404 msgstr ""
28405
28406 # type: =head2
28407 #: ../tools/virt-make-fs.pl:67
28408 msgid "EXTRA SPACE"
28409 msgstr ""
28410
28411 # type: textblock
28412 #: ../tools/virt-make-fs.pl:69
28413 msgid ""
28414 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28415 "the files that it contains, but might have extra space.  Depending on how "
28416 "you are going to use the output, you might think this extra space is wasted "
28417 "and want to minimize it, or you might want to leave space so that more files "
28418 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28419 "but you can use the C<--size> flag to leave space in the filesystem if you "
28420 "want it."
28421 msgstr ""
28422
28423 # type: textblock
28424 #: ../tools/virt-make-fs.pl:77
28425 msgid ""
28426 "An alternative way to leave extra space but not make the output image any "
28427 "bigger is to use an alternative disk image format (instead of the default "
28428 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28429 "image format (check your hypervisor supports this before using it).  This "
28430 "allows you to choose a large C<--size> but the extra space won't actually be "
28431 "allocated in the image until you try to store something in it."
28432 msgstr ""
28433
28434 # type: textblock
28435 #: ../tools/virt-make-fs.pl:85
28436 msgid ""
28437 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28438 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28439 "resize to build another image from scratch."
28440 msgstr ""
28441
28442 # type: =head3
28443 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28444 #: ../tools/virt-make-fs.pl:142
28445 msgid "EXAMPLE"
28446 msgstr ""
28447
28448 # type: verbatim
28449 #: ../tools/virt-make-fs.pl:91
28450 #, no-wrap
28451 msgid ""
28452 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28453 "\n"
28454 msgstr ""
28455
28456 # type: =head2
28457 #: ../tools/virt-make-fs.pl:93
28458 msgid "FILESYSTEM TYPE"
28459 msgstr ""
28460
28461 # type: textblock
28462 #: ../tools/virt-make-fs.pl:95
28463 msgid ""
28464 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28465 "libguestfs supports can be used (but I<not> read-only formats like "
28466 "ISO9660).  Here are some of the more common choices:"
28467 msgstr ""
28468
28469 # type: =item
28470 #: ../tools/virt-make-fs.pl:101
28471 msgid "I<ext3>"
28472 msgstr ""
28473
28474 # type: textblock
28475 #: ../tools/virt-make-fs.pl:103
28476 msgid ""
28477 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28478 "you are not going to use the filesystem in a way that requires the journal, "
28479 "then this is just wasted overhead."
28480 msgstr ""
28481
28482 # type: =item
28483 #: ../tools/virt-make-fs.pl:107
28484 msgid "I<ntfs> or I<vfat>"
28485 msgstr ""
28486
28487 # type: textblock
28488 #: ../tools/virt-make-fs.pl:109
28489 msgid "Useful if exporting data to a Windows guest."
28490 msgstr ""
28491
28492 # type: textblock
28493 #: ../tools/virt-make-fs.pl:111
28494 msgid ""
28495 "I<Note for vfat>: The tar archive or local directory must only contain files "
28496 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28497 "program running within libguestfs is unable to change the ownership of non-"
28498 "root files, since vfat itself does not support this."
28499 msgstr ""
28500
28501 # type: =item
28502 #: ../tools/virt-make-fs.pl:116
28503 msgid "I<minix>"
28504 msgstr ""
28505
28506 # type: textblock
28507 #: ../tools/virt-make-fs.pl:118
28508 msgid ""
28509 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28510 "total filesystem size."
28511 msgstr ""
28512
28513 # type: verbatim
28514 #: ../tools/virt-make-fs.pl:125
28515 #, no-wrap
28516 msgid ""
28517 " virt-make-fs --type=minix input minixfs.img\n"
28518 "\n"
28519 msgstr ""
28520
28521 # type: =head2
28522 #: ../tools/virt-make-fs.pl:127
28523 msgid "TO PARTITION OR NOT TO PARTITION"
28524 msgstr ""
28525
28526 # type: textblock
28527 #: ../tools/virt-make-fs.pl:129
28528 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28529 msgstr ""
28530
28531 # type: textblock
28532 #: ../tools/virt-make-fs.pl:131
28533 msgid ""
28534 "Adding a partition can make the disk image more compatible with certain "
28535 "virtualized operating systems which don't expect to see a filesystem "
28536 "directly located on a block device (Linux doesn't care and will happily "
28537 "handle both types)."
28538 msgstr ""
28539
28540 # type: textblock
28541 #: ../tools/virt-make-fs.pl:136
28542 msgid ""
28543 "On the other hand, if you have a partition table then the output image is no "
28544 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28545 "directly on a partitioned disk image.  (However libguestfs tools such as "
28546 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28547 msgstr ""
28548
28549 # type: textblock
28550 #: ../tools/virt-make-fs.pl:144
28551 msgid "Add an MBR partition:"
28552 msgstr ""
28553
28554 # type: verbatim
28555 #: ../tools/virt-make-fs.pl:146
28556 #, no-wrap
28557 msgid ""
28558 " virt-make-fs --partition -- input disk.img\n"
28559 "\n"
28560 msgstr ""
28561
28562 # type: textblock
28563 #: ../tools/virt-make-fs.pl:148
28564 msgid ""
28565 "If the output disk image could be terabyte-sized or larger, it's better to "
28566 "use an EFI/GPT-compatible partition table:"
28567 msgstr ""
28568
28569 # type: verbatim
28570 #: ../tools/virt-make-fs.pl:151
28571 #, no-wrap
28572 msgid ""
28573 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28574 "\n"
28575 msgstr ""
28576
28577 # type: textblock
28578 #: ../tools/virt-make-fs.pl:179
28579 msgid "Enable debugging information."
28580 msgstr ""
28581
28582 # type: =item
28583 #: ../tools/virt-make-fs.pl:185
28584 msgid "B<--size=E<lt>NE<gt>>"
28585 msgstr ""
28586
28587 # type: =item
28588 #: ../tools/virt-make-fs.pl:187
28589 msgid "B<--size=+E<lt>NE<gt>>"
28590 msgstr ""
28591
28592 # type: =item
28593 #: ../tools/virt-make-fs.pl:189
28594 msgid "B<-s E<lt>NE<gt>>"
28595 msgstr ""
28596
28597 # type: =item
28598 #: ../tools/virt-make-fs.pl:191
28599 msgid "B<-s +E<lt>NE<gt>>"
28600 msgstr ""
28601
28602 # type: textblock
28603 #: ../tools/virt-make-fs.pl:193
28604 msgid ""
28605 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28606 msgstr ""
28607
28608 # type: textblock
28609 #: ../tools/virt-make-fs.pl:196
28610 msgid ""
28611 "If this option is I<not> given, then the output image will be just large "
28612 "enough to contain all the files, with not much wasted space."
28613 msgstr ""
28614
28615 # type: textblock
28616 #: ../tools/virt-make-fs.pl:199
28617 msgid ""
28618 "To choose a fixed size output disk, specify an absolute number followed by b/"
28619 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28620 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28621 "files, else you will get an error."
28622 msgstr ""
28623
28624 # type: textblock
28625 #: ../tools/virt-make-fs.pl:204
28626 msgid ""
28627 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28628 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28629 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28630 "the input files, and (approximately) an extra 200 MB free space."
28631 msgstr ""
28632
28633 # type: textblock
28634 #: ../tools/virt-make-fs.pl:210
28635 msgid ""
28636 "Note that virt-make-fs estimates free space, and therefore will not produce "
28637 "filesystems containing precisely the free space requested.  (It is much more "
28638 "expensive and time-consuming to produce a filesystem which has precisely the "
28639 "desired free space)."
28640 msgstr ""
28641
28642 # type: =item
28643 #: ../tools/virt-make-fs.pl:219
28644 msgid "B<--format=E<lt>fmtE<gt>>"
28645 msgstr ""
28646
28647 # type: =item
28648 #: ../tools/virt-make-fs.pl:221
28649 msgid "B<-F E<lt>fmtE<gt>>"
28650 msgstr ""
28651
28652 # type: textblock
28653 #: ../tools/virt-make-fs.pl:223
28654 msgid "Choose the output disk image format."
28655 msgstr ""
28656
28657 # type: textblock
28658 #: ../tools/virt-make-fs.pl:225
28659 msgid "The default is C<raw> (raw disk image)."
28660 msgstr ""
28661
28662 # type: textblock
28663 #: ../tools/virt-make-fs.pl:227
28664 msgid ""
28665 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28666 "that would really make sense here is C<qcow2>."
28667 msgstr ""
28668
28669 # type: =item
28670 #: ../tools/virt-make-fs.pl:234
28671 msgid "B<--type=E<lt>fsE<gt>>"
28672 msgstr ""
28673
28674 # type: =item
28675 #: ../tools/virt-make-fs.pl:236
28676 msgid "B<-t E<lt>fsE<gt>>"
28677 msgstr ""
28678
28679 # type: textblock
28680 #: ../tools/virt-make-fs.pl:238
28681 msgid "Choose the output filesystem type."
28682 msgstr ""
28683
28684 # type: textblock
28685 #: ../tools/virt-make-fs.pl:240
28686 msgid "The default is C<ext2>."
28687 msgstr ""
28688
28689 # type: textblock
28690 #: ../tools/virt-make-fs.pl:242
28691 msgid ""
28692 "Any filesystem which is supported read-write by libguestfs can be used here."
28693 msgstr ""
28694
28695 # type: =item
28696 #: ../tools/virt-make-fs.pl:249
28697 msgid "B<--partition>"
28698 msgstr ""
28699
28700 # type: =item
28701 #: ../tools/virt-make-fs.pl:251
28702 msgid "B<--partition=E<lt>parttypeE<gt>>"
28703 msgstr ""
28704
28705 # type: textblock
28706 #: ../tools/virt-make-fs.pl:253
28707 msgid ""
28708 "If specified, this flag adds an MBR partition table to the output disk image."
28709 msgstr ""
28710
28711 # type: textblock
28712 #: ../tools/virt-make-fs.pl:256
28713 msgid ""
28714 "You can change the partition table type, eg. C<--partition=gpt> for large "
28715 "disks."
28716 msgstr ""
28717
28718 # type: textblock
28719 #: ../tools/virt-make-fs.pl:259
28720 msgid ""
28721 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28722 "might consider the next parameter to be the partition type.  For example:"
28723 msgstr ""
28724
28725 # type: verbatim
28726 #: ../tools/virt-make-fs.pl:263
28727 #, no-wrap
28728 msgid ""
28729 " virt-make-fs --partition input.tar ...\n"
28730 "\n"
28731 msgstr ""
28732
28733 # type: textblock
28734 #: ../tools/virt-make-fs.pl:265
28735 msgid ""
28736 "would cause virt-make-fs to think you wanted to use a partition type of "
28737 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28738 "dash) between options and the input file argument:"
28739 msgstr ""
28740
28741 # type: verbatim
28742 #: ../tools/virt-make-fs.pl:269
28743 #, no-wrap
28744 msgid ""
28745 " virt-make-fs --partition -- input.tar ...\n"
28746 "\n"
28747 msgstr ""
28748
28749 # type: textblock
28750 #: ../tools/virt-make-fs.pl:536
28751 msgid ""
28752 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28753 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28754 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28755 msgstr ""
28756
28757 # type: verbatim
28758 #: ../tools/virt-make-fs.pl:553
28759 #, no-wrap
28760 msgid ""
28761 " export LIBGUESTFS_DEBUG=1\n"
28762 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28763 "\n"
28764 msgstr ""
28765
28766 # type: textblock
28767 #: ../tools/virt-make-fs.pl:556
28768 msgid ""
28769 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28770 "redhat.com/>"
28771 msgstr ""
28772
28773 # type: textblock
28774 #: ../tools/virt-list-partitions.pl:32
28775 msgid ""
28776 "virt-list-partitions - List partitions in a virtual machine or disk image"
28777 msgstr ""
28778
28779 # type: verbatim
28780 #: ../tools/virt-list-partitions.pl:36
28781 #, no-wrap
28782 msgid ""
28783 " virt-list-partitions [--options] domname\n"
28784 "\n"
28785 msgstr ""
28786
28787 # type: verbatim
28788 #: ../tools/virt-list-partitions.pl:38
28789 #, no-wrap
28790 msgid ""
28791 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28792 "\n"
28793 msgstr ""
28794
28795 # type: textblock
28796 #: ../tools/virt-list-partitions.pl:45
28797 msgid ""
28798 "C<virt-list-partitions> is a command line tool to list the partitions that "
28799 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28800 "first step to using L<virt-resize(1)>."
28801 msgstr ""
28802
28803 # type: textblock
28804 #: ../tools/virt-list-partitions.pl:50
28805 msgid ""
28806 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28807 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28808 "> tool."
28809 msgstr ""
28810
28811 # type: =item
28812 #: ../tools/virt-list-partitions.pl:107
28813 msgid "B<-h> | B<--human-readable>"
28814 msgstr ""
28815
28816 # type: textblock
28817 #: ../tools/virt-list-partitions.pl:109
28818 msgid "Show sizes in human-readable form (eg. \"1G\")."
28819 msgstr ""
28820
28821 # type: textblock
28822 #: ../tools/virt-list-partitions.pl:117
28823 msgid ""
28824 "With this option, C<virt-list-partitions> displays the type and size of each "
28825 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28826 msgstr ""
28827
28828 # type: =item
28829 #: ../tools/virt-list-partitions.pl:124
28830 msgid "B<-t> | B<--total>"
28831 msgstr ""
28832
28833 # type: textblock
28834 #: ../tools/virt-list-partitions.pl:126
28835 msgid ""
28836 "Display the total size of each block device (as a separate row or rows)."
28837 msgstr ""
28838
28839 # type: textblock
28840 #: ../tools/virt-list-partitions.pl:259
28841 msgid ""
28842 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
28843 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
28844 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28845 msgstr ""