90a22b746a80ca428f4f14ee17fe67a637a37470
[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-24 20:19+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32
23 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
24 #: ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29
25 #: ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
26 msgid "utf8"
27 msgstr ""
28
29 # type: =head1
30 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
31 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
32 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34
33 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
34 #: ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
36 msgid "NAME"
37 msgstr "名前"
38
39 # type: textblock
40 #: ../src/guestfs.pod:5
41 msgid "guestfs - Library for accessing and modifying virtual machine images"
42 msgstr ""
43
44 # type: =head1
45 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
46 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
47 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38
48 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
49 #: ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35
50 #: ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
51 msgid "SYNOPSIS"
52 msgstr ""
53
54 # type: verbatim
55 #: ../src/guestfs.pod:9
56 #, no-wrap
57 msgid ""
58 " #include <guestfs.h>\n"
59 " \n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:11
64 #, no-wrap
65 msgid ""
66 " guestfs_h *g = guestfs_create ();\n"
67 " guestfs_add_drive (g, \"guest.img\");\n"
68 " guestfs_launch (g);\n"
69 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
70 " guestfs_touch (g, \"/hello\");\n"
71 " guestfs_umount (g, \"/\");\n"
72 " guestfs_sync (g);\n"
73 " guestfs_close (g);\n"
74 "\n"
75 msgstr ""
76
77 # type: verbatim
78 #: ../src/guestfs.pod:20
79 #, no-wrap
80 msgid ""
81 " cc prog.c -o prog -lguestfs\n"
82 "or:\n"
83 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
84 "\n"
85 msgstr ""
86
87 # type: =head1
88 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
89 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
90 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46
91 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
92 #: ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51
93 #: ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
94 msgid "DESCRIPTION"
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:26
99 msgid ""
100 "Libguestfs is a library for accessing and modifying guest disk images.  "
101 "Amongst the things this is good for: making batch configuration changes to "
102 "guests, getting disk used/free statistics (see also: virt-df), migrating "
103 "between virtualization systems (see also: virt-p2v), performing partial "
104 "backups, performing partial guest clones, cloning guests and changing "
105 "registry/UUID/hostname info, and much else besides."
106 msgstr ""
107
108 # type: textblock
109 #: ../src/guestfs.pod:34
110 msgid ""
111 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
112 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
113 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
114 "qcow2, vmdk."
115 msgstr ""
116
117 # type: textblock
118 #: ../src/guestfs.pod:39
119 msgid ""
120 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
121 "what filesystem is in each LV, etc.).  It can also run commands in the "
122 "context of the guest.  Also you can access filesystems over FUSE."
123 msgstr ""
124
125 # type: textblock
126 #: ../src/guestfs.pod:44
127 msgid ""
128 "Libguestfs is a library that can be linked with C and C++ management "
129 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
130 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
131 "line."
132 msgstr ""
133
134 # type: textblock
135 #: ../src/guestfs.pod:49
136 msgid ""
137 "You don't need to be root to use libguestfs, although obviously you do need "
138 "enough permissions to access the disk images."
139 msgstr ""
140
141 # type: textblock
142 #: ../src/guestfs.pod:52
143 msgid ""
144 "Libguestfs is a large API because it can do many things.  For a gentle "
145 "introduction, please read the L</API OVERVIEW> section next."
146 msgstr ""
147
148 # type: 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-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:347
820 #: ../tools/virt-resize.pl:352 ../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-df.pl:640 ../tools/virt-resize.pl:1485
4063 #: ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:281
4064 #: ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534
4065 #: ../tools/virt-list-partitions.pl:257
4066 msgid "SEE ALSO"
4067 msgstr ""
4068
4069 # type: textblock
4070 #: ../src/guestfs.pod:2084
4071 msgid ""
4072 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4073 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4074 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4075 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4076 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4077 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4078 msgstr ""
4079
4080 # type: textblock
4081 #: ../src/guestfs.pod:2107
4082 msgid ""
4083 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4084 "(8)>, L<disktype(1)>."
4085 msgstr ""
4086
4087 # type: =head1
4088 #: ../src/guestfs.pod:2114 ../tools/virt-win-reg.pl:499
4089 #: ../tools/virt-make-fs.pl:548
4090 msgid "BUGS"
4091 msgstr ""
4092
4093 # type: textblock
4094 #: ../src/guestfs.pod:2116
4095 msgid "To get a list of bugs against libguestfs use this link:"
4096 msgstr ""
4097
4098 # type: textblock
4099 #: ../src/guestfs.pod:2118
4100 msgid ""
4101 "L<https://bugzilla.redhat.com/buglist.cgi?"
4102 "component=libguestfs&product=Virtualization+Tools>"
4103 msgstr ""
4104
4105 # type: textblock
4106 #: ../src/guestfs.pod:2120
4107 msgid "To report a new bug against libguestfs use this link:"
4108 msgstr ""
4109
4110 # type: textblock
4111 #: ../src/guestfs.pod:2122
4112 msgid ""
4113 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4114 "component=libguestfs&product=Virtualization+Tools>"
4115 msgstr ""
4116
4117 # type: textblock
4118 #: ../src/guestfs.pod:2124
4119 msgid "When reporting a bug, please check:"
4120 msgstr ""
4121
4122 # type: textblock
4123 #: ../src/guestfs.pod:2130
4124 msgid "That the bug hasn't been reported already."
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs.pod:2134
4129 msgid "That you are testing a recent version."
4130 msgstr ""
4131
4132 # type: textblock
4133 #: ../src/guestfs.pod:2138
4134 msgid "Describe the bug accurately, and give a way to reproduce it."
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs.pod:2142
4139 msgid ""
4140 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4141 "bug report."
4142 msgstr ""
4143
4144 # type: =head1
4145 #: ../src/guestfs.pod:2147 ../fish/guestfish.pod:1058
4146 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4147 msgid "AUTHORS"
4148 msgstr ""
4149
4150 # type: textblock
4151 #: ../src/guestfs.pod:2149 ../fish/guestfish.pod:1060
4152 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4153 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4154 msgstr ""
4155
4156 # type: =head1
4157 #: ../src/guestfs.pod:2151 ../fish/guestfish.pod:1062
4158 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4159 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4160 #: ../tools/virt-df.pl:653 ../tools/virt-resize.pl:1510
4161 #: ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:296
4162 #: ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563
4163 #: ../tools/virt-list-partitions.pl:273
4164 msgid "COPYRIGHT"
4165 msgstr ""
4166
4167 # type: textblock
4168 #: ../src/guestfs.pod:2153 ../fish/guestfish.pod:1064
4169 #: ../fuse/guestmount.pod:250
4170 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4171 msgstr ""
4172
4173 # type: textblock
4174 #: ../src/guestfs.pod:2156
4175 msgid ""
4176 "This library is free software; you can redistribute it and/or modify it "
4177 "under the terms of the GNU Lesser General Public License as published by the "
4178 "Free Software Foundation; either version 2 of the License, or (at your "
4179 "option) any later version."
4180 msgstr ""
4181
4182 # type: textblock
4183 #: ../src/guestfs.pod:2161
4184 msgid ""
4185 "This library is distributed in the hope that it will be useful, but WITHOUT "
4186 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4187 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4188 "for more details."
4189 msgstr ""
4190
4191 # type: textblock
4192 #: ../src/guestfs.pod:2166
4193 msgid ""
4194 "You should have received a copy of the GNU Lesser General Public License "
4195 "along with this library; if not, write to the Free Software Foundation, "
4196 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4197 msgstr ""
4198
4199 # type: =head2
4200 #: ../src/guestfs-actions.pod:1
4201 msgid "guestfs_add_cdrom"
4202 msgstr ""
4203
4204 # type: verbatim
4205 #: ../src/guestfs-actions.pod:3
4206 #, no-wrap
4207 msgid ""
4208 " int\n"
4209 " guestfs_add_cdrom (guestfs_h *g,\n"
4210 "                    const char *filename);\n"
4211 "\n"
4212 msgstr ""
4213
4214 # type: textblock
4215 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4216 msgid "This function adds a virtual CD-ROM disk image to the guest."
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4221 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4222 msgstr ""
4223
4224 # type: textblock
4225 #: ../src/guestfs-actions.pod:17
4226 msgid ""
4227 "This call checks for the existence of C<filename>.  This stops you from "
4228 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4229 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4230 "instead."
4231 msgstr ""
4232
4233 # type: textblock
4234 #: ../src/guestfs-actions.pod:24
4235 msgid ""
4236 "If you just want to add an ISO file (often you use this as an efficient way "
4237 "to transfer large files into the guest), then you should probably use "
4238 "C<guestfs_add_drive_ro> instead."
4239 msgstr ""
4240
4241 # type: textblock
4242 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4243 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4244 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4245 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4246 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4247 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4248 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4249 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4250 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4251 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4252 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4253 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4254 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4255 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4256 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4257 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4258 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4259 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4260 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4261 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4262 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4263 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182
4264 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217
4265 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356
4266 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383
4267 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434
4268 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526
4269 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566
4270 #: ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621
4271 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659
4272 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706
4273 #: ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758
4274 #: ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786
4275 #: ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896
4276 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929
4277 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998
4278 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032
4279 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060
4280 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092
4281 #: ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161
4282 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211
4283 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242
4284 #: ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272
4285 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302
4286 #: ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352
4287 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386
4288 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452
4289 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503
4290 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548
4291 #: ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700
4292 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779
4293 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829
4294 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912
4295 #: ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939
4296 #: ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247
4297 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273
4298 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299
4299 #: ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329
4300 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369
4301 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406
4302 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447
4303 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487
4304 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523
4305 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575
4306 #: ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618
4307 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648
4308 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704
4309 #: ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753
4310 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982
4311 #: ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007
4312 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042
4313 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068
4314 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096
4315 #: ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172
4316 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204
4317 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234
4318 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290
4319 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345
4320 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376
4321 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436
4322 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573
4323 #: ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642
4324 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700
4325 #: ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787
4326 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879
4327 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4328 msgid "This function returns 0 on success or -1 on error."
4329 msgstr ""
4330
4331 # type: textblock
4332 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4333 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4334 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4335 msgid ""
4336 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4337 "instead."
4338 msgstr ""
4339
4340 # type: textblock
4341 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4342 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4343 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4344 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990
4345 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4346 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4347 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4348 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4349 msgid ""
4350 "Deprecated functions will not be removed from the API, but the fact that "
4351 "they are deprecated indicates that there are problems with correct use of "
4352 "these functions."
4353 msgstr ""
4354
4355 # type: textblock
4356 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4357 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4358 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4359 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199
4360 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408
4361 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635
4362 #: ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223
4363 #: ../src/guestfs-actions.pod:6735
4364 msgid "(Added in 0.3)"
4365 msgstr ""
4366
4367 # type: =head2
4368 #: ../src/guestfs-actions.pod:41
4369 msgid "guestfs_add_domain"
4370 msgstr ""
4371
4372 # type: verbatim
4373 #: ../src/guestfs-actions.pod:43
4374 #, no-wrap
4375 msgid ""
4376 " int\n"
4377 " guestfs_add_domain (guestfs_h *g,\n"
4378 "                     const char *dom,\n"
4379 "                     ...);\n"
4380 "\n"
4381 msgstr ""
4382
4383 # type: textblock
4384 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4385 msgid ""
4386 "You may supply a list of optional arguments to this call.  Use zero or more "
4387 "of the following pairs of parameters, and terminate the list with C<-1> on "
4388 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4389 msgstr ""
4390
4391 # type: verbatim
4392 #: ../src/guestfs-actions.pod:53
4393 #, no-wrap
4394 msgid ""
4395 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4396 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4397 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4398 "\n"
4399 msgstr ""
4400
4401 # type: textblock
4402 #: ../src/guestfs-actions.pod:57
4403 msgid ""
4404 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4405 "It works by connecting to libvirt, requesting the domain and domain XML from "
4406 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4407 "one."
4408 msgstr ""
4409
4410 # type: textblock
4411 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4412 msgid ""
4413 "The number of disks added is returned.  This operation is atomic: if an "
4414 "error is returned, then no disks are added."
4415 msgstr ""
4416
4417 # type: textblock
4418 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4419 msgid ""
4420 "This function does some minimal checks to make sure the libvirt domain is "
4421 "not running (unless C<readonly> is true).  In a future version we will try "
4422 "to acquire the libvirt lock on each disk."
4423 msgstr ""
4424
4425 # type: textblock
4426 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4427 msgid ""
4428 "Disks must be accessible locally.  This often means that adding disks from a "
4429 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4430 "unless those disks are accessible via the same device path locally too."
4431 msgstr ""
4432
4433 # type: textblock
4434 #: ../src/guestfs-actions.pod:74
4435 msgid ""
4436 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4437 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4438 "libvirt URI (or one set through an environment variable, see the libvirt "
4439 "documentation for full details).  If you are using the C API directly then "
4440 "it is more flexible to create the libvirt connection object yourself, get "
4441 "the domain object, and call C<guestfs_add_libvirt_dom>."
4442 msgstr ""
4443
4444 # type: textblock
4445 #: ../src/guestfs-actions.pod:82
4446 msgid ""
4447 "The other optional parameters are passed directly through to "
4448 "C<guestfs_add_drive_opts>."
4449 msgstr ""
4450
4451 # type: textblock
4452 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4453 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4454 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4455 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4456 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4457 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4458 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4459 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630
4460 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475
4461 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009
4462 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331
4463 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759
4464 #: ../src/guestfs-actions.pod:6772
4465 msgid "On error this function returns -1."
4466 msgstr ""
4467
4468 # type: =head2
4469 #: ../src/guestfs-actions.pod:87
4470 msgid "guestfs_add_domain_va"
4471 msgstr ""
4472
4473 # type: verbatim
4474 #: ../src/guestfs-actions.pod:89
4475 #, no-wrap
4476 msgid ""
4477 " int\n"
4478 " guestfs_add_domain_va (guestfs_h *g,\n"
4479 "                        const char *dom,\n"
4480 "                        va_list args);\n"
4481 "\n"
4482 msgstr ""
4483
4484 # type: textblock
4485 #: ../src/guestfs-actions.pod:94
4486 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4487 msgstr ""
4488
4489 # type: textblock
4490 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4491 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4492 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4493 msgstr ""
4494
4495 # type: =head2
4496 #: ../src/guestfs-actions.pod:98
4497 msgid "guestfs_add_domain_argv"
4498 msgstr ""
4499
4500 # type: verbatim
4501 #: ../src/guestfs-actions.pod:100
4502 #, no-wrap
4503 msgid ""
4504 " int\n"
4505 " guestfs_add_domain_argv (guestfs_h *g,\n"
4506 "                          const char *dom,\n"
4507 "                          const struct guestfs_add_domain_argv *optargs);\n"
4508 "\n"
4509 msgstr ""
4510
4511 # type: textblock
4512 #: ../src/guestfs-actions.pod:105
4513 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4514 msgstr ""
4515
4516 # type: =head2
4517 #: ../src/guestfs-actions.pod:109
4518 msgid "guestfs_add_drive"
4519 msgstr ""
4520
4521 # type: verbatim
4522 #: ../src/guestfs-actions.pod:111
4523 #, no-wrap
4524 msgid ""
4525 " int\n"
4526 " guestfs_add_drive (guestfs_h *g,\n"
4527 "                    const char *filename);\n"
4528 "\n"
4529 msgstr ""
4530
4531 # type: textblock
4532 #: ../src/guestfs-actions.pod:115
4533 msgid ""
4534 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4535 "optional parameters, so the disk is added writable, with the format being "
4536 "detected automatically."
4537 msgstr ""
4538
4539 # type: textblock
4540 #: ../src/guestfs-actions.pod:119
4541 msgid ""
4542 "Automatic detection of the format opens you up to a potential security hole "
4543 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4544 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4545 "you should think about replacing calls to this function with calls to "
4546 "C<guestfs_add_drive_opts>, and specifying the format."
4547 msgstr ""
4548
4549 # type: =head2
4550 #: ../src/guestfs-actions.pod:130
4551 msgid "guestfs_add_drive_opts"
4552 msgstr ""
4553
4554 # type: verbatim
4555 #: ../src/guestfs-actions.pod:132
4556 #, no-wrap
4557 msgid ""
4558 " int\n"
4559 " guestfs_add_drive_opts (guestfs_h *g,\n"
4560 "                         const char *filename,\n"
4561 "                         ...);\n"
4562 "\n"
4563 msgstr ""
4564
4565 # type: verbatim
4566 #: ../src/guestfs-actions.pod:142
4567 #, no-wrap
4568 msgid ""
4569 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4570 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4571 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4572 "\n"
4573 msgstr ""
4574
4575 # type: textblock
4576 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4577 msgid ""
4578 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4579 "The first time you call this function, the disk appears as C</dev/sda>, the "
4580 "second time as C</dev/sdb>, and so on."
4581 msgstr ""
4582
4583 # type: textblock
4584 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4585 msgid ""
4586 "You don't necessarily need to be root when using libguestfs.  However you "
4587 "obviously do need sufficient permissions to access the filename for whatever "
4588 "operations you want to perform (ie. read access if you just want to read the "
4589 "image or write access if you want to modify the image)."
4590 msgstr ""
4591
4592 # type: textblock
4593 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4594 msgid "This call checks that C<filename> exists."
4595 msgstr ""
4596
4597 # type: textblock
4598 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4599 msgid "The optional arguments are:"
4600 msgstr ""
4601
4602 # type: =item
4603 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4604 msgid "C<readonly>"
4605 msgstr ""
4606
4607 # type: textblock
4608 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4609 msgid ""
4610 "If true then the image is treated as read-only.  Writes are still allowed, "
4611 "but they are stored in a temporary snapshot overlay which is discarded at "
4612 "the end.  The disk that you add is not modified."
4613 msgstr ""
4614
4615 # type: =item
4616 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4617 msgid "C<format>"
4618 msgstr ""
4619
4620 # type: textblock
4621 #: ../src/guestfs-actions.pod:171
4622 msgid ""
4623 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4624 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4625 "Possible formats include C<raw> and C<qcow2>."
4626 msgstr ""
4627
4628 # type: textblock
4629 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4630 msgid ""
4631 "Automatic detection of the format opens you up to a potential security hole "
4632 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4633 "RHBZ#642934.  Specifying the format closes this security hole."
4634 msgstr ""
4635
4636 # type: =item
4637 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4638 msgid "C<iface>"
4639 msgstr ""
4640
4641 # type: textblock
4642 #: ../src/guestfs-actions.pod:182
4643 msgid ""
4644 "This rarely-used option lets you emulate the behaviour of the deprecated "
4645 "C<guestfs_add_drive_with_if> call (q.v.)"
4646 msgstr ""
4647
4648 # type: textblock
4649 #: ../src/guestfs-actions.pod:189
4650 msgid "(Added in 1.5.23)"
4651 msgstr ""
4652
4653 # type: =head2
4654 #: ../src/guestfs-actions.pod:191
4655 msgid "guestfs_add_drive_opts_va"
4656 msgstr ""
4657
4658 # type: verbatim
4659 #: ../src/guestfs-actions.pod:193
4660 #, no-wrap
4661 msgid ""
4662 " int\n"
4663 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4664 "                            const char *filename,\n"
4665 "                            va_list args);\n"
4666 "\n"
4667 msgstr ""
4668
4669 # type: textblock
4670 #: ../src/guestfs-actions.pod:198
4671 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4672 msgstr ""
4673
4674 # type: =head2
4675 #: ../src/guestfs-actions.pod:202
4676 msgid "guestfs_add_drive_opts_argv"
4677 msgstr ""
4678
4679 # type: verbatim
4680 #: ../src/guestfs-actions.pod:204
4681 #, no-wrap
4682 msgid ""
4683 " int\n"
4684 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4685 "                              const char *filename,\n"
4686 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4687 "\n"
4688 msgstr ""
4689
4690 # type: textblock
4691 #: ../src/guestfs-actions.pod:209
4692 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4693 msgstr ""
4694
4695 # type: =head2
4696 #: ../src/guestfs-actions.pod:213
4697 msgid "guestfs_add_drive_ro"
4698 msgstr ""
4699
4700 # type: verbatim
4701 #: ../src/guestfs-actions.pod:215
4702 #, no-wrap
4703 msgid ""
4704 " int\n"
4705 " guestfs_add_drive_ro (guestfs_h *g,\n"
4706 "                       const char *filename);\n"
4707 "\n"
4708 msgstr ""
4709
4710 # type: textblock
4711 #: ../src/guestfs-actions.pod:219
4712 msgid ""
4713 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4714 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4715 "disk is added read-only, with the format being detected automatically."
4716 msgstr ""
4717
4718 # type: textblock
4719 #: ../src/guestfs-actions.pod:226
4720 msgid "(Added in 1.0.38)"
4721 msgstr ""
4722
4723 # type: =head2
4724 #: ../src/guestfs-actions.pod:228
4725 msgid "guestfs_add_drive_ro_with_if"
4726 msgstr ""
4727
4728 # type: verbatim
4729 #: ../src/guestfs-actions.pod:230
4730 #, no-wrap
4731 msgid ""
4732 " int\n"
4733 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4734 "                               const char *filename,\n"
4735 "                               const char *iface);\n"
4736 "\n"
4737 msgstr ""
4738
4739 # type: textblock
4740 #: ../src/guestfs-actions.pod:235
4741 msgid ""
4742 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4743 "QEMU interface emulation to use at run time."
4744 msgstr ""
4745
4746 # type: textblock
4747 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4748 #: ../src/guestfs-actions.pod:2303
4749 msgid "(Added in 1.0.84)"
4750 msgstr ""
4751
4752 # type: =head2
4753 #: ../src/guestfs-actions.pod:249
4754 msgid "guestfs_add_drive_with_if"
4755 msgstr ""
4756
4757 # type: verbatim
4758 #: ../src/guestfs-actions.pod:251
4759 #, no-wrap
4760 msgid ""
4761 " int\n"
4762 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4763 "                            const char *filename,\n"
4764 "                            const char *iface);\n"
4765 "\n"
4766 msgstr ""
4767
4768 # type: textblock
4769 #: ../src/guestfs-actions.pod:256
4770 msgid ""
4771 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4772 "QEMU interface emulation to use at run time."
4773 msgstr ""
4774
4775 # type: =head2
4776 #: ../src/guestfs-actions.pod:270
4777 msgid "guestfs_aug_clear"
4778 msgstr ""
4779
4780 # type: verbatim
4781 #: ../src/guestfs-actions.pod:272
4782 #, no-wrap
4783 msgid ""
4784 " int\n"
4785 " guestfs_aug_clear (guestfs_h *g,\n"
4786 "                    const char *augpath);\n"
4787 "\n"
4788 msgstr ""
4789
4790 # type: textblock
4791 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4792 msgid ""
4793 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4794 "L<augtool(1)> C<clear> command."
4795 msgstr ""
4796
4797 # type: textblock
4798 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4799 msgid "(Added in 1.3.4)"
4800 msgstr ""
4801
4802 # type: =head2
4803 #: ../src/guestfs-actions.pod:283
4804 msgid "guestfs_aug_close"
4805 msgstr ""
4806
4807 # type: verbatim
4808 #: ../src/guestfs-actions.pod:285
4809 #, no-wrap
4810 msgid ""
4811 " int\n"
4812 " guestfs_aug_close (guestfs_h *g);\n"
4813 "\n"
4814 msgstr ""
4815
4816 # type: textblock
4817 #: ../src/guestfs-actions.pod:288
4818 msgid ""
4819 "Close the current Augeas handle and free up any resources used by it.  After "
4820 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4821 "any other Augeas functions."
4822 msgstr ""
4823
4824 # type: textblock
4825 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4826 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4827 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4828 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4829 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4830 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4831 #: ../src/guestfs-actions.pod:5086
4832 msgid "(Added in 0.7)"
4833 msgstr ""
4834
4835 # type: =head2
4836 #: ../src/guestfs-actions.pod:297
4837 msgid "guestfs_aug_defnode"
4838 msgstr ""
4839
4840 # type: verbatim
4841 #: ../src/guestfs-actions.pod:299
4842 #, no-wrap
4843 msgid ""
4844 " struct guestfs_int_bool *\n"
4845 " guestfs_aug_defnode (guestfs_h *g,\n"
4846 "                      const char *name,\n"
4847 "                      const char *expr,\n"
4848 "                      const char *val);\n"
4849 "\n"
4850 msgstr ""
4851
4852 # type: textblock
4853 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4854 msgid ""
4855 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4856 msgstr ""
4857
4858 # type: textblock
4859 #: ../src/guestfs-actions.pod:308
4860 msgid ""
4861 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4862 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4863 "containing that single node."
4864 msgstr ""
4865
4866 # type: textblock
4867 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4868 msgid ""
4869 "On success this returns a pair containing the number of nodes in the "
4870 "nodeset, and a boolean flag if a node was created."
4871 msgstr ""
4872
4873 # type: textblock
4874 #: ../src/guestfs-actions.pod:316
4875 msgid ""
4876 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4877 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4878 msgstr ""
4879
4880 # type: =head2
4881 #: ../src/guestfs-actions.pod:322
4882 msgid "guestfs_aug_defvar"
4883 msgstr ""
4884
4885 # type: verbatim
4886 #: ../src/guestfs-actions.pod:324
4887 #, no-wrap
4888 msgid ""
4889 " int\n"
4890 " guestfs_aug_defvar (guestfs_h *g,\n"
4891 "                     const char *name,\n"
4892 "                     const char *expr);\n"
4893 "\n"
4894 msgstr ""
4895
4896 # type: textblock
4897 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4898 msgid ""
4899 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4900 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4901 msgstr ""
4902
4903 # type: textblock
4904 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4905 msgid ""
4906 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4907 "evaluates to something which is not a nodeset."
4908 msgstr ""
4909
4910 # type: =head2
4911 #: ../src/guestfs-actions.pod:340
4912 msgid "guestfs_aug_get"
4913 msgstr ""
4914
4915 # type: verbatim
4916 #: ../src/guestfs-actions.pod:342
4917 #, no-wrap
4918 msgid ""
4919 " char *\n"
4920 " guestfs_aug_get (guestfs_h *g,\n"
4921 "                  const char *augpath);\n"
4922 "\n"
4923 msgstr ""
4924
4925 # type: textblock
4926 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4927 msgid ""
4928 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4929 "node, the C<value> is returned."
4930 msgstr ""
4931
4932 # type: textblock
4933 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4934 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4935 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4936 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4937 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4938 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4939 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4940 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4941 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4942 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
4943 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712
4944 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763
4945 #: ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846
4946 #: ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678
4947 #: ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958
4948 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814
4949 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162
4950 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774
4951 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807
4952 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495
4953 #: ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532
4954 #: ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4955 msgid ""
4956 "This function returns a string, or NULL on error.  I<The caller must free "
4957 "the returned string after use>."
4958 msgstr ""
4959
4960 # type: =head2
4961 #: ../src/guestfs-actions.pod:354
4962 msgid "guestfs_aug_init"
4963 msgstr ""
4964
4965 # type: verbatim
4966 #: ../src/guestfs-actions.pod:356
4967 #, no-wrap
4968 msgid ""
4969 " int\n"
4970 " guestfs_aug_init (guestfs_h *g,\n"
4971 "                   const char *root,\n"
4972 "                   int flags);\n"
4973 "\n"
4974 msgstr ""
4975
4976 # type: textblock
4977 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4978 msgid ""
4979 "Create a new Augeas handle for editing configuration files.  If there was "
4980 "any previous Augeas handle associated with this guestfs session, then it is "
4981 "closed."
4982 msgstr ""
4983
4984 # type: textblock
4985 #: ../src/guestfs-actions.pod:365
4986 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4987 msgstr ""
4988
4989 # type: textblock
4990 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4991 msgid ""
4992 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4993 msgstr ""
4994
4995 # type: textblock
4996 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4997 msgid ""
4998 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4999 "logical I<or> of the following integers:"
5000 msgstr ""
5001
5002 # type: =item
5003 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5004 msgid "C<AUG_SAVE_BACKUP> = 1"
5005 msgstr ""
5006
5007 # type: textblock
5008 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5009 msgid "Keep the original file with a C<.augsave> extension."
5010 msgstr ""
5011
5012 # type: =item
5013 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5014 msgid "C<AUG_SAVE_NEWFILE> = 2"
5015 msgstr ""
5016
5017 # type: textblock
5018 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5019 msgid ""
5020 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5021 "original.  Overrides C<AUG_SAVE_BACKUP>."
5022 msgstr ""
5023
5024 # type: =item
5025 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5026 msgid "C<AUG_TYPE_CHECK> = 4"
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5031 msgid "Typecheck lenses (can be expensive)."
5032 msgstr ""
5033
5034 # type: =item
5035 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5036 msgid "C<AUG_NO_STDINC> = 8"
5037 msgstr ""
5038
5039 # type: textblock
5040 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5041 msgid "Do not use standard load path for modules."
5042 msgstr ""
5043
5044 # type: =item
5045 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5046 msgid "C<AUG_SAVE_NOOP> = 16"
5047 msgstr ""
5048
5049 # type: textblock
5050 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5051 msgid "Make save a no-op, just record what would have been changed."
5052 msgstr ""
5053
5054 # type: =item
5055 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5056 msgid "C<AUG_NO_LOAD> = 32"
5057 msgstr ""
5058
5059 # type: textblock
5060 #: ../src/guestfs-actions.pod:400
5061 msgid "Do not load the tree in C<guestfs_aug_init>."
5062 msgstr ""
5063
5064 # type: textblock
5065 #: ../src/guestfs-actions.pod:404
5066 msgid "To close the handle, you can call C<guestfs_aug_close>."
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5071 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5072 msgstr ""
5073
5074 # type: =head2
5075 #: ../src/guestfs-actions.pod:412
5076 msgid "guestfs_aug_insert"
5077 msgstr ""
5078
5079 # type: verbatim
5080 #: ../src/guestfs-actions.pod:414
5081 #, no-wrap
5082 msgid ""
5083 " int\n"
5084 " guestfs_aug_insert (guestfs_h *g,\n"
5085 "                     const char *augpath,\n"
5086 "                     const char *label,\n"
5087 "                     int before);\n"
5088 "\n"
5089 msgstr ""
5090
5091 # type: textblock
5092 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5093 msgid ""
5094 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5095 "or after C<path> (depending on the boolean flag C<before>)."
5096 msgstr ""
5097
5098 # type: textblock
5099 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5100 msgid ""
5101 "C<path> must match exactly one existing node in the tree, and C<label> must "
5102 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5103 msgstr ""
5104
5105 # type: =head2
5106 #: ../src/guestfs-actions.pod:432
5107 msgid "guestfs_aug_load"
5108 msgstr ""
5109
5110 # type: verbatim
5111 #: ../src/guestfs-actions.pod:434
5112 #, no-wrap
5113 msgid ""
5114 " int\n"
5115 " guestfs_aug_load (guestfs_h *g);\n"
5116 "\n"
5117 msgstr ""
5118
5119 # type: textblock
5120 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5121 msgid "Load files into the tree."
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5126 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5127 msgstr ""
5128
5129 # type: =head2
5130 #: ../src/guestfs-actions.pod:446
5131 msgid "guestfs_aug_ls"
5132 msgstr ""
5133
5134 # type: verbatim
5135 #: ../src/guestfs-actions.pod:448
5136 #, no-wrap
5137 msgid ""
5138 " char **\n"
5139 " guestfs_aug_ls (guestfs_h *g,\n"
5140 "                 const char *augpath);\n"
5141 "\n"
5142 msgstr ""
5143
5144 # type: textblock
5145 #: ../src/guestfs-actions.pod:452
5146 msgid ""
5147 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5148 "sorting the resulting nodes into alphabetical order."
5149 msgstr ""
5150
5151 # type: textblock
5152 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5153 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5154 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5155 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5156 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5157 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5158 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5159 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5160 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782
5161 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248
5162 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415
5163 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436
5164 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082
5165 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847
5166 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963
5167 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133
5168 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625
5169 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837
5170 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941
5171 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006
5172 #: ../src/guestfs-actions.pod:7025
5173 msgid ""
5174 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5175 ">), or NULL if there was an error.  I<The caller must free the strings and "
5176 "the array after use>."
5177 msgstr ""
5178
5179 # type: textblock
5180 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5181 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5182 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102
5183 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711
5184 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931
5185 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440
5186 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275
5187 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301
5188 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347
5189 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589
5190 #: ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
5191 msgid "(Added in 0.8)"
5192 msgstr ""
5193
5194 # type: =head2
5195 #: ../src/guestfs-actions.pod:461
5196 msgid "guestfs_aug_match"
5197 msgstr ""
5198
5199 # type: verbatim
5200 #: ../src/guestfs-actions.pod:463
5201 #, no-wrap
5202 msgid ""
5203 " char **\n"
5204 " guestfs_aug_match (guestfs_h *g,\n"
5205 "                    const char *augpath);\n"
5206 "\n"
5207 msgstr ""
5208
5209 # type: textblock
5210 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5211 msgid ""
5212 "Returns a list of paths which match the path expression C<path>.  The "
5213 "returned paths are sufficiently qualified so that they match exactly one "
5214 "node in the current tree."
5215 msgstr ""
5216
5217 # type: =head2
5218 #: ../src/guestfs-actions.pod:477
5219 msgid "guestfs_aug_mv"
5220 msgstr ""
5221
5222 # type: verbatim
5223 #: ../src/guestfs-actions.pod:479
5224 #, no-wrap
5225 msgid ""
5226 " int\n"
5227 " guestfs_aug_mv (guestfs_h *g,\n"
5228 "                 const char *src,\n"
5229 "                 const char *dest);\n"
5230 "\n"
5231 msgstr ""
5232
5233 # type: textblock
5234 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5235 msgid ""
5236 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5237 "C<dest> is overwritten if it exists."
5238 msgstr ""
5239
5240 # type: =head2
5241 #: ../src/guestfs-actions.pod:491
5242 msgid "guestfs_aug_rm"
5243 msgstr ""
5244
5245 # type: verbatim
5246 #: ../src/guestfs-actions.pod:493
5247 #, no-wrap
5248 msgid ""
5249 " int\n"
5250 " guestfs_aug_rm (guestfs_h *g,\n"
5251 "                 const char *augpath);\n"
5252 "\n"
5253 msgstr ""
5254
5255 # type: textblock
5256 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5257 msgid "Remove C<path> and all of its children."
5258 msgstr ""
5259
5260 # type: textblock
5261 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5262 msgid "On success this returns the number of entries which were removed."
5263 msgstr ""
5264
5265 # type: =head2
5266 #: ../src/guestfs-actions.pod:505
5267 msgid "guestfs_aug_save"
5268 msgstr ""
5269
5270 # type: verbatim
5271 #: ../src/guestfs-actions.pod:507
5272 #, no-wrap
5273 msgid ""
5274 " int\n"
5275 " guestfs_aug_save (guestfs_h *g);\n"
5276 "\n"
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5281 msgid "This writes all pending changes to disk."
5282 msgstr ""
5283
5284 # type: textblock
5285 #: ../src/guestfs-actions.pod:512
5286 msgid ""
5287 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5288 "are saved."
5289 msgstr ""
5290
5291 # type: =head2
5292 #: ../src/guestfs-actions.pod:519
5293 msgid "guestfs_aug_set"
5294 msgstr ""
5295
5296 # type: verbatim
5297 #: ../src/guestfs-actions.pod:521
5298 #, no-wrap
5299 msgid ""
5300 " int\n"
5301 " guestfs_aug_set (guestfs_h *g,\n"
5302 "                  const char *augpath,\n"
5303 "                  const char *val);\n"
5304 "\n"
5305 msgstr ""
5306
5307 # type: textblock
5308 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5309 msgid "Set the value associated with C<path> to C<val>."
5310 msgstr ""
5311
5312 # type: textblock
5313 #: ../src/guestfs-actions.pod:528
5314 msgid ""
5315 "In the Augeas API, it is possible to clear a node by setting the value to "
5316 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5317 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5318 msgstr ""
5319
5320 # type: =head2
5321 #: ../src/guestfs-actions.pod:537
5322 msgid "guestfs_available"
5323 msgstr ""
5324
5325 # type: verbatim
5326 #: ../src/guestfs-actions.pod:539
5327 #, no-wrap
5328 msgid ""
5329 " int\n"
5330 " guestfs_available (guestfs_h *g,\n"
5331 "                    char *const *groups);\n"
5332 "\n"
5333 msgstr ""
5334
5335 # type: textblock
5336 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5337 msgid ""
5338 "This command is used to check the availability of some groups of "
5339 "functionality in the appliance, which not all builds of the libguestfs "
5340 "appliance will be able to provide."
5341 msgstr ""
5342
5343 # type: textblock
5344 #: ../src/guestfs-actions.pod:547
5345 msgid ""
5346 "The libguestfs groups, and the functions that those groups correspond to, "
5347 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5348 "runtime by calling C<guestfs_available_all_groups>."
5349 msgstr ""
5350
5351 # type: textblock
5352 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5353 msgid ""
5354 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5355 "\"]> would check for the availability of the Linux inotify functions and "
5356 "Augeas (configuration file editing) functions."
5357 msgstr ""
5358
5359 # type: textblock
5360 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5361 msgid "The command returns no error if I<all> requested groups are available."
5362 msgstr ""
5363
5364 # type: textblock
5365 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5366 msgid ""
5367 "It fails with an error if one or more of the requested groups is unavailable "
5368 "in the appliance."
5369 msgstr ""
5370
5371 # type: textblock
5372 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5373 msgid ""
5374 "If an unknown group name is included in the list of groups then an error is "
5375 "always returned."
5376 msgstr ""
5377
5378 # type: textblock
5379 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5380 msgid "I<Notes:>"
5381 msgstr ""
5382
5383 # type: textblock
5384 #: ../src/guestfs-actions.pod:571
5385 msgid "You must call C<guestfs_launch> before calling this function."
5386 msgstr ""
5387
5388 # type: textblock
5389 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5390 msgid ""
5391 "The reason is because we don't know what groups are supported by the "
5392 "appliance/daemon until it is running and can be queried."
5393 msgstr ""
5394
5395 # type: textblock
5396 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5397 msgid ""
5398 "If a group of functions is available, this does not necessarily mean that "
5399 "they will work.  You still have to check for errors when calling individual "
5400 "API functions even if they are available."
5401 msgstr ""
5402
5403 # type: textblock
5404 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5405 msgid ""
5406 "It is usually the job of distro packagers to build complete functionality "
5407 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5408 "with all requirements satisfied, will support everything."
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:593
5413 msgid ""
5414 "This call was added in version C<1.0.80>.  In previous versions of "
5415 "libguestfs all you could do would be to speculatively execute a command to "
5416 "find out if the daemon implemented it.  See also C<guestfs_version>."
5417 msgstr ""
5418
5419 # type: textblock
5420 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5421 msgid "(Added in 1.0.80)"
5422 msgstr ""
5423
5424 # type: =head2
5425 #: ../src/guestfs-actions.pod:604
5426 msgid "guestfs_available_all_groups"
5427 msgstr ""
5428
5429 # type: verbatim
5430 #: ../src/guestfs-actions.pod:606
5431 #, no-wrap
5432 msgid ""
5433 " char **\n"
5434 " guestfs_available_all_groups (guestfs_h *g);\n"
5435 "\n"
5436 msgstr ""
5437
5438 # type: textblock
5439 #: ../src/guestfs-actions.pod:609
5440 msgid ""
5441 "This command returns a list of all optional groups that this daemon knows "
5442 "about.  Note this returns both supported and unsupported groups.  To find "
5443 "out which ones the daemon can actually support you have to call "
5444 "C<guestfs_available> on each member of the returned list."
5445 msgstr ""
5446
5447 # type: textblock
5448 #: ../src/guestfs-actions.pod:615
5449 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5450 msgstr ""
5451
5452 # type: textblock
5453 #: ../src/guestfs-actions.pod:621
5454 msgid "(Added in 1.3.15)"
5455 msgstr ""
5456
5457 # type: =head2
5458 #: ../src/guestfs-actions.pod:623
5459 msgid "guestfs_base64_in"
5460 msgstr ""
5461
5462 # type: verbatim
5463 #: ../src/guestfs-actions.pod:625
5464 #, no-wrap
5465 msgid ""
5466 " int\n"
5467 " guestfs_base64_in (guestfs_h *g,\n"
5468 "                    const char *base64file,\n"
5469 "                    const char *filename);\n"
5470 "\n"
5471 msgstr ""
5472
5473 # type: textblock
5474 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5475 msgid ""
5476 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5477 msgstr ""
5478
5479 # type: textblock
5480 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5481 msgid "(Added in 1.3.5)"
5482 msgstr ""
5483
5484 # type: =head2
5485 #: ../src/guestfs-actions.pod:637
5486 msgid "guestfs_base64_out"
5487 msgstr ""
5488
5489 # type: verbatim
5490 #: ../src/guestfs-actions.pod:639
5491 #, no-wrap
5492 msgid ""
5493 " int\n"
5494 " guestfs_base64_out (guestfs_h *g,\n"
5495 "                     const char *filename,\n"
5496 "                     const char *base64file);\n"
5497 "\n"
5498 msgstr ""
5499
5500 # type: textblock
5501 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5502 msgid ""
5503 "This command downloads the contents of C<filename>, writing it out to local "
5504 "file C<base64file> encoded as base64."
5505 msgstr ""
5506
5507 # type: =head2
5508 #: ../src/guestfs-actions.pod:651
5509 msgid "guestfs_blockdev_flushbufs"
5510 msgstr ""
5511
5512 # type: verbatim
5513 #: ../src/guestfs-actions.pod:653
5514 #, no-wrap
5515 msgid ""
5516 " int\n"
5517 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5518 "                             const char *device);\n"
5519 "\n"
5520 msgstr ""
5521
5522 # type: textblock
5523 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5524 msgid ""
5525 "This tells the kernel to flush internal buffers associated with C<device>."
5526 msgstr ""
5527
5528 # type: textblock
5529 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5530 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5531 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5532 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5533 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5534 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5535 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5536 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5537 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5538 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5539 msgid "This uses the L<blockdev(8)> command."
5540 msgstr ""
5541
5542 # type: textblock
5543 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5544 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5545 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5546 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5547 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5548 msgid "(Added in 0.9.3)"
5549 msgstr ""
5550
5551 # type: =head2
5552 #: ../src/guestfs-actions.pod:666
5553 msgid "guestfs_blockdev_getbsz"
5554 msgstr ""
5555
5556 # type: verbatim
5557 #: ../src/guestfs-actions.pod:668
5558 #, no-wrap
5559 msgid ""
5560 " int\n"
5561 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5562 "                          const char *device);\n"
5563 "\n"
5564 msgstr ""
5565
5566 # type: textblock
5567 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5568 msgid "This returns the block size of a device."
5569 msgstr ""
5570
5571 # type: textblock
5572 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5573 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5574 msgid ""
5575 "(Note this is different from both I<size in blocks> and I<filesystem block "
5576 "size>)."
5577 msgstr ""
5578
5579 # type: =head2
5580 #: ../src/guestfs-actions.pod:683
5581 msgid "guestfs_blockdev_getro"
5582 msgstr ""
5583
5584 # type: verbatim
5585 #: ../src/guestfs-actions.pod:685
5586 #, no-wrap
5587 msgid ""
5588 " int\n"
5589 " guestfs_blockdev_getro (guestfs_h *g,\n"
5590 "                         const char *device);\n"
5591 "\n"
5592 msgstr ""
5593
5594 # type: textblock
5595 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5596 msgid ""
5597 "Returns a boolean indicating if the block device is read-only (true if read-"
5598 "only, false if not)."
5599 msgstr ""
5600
5601 # type: textblock
5602 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5603 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5604 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5605 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5606 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5607 #: ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024
5608 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053
5609 #: ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084
5610 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114
5611 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141
5612 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171
5613 #: ../src/guestfs-actions.pod:4585
5614 msgid "This function returns a C truth value on success or -1 on error."
5615 msgstr ""
5616
5617 # type: =head2
5618 #: ../src/guestfs-actions.pod:698
5619 msgid "guestfs_blockdev_getsize64"
5620 msgstr ""
5621
5622 # type: verbatim
5623 #: ../src/guestfs-actions.pod:700
5624 #, no-wrap
5625 msgid ""
5626 " int64_t\n"
5627 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5628 "                             const char *device);\n"
5629 "\n"
5630 msgstr ""
5631
5632 # type: textblock
5633 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5634 msgid "This returns the size of the device in bytes."
5635 msgstr ""
5636
5637 # type: textblock
5638 #: ../src/guestfs-actions.pod:706
5639 msgid "See also C<guestfs_blockdev_getsz>."
5640 msgstr ""
5641
5642 # type: =head2
5643 #: ../src/guestfs-actions.pod:714
5644 msgid "guestfs_blockdev_getss"
5645 msgstr ""
5646
5647 # type: verbatim
5648 #: ../src/guestfs-actions.pod:716
5649 #, no-wrap
5650 msgid ""
5651 " int\n"
5652 " guestfs_blockdev_getss (guestfs_h *g,\n"
5653 "                         const char *device);\n"
5654 "\n"
5655 msgstr ""
5656
5657 # type: textblock
5658 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5659 msgid ""
5660 "This returns the size of sectors on a block device.  Usually 512, but can be "
5661 "larger for modern devices."
5662 msgstr ""
5663
5664 # type: textblock
5665 #: ../src/guestfs-actions.pod:723
5666 msgid ""
5667 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5668 "that)."
5669 msgstr ""
5670
5671 # type: =head2
5672 #: ../src/guestfs-actions.pod:732
5673 msgid "guestfs_blockdev_getsz"
5674 msgstr ""
5675
5676 # type: verbatim
5677 #: ../src/guestfs-actions.pod:734
5678 #, no-wrap
5679 msgid ""
5680 " int64_t\n"
5681 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5682 "                         const char *device);\n"
5683 "\n"
5684 msgstr ""
5685
5686 # type: textblock
5687 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5688 msgid ""
5689 "This returns the size of the device in units of 512-byte sectors (even if "
5690 "the sectorsize isn't 512 bytes ... weird)."
5691 msgstr ""
5692
5693 # type: textblock
5694 #: ../src/guestfs-actions.pod:741
5695 msgid ""
5696 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5697 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5698 msgstr ""
5699
5700 # type: =head2
5701 #: ../src/guestfs-actions.pod:751
5702 msgid "guestfs_blockdev_rereadpt"
5703 msgstr ""
5704
5705 # type: verbatim
5706 #: ../src/guestfs-actions.pod:753
5707 #, no-wrap
5708 msgid ""
5709 " int\n"
5710 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5711 "                            const char *device);\n"
5712 "\n"
5713 msgstr ""
5714
5715 # type: textblock
5716 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5717 msgid "Reread the partition table on C<device>."
5718 msgstr ""
5719
5720 # type: =head2
5721 #: ../src/guestfs-actions.pod:765
5722 msgid "guestfs_blockdev_setbsz"
5723 msgstr ""
5724
5725 # type: verbatim
5726 #: ../src/guestfs-actions.pod:767
5727 #, no-wrap
5728 msgid ""
5729 " int\n"
5730 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5731 "                          const char *device,\n"
5732 "                          int blocksize);\n"
5733 "\n"
5734 msgstr ""
5735
5736 # type: textblock
5737 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5738 msgid "This sets the block size of a device."
5739 msgstr ""
5740
5741 # type: =head2
5742 #: ../src/guestfs-actions.pod:783
5743 msgid "guestfs_blockdev_setro"
5744 msgstr ""
5745
5746 # type: verbatim
5747 #: ../src/guestfs-actions.pod:785
5748 #, no-wrap
5749 msgid ""
5750 " int\n"
5751 " guestfs_blockdev_setro (guestfs_h *g,\n"
5752 "                         const char *device);\n"
5753 "\n"
5754 msgstr ""
5755
5756 # type: textblock
5757 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5758 msgid "Sets the block device named C<device> to read-only."
5759 msgstr ""
5760
5761 # type: =head2
5762 #: ../src/guestfs-actions.pod:797
5763 msgid "guestfs_blockdev_setrw"
5764 msgstr ""
5765
5766 # type: verbatim
5767 #: ../src/guestfs-actions.pod:799
5768 #, no-wrap
5769 msgid ""
5770 " int\n"
5771 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5772 "                         const char *device);\n"
5773 "\n"
5774 msgstr ""
5775
5776 # type: textblock
5777 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5778 msgid "Sets the block device named C<device> to read-write."
5779 msgstr ""
5780
5781 # type: =head2
5782 #: ../src/guestfs-actions.pod:811
5783 msgid "guestfs_case_sensitive_path"
5784 msgstr ""
5785
5786 # type: verbatim
5787 #: ../src/guestfs-actions.pod:813
5788 #, no-wrap
5789 msgid ""
5790 " char *\n"
5791 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5792 "                              const char *path);\n"
5793 "\n"
5794 msgstr ""
5795
5796 # type: textblock
5797 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5798 msgid ""
5799 "This can be used to resolve case insensitive paths on a filesystem which is "
5800 "case sensitive.  The use case is to resolve paths which you have read from "
5801 "Windows configuration files or the Windows Registry, to the true path."
5802 msgstr ""
5803
5804 # type: textblock
5805 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5806 msgid ""
5807 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5808 "(and probably others), which is that although the underlying filesystem is "
5809 "case-insensitive, the driver exports the filesystem to Linux as case-"
5810 "sensitive."
5811 msgstr ""
5812
5813 # type: textblock
5814 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5815 msgid ""
5816 "One consequence of this is that special directories such as C<c:\\windows> "
5817 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5818 "precise details of how they were created.  In Windows itself this would not "
5819 "be a problem."
5820 msgstr ""
5821
5822 # type: textblock
5823 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5824 msgid ""
5825 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5826 "#posixfilenames1>"
5827 msgstr ""
5828
5829 # type: textblock
5830 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5831 msgid ""
5832 "This function resolves the true case of each element in the path and returns "
5833 "the case-sensitive path."
5834 msgstr ""
5835
5836 # type: textblock
5837 #: ../src/guestfs-actions.pod:839
5838 msgid ""
5839 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5840 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5841 "how the directories were originally created under Windows)."
5842 msgstr ""
5843
5844 # type: textblock
5845 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5846 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5847 msgstr ""
5848
5849 # type: textblock
5850 #: ../src/guestfs-actions.pod:847
5851 msgid "See also C<guestfs_realpath>."
5852 msgstr ""
5853
5854 # type: textblock
5855 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5856 msgid "(Added in 1.0.75)"
5857 msgstr ""
5858
5859 # type: =head2
5860 #: ../src/guestfs-actions.pod:854
5861 msgid "guestfs_cat"
5862 msgstr ""
5863
5864 # type: verbatim
5865 #: ../src/guestfs-actions.pod:856
5866 #, no-wrap
5867 msgid ""
5868 " char *\n"
5869 " guestfs_cat (guestfs_h *g,\n"
5870 "              const char *path);\n"
5871 "\n"
5872 msgstr ""
5873
5874 # type: textblock
5875 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072
5876 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5877 msgid "Return the contents of the file named C<path>."
5878 msgstr ""
5879
5880 # type: textblock
5881 #: ../src/guestfs-actions.pod:862
5882 msgid ""
5883 "Note that this function cannot correctly handle binary files (specifically, "
5884 "files containing C<\\0> character which is treated as end of string).  For "
5885 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5886 "functions which have a more complex interface."
5887 msgstr ""
5888
5889 # type: textblock
5890 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5891 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5892 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5893 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5894 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5895 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5896 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5897 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880
5898 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037
5899 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912
5900 #: ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113
5901 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789
5902 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841
5903 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945
5904 #: ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010
5905 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582
5906 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5907 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5908 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5909 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5910 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5911 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5912 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5913 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5914 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5915 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5916 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5917 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5918 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5919 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5920 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5921 msgid ""
5922 "Because of the message protocol, there is a transfer limit of somewhere "
5923 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5924 msgstr ""
5925
5926 # type: textblock
5927 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252
5928 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331
5929 #: ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824
5930 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960
5931 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676
5932 #: ../src/guestfs-actions.pod:6690
5933 msgid "(Added in 0.4)"
5934 msgstr ""
5935
5936 # type: =head2
5937 #: ../src/guestfs-actions.pod:875
5938 msgid "guestfs_checksum"
5939 msgstr ""
5940
5941 # type: verbatim
5942 #: ../src/guestfs-actions.pod:877
5943 #, no-wrap
5944 msgid ""
5945 " char *\n"
5946 " guestfs_checksum (guestfs_h *g,\n"
5947 "                   const char *csumtype,\n"
5948 "                   const char *path);\n"
5949 "\n"
5950 msgstr ""
5951
5952 # type: textblock
5953 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5954 msgid ""
5955 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5956 msgstr ""
5957
5958 # type: textblock
5959 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5960 msgid ""
5961 "The type of checksum to compute is given by the C<csumtype> parameter which "
5962 "must have one of the following values:"
5963 msgstr ""
5964
5965 # type: =item
5966 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5967 msgid "C<crc>"
5968 msgstr ""
5969
5970 # type: textblock
5971 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5972 msgid ""
5973 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5974 "C<cksum> command."
5975 msgstr ""
5976
5977 # type: =item
5978 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5979 msgid "C<md5>"
5980 msgstr ""
5981
5982 # type: textblock
5983 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5984 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5985 msgstr ""
5986
5987 # type: =item
5988 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5989 msgid "C<sha1>"
5990 msgstr ""
5991
5992 # type: textblock
5993 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5994 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5995 msgstr ""
5996
5997 # type: =item
5998 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5999 msgid "C<sha224>"
6000 msgstr ""
6001
6002 # type: textblock
6003 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6004 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6005 msgstr ""
6006
6007 # type: =item
6008 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6009 msgid "C<sha256>"
6010 msgstr ""
6011
6012 # type: textblock
6013 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6014 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6015 msgstr ""
6016
6017 # type: =item
6018 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6019 msgid "C<sha384>"
6020 msgstr ""
6021
6022 # type: textblock
6023 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6024 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6025 msgstr ""
6026
6027 # type: =item
6028 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6029 msgid "C<sha512>"
6030 msgstr ""
6031
6032 # type: textblock
6033 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6034 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6035 msgstr ""
6036
6037 # type: textblock
6038 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6039 msgid "The checksum is returned as a printable string."
6040 msgstr ""
6041
6042 # type: textblock
6043 #: ../src/guestfs-actions.pod:923
6044 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6045 msgstr ""
6046
6047 # type: textblock
6048 #: ../src/guestfs-actions.pod:925
6049 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6050 msgstr ""
6051
6052 # type: textblock
6053 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6054 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026
6055 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116
6056 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
6057 msgid "(Added in 1.0.2)"
6058 msgstr ""
6059
6060 # type: =head2
6061 #: ../src/guestfs-actions.pod:932
6062 msgid "guestfs_checksum_device"
6063 msgstr ""
6064
6065 # type: verbatim
6066 #: ../src/guestfs-actions.pod:934
6067 #, no-wrap
6068 msgid ""
6069 " char *\n"
6070 " guestfs_checksum_device (guestfs_h *g,\n"
6071 "                          const char *csumtype,\n"
6072 "                          const char *device);\n"
6073 "\n"
6074 msgstr ""
6075
6076 # type: textblock
6077 #: ../src/guestfs-actions.pod:939
6078 msgid ""
6079 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6080 "device named C<device>.  For the types of checksums supported see the "
6081 "C<guestfs_checksum> command."
6082 msgstr ""
6083
6084 # type: textblock
6085 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491
6086 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587
6087 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781
6088 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306
6089 #: ../src/guestfs-actions.pod:6702
6090 msgid "(Added in 1.3.2)"
6091 msgstr ""
6092
6093 # type: =head2
6094 #: ../src/guestfs-actions.pod:948
6095 msgid "guestfs_checksums_out"
6096 msgstr ""
6097
6098 # type: verbatim
6099 #: ../src/guestfs-actions.pod:950
6100 #, no-wrap
6101 msgid ""
6102 " int\n"
6103 " guestfs_checksums_out (guestfs_h *g,\n"
6104 "                        const char *csumtype,\n"
6105 "                        const char *directory,\n"
6106 "                        const char *sumsfile);\n"
6107 "\n"
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6112 msgid ""
6113 "This command computes the checksums of all regular files in C<directory> and "
6114 "then emits a list of those checksums to the local output file C<sumsfile>."
6115 msgstr ""
6116
6117 # type: textblock
6118 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6119 msgid ""
6120 "This can be used for verifying the integrity of a virtual machine.  However "
6121 "to be properly secure you should pay attention to the output of the checksum "
6122 "command (it uses the ones from GNU coreutils).  In particular when the "
6123 "filename is not printable, coreutils uses a special backslash syntax.  For "
6124 "more information, see the GNU coreutils info file."
6125 msgstr ""
6126
6127 # type: textblock
6128 #: ../src/guestfs-actions.pod:970
6129 msgid "(Added in 1.3.7)"
6130 msgstr ""
6131
6132 # type: =head2
6133 #: ../src/guestfs-actions.pod:972
6134 msgid "guestfs_chmod"
6135 msgstr ""
6136
6137 # type: verbatim
6138 #: ../src/guestfs-actions.pod:974
6139 #, no-wrap
6140 msgid ""
6141 " int\n"
6142 " guestfs_chmod (guestfs_h *g,\n"
6143 "                int mode,\n"
6144 "                const char *path);\n"
6145 "\n"
6146 msgstr ""
6147
6148 # type: textblock
6149 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6150 msgid ""
6151 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6152 "supported."
6153 msgstr ""
6154
6155 # type: textblock
6156 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6157 msgid ""
6158 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6159 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6160 "C<700>."
6161 msgstr ""
6162
6163 # type: textblock
6164 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075
6165 #: ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209
6166 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671
6167 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6168 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6169 msgid "The mode actually set is affected by the umask."
6170 msgstr ""
6171
6172 # type: =head2
6173 #: ../src/guestfs-actions.pod:992
6174 msgid "guestfs_chown"
6175 msgstr ""
6176
6177 # type: verbatim
6178 #: ../src/guestfs-actions.pod:994
6179 #, no-wrap
6180 msgid ""
6181 " int\n"
6182 " guestfs_chown (guestfs_h *g,\n"
6183 "                int owner,\n"
6184 "                int group,\n"
6185 "                const char *path);\n"
6186 "\n"
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6191 msgid "Change the file owner to C<owner> and group to C<group>."
6192 msgstr ""
6193
6194 # type: textblock
6195 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213
6196 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6197 msgid ""
6198 "Only numeric uid and gid are supported.  If you want to use names, you will "
6199 "need to locate and parse the password file yourself (Augeas support makes "
6200 "this relatively easy)."
6201 msgstr ""
6202
6203 # type: =head2
6204 #: ../src/guestfs-actions.pod:1010
6205 msgid "guestfs_command"
6206 msgstr ""
6207
6208 # type: verbatim
6209 #: ../src/guestfs-actions.pod:1012
6210 #, no-wrap
6211 msgid ""
6212 " char *\n"
6213 " guestfs_command (guestfs_h *g,\n"
6214 "                  char *const *arguments);\n"
6215 "\n"
6216 msgstr ""
6217
6218 # type: textblock
6219 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6220 msgid ""
6221 "This call runs a command from the guest filesystem.  The filesystem must be "
6222 "mounted, and must contain a compatible operating system (ie. something "
6223 "Linux, with the same or compatible processor architecture)."
6224 msgstr ""
6225
6226 # type: textblock
6227 #: ../src/guestfs-actions.pod:1021
6228 msgid ""
6229 "The single parameter is an argv-style list of arguments.  The first element "
6230 "is the name of the program to run.  Subsequent elements are parameters.  The "
6231 "list must be non-empty (ie. must contain a program name).  Note that the "
6232 "command runs directly, and is I<not> invoked via the shell (see "
6233 "C<guestfs_sh>)."
6234 msgstr ""
6235
6236 # type: textblock
6237 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6238 msgid "The return value is anything printed to I<stdout> by the command."
6239 msgstr ""
6240
6241 # type: textblock
6242 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6243 msgid ""
6244 "If the command returns a non-zero exit status, then this function returns an "
6245 "error message.  The error message string is the content of I<stderr> from "
6246 "the command."
6247 msgstr ""
6248
6249 # type: textblock
6250 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6251 msgid ""
6252 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6253 "bin>.  If you require a program from another location, you should provide "
6254 "the full path in the first parameter."
6255 msgstr ""
6256
6257 # type: textblock
6258 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6259 msgid ""
6260 "Shared libraries and data files required by the program must be available on "
6261 "filesystems which are mounted in the correct places.  It is the caller's "
6262 "responsibility to ensure all filesystems that are needed are mounted at the "
6263 "right locations."
6264 msgstr ""
6265
6266 # type: textblock
6267 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6268 #: ../src/guestfs-actions.pod:1535
6269 msgid "(Added in 0.9.1)"
6270 msgstr ""
6271
6272 # type: =head2
6273 #: ../src/guestfs-actions.pod:1054
6274 msgid "guestfs_command_lines"
6275 msgstr ""
6276
6277 # type: verbatim
6278 #: ../src/guestfs-actions.pod:1056
6279 #, no-wrap
6280 msgid ""
6281 " char **\n"
6282 " guestfs_command_lines (guestfs_h *g,\n"
6283 "                        char *const *arguments);\n"
6284 "\n"
6285 msgstr ""
6286
6287 # type: textblock
6288 #: ../src/guestfs-actions.pod:1060
6289 msgid ""
6290 "This is the same as C<guestfs_command>, but splits the result into a list of "
6291 "lines."
6292 msgstr ""
6293
6294 # type: textblock
6295 #: ../src/guestfs-actions.pod:1063
6296 msgid "See also: C<guestfs_sh_lines>"
6297 msgstr ""
6298
6299 # type: =head2
6300 #: ../src/guestfs-actions.pod:1074
6301 msgid "guestfs_config"
6302 msgstr ""
6303
6304 # type: verbatim
6305 #: ../src/guestfs-actions.pod:1076
6306 #, no-wrap
6307 msgid ""
6308 " int\n"
6309 " guestfs_config (guestfs_h *g,\n"
6310 "                 const char *qemuparam,\n"
6311 "                 const char *qemuvalue);\n"
6312 "\n"
6313 msgstr ""
6314
6315 # type: textblock
6316 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6317 msgid ""
6318 "This can be used to add arbitrary qemu command line parameters of the form "
6319 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6320 "setting some parameters which would interfere with parameters that we use."
6321 msgstr ""
6322
6323 # type: textblock
6324 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6325 msgid "The first character of C<param> string must be a C<-> (dash)."
6326 msgstr ""
6327
6328 # type: textblock
6329 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6330 msgid "C<value> can be NULL."
6331 msgstr ""
6332
6333 # type: =head2
6334 #: ../src/guestfs-actions.pod:1094
6335 msgid "guestfs_copy_size"
6336 msgstr ""
6337
6338 # type: verbatim
6339 #: ../src/guestfs-actions.pod:1096
6340 #, no-wrap
6341 msgid ""
6342 " int\n"
6343 " guestfs_copy_size (guestfs_h *g,\n"
6344 "                    const char *src,\n"
6345 "                    const char *dest,\n"
6346 "                    int64_t size);\n"
6347 "\n"
6348 msgstr ""
6349
6350 # type: textblock
6351 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6352 msgid ""
6353 "This command copies exactly C<size> bytes from one source device or file "
6354 "C<src> to another destination device or file C<dest>."
6355 msgstr ""
6356
6357 # type: textblock
6358 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6359 msgid ""
6360 "Note this will fail if the source is too short or if the destination is not "
6361 "large enough."
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6366 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6367 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881
6368 #: ../src/guestfs-actions.pod:6900
6369 msgid ""
6370 "This long-running command can generate progress notification messages so "
6371 "that the caller can display a progress bar or indicator.  To receive these "
6372 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6373 "guestfs_set_progress_callback>."
6374 msgstr ""
6375
6376 # type: textblock
6377 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851
6378 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609
6379 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6380 msgid "(Added in 1.0.87)"
6381 msgstr ""
6382
6383 # type: =head2
6384 #: ../src/guestfs-actions.pod:1117
6385 msgid "guestfs_cp"
6386 msgstr ""
6387
6388 # type: verbatim
6389 #: ../src/guestfs-actions.pod:1119
6390 #, no-wrap
6391 msgid ""
6392 " int\n"
6393 " guestfs_cp (guestfs_h *g,\n"
6394 "             const char *src,\n"
6395 "             const char *dest);\n"
6396 "\n"
6397 msgstr ""
6398
6399 # type: textblock
6400 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6401 msgid ""
6402 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6403 "destination filename or destination directory."
6404 msgstr ""
6405
6406 # type: textblock
6407 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6408 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6409 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454
6410 #: ../src/guestfs-actions.pod:4831
6411 msgid "(Added in 1.0.18)"
6412 msgstr ""
6413
6414 # type: =head2
6415 #: ../src/guestfs-actions.pod:1131
6416 msgid "guestfs_cp_a"
6417 msgstr ""
6418
6419 # type: verbatim
6420 #: ../src/guestfs-actions.pod:1133
6421 #, no-wrap
6422 msgid ""
6423 " int\n"
6424 " guestfs_cp_a (guestfs_h *g,\n"
6425 "               const char *src,\n"
6426 "               const char *dest);\n"
6427 "\n"
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6432 msgid ""
6433 "This copies a file or directory from C<src> to C<dest> recursively using the "
6434 "C<cp -a> command."
6435 msgstr ""
6436
6437 # type: =head2
6438 #: ../src/guestfs-actions.pod:1145
6439 msgid "guestfs_dd"
6440 msgstr ""
6441
6442 # type: verbatim
6443 #: ../src/guestfs-actions.pod:1147
6444 #, no-wrap
6445 msgid ""
6446 " int\n"
6447 " guestfs_dd (guestfs_h *g,\n"
6448 "             const char *src,\n"
6449 "             const char *dest);\n"
6450 "\n"
6451 msgstr ""
6452
6453 # type: textblock
6454 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6455 msgid ""
6456 "This command copies from one source device or file C<src> to another "
6457 "destination device or file C<dest>.  Normally you would use this to copy to "
6458 "or from a device or partition, for example to duplicate a filesystem."
6459 msgstr ""
6460
6461 # type: textblock
6462 #: ../src/guestfs-actions.pod:1157
6463 msgid ""
6464 "If the destination is a device, it must be as large or larger than the "
6465 "source file or device, otherwise the copy will fail.  This command cannot do "
6466 "partial copies (see C<guestfs_copy_size>)."
6467 msgstr ""
6468
6469 # type: =head2
6470 #: ../src/guestfs-actions.pod:1165
6471 msgid "guestfs_df"
6472 msgstr ""
6473
6474 # type: verbatim
6475 #: ../src/guestfs-actions.pod:1167
6476 #, no-wrap
6477 msgid ""
6478 " char *\n"
6479 " guestfs_df (guestfs_h *g);\n"
6480 "\n"
6481 msgstr ""
6482
6483 # type: textblock
6484 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6485 msgid "This command runs the C<df> command to report disk space used."
6486 msgstr ""
6487
6488 # type: textblock
6489 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6490 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6491 msgid ""
6492 "This command is mostly useful for interactive sessions.  It is I<not> "
6493 "intended that you try to parse the output string.  Use C<statvfs> from "
6494 "programs."
6495 msgstr ""
6496
6497 # type: textblock
6498 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6499 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6500 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6501 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354
6502 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140
6503 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761
6504 #: ../src/guestfs-actions.pod:6774
6505 msgid "(Added in 1.0.54)"
6506 msgstr ""
6507
6508 # type: =head2
6509 #: ../src/guestfs-actions.pod:1181
6510 msgid "guestfs_df_h"
6511 msgstr ""
6512
6513 # type: verbatim
6514 #: ../src/guestfs-actions.pod:1183
6515 #, no-wrap
6516 msgid ""
6517 " char *\n"
6518 " guestfs_df_h (guestfs_h *g);\n"
6519 "\n"
6520 msgstr ""
6521
6522 # type: textblock
6523 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6524 msgid ""
6525 "This command runs the C<df -h> command to report disk space used in human-"
6526 "readable format."
6527 msgstr ""
6528
6529 # type: =head2
6530 #: ../src/guestfs-actions.pod:1198
6531 msgid "guestfs_dmesg"
6532 msgstr ""
6533
6534 # type: verbatim
6535 #: ../src/guestfs-actions.pod:1200
6536 #, no-wrap
6537 msgid ""
6538 " char *\n"
6539 " guestfs_dmesg (guestfs_h *g);\n"
6540 "\n"
6541 msgstr ""
6542
6543 # type: textblock
6544 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6545 msgid ""
6546 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6547 "This is sometimes useful for extended debugging of problems."
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1207
6552 msgid ""
6553 "Another way to get the same information is to enable verbose messages with "
6554 "C<guestfs_set_verbose> or by setting the environment variable "
6555 "C<LIBGUESTFS_DEBUG=1> before running the program."
6556 msgstr ""
6557
6558 # type: =head2
6559 #: ../src/guestfs-actions.pod:1217
6560 msgid "guestfs_download"
6561 msgstr ""
6562
6563 # type: verbatim
6564 #: ../src/guestfs-actions.pod:1219
6565 #, no-wrap
6566 msgid ""
6567 " int\n"
6568 " guestfs_download (guestfs_h *g,\n"
6569 "                   const char *remotefilename,\n"
6570 "                   const char *filename);\n"
6571 "\n"
6572 msgstr ""
6573
6574 # type: textblock
6575 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6576 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6577 msgid ""
6578 "Download file C<remotefilename> and save it as C<filename> on the local "
6579 "machine."
6580 msgstr ""
6581
6582 # type: textblock
6583 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372
6584 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6585 msgid "C<filename> can also be a named pipe."
6586 msgstr ""
6587
6588 # type: textblock
6589 #: ../src/guestfs-actions.pod:1229
6590 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6591 msgstr ""
6592
6593 # type: =head2
6594 #: ../src/guestfs-actions.pod:1240
6595 msgid "guestfs_download_offset"
6596 msgstr ""
6597
6598 # type: verbatim
6599 #: ../src/guestfs-actions.pod:1242
6600 #, no-wrap
6601 msgid ""
6602 " int\n"
6603 " guestfs_download_offset (guestfs_h *g,\n"
6604 "                          const char *remotefilename,\n"
6605 "                          const char *filename,\n"
6606 "                          int64_t offset,\n"
6607 "                          int64_t size);\n"
6608 "\n"
6609 msgstr ""
6610
6611 # type: textblock
6612 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6613 msgid ""
6614 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6615 "region must be within the file or device)."
6616 msgstr ""
6617
6618 # type: textblock
6619 #: ../src/guestfs-actions.pod:1255
6620 msgid ""
6621 "Note that there is no limit on the amount of data that can be downloaded "
6622 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6623 "full amount unless an error occurs."
6624 msgstr ""
6625
6626 # type: textblock
6627 #: ../src/guestfs-actions.pod:1260
6628 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6629 msgstr ""
6630
6631 # type: textblock
6632 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6633 msgid "(Added in 1.5.17)"
6634 msgstr ""
6635
6636 # type: =head2
6637 #: ../src/guestfs-actions.pod:1271
6638 msgid "guestfs_drop_caches"
6639 msgstr ""
6640
6641 # type: verbatim
6642 #: ../src/guestfs-actions.pod:1273
6643 #, no-wrap
6644 msgid ""
6645 " int\n"
6646 " guestfs_drop_caches (guestfs_h *g,\n"
6647 "                      int whattodrop);\n"
6648 "\n"
6649 msgstr ""
6650
6651 # type: textblock
6652 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6653 msgid ""
6654 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6655 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6656 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6657 msgstr ""
6658
6659 # type: textblock
6660 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6661 msgid "Setting C<whattodrop> to 3 should drop everything."
6662 msgstr ""
6663
6664 # type: textblock
6665 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6666 msgid ""
6667 "This automatically calls L<sync(2)> before the operation, so that the "
6668 "maximum guest memory is freed."
6669 msgstr ""
6670
6671 # type: =head2
6672 #: ../src/guestfs-actions.pod:1291
6673 msgid "guestfs_du"
6674 msgstr ""
6675
6676 # type: verbatim
6677 #: ../src/guestfs-actions.pod:1293
6678 #, no-wrap
6679 msgid ""
6680 " int64_t\n"
6681 " guestfs_du (guestfs_h *g,\n"
6682 "             const char *path);\n"
6683 "\n"
6684 msgstr ""
6685
6686 # type: textblock
6687 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6688 msgid ""
6689 "This command runs the C<du -s> command to estimate file space usage for "
6690 "C<path>."
6691 msgstr ""
6692
6693 # type: textblock
6694 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6695 msgid ""
6696 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6697 "estimate includes the contents of the directory and all subdirectories "
6698 "(recursively)."
6699 msgstr ""
6700
6701 # type: textblock
6702 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6703 msgid ""
6704 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6705 msgstr ""
6706
6707 # type: =head2
6708 #: ../src/guestfs-actions.pod:1311
6709 msgid "guestfs_e2fsck_f"
6710 msgstr ""
6711
6712 # type: verbatim
6713 #: ../src/guestfs-actions.pod:1313
6714 #, no-wrap
6715 msgid ""
6716 " int\n"
6717 " guestfs_e2fsck_f (guestfs_h *g,\n"
6718 "                   const char *device);\n"
6719 "\n"
6720 msgstr ""
6721
6722 # type: textblock
6723 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6724 msgid ""
6725 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6726 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6727 "clean (C<-f>)."
6728 msgstr ""
6729
6730 # type: textblock
6731 #: ../src/guestfs-actions.pod:1321
6732 msgid ""
6733 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6734 "Normally you should use C<guestfs_fsck>."
6735 msgstr ""
6736
6737 # type: textblock
6738 #: ../src/guestfs-actions.pod:1326
6739 msgid "(Added in 1.0.29)"
6740 msgstr ""
6741
6742 # type: =head2
6743 #: ../src/guestfs-actions.pod:1328
6744 msgid "guestfs_echo_daemon"
6745 msgstr ""
6746
6747 # type: verbatim
6748 #: ../src/guestfs-actions.pod:1330
6749 #, no-wrap
6750 msgid ""
6751 " char *\n"
6752 " guestfs_echo_daemon (guestfs_h *g,\n"
6753 "                      char *const *words);\n"
6754 "\n"
6755 msgstr ""
6756
6757 # type: textblock
6758 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6759 msgid ""
6760 "This command concatenates the list of C<words> passed with single spaces "
6761 "between them and returns the resulting string."
6762 msgstr ""
6763
6764 # type: textblock
6765 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6766 msgid "You can use this command to test the connection through to the daemon."
6767 msgstr ""
6768
6769 # type: textblock
6770 #: ../src/guestfs-actions.pod:1339
6771 msgid "See also C<guestfs_ping_daemon>."
6772 msgstr ""
6773
6774 # type: textblock
6775 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6776 #: ../src/guestfs-actions.pod:5620
6777 msgid "(Added in 1.0.69)"
6778 msgstr ""
6779
6780 # type: =head2
6781 #: ../src/guestfs-actions.pod:1346
6782 msgid "guestfs_egrep"
6783 msgstr ""
6784
6785 # type: verbatim
6786 #: ../src/guestfs-actions.pod:1348
6787 #, no-wrap
6788 msgid ""
6789 " char **\n"
6790 " guestfs_egrep (guestfs_h *g,\n"
6791 "                const char *regex,\n"
6792 "                const char *path);\n"
6793 "\n"
6794 msgstr ""
6795
6796 # type: textblock
6797 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6798 msgid ""
6799 "This calls the external C<egrep> program and returns the matching lines."
6800 msgstr ""
6801
6802 # type: textblock
6803 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6804 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6805 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6806 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6807 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6808 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6809 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344
6810 #: ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371
6811 #: ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289
6812 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214
6813 #: ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996
6814 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022
6815 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057
6816 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083
6817 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863
6818 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967
6819 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6820 msgid "(Added in 1.0.66)"
6821 msgstr ""
6822
6823 # type: =head2
6824 #: ../src/guestfs-actions.pod:1365
6825 msgid "guestfs_egrepi"
6826 msgstr ""
6827
6828 # type: verbatim
6829 #: ../src/guestfs-actions.pod:1367
6830 #, no-wrap
6831 msgid ""
6832 " char **\n"
6833 " guestfs_egrepi (guestfs_h *g,\n"
6834 "                 const char *regex,\n"
6835 "                 const char *path);\n"
6836 "\n"
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6841 msgid ""
6842 "This calls the external C<egrep -i> program and returns the matching lines."
6843 msgstr ""
6844
6845 # type: =head2
6846 #: ../src/guestfs-actions.pod:1384
6847 msgid "guestfs_equal"
6848 msgstr ""
6849
6850 # type: verbatim
6851 #: ../src/guestfs-actions.pod:1386
6852 #, no-wrap
6853 msgid ""
6854 " int\n"
6855 " guestfs_equal (guestfs_h *g,\n"
6856 "                const char *file1,\n"
6857 "                const char *file2);\n"
6858 "\n"
6859 msgstr ""
6860
6861 # type: textblock
6862 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6863 msgid ""
6864 "This compares the two files C<file1> and C<file2> and returns true if their "
6865 "content is exactly equal, or false otherwise."
6866 msgstr ""
6867
6868 # type: textblock
6869 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6870 msgid "The external L<cmp(1)> program is used for the comparison."
6871 msgstr ""
6872
6873 # type: =head2
6874 #: ../src/guestfs-actions.pod:1400
6875 msgid "guestfs_exists"
6876 msgstr ""
6877
6878 # type: verbatim
6879 #: ../src/guestfs-actions.pod:1402
6880 #, no-wrap
6881 msgid ""
6882 " int\n"
6883 " guestfs_exists (guestfs_h *g,\n"
6884 "                 const char *path);\n"
6885 "\n"
6886 msgstr ""
6887
6888 # type: textblock
6889 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6890 msgid ""
6891 "This returns C<true> if and only if there is a file, directory (or anything) "
6892 "with the given C<path> name."
6893 msgstr ""
6894
6895 # type: textblock
6896 #: ../src/guestfs-actions.pod:1409
6897 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6898 msgstr ""
6899
6900 # type: =head2
6901 #: ../src/guestfs-actions.pod:1415
6902 msgid "guestfs_fallocate"
6903 msgstr ""
6904
6905 # type: verbatim
6906 #: ../src/guestfs-actions.pod:1417
6907 #, no-wrap
6908 msgid ""
6909 " int\n"
6910 " guestfs_fallocate (guestfs_h *g,\n"
6911 "                    const char *path,\n"
6912 "                    int len);\n"
6913 "\n"
6914 msgstr ""
6915
6916 # type: textblock
6917 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6918 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6919 msgid ""
6920 "This command preallocates a file (containing zero bytes) named C<path> of "
6921 "size C<len> bytes.  If the file exists already, it is overwritten."
6922 msgstr ""
6923
6924 # type: textblock
6925 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6926 msgid ""
6927 "Do not confuse this with the guestfish-specific C<alloc> command which "
6928 "allocates a file in the host and attaches it as a device."
6929 msgstr ""
6930
6931 # type: textblock
6932 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6933 msgid ""
6934 "This function is deprecated.  In new code, use the C<fallocate64> call "
6935 "instead."
6936 msgstr ""
6937
6938 # type: =head2
6939 #: ../src/guestfs-actions.pod:1441
6940 msgid "guestfs_fallocate64"
6941 msgstr ""
6942
6943 # type: verbatim
6944 #: ../src/guestfs-actions.pod:1443
6945 #, no-wrap
6946 msgid ""
6947 " int\n"
6948 " guestfs_fallocate64 (guestfs_h *g,\n"
6949 "                      const char *path,\n"
6950 "                      int64_t len);\n"
6951 "\n"
6952 msgstr ""
6953
6954 # type: textblock
6955 #: ../src/guestfs-actions.pod:1452
6956 msgid ""
6957 "Note that this call allocates disk blocks for the file.  To create a sparse "
6958 "file use C<guestfs_truncate_size> instead."
6959 msgstr ""
6960
6961 # type: textblock
6962 #: ../src/guestfs-actions.pod:1455
6963 msgid ""
6964 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6965 "oversight it only allowed 30 bit lengths to be specified, effectively "
6966 "limiting the maximum size of files created through that call to 1GB."
6967 msgstr ""
6968
6969 # type: textblock
6970 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6971 msgid ""
6972 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6973 "commands which create a file in the host and attach it as a device."
6974 msgstr ""
6975
6976 # type: textblock
6977 #: ../src/guestfs-actions.pod:1466
6978 msgid "(Added in 1.3.17)"
6979 msgstr ""
6980
6981 # type: =head2
6982 #: ../src/guestfs-actions.pod:1468
6983 msgid "guestfs_fgrep"
6984 msgstr ""
6985
6986 # type: verbatim
6987 #: ../src/guestfs-actions.pod:1470
6988 #, no-wrap
6989 msgid ""
6990 " char **\n"
6991 " guestfs_fgrep (guestfs_h *g,\n"
6992 "                const char *pattern,\n"
6993 "                const char *path);\n"
6994 "\n"
6995 msgstr ""
6996
6997 # type: textblock
6998 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6999 msgid ""
7000 "This calls the external C<fgrep> program and returns the matching lines."
7001 msgstr ""
7002
7003 # type: =head2
7004 #: ../src/guestfs-actions.pod:1487
7005 msgid "guestfs_fgrepi"
7006 msgstr ""
7007
7008 # type: verbatim
7009 #: ../src/guestfs-actions.pod:1489
7010 #, no-wrap
7011 msgid ""
7012 " char **\n"
7013 " guestfs_fgrepi (guestfs_h *g,\n"
7014 "                 const char *pattern,\n"
7015 "                 const char *path);\n"
7016 "\n"
7017 msgstr ""
7018
7019 # type: textblock
7020 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7021 msgid ""
7022 "This calls the external C<fgrep -i> program and returns the matching lines."
7023 msgstr ""
7024
7025 # type: =head2
7026 #: ../src/guestfs-actions.pod:1506
7027 msgid "guestfs_file"
7028 msgstr ""
7029
7030 # type: verbatim
7031 #: ../src/guestfs-actions.pod:1508
7032 #, no-wrap
7033 msgid ""
7034 " char *\n"
7035 " guestfs_file (guestfs_h *g,\n"
7036 "               const char *path);\n"
7037 "\n"
7038 msgstr ""
7039
7040 # type: textblock
7041 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7042 msgid ""
7043 "This call uses the standard L<file(1)> command to determine the type or "
7044 "contents of the file."
7045 msgstr ""
7046
7047 # type: textblock
7048 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7049 msgid ""
7050 "This call will also transparently look inside various types of compressed "
7051 "file."
7052 msgstr ""
7053
7054 # type: textblock
7055 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7056 msgid ""
7057 "The exact command which runs is C<file -zb path>.  Note in particular that "
7058 "the filename is not prepended to the output (the C<-b> option)."
7059 msgstr ""
7060
7061 # type: textblock
7062 #: ../src/guestfs-actions.pod:1522
7063 msgid ""
7064 "This command can also be used on C</dev/> devices (and partitions, LV "
7065 "names).  You can for example use this to determine if a device contains a "
7066 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7071 msgid ""
7072 "If the C<path> does not begin with C</dev/> then this command only works for "
7073 "the content of regular files.  For other file types (directory, symbolic "
7074 "link etc) it will just return the string C<directory> etc."
7075 msgstr ""
7076
7077 # type: =head2
7078 #: ../src/guestfs-actions.pod:1537
7079 msgid "guestfs_file_architecture"
7080 msgstr ""
7081
7082 # type: verbatim
7083 #: ../src/guestfs-actions.pod:1539
7084 #, no-wrap
7085 msgid ""
7086 " char *\n"
7087 " guestfs_file_architecture (guestfs_h *g,\n"
7088 "                            const char *filename);\n"
7089 "\n"
7090 msgstr ""
7091
7092 # type: textblock
7093 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7094 msgid ""
7095 "This detects the architecture of the binary C<filename>, and returns it if "
7096 "known."
7097 msgstr ""
7098
7099 # type: textblock
7100 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7101 msgid "Currently defined architectures are:"
7102 msgstr ""
7103
7104 # type: =item
7105 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7106 msgid "\"i386\""
7107 msgstr ""
7108
7109 # type: textblock
7110 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7111 msgid ""
7112 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7113 "irrespective of the precise processor requirements of the binary."
7114 msgstr ""
7115
7116 # type: =item
7117 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7118 msgid "\"x86_64\""
7119 msgstr ""
7120
7121 # type: textblock
7122 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7123 msgid "64 bit x86-64."
7124 msgstr ""
7125
7126 # type: =item
7127 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7128 msgid "\"sparc\""
7129 msgstr ""
7130
7131 # type: textblock
7132 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7133 msgid "32 bit SPARC."
7134 msgstr ""
7135
7136 # type: =item
7137 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7138 msgid "\"sparc64\""
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7143 msgid "64 bit SPARC V9 and above."
7144 msgstr ""
7145
7146 # type: =item
7147 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7148 msgid "\"ia64\""
7149 msgstr ""
7150
7151 # type: textblock
7152 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7153 msgid "Intel Itanium."
7154 msgstr ""
7155
7156 # type: =item
7157 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7158 msgid "\"ppc\""
7159 msgstr ""
7160
7161 # type: textblock
7162 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7163 msgid "32 bit Power PC."
7164 msgstr ""
7165
7166 # type: =item
7167 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7168 msgid "\"ppc64\""
7169 msgstr ""
7170
7171 # type: textblock
7172 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7173 msgid "64 bit Power PC."
7174 msgstr ""
7175
7176 # type: textblock
7177 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7178 msgid "Libguestfs may return other architecture strings in future."
7179 msgstr ""
7180
7181 # type: textblock
7182 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7183 msgid "The function works on at least the following types of files:"
7184 msgstr ""
7185
7186 # type: textblock
7187 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7188 msgid "many types of Un*x and Linux binary"
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7193 msgid "many types of Un*x and Linux shared library"
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7198 msgid "Windows Win32 and Win64 binaries"
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7203 msgid "Windows Win32 and Win64 DLLs"
7204 msgstr ""
7205
7206 # type: textblock
7207 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7208 msgid "Win32 binaries and DLLs return C<i386>."
7209 msgstr ""
7210
7211 # type: textblock
7212 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7213 msgid "Win64 binaries and DLLs return C<x86_64>."
7214 msgstr ""
7215
7216 # type: textblock
7217 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7218 msgid "Linux kernel modules"
7219 msgstr ""
7220
7221 # type: textblock
7222 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7223 msgid "Linux new-style initrd images"
7224 msgstr ""
7225
7226 # type: textblock
7227 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7228 msgid "some non-x86 Linux vmlinuz kernels"
7229 msgstr ""
7230
7231 # type: textblock
7232 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7233 msgid "What it can't do currently:"
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7238 msgid "static libraries (libfoo.a)"
7239 msgstr ""
7240
7241 # type: textblock
7242 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7243 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7244 msgstr ""
7245
7246 # type: textblock
7247 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7248 msgid "x86 Linux vmlinuz kernels"
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7253 msgid ""
7254 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7255 "compressed code, and are horribly hard to unpack.  If you want to find the "
7256 "architecture of a kernel, use the architecture of the associated initrd or "
7257 "kernel module(s) instead."
7258 msgstr ""
7259
7260 # type: textblock
7261 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7262 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7263 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
7264 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653
7265 #: ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766
7266 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997
7267 #: ../src/guestfs-actions.pod:3129
7268 msgid "(Added in 1.5.3)"
7269 msgstr ""
7270
7271 # type: =head2
7272 #: ../src/guestfs-actions.pod:1649
7273 msgid "guestfs_filesize"
7274 msgstr ""
7275
7276 # type: verbatim
7277 #: ../src/guestfs-actions.pod:1651
7278 #, no-wrap
7279 msgid ""
7280 " int64_t\n"
7281 " guestfs_filesize (guestfs_h *g,\n"
7282 "                   const char *file);\n"
7283 "\n"
7284 msgstr ""
7285
7286 # type: textblock
7287 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7288 msgid "This command returns the size of C<file> in bytes."
7289 msgstr ""
7290
7291 # type: textblock
7292 #: ../src/guestfs-actions.pod:1657
7293 msgid ""
7294 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7295 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7296 "devices, use C<guestfs_blockdev_getsize64>."
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1663
7301 msgid "(Added in 1.0.82)"
7302 msgstr ""
7303
7304 # type: =head2
7305 #: ../src/guestfs-actions.pod:1665
7306 msgid "guestfs_fill"
7307 msgstr ""
7308
7309 # type: verbatim
7310 #: ../src/guestfs-actions.pod:1667
7311 #, no-wrap
7312 msgid ""
7313 " int\n"
7314 " guestfs_fill (guestfs_h *g,\n"
7315 "               int c,\n"
7316 "               int len,\n"
7317 "               const char *path);\n"
7318 "\n"
7319 msgstr ""
7320
7321 # type: textblock
7322 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7323 msgid ""
7324 "This command creates a new file called C<path>.  The initial content of the "
7325 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7326 "[0..255]>."
7327 msgstr ""
7328
7329 # type: textblock
7330 #: ../src/guestfs-actions.pod:1677
7331 msgid ""
7332 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7333 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7334 "bytes use C<guestfs_fill_pattern>."
7335 msgstr ""
7336
7337 # type: textblock
7338 #: ../src/guestfs-actions.pod:1689
7339 msgid "(Added in 1.0.79)"
7340 msgstr ""
7341
7342 # type: =head2
7343 #: ../src/guestfs-actions.pod:1691
7344 msgid "guestfs_fill_pattern"
7345 msgstr ""
7346
7347 # type: verbatim
7348 #: ../src/guestfs-actions.pod:1693
7349 #, no-wrap
7350 msgid ""
7351 " int\n"
7352 " guestfs_fill_pattern (guestfs_h *g,\n"
7353 "                       const char *pattern,\n"
7354 "                       int len,\n"
7355 "                       const char *path);\n"
7356 "\n"
7357 msgstr ""
7358
7359 # type: textblock
7360 #: ../src/guestfs-actions.pod:1699
7361 msgid ""
7362 "This function is like C<guestfs_fill> except that it creates a new file of "
7363 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7364 "pattern is truncated if necessary to ensure the length of the file is "
7365 "exactly C<len> bytes."
7366 msgstr ""
7367
7368 # type: textblock
7369 #: ../src/guestfs-actions.pod:1711
7370 msgid "(Added in 1.3.12)"
7371 msgstr ""
7372
7373 # type: =head2
7374 #: ../src/guestfs-actions.pod:1713
7375 msgid "guestfs_find"
7376 msgstr ""
7377
7378 # type: verbatim
7379 #: ../src/guestfs-actions.pod:1715
7380 #, no-wrap
7381 msgid ""
7382 " char **\n"
7383 " guestfs_find (guestfs_h *g,\n"
7384 "               const char *directory);\n"
7385 "\n"
7386 msgstr ""
7387
7388 # type: textblock
7389 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7390 msgid ""
7391 "This command lists out all files and directories, recursively, starting at "
7392 "C<directory>.  It is essentially equivalent to running the shell command "
7393 "C<find directory -print> but some post-processing happens on the output, "
7394 "described below."
7395 msgstr ""
7396
7397 # type: textblock
7398 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7399 msgid ""
7400 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7401 "structure was:"
7402 msgstr ""
7403
7404 # type: verbatim
7405 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7406 #, no-wrap
7407 msgid ""
7408 " /tmp/a\n"
7409 " /tmp/b\n"
7410 " /tmp/c/d\n"
7411 "\n"
7412 msgstr ""
7413
7414 # type: textblock
7415 #: ../src/guestfs-actions.pod:1731
7416 msgid ""
7417 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7418 msgstr ""
7419
7420 # type: verbatim
7421 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7422 #, no-wrap
7423 msgid ""
7424 " a\n"
7425 " b\n"
7426 " c\n"
7427 " c/d\n"
7428 "\n"
7429 msgstr ""
7430
7431 # type: textblock
7432 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7433 msgid "If C<directory> is not a directory, then this command returns an error."
7434 msgstr ""
7435
7436 # type: textblock
7437 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7438 msgid "The returned list is sorted."
7439 msgstr ""
7440
7441 # type: textblock
7442 #: ../src/guestfs-actions.pod:1744
7443 msgid "See also C<guestfs_find0>."
7444 msgstr ""
7445
7446 # type: textblock
7447 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788
7448 #: ../src/guestfs-actions.pod:5249
7449 msgid "(Added in 1.0.27)"
7450 msgstr ""
7451
7452 # type: =head2
7453 #: ../src/guestfs-actions.pod:1755
7454 msgid "guestfs_find0"
7455 msgstr ""
7456
7457 # type: verbatim
7458 #: ../src/guestfs-actions.pod:1757
7459 #, no-wrap
7460 msgid ""
7461 " int\n"
7462 " guestfs_find0 (guestfs_h *g,\n"
7463 "                const char *directory,\n"
7464 "                const char *files);\n"
7465 "\n"
7466 msgstr ""
7467
7468 # type: textblock
7469 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7470 msgid ""
7471 "This command lists out all files and directories, recursively, starting at "
7472 "C<directory>, placing the resulting list in the external file called "
7473 "C<files>."
7474 msgstr ""
7475
7476 # type: textblock
7477 #: ../src/guestfs-actions.pod:1766
7478 msgid ""
7479 "This command works the same way as C<guestfs_find> with the following "
7480 "exceptions:"
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7485 msgid "The resulting list is written to an external file."
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7490 msgid ""
7491 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7492 "L<find(1)> option I<-print0>."
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7497 msgid "This command is not limited in the number of names that it can return."
7498 msgstr ""
7499
7500 # type: textblock
7501 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7502 msgid "The result list is not sorted."
7503 msgstr ""
7504
7505 # type: textblock
7506 #: ../src/guestfs-actions.pod:1793
7507 msgid "(Added in 1.0.74)"
7508 msgstr ""
7509
7510 # type: =head2
7511 #: ../src/guestfs-actions.pod:1795
7512 msgid "guestfs_findfs_label"
7513 msgstr ""
7514
7515 # type: verbatim
7516 #: ../src/guestfs-actions.pod:1797
7517 #, no-wrap
7518 msgid ""
7519 " char *\n"
7520 " guestfs_findfs_label (guestfs_h *g,\n"
7521 "                       const char *label);\n"
7522 "\n"
7523 msgstr ""
7524
7525 # type: textblock
7526 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7527 msgid ""
7528 "This command searches the filesystems and returns the one which has the "
7529 "given label.  An error is returned if no such filesystem can be found."
7530 msgstr ""
7531
7532 # type: textblock
7533 #: ../src/guestfs-actions.pod:1805
7534 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7535 msgstr ""
7536
7537 # type: =head2
7538 #: ../src/guestfs-actions.pod:1812
7539 msgid "guestfs_findfs_uuid"
7540 msgstr ""
7541
7542 # type: verbatim
7543 #: ../src/guestfs-actions.pod:1814
7544 #, no-wrap
7545 msgid ""
7546 " char *\n"
7547 " guestfs_findfs_uuid (guestfs_h *g,\n"
7548 "                      const char *uuid);\n"
7549 "\n"
7550 msgstr ""
7551
7552 # type: textblock
7553 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7554 msgid ""
7555 "This command searches the filesystems and returns the one which has the "
7556 "given UUID.  An error is returned if no such filesystem can be found."
7557 msgstr ""
7558
7559 # type: textblock
7560 #: ../src/guestfs-actions.pod:1822
7561 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7562 msgstr ""
7563
7564 # type: =head2
7565 #: ../src/guestfs-actions.pod:1829
7566 msgid "guestfs_fsck"
7567 msgstr ""
7568
7569 # type: verbatim
7570 #: ../src/guestfs-actions.pod:1831
7571 #, no-wrap
7572 msgid ""
7573 " int\n"
7574 " guestfs_fsck (guestfs_h *g,\n"
7575 "               const char *fstype,\n"
7576 "               const char *device);\n"
7577 "\n"
7578 msgstr ""
7579
7580 # type: textblock
7581 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7582 msgid ""
7583 "This runs the filesystem checker (fsck) on C<device> which should have "
7584 "filesystem type C<fstype>."
7585 msgstr ""
7586
7587 # type: textblock
7588 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7589 msgid ""
7590 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7591 "codes from C<fsck>."
7592 msgstr ""
7593
7594 # type: textblock
7595 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7596 msgid "Multiple status codes can be summed together."
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7601 msgid ""
7602 "A non-zero return code can mean \"success\", for example if errors have been "
7603 "corrected on the filesystem."
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7608 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7613 msgid ""
7614 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7615 msgstr ""
7616
7617 # type: textblock
7618 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7619 msgid "(Added in 1.0.16)"
7620 msgstr ""
7621
7622 # type: =head2
7623 #: ../src/guestfs-actions.pod:1868
7624 msgid "guestfs_get_append"
7625 msgstr ""
7626
7627 # type: verbatim
7628 #: ../src/guestfs-actions.pod:1870
7629 #, no-wrap
7630 msgid ""
7631 " const char *\n"
7632 " guestfs_get_append (guestfs_h *g);\n"
7633 "\n"
7634 msgstr ""
7635
7636 # type: textblock
7637 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7638 msgid ""
7639 "Return the additional kernel options which are added to the guest kernel "
7640 "command line."
7641 msgstr ""
7642
7643 # type: textblock
7644 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7645 msgid "If C<NULL> then no options are added."
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:1878
7650 msgid ""
7651 "This function returns a string which may be NULL.  There is no way to return "
7652 "an error from this function.  The string is owned by the guest handle and "
7653 "must I<not> be freed."
7654 msgstr ""
7655
7656 # type: textblock
7657 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927
7658 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758
7659 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793
7660 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557
7661 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7662 msgid "(Added in 1.0.26)"
7663 msgstr ""
7664
7665 # type: =head2
7666 #: ../src/guestfs-actions.pod:1884
7667 msgid "guestfs_get_autosync"
7668 msgstr ""
7669
7670 # type: verbatim
7671 #: ../src/guestfs-actions.pod:1886
7672 #, no-wrap
7673 msgid ""
7674 " int\n"
7675 " guestfs_get_autosync (guestfs_h *g);\n"
7676 "\n"
7677 msgstr ""
7678
7679 # type: textblock
7680 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7681 msgid "Get the autosync flag."
7682 msgstr ""
7683
7684 # type: =head2
7685 #: ../src/guestfs-actions.pod:1895
7686 msgid "guestfs_get_direct"
7687 msgstr ""
7688
7689 # type: verbatim
7690 #: ../src/guestfs-actions.pod:1897
7691 #, no-wrap
7692 msgid ""
7693 " int\n"
7694 " guestfs_get_direct (guestfs_h *g);\n"
7695 "\n"
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7700 msgid "Return the direct appliance mode flag."
7701 msgstr ""
7702
7703 # type: textblock
7704 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7705 msgid "(Added in 1.0.72)"
7706 msgstr ""
7707
7708 # type: =head2
7709 #: ../src/guestfs-actions.pod:1906
7710 msgid "guestfs_get_e2label"
7711 msgstr ""
7712
7713 # type: verbatim
7714 #: ../src/guestfs-actions.pod:1908
7715 #, no-wrap
7716 msgid ""
7717 " char *\n"
7718 " guestfs_get_e2label (guestfs_h *g,\n"
7719 "                      const char *device);\n"
7720 "\n"
7721 msgstr ""
7722
7723 # type: textblock
7724 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7725 msgid ""
7726 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7727 msgstr ""
7728
7729 # type: textblock
7730 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7731 msgid ""
7732 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7733 msgstr ""
7734
7735 # type: textblock
7736 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7737 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7738 msgid "(Added in 1.0.15)"
7739 msgstr ""
7740
7741 # type: =head2
7742 #: ../src/guestfs-actions.pod:1927
7743 msgid "guestfs_get_e2uuid"
7744 msgstr ""
7745
7746 # type: verbatim
7747 #: ../src/guestfs-actions.pod:1929
7748 #, no-wrap
7749 msgid ""
7750 " char *\n"
7751 " guestfs_get_e2uuid (guestfs_h *g,\n"
7752 "                     const char *device);\n"
7753 "\n"
7754 msgstr ""
7755
7756 # type: textblock
7757 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7758 msgid ""
7759 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7760 msgstr ""
7761
7762 # type: textblock
7763 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7764 msgid ""
7765 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7766 msgstr ""
7767
7768 # type: =head2
7769 #: ../src/guestfs-actions.pod:1948
7770 msgid "guestfs_get_memsize"
7771 msgstr ""
7772
7773 # type: verbatim
7774 #: ../src/guestfs-actions.pod:1950
7775 #, no-wrap
7776 msgid ""
7777 " int\n"
7778 " guestfs_get_memsize (guestfs_h *g);\n"
7779 "\n"
7780 msgstr ""
7781
7782 # type: textblock
7783 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7784 msgid ""
7785 "This gets the memory size in megabytes allocated to the qemu subprocess."
7786 msgstr ""
7787
7788 # type: textblock
7789 #: ../src/guestfs-actions.pod:1956
7790 msgid ""
7791 "If C<guestfs_set_memsize> was not called on this handle, and if "
7792 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7793 "value for memsize."
7794 msgstr ""
7795
7796 # type: textblock
7797 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7798 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591
7799 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7800 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7801 msgid ""
7802 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7803 msgstr ""
7804
7805 # type: textblock
7806 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079
7807 #: ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213
7808 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244
7809 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274
7810 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489
7811 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7812 msgid "(Added in 1.0.55)"
7813 msgstr ""
7814
7815 # type: =head2
7816 #: ../src/guestfs-actions.pod:1967
7817 msgid "guestfs_get_network"
7818 msgstr ""
7819
7820 # type: verbatim
7821 #: ../src/guestfs-actions.pod:1969
7822 #, no-wrap
7823 msgid ""
7824 " int\n"
7825 " guestfs_get_network (guestfs_h *g);\n"
7826 "\n"
7827 msgstr ""
7828
7829 # type: textblock
7830 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7831 msgid "This returns the enable network flag."
7832 msgstr ""
7833
7834 # type: textblock
7835 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7836 msgid "(Added in 1.5.4)"
7837 msgstr ""
7838
7839 # type: =head2
7840 #: ../src/guestfs-actions.pod:1978
7841 msgid "guestfs_get_path"
7842 msgstr ""
7843
7844 # type: verbatim
7845 #: ../src/guestfs-actions.pod:1980
7846 #, no-wrap
7847 msgid ""
7848 " const char *\n"
7849 " guestfs_get_path (guestfs_h *g);\n"
7850 "\n"
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7855 msgid "Return the current search path."
7856 msgstr ""
7857
7858 # type: textblock
7859 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7860 msgid ""
7861 "This is always non-NULL.  If it wasn't set already, then this will return "
7862 "the default path."
7863 msgstr ""
7864
7865 # type: textblock
7866 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7867 msgid ""
7868 "This function returns a string, or NULL on error.  The string is owned by "
7869 "the guest handle and must I<not> be freed."
7870 msgstr ""
7871
7872 # type: =head2
7873 #: ../src/guestfs-actions.pod:1993
7874 msgid "guestfs_get_pid"
7875 msgstr ""
7876
7877 # type: verbatim
7878 #: ../src/guestfs-actions.pod:1995
7879 #, no-wrap
7880 msgid ""
7881 " int\n"
7882 " guestfs_get_pid (guestfs_h *g);\n"
7883 "\n"
7884 msgstr ""
7885
7886 # type: textblock
7887 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7888 msgid ""
7889 "Return the process ID of the qemu subprocess.  If there is no qemu "
7890 "subprocess, then this will return an error."
7891 msgstr ""
7892
7893 # type: textblock
7894 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7895 msgid "This is an internal call used for debugging and testing."
7896 msgstr ""
7897
7898 # type: textblock
7899 #: ../src/guestfs-actions.pod:2005
7900 msgid "(Added in 1.0.56)"
7901 msgstr ""
7902
7903 # type: =head2
7904 #: ../src/guestfs-actions.pod:2007
7905 msgid "guestfs_get_qemu"
7906 msgstr ""
7907
7908 # type: verbatim
7909 #: ../src/guestfs-actions.pod:2009
7910 #, no-wrap
7911 msgid ""
7912 " const char *\n"
7913 " guestfs_get_qemu (guestfs_h *g);\n"
7914 "\n"
7915 msgstr ""
7916
7917 # type: textblock
7918 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7919 msgid "Return the current qemu binary."
7920 msgstr ""
7921
7922 # type: textblock
7923 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7924 msgid ""
7925 "This is always non-NULL.  If it wasn't set already, then this will return "
7926 "the default qemu binary name."
7927 msgstr ""
7928
7929 # type: textblock
7930 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7931 msgid "(Added in 1.0.6)"
7932 msgstr ""
7933
7934 # type: =head2
7935 #: ../src/guestfs-actions.pod:2022
7936 msgid "guestfs_get_recovery_proc"
7937 msgstr ""
7938
7939 # type: verbatim
7940 #: ../src/guestfs-actions.pod:2024
7941 #, no-wrap
7942 msgid ""
7943 " int\n"
7944 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7945 "\n"
7946 msgstr ""
7947
7948 # type: textblock
7949 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7950 msgid "Return the recovery process enabled flag."
7951 msgstr ""
7952
7953 # type: textblock
7954 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219
7955 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886
7956 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857
7957 #: ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577
7958 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256
7959 #: ../src/guestfs-actions.pod:6438
7960 msgid "(Added in 1.0.77)"
7961 msgstr ""
7962
7963 # type: =head2
7964 #: ../src/guestfs-actions.pod:2033
7965 msgid "guestfs_get_selinux"
7966 msgstr ""
7967
7968 # type: verbatim
7969 #: ../src/guestfs-actions.pod:2035
7970 #, no-wrap
7971 msgid ""
7972 " int\n"
7973 " guestfs_get_selinux (guestfs_h *g);\n"
7974 "\n"
7975 msgstr ""
7976
7977 # type: textblock
7978 #: ../src/guestfs-actions.pod:2038
7979 msgid ""
7980 "This returns the current setting of the selinux flag which is passed to the "
7981 "appliance at boot time.  See C<guestfs_set_selinux>."
7982 msgstr ""
7983
7984 # type: textblock
7985 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7986 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7987 msgid "(Added in 1.0.67)"
7988 msgstr ""
7989
7990 # type: =head2
7991 #: ../src/guestfs-actions.pod:2048
7992 msgid "guestfs_get_state"
7993 msgstr ""
7994
7995 # type: verbatim
7996 #: ../src/guestfs-actions.pod:2050
7997 #, no-wrap
7998 msgid ""
7999 " int\n"
8000 " guestfs_get_state (guestfs_h *g);\n"
8001 "\n"
8002 msgstr ""
8003
8004 # type: textblock
8005 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8006 msgid ""
8007 "This returns the current state as an opaque integer.  This is only useful "
8008 "for printing debug and internal error messages."
8009 msgstr ""
8010
8011 # type: textblock
8012 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022
8013 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112
8014 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398
8015 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8016 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8017 msgid "For more information on states, see L<guestfs(3)>."
8018 msgstr ""
8019
8020 # type: =head2
8021 #: ../src/guestfs-actions.pod:2062
8022 msgid "guestfs_get_trace"
8023 msgstr ""
8024
8025 # type: verbatim
8026 #: ../src/guestfs-actions.pod:2064
8027 #, no-wrap
8028 msgid ""
8029 " int\n"
8030 " guestfs_get_trace (guestfs_h *g);\n"
8031 "\n"
8032 msgstr ""
8033
8034 # type: textblock
8035 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8036 msgid "Return the command trace flag."
8037 msgstr ""
8038
8039 # type: =head2
8040 #: ../src/guestfs-actions.pod:2073
8041 msgid "guestfs_get_umask"
8042 msgstr ""
8043
8044 # type: verbatim
8045 #: ../src/guestfs-actions.pod:2075
8046 #, no-wrap
8047 msgid ""
8048 " int\n"
8049 " guestfs_get_umask (guestfs_h *g);\n"
8050 "\n"
8051 msgstr ""
8052
8053 # type: textblock
8054 #: ../src/guestfs-actions.pod:2078
8055 msgid ""
8056 "Return the current umask.  By default the umask is C<022> unless it has been "
8057 "set by calling C<guestfs_umask>."
8058 msgstr ""
8059
8060 # type: =head2
8061 #: ../src/guestfs-actions.pod:2085
8062 msgid "guestfs_get_verbose"
8063 msgstr ""
8064
8065 # type: verbatim
8066 #: ../src/guestfs-actions.pod:2087
8067 #, no-wrap
8068 msgid ""
8069 " int\n"
8070 " guestfs_get_verbose (guestfs_h *g);\n"
8071 "\n"
8072 msgstr ""
8073
8074 # type: textblock
8075 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8076 msgid "This returns the verbose messages flag."
8077 msgstr ""
8078
8079 # type: =head2
8080 #: ../src/guestfs-actions.pod:2096
8081 msgid "guestfs_getcon"
8082 msgstr ""
8083
8084 # type: verbatim
8085 #: ../src/guestfs-actions.pod:2098
8086 #, no-wrap
8087 msgid ""
8088 " char *\n"
8089 " guestfs_getcon (guestfs_h *g);\n"
8090 "\n"
8091 msgstr ""
8092
8093 # type: textblock
8094 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8095 msgid "This gets the SELinux security context of the daemon."
8096 msgstr ""
8097
8098 # type: textblock
8099 #: ../src/guestfs-actions.pod:2103
8100 msgid ""
8101 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8102 msgstr ""
8103
8104 # type: =head2
8105 #: ../src/guestfs-actions.pod:2111
8106 msgid "guestfs_getxattrs"
8107 msgstr ""
8108
8109 # type: verbatim
8110 #: ../src/guestfs-actions.pod:2113
8111 #, no-wrap
8112 msgid ""
8113 " struct guestfs_xattr_list *\n"
8114 " guestfs_getxattrs (guestfs_h *g,\n"
8115 "                    const char *path);\n"
8116 "\n"
8117 msgstr ""
8118
8119 # type: textblock
8120 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8121 msgid ""
8122 "This call lists the extended attributes of the file or directory C<path>."
8123 msgstr ""
8124
8125 # type: textblock
8126 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8127 msgid ""
8128 "At the system call level, this is a combination of the L<listxattr(2)> and "
8129 "L<getxattr(2)> calls."
8130 msgstr ""
8131
8132 # type: textblock
8133 #: ../src/guestfs-actions.pod:2123
8134 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8135 msgstr ""
8136
8137 # type: textblock
8138 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231
8139 #: ../src/guestfs-actions.pod:3882
8140 msgid ""
8141 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8142 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8143 msgstr ""
8144
8145 # type: textblock
8146 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235
8147 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436
8148 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669
8149 #: ../src/guestfs-actions.pod:6994
8150 msgid "(Added in 1.0.59)"
8151 msgstr ""
8152
8153 # type: =head2
8154 #: ../src/guestfs-actions.pod:2131
8155 msgid "guestfs_glob_expand"
8156 msgstr ""
8157
8158 # type: verbatim
8159 #: ../src/guestfs-actions.pod:2133
8160 #, no-wrap
8161 msgid ""
8162 " char **\n"
8163 " guestfs_glob_expand (guestfs_h *g,\n"
8164 "                      const char *pattern);\n"
8165 "\n"
8166 msgstr ""
8167
8168 # type: textblock
8169 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8170 msgid ""
8171 "This command searches for all the pathnames matching C<pattern> according to "
8172 "the wildcard expansion rules used by the shell."
8173 msgstr ""
8174
8175 # type: textblock
8176 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8177 msgid ""
8178 "If no paths match, then this returns an empty list (note: not an error)."
8179 msgstr ""
8180
8181 # type: textblock
8182 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8183 msgid ""
8184 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8185 "GLOB_BRACE>.  See that manual page for more details."
8186 msgstr ""
8187
8188 # type: textblock
8189 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834
8190 #: ../src/guestfs-actions.pod:5851
8191 msgid "(Added in 1.0.50)"
8192 msgstr ""
8193
8194 # type: =head2
8195 #: ../src/guestfs-actions.pod:2154
8196 msgid "guestfs_grep"
8197 msgstr ""
8198
8199 # type: verbatim
8200 #: ../src/guestfs-actions.pod:2156
8201 #, no-wrap
8202 msgid ""
8203 " char **\n"
8204 " guestfs_grep (guestfs_h *g,\n"
8205 "               const char *regex,\n"
8206 "               const char *path);\n"
8207 "\n"
8208 msgstr ""
8209
8210 # type: textblock
8211 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8212 msgid "This calls the external C<grep> program and returns the matching lines."
8213 msgstr ""
8214
8215 # type: =head2
8216 #: ../src/guestfs-actions.pod:2173
8217 msgid "guestfs_grepi"
8218 msgstr ""
8219
8220 # type: verbatim
8221 #: ../src/guestfs-actions.pod:2175
8222 #, no-wrap
8223 msgid ""
8224 " char **\n"
8225 " guestfs_grepi (guestfs_h *g,\n"
8226 "                const char *regex,\n"
8227 "                const char *path);\n"
8228 "\n"
8229 msgstr ""
8230
8231 # type: textblock
8232 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8233 msgid ""
8234 "This calls the external C<grep -i> program and returns the matching lines."
8235 msgstr ""
8236
8237 # type: =head2
8238 #: ../src/guestfs-actions.pod:2192
8239 msgid "guestfs_grub_install"
8240 msgstr ""
8241
8242 # type: verbatim
8243 #: ../src/guestfs-actions.pod:2194
8244 #, no-wrap
8245 msgid ""
8246 " int\n"
8247 " guestfs_grub_install (guestfs_h *g,\n"
8248 "                       const char *root,\n"
8249 "                       const char *device);\n"
8250 "\n"
8251 msgstr ""
8252
8253 # type: textblock
8254 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8255 msgid ""
8256 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8257 "the root directory being C<root>."
8258 msgstr ""
8259
8260 # type: textblock
8261 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8262 msgid ""
8263 "Note: If grub-install reports the error \"No suitable drive was found in the "
8264 "generated device map.\" it may be that you need to create a C</boot/grub/"
8265 "device.map> file first that contains the mapping between grub device names "
8266 "and Linux device names.  It is usually sufficient to create a file "
8267 "containing:"
8268 msgstr ""
8269
8270 # type: verbatim
8271 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8272 #, no-wrap
8273 msgid ""
8274 " (hd0) /dev/vda\n"
8275 "\n"
8276 msgstr ""
8277
8278 # type: textblock
8279 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8280 msgid "replacing C</dev/vda> with the name of the installation device."
8281 msgstr ""
8282
8283 # type: textblock
8284 #: ../src/guestfs-actions.pod:2215
8285 msgid "(Added in 1.0.17)"
8286 msgstr ""
8287
8288 # type: =head2
8289 #: ../src/guestfs-actions.pod:2217
8290 msgid "guestfs_head"
8291 msgstr ""
8292
8293 # type: verbatim
8294 #: ../src/guestfs-actions.pod:2219
8295 #, no-wrap
8296 msgid ""
8297 " char **\n"
8298 " guestfs_head (guestfs_h *g,\n"
8299 "               const char *path);\n"
8300 "\n"
8301 msgstr ""
8302
8303 # type: textblock
8304 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8305 msgid ""
8306 "This command returns up to the first 10 lines of a file as a list of strings."
8307 msgstr ""
8308
8309 # type: =head2
8310 #: ../src/guestfs-actions.pod:2235
8311 msgid "guestfs_head_n"
8312 msgstr ""
8313
8314 # type: verbatim
8315 #: ../src/guestfs-actions.pod:2237
8316 #, no-wrap
8317 msgid ""
8318 " char **\n"
8319 " guestfs_head_n (guestfs_h *g,\n"
8320 "                 int nrlines,\n"
8321 "                 const char *path);\n"
8322 "\n"
8323 msgstr ""
8324
8325 # type: textblock
8326 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8327 msgid ""
8328 "If the parameter C<nrlines> is a positive number, this returns the first "
8329 "C<nrlines> lines of the file C<path>."
8330 msgstr ""
8331
8332 # type: textblock
8333 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8334 msgid ""
8335 "If the parameter C<nrlines> is a negative number, this returns lines from "
8336 "the file C<path>, excluding the last C<nrlines> lines."
8337 msgstr ""
8338
8339 # type: textblock
8340 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131
8341 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8342 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8343 msgstr ""
8344
8345 # type: =head2
8346 #: ../src/guestfs-actions.pod:2259
8347 msgid "guestfs_hexdump"
8348 msgstr ""
8349
8350 # type: verbatim
8351 #: ../src/guestfs-actions.pod:2261
8352 #, no-wrap
8353 msgid ""
8354 " char *\n"
8355 " guestfs_hexdump (guestfs_h *g,\n"
8356 "                  const char *path);\n"
8357 "\n"
8358 msgstr ""
8359
8360 # type: textblock
8361 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8362 msgid ""
8363 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8364 "readable, canonical hex dump of the file."
8365 msgstr ""
8366
8367 # type: textblock
8368 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915
8369 #: ../src/guestfs-actions.pod:5970
8370 msgid "(Added in 1.0.22)"
8371 msgstr ""
8372
8373 # type: =head2
8374 #: ../src/guestfs-actions.pod:2276
8375 msgid "guestfs_initrd_cat"
8376 msgstr ""
8377
8378 # type: verbatim
8379 #: ../src/guestfs-actions.pod:2278
8380 #, no-wrap
8381 msgid ""
8382 " char *\n"
8383 " guestfs_initrd_cat (guestfs_h *g,\n"
8384 "                     const char *initrdpath,\n"
8385 "                     const char *filename,\n"
8386 "                     size_t *size_r);\n"
8387 "\n"
8388 msgstr ""
8389
8390 # type: textblock
8391 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8392 msgid ""
8393 "This command unpacks the file C<filename> from the initrd file called "
8394 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8395 "character."
8396 msgstr ""
8397
8398 # type: textblock
8399 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8400 msgid ""
8401 "For example, in guestfish you could use the following command to examine the "
8402 "boot script (usually called C</init>)  contained in a Linux initrd or "
8403 "initramfs image:"
8404 msgstr ""
8405
8406 # type: verbatim
8407 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8408 #, no-wrap
8409 msgid ""
8410 " initrd-cat /boot/initrd-<version>.img init\n"
8411 "\n"
8412 msgstr ""
8413
8414 # type: textblock
8415 #: ../src/guestfs-actions.pod:2294
8416 msgid "See also C<guestfs_initrd_list>."
8417 msgstr ""
8418
8419 # type: textblock
8420 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850
8421 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8422 msgid ""
8423 "This function returns a buffer, or NULL on error.  The size of the returned "
8424 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8425 "after use>."
8426 msgstr ""
8427
8428 # type: =head2
8429 #: ../src/guestfs-actions.pod:2305
8430 msgid "guestfs_initrd_list"
8431 msgstr ""
8432
8433 # type: verbatim
8434 #: ../src/guestfs-actions.pod:2307
8435 #, no-wrap
8436 msgid ""
8437 " char **\n"
8438 " guestfs_initrd_list (guestfs_h *g,\n"
8439 "                      const char *path);\n"
8440 "\n"
8441 msgstr ""
8442
8443 # type: textblock
8444 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8445 msgid "This command lists out files contained in an initrd."
8446 msgstr ""
8447
8448 # type: textblock
8449 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8450 msgid ""
8451 "The files are listed without any initial C</> character.  The files are "
8452 "listed in the order they appear (not necessarily alphabetical).  Directory "
8453 "names are listed as separate items."
8454 msgstr ""
8455
8456 # type: textblock
8457 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8458 msgid ""
8459 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8460 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8461 "files)."
8462 msgstr ""
8463
8464 # type: =head2
8465 #: ../src/guestfs-actions.pod:2327
8466 msgid "guestfs_inotify_add_watch"
8467 msgstr ""
8468
8469 # type: verbatim
8470 #: ../src/guestfs-actions.pod:2329
8471 #, no-wrap
8472 msgid ""
8473 " int64_t\n"
8474 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8475 "                            const char *path,\n"
8476 "                            int mask);\n"
8477 "\n"
8478 msgstr ""
8479
8480 # type: textblock
8481 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8482 msgid "Watch C<path> for the events listed in C<mask>."
8483 msgstr ""
8484
8485 # type: textblock
8486 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8487 msgid ""
8488 "Note that if C<path> is a directory then events within that directory are "
8489 "watched, but this does I<not> happen recursively (in subdirectories)."
8490 msgstr ""
8491
8492 # type: textblock
8493 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8494 msgid ""
8495 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8496 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8497 msgstr ""
8498
8499 # type: =head2
8500 #: ../src/guestfs-actions.pod:2348
8501 msgid "guestfs_inotify_close"
8502 msgstr ""
8503
8504 # type: verbatim
8505 #: ../src/guestfs-actions.pod:2350
8506 #, no-wrap
8507 msgid ""
8508 " int\n"
8509 " guestfs_inotify_close (guestfs_h *g);\n"
8510 "\n"
8511 msgstr ""
8512
8513 # type: textblock
8514 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8515 msgid ""
8516 "This closes the inotify handle which was previously opened by inotify_init.  "
8517 "It removes all watches, throws away any pending events, and deallocates all "
8518 "resources."
8519 msgstr ""
8520
8521 # type: =head2
8522 #: ../src/guestfs-actions.pod:2361
8523 msgid "guestfs_inotify_files"
8524 msgstr ""
8525
8526 # type: verbatim
8527 #: ../src/guestfs-actions.pod:2363
8528 #, no-wrap
8529 msgid ""
8530 " char **\n"
8531 " guestfs_inotify_files (guestfs_h *g);\n"
8532 "\n"
8533 msgstr ""
8534
8535 # type: textblock
8536 #: ../src/guestfs-actions.pod:2366
8537 msgid ""
8538 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8539 "returns a list of pathnames of objects that were touched.  The returned "
8540 "pathnames are sorted and deduplicated."
8541 msgstr ""
8542
8543 # type: =head2
8544 #: ../src/guestfs-actions.pod:2376
8545 msgid "guestfs_inotify_init"
8546 msgstr ""
8547
8548 # type: verbatim
8549 #: ../src/guestfs-actions.pod:2378
8550 #, no-wrap
8551 msgid ""
8552 " int\n"
8553 " guestfs_inotify_init (guestfs_h *g,\n"
8554 "                       int maxevents);\n"
8555 "\n"
8556 msgstr ""
8557
8558 # type: textblock
8559 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8560 msgid ""
8561 "This command creates a new inotify handle.  The inotify subsystem can be "
8562 "used to notify events which happen to objects in the guest filesystem."
8563 msgstr ""
8564
8565 # type: textblock
8566 #: ../src/guestfs-actions.pod:2386
8567 msgid ""
8568 "C<maxevents> is the maximum number of events which will be queued up between "
8569 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8570 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8571 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8572 "throws away events, but records the fact that it threw them away by setting "
8573 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8574 "C<guestfs_inotify_read>)."
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2396
8579 msgid ""
8580 "Before any events are generated, you have to add some watches to the "
8581 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8582 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8583 msgstr ""
8584
8585 # type: textblock
8586 #: ../src/guestfs-actions.pod:2402
8587 msgid ""
8588 "Queued up events should be read periodically by calling "
8589 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8590 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8591 "often enough then you risk the internal queue overflowing."
8592 msgstr ""
8593
8594 # type: textblock
8595 #: ../src/guestfs-actions.pod:2409
8596 msgid ""
8597 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8598 "This also removes any watches automatically."
8599 msgstr ""
8600
8601 # type: textblock
8602 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8603 msgid ""
8604 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8605 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8606 "that there is one global inotify handle per libguestfs instance."
8607 msgstr ""
8608
8609 # type: =head2
8610 #: ../src/guestfs-actions.pod:2422
8611 msgid "guestfs_inotify_read"
8612 msgstr ""
8613
8614 # type: verbatim
8615 #: ../src/guestfs-actions.pod:2424
8616 #, no-wrap
8617 msgid ""
8618 " struct guestfs_inotify_event_list *\n"
8619 " guestfs_inotify_read (guestfs_h *g);\n"
8620 "\n"
8621 msgstr ""
8622
8623 # type: textblock
8624 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8625 msgid ""
8626 "Return the complete queue of events that have happened since the previous "
8627 "read call."
8628 msgstr ""
8629
8630 # type: textblock
8631 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8632 msgid "If no events have happened, this returns an empty list."
8633 msgstr ""
8634
8635 # type: textblock
8636 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8637 msgid ""
8638 "I<Note>: In order to make sure that all events have been read, you must call "
8639 "this function repeatedly until it returns an empty list.  The reason is that "
8640 "the call will read events up to the maximum appliance-to-host message size "
8641 "and leave remaining events in the queue."
8642 msgstr ""
8643
8644 # type: textblock
8645 #: ../src/guestfs-actions.pod:2438
8646 msgid ""
8647 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8648 "there was an error.  I<The caller must call "
8649 "C<guestfs_free_inotify_event_list> after use>."
8650 msgstr ""
8651
8652 # type: =head2
8653 #: ../src/guestfs-actions.pod:2444
8654 msgid "guestfs_inotify_rm_watch"
8655 msgstr ""
8656
8657 # type: verbatim
8658 #: ../src/guestfs-actions.pod:2446
8659 #, no-wrap
8660 msgid ""
8661 " int\n"
8662 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8663 "                           int wd);\n"
8664 "\n"
8665 msgstr ""
8666
8667 # type: textblock
8668 #: ../src/guestfs-actions.pod:2450
8669 msgid ""
8670 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8671 msgstr ""
8672
8673 # type: =head2
8674 #: ../src/guestfs-actions.pod:2457
8675 msgid "guestfs_inspect_get_arch"
8676 msgstr ""
8677
8678 # type: verbatim
8679 #: ../src/guestfs-actions.pod:2459
8680 #, no-wrap
8681 msgid ""
8682 " char *\n"
8683 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8684 "                           const char *root);\n"
8685 "\n"
8686 msgstr ""
8687
8688 # type: textblock
8689 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8690 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593
8691 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640
8692 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694
8693 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750
8694 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834
8695 #: ../src/guestfs-actions.pod:2857
8696 msgid ""
8697 "This function should only be called with a root device string as returned by "
8698 "C<guestfs_inspect_os>."
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2466
8703 msgid ""
8704 "This returns the architecture of the inspected operating system.  The "
8705 "possible return values are listed under C<guestfs_file_architecture>."
8706 msgstr ""
8707
8708 # type: textblock
8709 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8710 msgid ""
8711 "If the architecture could not be determined, then the string C<unknown> is "
8712 "returned."
8713 msgstr ""
8714
8715 # type: textblock
8716 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554
8717 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628
8718 #: ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739
8719 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780
8720 #: ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844
8721 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989
8722 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8723 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8724 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8725 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8726 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8727 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8728 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8729 msgstr ""
8730
8731 # type: =head2
8732 #: ../src/guestfs-actions.pod:2480
8733 msgid "guestfs_inspect_get_distro"
8734 msgstr ""
8735
8736 # type: verbatim
8737 #: ../src/guestfs-actions.pod:2482
8738 #, no-wrap
8739 msgid ""
8740 " char *\n"
8741 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8742 "                             const char *root);\n"
8743 "\n"
8744 msgstr ""
8745
8746 # type: textblock
8747 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8748 msgid ""
8749 "This returns the distro (distribution) of the inspected operating system."
8750 msgstr ""
8751
8752 # type: textblock
8753 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8754 msgid "Currently defined distros are:"
8755 msgstr ""
8756
8757 # type: =item
8758 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8759 msgid "\"archlinux\""
8760 msgstr ""
8761
8762 # type: textblock
8763 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8764 msgid "Arch Linux."
8765 msgstr ""
8766
8767 # type: =item
8768 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8769 msgid "\"debian\""
8770 msgstr ""
8771
8772 # type: textblock
8773 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8774 msgid "Debian."
8775 msgstr ""
8776
8777 # type: =item
8778 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8779 msgid "\"fedora\""
8780 msgstr ""
8781
8782 # type: textblock
8783 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8784 msgid "Fedora."
8785 msgstr ""
8786
8787 # type: =item
8788 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8789 msgid "\"gentoo\""
8790 msgstr ""
8791
8792 # type: textblock
8793 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8794 msgid "Gentoo."
8795 msgstr ""
8796
8797 # type: =item
8798 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8799 msgid "\"linuxmint\""
8800 msgstr ""
8801
8802 # type: textblock
8803 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8804 msgid "Linux Mint."
8805 msgstr ""
8806
8807 # type: =item
8808 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8809 msgid "\"mandriva\""
8810 msgstr ""
8811
8812 # type: textblock
8813 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8814 msgid "Mandriva."
8815 msgstr ""
8816
8817 # type: =item
8818 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8819 msgid "\"meego\""
8820 msgstr ""
8821
8822 # type: textblock
8823 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8824 msgid "MeeGo."
8825 msgstr ""
8826
8827 # type: =item
8828 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8829 msgid "\"pardus\""
8830 msgstr ""
8831
8832 # type: textblock
8833 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8834 msgid "Pardus."
8835 msgstr ""
8836
8837 # type: =item
8838 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8839 msgid "\"redhat-based\""
8840 msgstr ""
8841
8842 # type: textblock
8843 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8844 msgid "Some Red Hat-derived distro."
8845 msgstr ""
8846
8847 # type: =item
8848 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8849 msgid "\"rhel\""
8850 msgstr ""
8851
8852 # type: textblock
8853 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8854 msgid "Red Hat Enterprise Linux and some derivatives."
8855 msgstr ""
8856
8857 # type: =item
8858 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8859 msgid "\"ubuntu\""
8860 msgstr ""
8861
8862 # type: textblock
8863 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8864 msgid "Ubuntu."
8865 msgstr ""
8866
8867 # type: =item
8868 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812
8869 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8870 msgid "\"unknown\""
8871 msgstr ""
8872
8873 # type: textblock
8874 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8875 msgid "The distro could not be determined."
8876 msgstr ""
8877
8878 # type: =item
8879 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804
8880 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8881 msgid "\"windows\""
8882 msgstr ""
8883
8884 # type: textblock
8885 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8886 msgid ""
8887 "Windows does not have distributions.  This string is returned if the OS type "
8888 "is Windows."
8889 msgstr ""
8890
8891 # type: textblock
8892 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818
8893 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8894 msgid ""
8895 "Future versions of libguestfs may return other strings here.  The caller "
8896 "should be prepared to handle any string."
8897 msgstr ""
8898
8899 # type: =head2
8900 #: ../src/guestfs-actions.pod:2561
8901 msgid "guestfs_inspect_get_filesystems"
8902 msgstr ""
8903
8904 # type: verbatim
8905 #: ../src/guestfs-actions.pod:2563
8906 #, no-wrap
8907 msgid ""
8908 " char **\n"
8909 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8910 "                                  const char *root);\n"
8911 "\n"
8912 msgstr ""
8913
8914 # type: textblock
8915 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8916 msgid ""
8917 "This returns a list of all the filesystems that we think are associated with "
8918 "this operating system.  This includes the root filesystem, other ordinary "
8919 "filesystems, and non-mounted devices like swap partitions."
8920 msgstr ""
8921
8922 # type: textblock
8923 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8924 msgid ""
8925 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8926 "to be shared between operating systems."
8927 msgstr ""
8928
8929 # type: textblock
8930 #: ../src/guestfs-actions.pod:2578
8931 msgid ""
8932 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8933 "C<guestfs_inspect_get_mountpoints>."
8934 msgstr ""
8935
8936 # type: =head2
8937 #: ../src/guestfs-actions.pod:2587
8938 msgid "guestfs_inspect_get_hostname"
8939 msgstr ""
8940
8941 # type: verbatim
8942 #: ../src/guestfs-actions.pod:2589
8943 #, no-wrap
8944 msgid ""
8945 " char *\n"
8946 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8947 "                               const char *root);\n"
8948 "\n"
8949 msgstr ""
8950
8951 # type: textblock
8952 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8953 msgid ""
8954 "This function returns the hostname of the operating system as found by "
8955 "inspection of the guest's configuration files."
8956 msgstr ""
8957
8958 # type: textblock
8959 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8960 msgid ""
8961 "If the hostname could not be determined, then the string C<unknown> is "
8962 "returned."
8963 msgstr ""
8964
8965 # type: =head2
8966 #: ../src/guestfs-actions.pod:2607
8967 msgid "guestfs_inspect_get_major_version"
8968 msgstr ""
8969
8970 # type: verbatim
8971 #: ../src/guestfs-actions.pod:2609
8972 #, no-wrap
8973 msgid ""
8974 " int\n"
8975 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8976 "                                    const char *root);\n"
8977 "\n"
8978 msgstr ""
8979
8980 # type: textblock
8981 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8982 msgid ""
8983 "This returns the major version number of the inspected operating system."
8984 msgstr ""
8985
8986 # type: textblock
8987 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
8988 msgid ""
8989 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8990 "popular public names used by the operating system.  Notably the operating "
8991 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8992 "1).  You can find out the real versions corresponding to releases of Windows "
8993 "by consulting Wikipedia or MSDN."
8994 msgstr ""
8995
8996 # type: textblock
8997 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646
8998 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8999 msgid "If the version could not be determined, then C<0> is returned."
9000 msgstr ""
9001
9002 # type: =head2
9003 #: ../src/guestfs-actions.pod:2634
9004 msgid "guestfs_inspect_get_minor_version"
9005 msgstr ""
9006
9007 # type: verbatim
9008 #: ../src/guestfs-actions.pod:2636
9009 #, no-wrap
9010 msgid ""
9011 " int\n"
9012 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9013 "                                    const char *root);\n"
9014 "\n"
9015 msgstr ""
9016
9017 # type: textblock
9018 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
9019 msgid ""
9020 "This returns the minor version number of the inspected operating system."
9021 msgstr ""
9022
9023 # type: textblock
9024 #: ../src/guestfs-actions.pod:2648
9025 msgid ""
9026 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9027 "C<guestfs_inspect_get_major_version>."
9028 msgstr ""
9029
9030 # type: =head2
9031 #: ../src/guestfs-actions.pod:2655
9032 msgid "guestfs_inspect_get_mountpoints"
9033 msgstr ""
9034
9035 # type: verbatim
9036 #: ../src/guestfs-actions.pod:2657
9037 #, no-wrap
9038 msgid ""
9039 " char **\n"
9040 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9041 "                                  const char *root);\n"
9042 "\n"
9043 msgstr ""
9044
9045 # type: textblock
9046 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
9047 msgid ""
9048 "This returns a hash of where we think the filesystems associated with this "
9049 "operating system should be mounted.  Callers should note that this is at "
9050 "best an educated guess made by reading configuration files such as C</etc/"
9051 "fstab>."
9052 msgstr ""
9053
9054 # type: textblock
9055 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
9056 msgid ""
9057 "Each element in the returned hashtable has a key which is the path of the "
9058 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9059 "mounted there (eg. C</dev/sda1>)."
9060 msgstr ""
9061
9062 # type: textblock
9063 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
9064 msgid ""
9065 "Non-mounted devices such as swap devices are I<not> returned in this list."
9066 msgstr ""
9067
9068 # type: textblock
9069 #: ../src/guestfs-actions.pod:2677
9070 msgid ""
9071 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9072 "C<guestfs_inspect_get_filesystems>."
9073 msgstr ""
9074
9075 # type: textblock
9076 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288
9077 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
9078 msgid ""
9079 "This function returns a NULL-terminated array of strings, or NULL if there "
9080 "was an error.  The array of strings will always have length C<2n+1>, where "
9081 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9082 "caller must free the strings and the array after use>."
9083 msgstr ""
9084
9085 # type: =head2
9086 #: ../src/guestfs-actions.pod:2688
9087 msgid "guestfs_inspect_get_package_format"
9088 msgstr ""
9089
9090 # type: verbatim
9091 #: ../src/guestfs-actions.pod:2690
9092 #, no-wrap
9093 msgid ""
9094 " char *\n"
9095 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9096 "                                     const char *root);\n"
9097 "\n"
9098 msgstr ""
9099
9100 # type: textblock
9101 #: ../src/guestfs-actions.pod:2697
9102 msgid ""
9103 "This function and C<guestfs_inspect_get_package_management> return the "
9104 "package format and package management tool used by the inspected operating "
9105 "system.  For example for Fedora these functions would return C<rpm> (package "
9106 "format) and C<yum> (package management)."
9107 msgstr ""
9108
9109 # type: textblock
9110 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
9111 msgid ""
9112 "This returns the string C<unknown> if we could not determine the package "
9113 "format I<or> if the operating system does not have a real packaging system "
9114 "(eg. Windows)."
9115 msgstr ""
9116
9117 # type: textblock
9118 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
9119 msgid ""
9120 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9121 "Future versions of libguestfs may return other strings."
9122 msgstr ""
9123
9124 # type: =head2
9125 #: ../src/guestfs-actions.pod:2715
9126 msgid "guestfs_inspect_get_package_management"
9127 msgstr ""
9128
9129 # type: verbatim
9130 #: ../src/guestfs-actions.pod:2717
9131 #, no-wrap
9132 msgid ""
9133 " char *\n"
9134 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9135 "                                         const char *root);\n"
9136 "\n"
9137 msgstr ""
9138
9139 # type: textblock
9140 #: ../src/guestfs-actions.pod:2724
9141 msgid ""
9142 "C<guestfs_inspect_get_package_format> and this function return the package "
9143 "format and package management tool used by the inspected operating system.  "
9144 "For example for Fedora these functions would return C<rpm> (package format) "
9145 "and C<yum> (package management)."
9146 msgstr ""
9147
9148 # type: textblock
9149 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
9150 msgid ""
9151 "This returns the string C<unknown> if we could not determine the package "
9152 "management tool I<or> if the operating system does not have a real packaging "
9153 "system (eg. Windows)."
9154 msgstr ""
9155
9156 # type: textblock
9157 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
9158 msgid ""
9159 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9160 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9161 "libguestfs may return other strings."
9162 msgstr ""
9163
9164 # type: =head2
9165 #: ../src/guestfs-actions.pod:2744
9166 msgid "guestfs_inspect_get_product_name"
9167 msgstr ""
9168
9169 # type: verbatim
9170 #: ../src/guestfs-actions.pod:2746
9171 #, no-wrap
9172 msgid ""
9173 " char *\n"
9174 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9175 "                                   const char *root);\n"
9176 "\n"
9177 msgstr ""
9178
9179 # type: textblock
9180 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
9181 msgid ""
9182 "This returns the product name of the inspected operating system.  The "
9183 "product name is generally some freeform string which can be displayed to the "
9184 "user, but should not be parsed by programs."
9185 msgstr ""
9186
9187 # type: textblock
9188 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
9189 msgid ""
9190 "If the product name could not be determined, then the string C<unknown> is "
9191 "returned."
9192 msgstr ""
9193
9194 # type: =head2
9195 #: ../src/guestfs-actions.pod:2768
9196 msgid "guestfs_inspect_get_roots"
9197 msgstr ""
9198
9199 # type: verbatim
9200 #: ../src/guestfs-actions.pod:2770
9201 #, no-wrap
9202 msgid ""
9203 " char **\n"
9204 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9205 "\n"
9206 msgstr ""
9207
9208 # type: textblock
9209 #: ../src/guestfs-actions.pod:2773
9210 msgid ""
9211 "This function is a convenient way to get the list of root devices, as "
9212 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9213 "the whole inspection process."
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:2777
9218 msgid ""
9219 "This returns an empty list if either no root devices were found or the "
9220 "caller has not called C<guestfs_inspect_os>."
9221 msgstr ""
9222
9223 # type: =head2
9224 #: ../src/guestfs-actions.pod:2786
9225 msgid "guestfs_inspect_get_type"
9226 msgstr ""
9227
9228 # type: verbatim
9229 #: ../src/guestfs-actions.pod:2788
9230 #, no-wrap
9231 msgid ""
9232 " char *\n"
9233 " guestfs_inspect_get_type (guestfs_h *g,\n"
9234 "                           const char *root);\n"
9235 "\n"
9236 msgstr ""
9237
9238 # type: textblock
9239 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
9240 msgid ""
9241 "This returns the type of the inspected operating system.  Currently defined "
9242 "types are:"
9243 msgstr ""
9244
9245 # type: =item
9246 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
9247 msgid "\"linux\""
9248 msgstr ""
9249
9250 # type: textblock
9251 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
9252 msgid "Any Linux-based operating system."
9253 msgstr ""
9254
9255 # type: textblock
9256 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
9257 msgid "Any Microsoft Windows operating system."
9258 msgstr ""
9259
9260 # type: =item
9261 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
9262 msgid "\"freebsd\""
9263 msgstr ""
9264
9265 # type: textblock
9266 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
9267 msgid "FreeBSD."
9268 msgstr ""
9269
9270 # type: textblock
9271 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
9272 msgid "The operating system type could not be determined."
9273 msgstr ""
9274
9275 # type: =head2
9276 #: ../src/guestfs-actions.pod:2828
9277 msgid "guestfs_inspect_get_windows_systemroot"
9278 msgstr ""
9279
9280 # type: verbatim
9281 #: ../src/guestfs-actions.pod:2830
9282 #, no-wrap
9283 msgid ""
9284 " char *\n"
9285 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9286 "                                         const char *root);\n"
9287 "\n"
9288 msgstr ""
9289
9290 # type: textblock
9291 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
9292 msgid ""
9293 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9294 "is a directory path such as C</WINDOWS>."
9295 msgstr ""
9296
9297 # type: textblock
9298 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
9299 msgid ""
9300 "This call assumes that the guest is Windows and that the systemroot could be "
9301 "determined by inspection.  If this is not the case then an error is returned."
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:2849
9306 msgid "(Added in 1.5.25)"
9307 msgstr ""
9308
9309 # type: =head2
9310 #: ../src/guestfs-actions.pod:2851
9311 msgid "guestfs_inspect_list_applications"
9312 msgstr ""
9313
9314 # type: verbatim
9315 #: ../src/guestfs-actions.pod:2853
9316 #, no-wrap
9317 msgid ""
9318 " struct guestfs_application_list *\n"
9319 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9320 "                                    const char *root);\n"
9321 "\n"
9322 msgstr ""
9323
9324 # type: textblock
9325 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
9326 msgid "Return the list of applications installed in the operating system."
9327 msgstr ""
9328
9329 # type: textblock
9330 #: ../src/guestfs-actions.pod:2862
9331 msgid ""
9332 "I<Note:> This call works differently from other parts of the inspection "
9333 "API.  You have to call C<guestfs_inspect_os>, then "
9334 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9335 "this.  Listing applications is a significantly more difficult operation "
9336 "which requires access to the full filesystem.  Also note that unlike the "
9337 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9338 "the libguestfs handle, this call actually reads parts of the mounted "
9339 "filesystems during the call."
9340 msgstr ""
9341
9342 # type: textblock
9343 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
9344 msgid ""
9345 "This returns an empty list if the inspection code was not able to determine "
9346 "the list of applications."
9347 msgstr ""
9348
9349 # type: textblock
9350 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
9351 msgid "The application structure contains the following fields:"
9352 msgstr ""
9353
9354 # type: =item
9355 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
9356 msgid "C<app_name>"
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
9361 msgid ""
9362 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9363 "guests, this is the package name."
9364 msgstr ""
9365
9366 # type: =item
9367 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
9368 msgid "C<app_display_name>"
9369 msgstr ""
9370
9371 # type: textblock
9372 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
9373 msgid ""
9374 "The display name of the application, sometimes localized to the install "
9375 "language of the guest operating system."
9376 msgstr ""
9377
9378 # type: textblock
9379 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
9380 msgid ""
9381 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9382 "to display something can use C<app_name> instead."
9383 msgstr ""
9384
9385 # type: =item
9386 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
9387 msgid "C<app_epoch>"
9388 msgstr ""
9389
9390 # type: textblock
9391 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
9392 msgid ""
9393 "For package managers which use epochs, this contains the epoch of the "
9394 "package (an integer).  If unavailable, this is returned as C<0>."
9395 msgstr ""
9396
9397 # type: =item
9398 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
9399 msgid "C<app_version>"
9400 msgstr ""
9401
9402 # type: textblock
9403 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
9404 msgid ""
9405 "The version string of the application or package.  If unavailable this is "
9406 "returned as an empty string C<\"\">."
9407 msgstr ""
9408
9409 # type: =item
9410 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
9411 msgid "C<app_release>"
9412 msgstr ""
9413
9414 # type: textblock
9415 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
9416 msgid ""
9417 "The release string of the application or package, for package managers that "
9418 "use this.  If unavailable this is returned as an empty string C<\"\">."
9419 msgstr ""
9420
9421 # type: =item
9422 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
9423 msgid "C<app_install_path>"
9424 msgstr ""
9425
9426 # type: textblock
9427 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
9428 msgid ""
9429 "The installation path of the application (on operating systems such as "
9430 "Windows which use installation paths).  This path is in the format used by "
9431 "the guest operating system, it is not a libguestfs path."
9432 msgstr ""
9433
9434 # type: textblock
9435 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
9436 msgid "If unavailable this is returned as an empty string C<\"\">."
9437 msgstr ""
9438
9439 # type: =item
9440 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
9441 msgid "C<app_trans_path>"
9442 msgstr ""
9443
9444 # type: textblock
9445 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9446 msgid ""
9447 "The install path translated into a libguestfs path.  If unavailable this is "
9448 "returned as an empty string C<\"\">."
9449 msgstr ""
9450
9451 # type: =item
9452 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9453 msgid "C<app_publisher>"
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9458 msgid ""
9459 "The name of the publisher of the application, for package managers that use "
9460 "this.  If unavailable this is returned as an empty string C<\"\">."
9461 msgstr ""
9462
9463 # type: =item
9464 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9465 msgid "C<app_url>"
9466 msgstr ""
9467
9468 # type: textblock
9469 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9470 msgid ""
9471 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9472 "returned as an empty string C<\"\">."
9473 msgstr ""
9474
9475 # type: =item
9476 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9477 msgid "C<app_source_package>"
9478 msgstr ""
9479
9480 # type: textblock
9481 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9482 msgid ""
9483 "For packaging systems which support this, the name of the source package.  "
9484 "If unavailable this is returned as an empty string C<\"\">."
9485 msgstr ""
9486
9487 # type: =item
9488 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9489 msgid "C<app_summary>"
9490 msgstr ""
9491
9492 # type: textblock
9493 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9494 msgid ""
9495 "A short (usually one line) description of the application or package.  If "
9496 "unavailable this is returned as an empty string C<\"\">."
9497 msgstr ""
9498
9499 # type: =item
9500 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9501 msgid "C<app_description>"
9502 msgstr ""
9503
9504 # type: textblock
9505 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9506 msgid ""
9507 "A longer description of the application or package.  If unavailable this is "
9508 "returned as an empty string C<\"\">."
9509 msgstr ""
9510
9511 # type: textblock
9512 #: ../src/guestfs-actions.pod:2952
9513 msgid ""
9514 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9515 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9516 "after use>."
9517 msgstr ""
9518
9519 # type: =head2
9520 #: ../src/guestfs-actions.pod:2956
9521 msgid "guestfs_inspect_os"
9522 msgstr ""
9523
9524 # type: verbatim
9525 #: ../src/guestfs-actions.pod:2958
9526 #, no-wrap
9527 msgid ""
9528 " char **\n"
9529 " guestfs_inspect_os (guestfs_h *g);\n"
9530 "\n"
9531 msgstr ""
9532
9533 # type: textblock
9534 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9535 msgid ""
9536 "This function uses other libguestfs functions and certain heuristics to "
9537 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9538 "for operating systems."
9539 msgstr ""
9540
9541 # type: textblock
9542 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9543 msgid "The list returned is empty if no operating systems were found."
9544 msgstr ""
9545
9546 # type: textblock
9547 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9548 msgid ""
9549 "If one operating system was found, then this returns a list with a single "
9550 "element, which is the name of the root filesystem of this operating system.  "
9551 "It is also possible for this function to return a list containing more than "
9552 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9553 "element being the root filesystem of one of the operating systems."
9554 msgstr ""
9555
9556 # type: textblock
9557 #: ../src/guestfs-actions.pod:2974
9558 msgid ""
9559 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9560 "functions in order to query further information about each operating system, "
9561 "such as the name and version."
9562 msgstr ""
9563
9564 # type: textblock
9565 #: ../src/guestfs-actions.pod:2979
9566 msgid ""
9567 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9568 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9569 "the contents.  This should be called with no disks currently mounted.  The "
9570 "function may also use Augeas, so any existing Augeas handle will be closed."
9571 msgstr ""
9572
9573 # type: textblock
9574 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9575 msgid ""
9576 "This function cannot decrypt encrypted disks.  The caller must do that first "
9577 "(supplying the necessary keys) if the disk is encrypted."
9578 msgstr ""
9579
9580 # type: textblock
9581 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246
9582 #: ../src/guestfs-actions.pod:3308
9583 msgid "See also C<guestfs_list_filesystems>."
9584 msgstr ""
9585
9586 # type: =head2
9587 #: ../src/guestfs-actions.pod:2999
9588 msgid "guestfs_is_blockdev"
9589 msgstr ""
9590
9591 # type: verbatim
9592 #: ../src/guestfs-actions.pod:3001
9593 #, no-wrap
9594 msgid ""
9595 " int\n"
9596 " guestfs_is_blockdev (guestfs_h *g,\n"
9597 "                      const char *path);\n"
9598 "\n"
9599 msgstr ""
9600
9601 # type: textblock
9602 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9603 msgid ""
9604 "This returns C<true> if and only if there is a block device with the given "
9605 "C<path> name."
9606 msgstr ""
9607
9608 # type: textblock
9609 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037
9610 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082
9611 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154
9612 #: ../src/guestfs-actions.pod:3169
9613 msgid "See also C<guestfs_stat>."
9614 msgstr ""
9615
9616 # type: textblock
9617 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041
9618 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158
9619 #: ../src/guestfs-actions.pod:3173
9620 msgid "(Added in 1.5.10)"
9621 msgstr ""
9622
9623 # type: =head2
9624 #: ../src/guestfs-actions.pod:3014
9625 msgid "guestfs_is_busy"
9626 msgstr ""
9627
9628 # type: verbatim
9629 #: ../src/guestfs-actions.pod:3016
9630 #, no-wrap
9631 msgid ""
9632 " int\n"
9633 " guestfs_is_busy (guestfs_h *g);\n"
9634 "\n"
9635 msgstr ""
9636
9637 # type: textblock
9638 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9639 msgid ""
9640 "This returns true iff this handle is busy processing a command (in the "
9641 "C<BUSY> state)."
9642 msgstr ""
9643
9644 # type: =head2
9645 #: ../src/guestfs-actions.pod:3028
9646 msgid "guestfs_is_chardev"
9647 msgstr ""
9648
9649 # type: verbatim
9650 #: ../src/guestfs-actions.pod:3030
9651 #, no-wrap
9652 msgid ""
9653 " int\n"
9654 " guestfs_is_chardev (guestfs_h *g,\n"
9655 "                     const char *path);\n"
9656 "\n"
9657 msgstr ""
9658
9659 # type: textblock
9660 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9661 msgid ""
9662 "This returns C<true> if and only if there is a character device with the "
9663 "given C<path> name."
9664 msgstr ""
9665
9666 # type: =head2
9667 #: ../src/guestfs-actions.pod:3043
9668 msgid "guestfs_is_config"
9669 msgstr ""
9670
9671 # type: verbatim
9672 #: ../src/guestfs-actions.pod:3045
9673 #, no-wrap
9674 msgid ""
9675 " int\n"
9676 " guestfs_is_config (guestfs_h *g);\n"
9677 "\n"
9678 msgstr ""
9679
9680 # type: textblock
9681 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9682 msgid ""
9683 "This returns true iff this handle is being configured (in the C<CONFIG> "
9684 "state)."
9685 msgstr ""
9686
9687 # type: =head2
9688 #: ../src/guestfs-actions.pod:3057
9689 msgid "guestfs_is_dir"
9690 msgstr ""
9691
9692 # type: verbatim
9693 #: ../src/guestfs-actions.pod:3059
9694 #, no-wrap
9695 msgid ""
9696 " int\n"
9697 " guestfs_is_dir (guestfs_h *g,\n"
9698 "                 const char *path);\n"
9699 "\n"
9700 msgstr ""
9701
9702 # type: textblock
9703 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9704 msgid ""
9705 "This returns C<true> if and only if there is a directory with the given "
9706 "C<path> name.  Note that it returns false for other objects like files."
9707 msgstr ""
9708
9709 # type: =head2
9710 #: ../src/guestfs-actions.pod:3073
9711 msgid "guestfs_is_fifo"
9712 msgstr ""
9713
9714 # type: verbatim
9715 #: ../src/guestfs-actions.pod:3075
9716 #, no-wrap
9717 msgid ""
9718 " int\n"
9719 " guestfs_is_fifo (guestfs_h *g,\n"
9720 "                  const char *path);\n"
9721 "\n"
9722 msgstr ""
9723
9724 # type: textblock
9725 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9726 msgid ""
9727 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9728 "given C<path> name."
9729 msgstr ""
9730
9731 # type: =head2
9732 #: ../src/guestfs-actions.pod:3088
9733 msgid "guestfs_is_file"
9734 msgstr ""
9735
9736 # type: verbatim
9737 #: ../src/guestfs-actions.pod:3090
9738 #, no-wrap
9739 msgid ""
9740 " int\n"
9741 " guestfs_is_file (guestfs_h *g,\n"
9742 "                  const char *path);\n"
9743 "\n"
9744 msgstr ""
9745
9746 # type: textblock
9747 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9748 msgid ""
9749 "This returns C<true> if and only if there is a regular file with the given "
9750 "C<path> name.  Note that it returns false for other objects like directories."
9751 msgstr ""
9752
9753 # type: =head2
9754 #: ../src/guestfs-actions.pod:3104
9755 msgid "guestfs_is_launching"
9756 msgstr ""
9757
9758 # type: verbatim
9759 #: ../src/guestfs-actions.pod:3106
9760 #, no-wrap
9761 msgid ""
9762 " int\n"
9763 " guestfs_is_launching (guestfs_h *g);\n"
9764 "\n"
9765 msgstr ""
9766
9767 # type: textblock
9768 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9769 msgid ""
9770 "This returns true iff this handle is launching the subprocess (in the "
9771 "C<LAUNCHING> state)."
9772 msgstr ""
9773
9774 # type: =head2
9775 #: ../src/guestfs-actions.pod:3118
9776 msgid "guestfs_is_lv"
9777 msgstr ""
9778
9779 # type: verbatim
9780 #: ../src/guestfs-actions.pod:3120
9781 #, no-wrap
9782 msgid ""
9783 " int\n"
9784 " guestfs_is_lv (guestfs_h *g,\n"
9785 "                const char *device);\n"
9786 "\n"
9787 msgstr ""
9788
9789 # type: textblock
9790 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9791 msgid ""
9792 "This command tests whether C<device> is a logical volume, and returns true "
9793 "iff this is the case."
9794 msgstr ""
9795
9796 # type: =head2
9797 #: ../src/guestfs-actions.pod:3131
9798 msgid "guestfs_is_ready"
9799 msgstr ""
9800
9801 # type: verbatim
9802 #: ../src/guestfs-actions.pod:3133
9803 #, no-wrap
9804 msgid ""
9805 " int\n"
9806 " guestfs_is_ready (guestfs_h *g);\n"
9807 "\n"
9808 msgstr ""
9809
9810 # type: textblock
9811 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9812 msgid ""
9813 "This returns true iff this handle is ready to accept commands (in the "
9814 "C<READY> state)."
9815 msgstr ""
9816
9817 # type: =head2
9818 #: ../src/guestfs-actions.pod:3145
9819 msgid "guestfs_is_socket"
9820 msgstr ""
9821
9822 # type: verbatim
9823 #: ../src/guestfs-actions.pod:3147
9824 #, no-wrap
9825 msgid ""
9826 " int\n"
9827 " guestfs_is_socket (guestfs_h *g,\n"
9828 "                    const char *path);\n"
9829 "\n"
9830 msgstr ""
9831
9832 # type: textblock
9833 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9834 msgid ""
9835 "This returns C<true> if and only if there is a Unix domain socket with the "
9836 "given C<path> name."
9837 msgstr ""
9838
9839 # type: =head2
9840 #: ../src/guestfs-actions.pod:3160
9841 msgid "guestfs_is_symlink"
9842 msgstr ""
9843
9844 # type: verbatim
9845 #: ../src/guestfs-actions.pod:3162
9846 #, no-wrap
9847 msgid ""
9848 " int\n"
9849 " guestfs_is_symlink (guestfs_h *g,\n"
9850 "                     const char *path);\n"
9851 "\n"
9852 msgstr ""
9853
9854 # type: textblock
9855 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9856 msgid ""
9857 "This returns C<true> if and only if there is a symbolic link with the given "
9858 "C<path> name."
9859 msgstr ""
9860
9861 # type: =head2
9862 #: ../src/guestfs-actions.pod:3175
9863 msgid "guestfs_kill_subprocess"
9864 msgstr ""
9865
9866 # type: verbatim
9867 #: ../src/guestfs-actions.pod:3177
9868 #, no-wrap
9869 msgid ""
9870 " int\n"
9871 " guestfs_kill_subprocess (guestfs_h *g);\n"
9872 "\n"
9873 msgstr ""
9874
9875 # type: textblock
9876 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9877 msgid "This kills the qemu subprocess.  You should never need to call this."
9878 msgstr ""
9879
9880 # type: =head2
9881 #: ../src/guestfs-actions.pod:3186
9882 msgid "guestfs_launch"
9883 msgstr ""
9884
9885 # type: verbatim
9886 #: ../src/guestfs-actions.pod:3188
9887 #, no-wrap
9888 msgid ""
9889 " int\n"
9890 " guestfs_launch (guestfs_h *g);\n"
9891 "\n"
9892 msgstr ""
9893
9894 # type: textblock
9895 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9896 msgid ""
9897 "Internally libguestfs is implemented by running a virtual machine using "
9898 "L<qemu(1)>."
9899 msgstr ""
9900
9901 # type: textblock
9902 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9903 msgid ""
9904 "You should call this after configuring the handle (eg. adding drives) but "
9905 "before performing any actions."
9906 msgstr ""
9907
9908 # type: =head2
9909 #: ../src/guestfs-actions.pod:3201
9910 msgid "guestfs_lchown"
9911 msgstr ""
9912
9913 # type: verbatim
9914 #: ../src/guestfs-actions.pod:3203
9915 #, no-wrap
9916 msgid ""
9917 " int\n"
9918 " guestfs_lchown (guestfs_h *g,\n"
9919 "                 int owner,\n"
9920 "                 int group,\n"
9921 "                 const char *path);\n"
9922 "\n"
9923 msgstr ""
9924
9925 # type: textblock
9926 #: ../src/guestfs-actions.pod:3209
9927 msgid ""
9928 "Change the file owner to C<owner> and group to C<group>.  This is like "
9929 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9930 "changed, not the target."
9931 msgstr ""
9932
9933 # type: =head2
9934 #: ../src/guestfs-actions.pod:3221
9935 msgid "guestfs_lgetxattrs"
9936 msgstr ""
9937
9938 # type: verbatim
9939 #: ../src/guestfs-actions.pod:3223
9940 #, no-wrap
9941 msgid ""
9942 " struct guestfs_xattr_list *\n"
9943 " guestfs_lgetxattrs (guestfs_h *g,\n"
9944 "                     const char *path);\n"
9945 "\n"
9946 msgstr ""
9947
9948 # type: textblock
9949 #: ../src/guestfs-actions.pod:3227
9950 msgid ""
9951 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9952 "then it returns the extended attributes of the link itself."
9953 msgstr ""
9954
9955 # type: =head2
9956 #: ../src/guestfs-actions.pod:3237
9957 msgid "guestfs_list_devices"
9958 msgstr ""
9959
9960 # type: verbatim
9961 #: ../src/guestfs-actions.pod:3239
9962 #, no-wrap
9963 msgid ""
9964 " char **\n"
9965 " guestfs_list_devices (guestfs_h *g);\n"
9966 "\n"
9967 msgstr ""
9968
9969 # type: textblock
9970 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9971 msgid "List all the block devices."
9972 msgstr ""
9973
9974 # type: textblock
9975 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9976 msgid "The full block device names are returned, eg. C</dev/sda>."
9977 msgstr ""
9978
9979 # type: =head2
9980 #: ../src/guestfs-actions.pod:3254
9981 msgid "guestfs_list_filesystems"
9982 msgstr ""
9983
9984 # type: verbatim
9985 #: ../src/guestfs-actions.pod:3256
9986 #, no-wrap
9987 msgid ""
9988 " char **\n"
9989 " guestfs_list_filesystems (guestfs_h *g);\n"
9990 "\n"
9991 msgstr ""
9992
9993 # type: textblock
9994 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
9995 msgid ""
9996 "This inspection command looks for filesystems on partitions, block devices "
9997 "and logical volumes, returning a list of devices containing filesystems and "
9998 "their type."
9999 msgstr ""
10000
10001 # type: textblock
10002 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
10003 msgid ""
10004 "The return value is a hash, where the keys are the devices containing "
10005 "filesystems, and the values are the filesystem types.  For example:"
10006 msgstr ""
10007
10008 # type: verbatim
10009 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
10010 #, no-wrap
10011 msgid ""
10012 " \"/dev/sda1\" => \"ntfs\"\n"
10013 " \"/dev/sda2\" => \"ext2\"\n"
10014 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10015 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10016 "\n"
10017 msgstr ""
10018
10019 # type: textblock
10020 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
10021 msgid ""
10022 "The value can have the special value \"unknown\", meaning the content of the "
10023 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10024 msgstr ""
10025
10026 # type: textblock
10027 #: ../src/guestfs-actions.pod:3276
10028 msgid ""
10029 "This command runs other libguestfs commands, which might include "
10030 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10031 "soon after launch and only when nothing is mounted."
10032 msgstr ""
10033
10034 # type: textblock
10035 #: ../src/guestfs-actions.pod:3280
10036 msgid ""
10037 "Not all of the filesystems returned will be mountable.  In particular, swap "
10038 "partitions are returned in the list.  Also this command does not check that "
10039 "each filesystem found is valid and mountable, and some filesystems might be "
10040 "mountable but require special options.  Filesystems may not all belong to a "
10041 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10042 msgstr ""
10043
10044 # type: textblock
10045 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
10046 msgid "(Added in 1.5.15)"
10047 msgstr ""
10048
10049 # type: =head2
10050 #: ../src/guestfs-actions.pod:3296
10051 msgid "guestfs_list_partitions"
10052 msgstr ""
10053
10054 # type: verbatim
10055 #: ../src/guestfs-actions.pod:3298
10056 #, no-wrap
10057 msgid ""
10058 " char **\n"
10059 " guestfs_list_partitions (guestfs_h *g);\n"
10060 "\n"
10061 msgstr ""
10062
10063 # type: textblock
10064 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
10065 msgid "List all the partitions detected on all block devices."
10066 msgstr ""
10067
10068 # type: textblock
10069 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
10070 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10071 msgstr ""
10072
10073 # type: textblock
10074 #: ../src/guestfs-actions.pod:3305
10075 msgid ""
10076 "This does not return logical volumes.  For that you will need to call "
10077 "C<guestfs_lvs>."
10078 msgstr ""
10079
10080 # type: =head2
10081 #: ../src/guestfs-actions.pod:3316
10082 msgid "guestfs_ll"
10083 msgstr ""
10084
10085 # type: verbatim
10086 #: ../src/guestfs-actions.pod:3318
10087 #, no-wrap
10088 msgid ""
10089 " char *\n"
10090 " guestfs_ll (guestfs_h *g,\n"
10091 "             const char *directory);\n"
10092 "\n"
10093 msgstr ""
10094
10095 # type: textblock
10096 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
10097 msgid ""
10098 "List the files in C<directory> (relative to the root directory, there is no "
10099 "cwd) in the format of 'ls -la'."
10100 msgstr ""
10101
10102 # type: textblock
10103 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
10104 msgid ""
10105 "This command is mostly useful for interactive sessions.  It is I<not> "
10106 "intended that you try to parse the output string."
10107 msgstr ""
10108
10109 # type: =head2
10110 #: ../src/guestfs-actions.pod:3333
10111 msgid "guestfs_ln"
10112 msgstr ""
10113
10114 # type: verbatim
10115 #: ../src/guestfs-actions.pod:3335
10116 #, no-wrap
10117 msgid ""
10118 " int\n"
10119 " guestfs_ln (guestfs_h *g,\n"
10120 "             const char *target,\n"
10121 "             const char *linkname);\n"
10122 "\n"
10123 msgstr ""
10124
10125 # type: textblock
10126 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
10127 msgid "This command creates a hard link using the C<ln> command."
10128 msgstr ""
10129
10130 # type: =head2
10131 #: ../src/guestfs-actions.pod:3346
10132 msgid "guestfs_ln_f"
10133 msgstr ""
10134
10135 # type: verbatim
10136 #: ../src/guestfs-actions.pod:3348
10137 #, no-wrap
10138 msgid ""
10139 " int\n"
10140 " guestfs_ln_f (guestfs_h *g,\n"
10141 "               const char *target,\n"
10142 "               const char *linkname);\n"
10143 "\n"
10144 msgstr ""
10145
10146 # type: textblock
10147 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
10148 msgid ""
10149 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10150 "option removes the link (C<linkname>) if it exists already."
10151 msgstr ""
10152
10153 # type: =head2
10154 #: ../src/guestfs-actions.pod:3360
10155 msgid "guestfs_ln_s"
10156 msgstr ""
10157
10158 # type: verbatim
10159 #: ../src/guestfs-actions.pod:3362
10160 #, no-wrap
10161 msgid ""
10162 " int\n"
10163 " guestfs_ln_s (guestfs_h *g,\n"
10164 "               const char *target,\n"
10165 "               const char *linkname);\n"
10166 "\n"
10167 msgstr ""
10168
10169 # type: textblock
10170 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
10171 msgid "This command creates a symbolic link using the C<ln -s> command."
10172 msgstr ""
10173
10174 # type: =head2
10175 #: ../src/guestfs-actions.pod:3373
10176 msgid "guestfs_ln_sf"
10177 msgstr ""
10178
10179 # type: verbatim
10180 #: ../src/guestfs-actions.pod:3375
10181 #, no-wrap
10182 msgid ""
10183 " int\n"
10184 " guestfs_ln_sf (guestfs_h *g,\n"
10185 "                const char *target,\n"
10186 "                const char *linkname);\n"
10187 "\n"
10188 msgstr ""
10189
10190 # type: textblock
10191 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
10192 msgid ""
10193 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10194 "option removes the link (C<linkname>) if it exists already."
10195 msgstr ""
10196
10197 # type: =head2
10198 #: ../src/guestfs-actions.pod:3387
10199 msgid "guestfs_lremovexattr"
10200 msgstr ""
10201
10202 # type: verbatim
10203 #: ../src/guestfs-actions.pod:3389
10204 #, no-wrap
10205 msgid ""
10206 " int\n"
10207 " guestfs_lremovexattr (guestfs_h *g,\n"
10208 "                       const char *xattr,\n"
10209 "                       const char *path);\n"
10210 "\n"
10211 msgstr ""
10212
10213 # type: textblock
10214 #: ../src/guestfs-actions.pod:3394
10215 msgid ""
10216 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10217 "link, then it removes an extended attribute of the link itself."
10218 msgstr ""
10219
10220 # type: =head2
10221 #: ../src/guestfs-actions.pod:3402
10222 msgid "guestfs_ls"
10223 msgstr ""
10224
10225 # type: verbatim
10226 #: ../src/guestfs-actions.pod:3404
10227 #, no-wrap
10228 msgid ""
10229 " char **\n"
10230 " guestfs_ls (guestfs_h *g,\n"
10231 "             const char *directory);\n"
10232 "\n"
10233 msgstr ""
10234
10235 # type: textblock
10236 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
10237 msgid ""
10238 "List the files in C<directory> (relative to the root directory, there is no "
10239 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10240 msgstr ""
10241
10242 # type: textblock
10243 #: ../src/guestfs-actions.pod:3412
10244 msgid ""
10245 "This command is mostly useful for interactive sessions.  Programs should "
10246 "probably use C<guestfs_readdir> instead."
10247 msgstr ""
10248
10249 # type: =head2
10250 #: ../src/guestfs-actions.pod:3421
10251 msgid "guestfs_lsetxattr"
10252 msgstr ""
10253
10254 # type: verbatim
10255 #: ../src/guestfs-actions.pod:3423
10256 #, no-wrap
10257 msgid ""
10258 " int\n"
10259 " guestfs_lsetxattr (guestfs_h *g,\n"
10260 "                    const char *xattr,\n"
10261 "                    const char *val,\n"
10262 "                    int vallen,\n"
10263 "                    const char *path);\n"
10264 "\n"
10265 msgstr ""
10266
10267 # type: textblock
10268 #: ../src/guestfs-actions.pod:3430
10269 msgid ""
10270 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10271 "then it sets an extended attribute of the link itself."
10272 msgstr ""
10273
10274 # type: =head2
10275 #: ../src/guestfs-actions.pod:3438
10276 msgid "guestfs_lstat"
10277 msgstr ""
10278
10279 # type: verbatim
10280 #: ../src/guestfs-actions.pod:3440
10281 #, no-wrap
10282 msgid ""
10283 " struct guestfs_stat *\n"
10284 " guestfs_lstat (guestfs_h *g,\n"
10285 "                const char *path);\n"
10286 "\n"
10287 msgstr ""
10288
10289 # type: textblock
10290 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871
10291 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10292 msgid "Returns file information for the given C<path>."
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3446
10297 msgid ""
10298 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10299 "link, then the link is stat-ed, not the file it refers to."
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
10304 msgid "This is the same as the C<lstat(2)> system call."
10305 msgstr ""
10306
10307 # type: textblock
10308 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
10309 msgid ""
10310 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10311 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10312 msgstr ""
10313
10314 # type: textblock
10315 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879
10316 #: ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
10317 msgid "(Added in 0.9.2)"
10318 msgstr ""
10319
10320 # type: =head2
10321 #: ../src/guestfs-actions.pod:3458
10322 msgid "guestfs_lstatlist"
10323 msgstr ""
10324
10325 # type: verbatim
10326 #: ../src/guestfs-actions.pod:3460
10327 #, no-wrap
10328 msgid ""
10329 " struct guestfs_stat_list *\n"
10330 " guestfs_lstatlist (guestfs_h *g,\n"
10331 "                    const char *path,\n"
10332 "                    char *const *names);\n"
10333 "\n"
10334 msgstr ""
10335
10336 # type: textblock
10337 #: ../src/guestfs-actions.pod:3465
10338 msgid ""
10339 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10340 "files, where all files are in the directory C<path>.  C<names> is the list "
10341 "of files from this directory."
10342 msgstr ""
10343
10344 # type: textblock
10345 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
10346 msgid ""
10347 "On return you get a list of stat structs, with a one-to-one correspondence "
10348 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10349 "then the C<ino> field of that structure is set to C<-1>."
10350 msgstr ""
10351
10352 # type: textblock
10353 #: ../src/guestfs-actions.pod:3474
10354 msgid ""
10355 "This call is intended for programs that want to efficiently list a directory "
10356 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10357 "for a similarly efficient call for getting extended attributes.  Very long "
10358 "directory listings might cause the protocol message size to be exceeded, "
10359 "causing this call to fail.  The caller must split up such requests into "
10360 "smaller groups of names."
10361 msgstr ""
10362
10363 # type: textblock
10364 #: ../src/guestfs-actions.pod:3482
10365 msgid ""
10366 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10367 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10368 msgstr ""
10369
10370 # type: =head2
10371 #: ../src/guestfs-actions.pod:3488
10372 msgid "guestfs_luks_add_key"
10373 msgstr ""
10374
10375 # type: verbatim
10376 #: ../src/guestfs-actions.pod:3490
10377 #, no-wrap
10378 msgid ""
10379 " int\n"
10380 " guestfs_luks_add_key (guestfs_h *g,\n"
10381 "                       const char *device,\n"
10382 "                       const char *key,\n"
10383 "                       const char *newkey,\n"
10384 "                       int keyslot);\n"
10385 "\n"
10386 msgstr ""
10387
10388 # type: textblock
10389 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
10390 msgid ""
10391 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10392 "existing key, and is used to access the device.  C<newkey> is the new key to "
10393 "add.  C<keyslot> is the key slot that will be replaced."
10394 msgstr ""
10395
10396 # type: textblock
10397 #: ../src/guestfs-actions.pod:3502
10398 msgid ""
10399 "Note that if C<keyslot> already contains a key, then this command will "
10400 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548
10405 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591
10406 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
10407 msgid ""
10408 "This function takes a key or passphrase parameter which could contain "
10409 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10410 "information."
10411 msgstr ""
10412
10413 # type: textblock
10414 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552
10415 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
10416 msgid "(Added in 1.5.2)"
10417 msgstr ""
10418
10419 # type: =head2
10420 #: ../src/guestfs-actions.pod:3514
10421 msgid "guestfs_luks_close"
10422 msgstr ""
10423
10424 # type: verbatim
10425 #: ../src/guestfs-actions.pod:3516
10426 #, no-wrap
10427 msgid ""
10428 " int\n"
10429 " guestfs_luks_close (guestfs_h *g,\n"
10430 "                     const char *device);\n"
10431 "\n"
10432 msgstr ""
10433
10434 # type: textblock
10435 #: ../src/guestfs-actions.pod:3520
10436 msgid ""
10437 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10438 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10439 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10440 "underlying block device."
10441 msgstr ""
10442
10443 # type: textblock
10444 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627
10445 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696
10446 #: ../src/guestfs-actions.pod:3744
10447 msgid "(Added in 1.5.1)"
10448 msgstr ""
10449
10450 # type: =head2
10451 #: ../src/guestfs-actions.pod:3530
10452 msgid "guestfs_luks_format"
10453 msgstr ""
10454
10455 # type: verbatim
10456 #: ../src/guestfs-actions.pod:3532
10457 #, no-wrap
10458 msgid ""
10459 " int\n"
10460 " guestfs_luks_format (guestfs_h *g,\n"
10461 "                      const char *device,\n"
10462 "                      const char *key,\n"
10463 "                      int keyslot);\n"
10464 "\n"
10465 msgstr ""
10466
10467 # type: textblock
10468 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10469 msgid ""
10470 "This command erases existing data on C<device> and formats the device as a "
10471 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10472 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568
10477 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568
10478 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706
10479 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755
10480 #: ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433
10481 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10482 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10483 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10484 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10485 msgid ""
10486 "B<This command is dangerous.  Without careful use you can easily destroy all "
10487 "your data>."
10488 msgstr ""
10489
10490 # type: =head2
10491 #: ../src/guestfs-actions.pod:3554
10492 msgid "guestfs_luks_format_cipher"
10493 msgstr ""
10494
10495 # type: verbatim
10496 #: ../src/guestfs-actions.pod:3556
10497 #, no-wrap
10498 msgid ""
10499 " int\n"
10500 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10501 "                             const char *device,\n"
10502 "                             const char *key,\n"
10503 "                             int keyslot,\n"
10504 "                             const char *cipher);\n"
10505 "\n"
10506 msgstr ""
10507
10508 # type: textblock
10509 #: ../src/guestfs-actions.pod:3563
10510 msgid ""
10511 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10512 "set the C<cipher> used."
10513 msgstr ""
10514
10515 # type: =head2
10516 #: ../src/guestfs-actions.pod:3577
10517 msgid "guestfs_luks_kill_slot"
10518 msgstr ""
10519
10520 # type: verbatim
10521 #: ../src/guestfs-actions.pod:3579
10522 #, no-wrap
10523 msgid ""
10524 " int\n"
10525 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10526 "                         const char *device,\n"
10527 "                         const char *key,\n"
10528 "                         int keyslot);\n"
10529 "\n"
10530 msgstr ""
10531
10532 # type: textblock
10533 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10534 msgid ""
10535 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10536 "device C<device>.  C<key> must be one of the I<other> keys."
10537 msgstr ""
10538
10539 # type: =head2
10540 #: ../src/guestfs-actions.pod:3597
10541 msgid "guestfs_luks_open"
10542 msgstr ""
10543
10544 # type: verbatim
10545 #: ../src/guestfs-actions.pod:3599
10546 #, no-wrap
10547 msgid ""
10548 " int\n"
10549 " guestfs_luks_open (guestfs_h *g,\n"
10550 "                    const char *device,\n"
10551 "                    const char *key,\n"
10552 "                    const char *mapname);\n"
10553 "\n"
10554 msgstr ""
10555
10556 # type: textblock
10557 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10558 msgid ""
10559 "This command opens a block device which has been encrypted according to the "
10560 "Linux Unified Key Setup (LUKS) standard."
10561 msgstr ""
10562
10563 # type: textblock
10564 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10565 msgid "C<device> is the encrypted block device or partition."
10566 msgstr ""
10567
10568 # type: textblock
10569 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10570 msgid ""
10571 "The caller must supply one of the keys associated with the LUKS block "
10572 "device, in the C<key> parameter."
10573 msgstr ""
10574
10575 # type: textblock
10576 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10577 msgid ""
10578 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10579 "writes to this block device are decrypted from and encrypted to the "
10580 "underlying C<device> respectively."
10581 msgstr ""
10582
10583 # type: textblock
10584 #: ../src/guestfs-actions.pod:3617
10585 msgid ""
10586 "If this block device contains LVM volume groups, then calling "
10587 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10588 "visible."
10589 msgstr ""
10590
10591 # type: =head2
10592 #: ../src/guestfs-actions.pod:3629
10593 msgid "guestfs_luks_open_ro"
10594 msgstr ""
10595
10596 # type: verbatim
10597 #: ../src/guestfs-actions.pod:3631
10598 #, no-wrap
10599 msgid ""
10600 " int\n"
10601 " guestfs_luks_open_ro (guestfs_h *g,\n"
10602 "                       const char *device,\n"
10603 "                       const char *key,\n"
10604 "                       const char *mapname);\n"
10605 "\n"
10606 msgstr ""
10607
10608 # type: textblock
10609 #: ../src/guestfs-actions.pod:3637
10610 msgid ""
10611 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10612 "created."
10613 msgstr ""
10614
10615 # type: =head2
10616 #: ../src/guestfs-actions.pod:3648
10617 msgid "guestfs_lvcreate"
10618 msgstr ""
10619
10620 # type: verbatim
10621 #: ../src/guestfs-actions.pod:3650
10622 #, no-wrap
10623 msgid ""
10624 " int\n"
10625 " guestfs_lvcreate (guestfs_h *g,\n"
10626 "                   const char *logvol,\n"
10627 "                   const char *volgroup,\n"
10628 "                   int mbytes);\n"
10629 "\n"
10630 msgstr ""
10631
10632 # type: textblock
10633 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10634 msgid ""
10635 "This creates an LVM logical volume called C<logvol> on the volume group "
10636 "C<volgroup>, with C<size> megabytes."
10637 msgstr ""
10638
10639 # type: =head2
10640 #: ../src/guestfs-actions.pod:3663
10641 msgid "guestfs_lvm_canonical_lv_name"
10642 msgstr ""
10643
10644 # type: verbatim
10645 #: ../src/guestfs-actions.pod:3665
10646 #, no-wrap
10647 msgid ""
10648 " char *\n"
10649 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10650 "                                const char *lvname);\n"
10651 "\n"
10652 msgstr ""
10653
10654 # type: textblock
10655 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10656 msgid ""
10657 "This converts alternative naming schemes for LVs that you might find to the "
10658 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10659 "LV>."
10660 msgstr ""
10661
10662 # type: textblock
10663 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10664 msgid ""
10665 "This command returns an error if the C<lvname> parameter does not refer to a "
10666 "logical volume."
10667 msgstr ""
10668
10669 # type: textblock
10670 #: ../src/guestfs-actions.pod:3676
10671 msgid "See also C<guestfs_is_lv>."
10672 msgstr ""
10673
10674 # type: textblock
10675 #: ../src/guestfs-actions.pod:3681
10676 msgid "(Added in 1.5.24)"
10677 msgstr ""
10678
10679 # type: =head2
10680 #: ../src/guestfs-actions.pod:3683
10681 msgid "guestfs_lvm_clear_filter"
10682 msgstr ""
10683
10684 # type: verbatim
10685 #: ../src/guestfs-actions.pod:3685
10686 #, no-wrap
10687 msgid ""
10688 " int\n"
10689 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10690 "\n"
10691 msgstr ""
10692
10693 # type: textblock
10694 #: ../src/guestfs-actions.pod:3688
10695 msgid ""
10696 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10697 "see every block device."
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733
10702 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10703 msgid ""
10704 "This command also clears the LVM cache and performs a volume group scan."
10705 msgstr ""
10706
10707 # type: =head2
10708 #: ../src/guestfs-actions.pod:3698
10709 msgid "guestfs_lvm_remove_all"
10710 msgstr ""
10711
10712 # type: verbatim
10713 #: ../src/guestfs-actions.pod:3700
10714 #, no-wrap
10715 msgid ""
10716 " int\n"
10717 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10718 "\n"
10719 msgstr ""
10720
10721 # type: textblock
10722 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10723 msgid ""
10724 "This command removes all LVM logical volumes, volume groups and physical "
10725 "volumes."
10726 msgstr ""
10727
10728 # type: =head2
10729 #: ../src/guestfs-actions.pod:3713
10730 msgid "guestfs_lvm_set_filter"
10731 msgstr ""
10732
10733 # type: verbatim
10734 #: ../src/guestfs-actions.pod:3715
10735 #, no-wrap
10736 msgid ""
10737 " int\n"
10738 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10739 "                         char *const *devices);\n"
10740 "\n"
10741 msgstr ""
10742
10743 # type: textblock
10744 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10745 msgid ""
10746 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10747 "block devices in the list C<devices>, and will ignore all other attached "
10748 "block devices."
10749 msgstr ""
10750
10751 # type: textblock
10752 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10753 msgid ""
10754 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10755 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10756 "there are two types of duplication possible: either cloned PVs/VGs which "
10757 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10758 "same name.  In normal operation you cannot create this situation, but you "
10759 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10760 "inside the LVM metadata."
10761 msgstr ""
10762
10763 # type: textblock
10764 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10765 msgid "You can filter whole block devices or individual partitions."
10766 msgstr ""
10767
10768 # type: textblock
10769 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10770 msgid ""
10771 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10772 "filesystem), even if you are not filtering out that VG."
10773 msgstr ""
10774
10775 # type: =head2
10776 #: ../src/guestfs-actions.pod:3746
10777 msgid "guestfs_lvremove"
10778 msgstr ""
10779
10780 # type: verbatim
10781 #: ../src/guestfs-actions.pod:3748
10782 #, no-wrap
10783 msgid ""
10784 " int\n"
10785 " guestfs_lvremove (guestfs_h *g,\n"
10786 "                   const char *device);\n"
10787 "\n"
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10792 msgid ""
10793 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10794 "LV, such as C</dev/VG/LV>."
10795 msgstr ""
10796
10797 # type: textblock
10798 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10799 msgid ""
10800 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10801 "dev/VG>."
10802 msgstr ""
10803
10804 # type: textblock
10805 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914
10806 #: ../src/guestfs-actions.pod:6644
10807 msgid "(Added in 1.0.13)"
10808 msgstr ""
10809
10810 # type: =head2
10811 #: ../src/guestfs-actions.pod:3762
10812 msgid "guestfs_lvrename"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #: ../src/guestfs-actions.pod:3764
10817 #, no-wrap
10818 msgid ""
10819 " int\n"
10820 " guestfs_lvrename (guestfs_h *g,\n"
10821 "                   const char *logvol,\n"
10822 "                   const char *newlogvol);\n"
10823 "\n"
10824 msgstr ""
10825
10826 # type: textblock
10827 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10828 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10829 msgstr ""
10830
10831 # type: textblock
10832 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10833 msgid "(Added in 1.0.83)"
10834 msgstr ""
10835
10836 # type: =head2
10837 #: ../src/guestfs-actions.pod:3775
10838 msgid "guestfs_lvresize"
10839 msgstr ""
10840
10841 # type: verbatim
10842 #: ../src/guestfs-actions.pod:3777
10843 #, no-wrap
10844 msgid ""
10845 " int\n"
10846 " guestfs_lvresize (guestfs_h *g,\n"
10847 "                   const char *device,\n"
10848 "                   int mbytes);\n"
10849 "\n"
10850 msgstr ""
10851
10852 # type: textblock
10853 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10854 msgid ""
10855 "This resizes (expands or shrinks) an existing LVM logical volume to "
10856 "C<mbytes>.  When reducing, data in the reduced part is lost."
10857 msgstr ""
10858
10859 # type: =head2
10860 #: ../src/guestfs-actions.pod:3790
10861 msgid "guestfs_lvresize_free"
10862 msgstr ""
10863
10864 # type: verbatim
10865 #: ../src/guestfs-actions.pod:3792
10866 #, no-wrap
10867 msgid ""
10868 " int\n"
10869 " guestfs_lvresize_free (guestfs_h *g,\n"
10870 "                        const char *lv,\n"
10871 "                        int percent);\n"
10872 "\n"
10873 msgstr ""
10874
10875 # type: textblock
10876 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10877 msgid ""
10878 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10879 "remaining free space in the volume group.  Commonly you would call this with "
10880 "pc = 100 which expands the logical volume as much as possible, using all "
10881 "remaining free space in the volume group."
10882 msgstr ""
10883
10884 # type: textblock
10885 #: ../src/guestfs-actions.pod:3805
10886 msgid "(Added in 1.3.3)"
10887 msgstr ""
10888
10889 # type: =head2
10890 #: ../src/guestfs-actions.pod:3807
10891 msgid "guestfs_lvs"
10892 msgstr ""
10893
10894 # type: verbatim
10895 #: ../src/guestfs-actions.pod:3809
10896 #, no-wrap
10897 msgid ""
10898 " char **\n"
10899 " guestfs_lvs (guestfs_h *g);\n"
10900 "\n"
10901 msgstr ""
10902
10903 # type: textblock
10904 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10905 msgid ""
10906 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10907 "(8)> command."
10908 msgstr ""
10909
10910 # type: textblock
10911 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10912 msgid ""
10913 "This returns a list of the logical volume device names (eg. C</dev/"
10914 "VolGroup00/LogVol00>)."
10915 msgstr ""
10916
10917 # type: textblock
10918 #: ../src/guestfs-actions.pod:3818
10919 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10920 msgstr ""
10921
10922 # type: =head2
10923 #: ../src/guestfs-actions.pod:3826
10924 msgid "guestfs_lvs_full"
10925 msgstr ""
10926
10927 # type: verbatim
10928 #: ../src/guestfs-actions.pod:3828
10929 #, no-wrap
10930 msgid ""
10931 " struct guestfs_lvm_lv_list *\n"
10932 " guestfs_lvs_full (guestfs_h *g);\n"
10933 "\n"
10934 msgstr ""
10935
10936 # type: textblock
10937 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10938 msgid ""
10939 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10940 "(8)> command.  The \"full\" version includes all fields."
10941 msgstr ""
10942
10943 # type: textblock
10944 #: ../src/guestfs-actions.pod:3834
10945 msgid ""
10946 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10947 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10948 msgstr ""
10949
10950 # type: =head2
10951 #: ../src/guestfs-actions.pod:3840
10952 msgid "guestfs_lvuuid"
10953 msgstr ""
10954
10955 # type: verbatim
10956 #: ../src/guestfs-actions.pod:3842
10957 #, no-wrap
10958 msgid ""
10959 " char *\n"
10960 " guestfs_lvuuid (guestfs_h *g,\n"
10961 "                 const char *device);\n"
10962 "\n"
10963 msgstr ""
10964
10965 # type: textblock
10966 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10967 msgid "This command returns the UUID of the LVM LV C<device>."
10968 msgstr ""
10969
10970 # type: =head2
10971 #: ../src/guestfs-actions.pod:3853
10972 msgid "guestfs_lxattrlist"
10973 msgstr ""
10974
10975 # type: verbatim
10976 #: ../src/guestfs-actions.pod:3855
10977 #, no-wrap
10978 msgid ""
10979 " struct guestfs_xattr_list *\n"
10980 " guestfs_lxattrlist (guestfs_h *g,\n"
10981 "                     const char *path,\n"
10982 "                     char *const *names);\n"
10983 "\n"
10984 msgstr ""
10985
10986 # type: textblock
10987 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
10988 msgid ""
10989 "This call allows you to get the extended attributes of multiple files, where "
10990 "all files are in the directory C<path>.  C<names> is the list of files from "
10991 "this directory."
10992 msgstr ""
10993
10994 # type: textblock
10995 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
10996 msgid ""
10997 "On return you get a flat list of xattr structs which must be interpreted "
10998 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10999 "C<attrval> in this struct is zero-length to indicate there was an error "
11000 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11001 "number (the number of following attributes for this file, which could be C<"
11002 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11003 "for the first named file.  This repeats for the second and subsequent files."
11004 msgstr ""
11005
11006 # type: textblock
11007 #: ../src/guestfs-actions.pod:3874
11008 msgid ""
11009 "This call is intended for programs that want to efficiently list a directory "
11010 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11011 "a similarly efficient call for getting standard stats.  Very long directory "
11012 "listings might cause the protocol message size to be exceeded, causing this "
11013 "call to fail.  The caller must split up such requests into smaller groups of "
11014 "names."
11015 msgstr ""
11016
11017 # type: =head2
11018 #: ../src/guestfs-actions.pod:3888
11019 msgid "guestfs_mkdir"
11020 msgstr ""
11021
11022 # type: verbatim
11023 #: ../src/guestfs-actions.pod:3890
11024 #, no-wrap
11025 msgid ""
11026 " int\n"
11027 " guestfs_mkdir (guestfs_h *g,\n"
11028 "                const char *path);\n"
11029 "\n"
11030 msgstr ""
11031
11032 # type: textblock
11033 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
11034 msgid "Create a directory named C<path>."
11035 msgstr ""
11036
11037 # type: =head2
11038 #: ../src/guestfs-actions.pod:3900
11039 msgid "guestfs_mkdir_mode"
11040 msgstr ""
11041
11042 # type: verbatim
11043 #: ../src/guestfs-actions.pod:3902
11044 #, no-wrap
11045 msgid ""
11046 " int\n"
11047 " guestfs_mkdir_mode (guestfs_h *g,\n"
11048 "                     const char *path,\n"
11049 "                     int mode);\n"
11050 "\n"
11051 msgstr ""
11052
11053 # type: textblock
11054 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
11055 msgid ""
11056 "This command creates a directory, setting the initial permissions of the "
11057 "directory to C<mode>."
11058 msgstr ""
11059
11060 # type: textblock
11061 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
11062 msgid ""
11063 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11064 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11065 "other ways."
11066 msgstr ""
11067
11068 # type: textblock
11069 #: ../src/guestfs-actions.pod:3914
11070 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11071 msgstr ""
11072
11073 # type: =head2
11074 #: ../src/guestfs-actions.pod:3920
11075 msgid "guestfs_mkdir_p"
11076 msgstr ""
11077
11078 # type: verbatim
11079 #: ../src/guestfs-actions.pod:3922
11080 #, no-wrap
11081 msgid ""
11082 " int\n"
11083 " guestfs_mkdir_p (guestfs_h *g,\n"
11084 "                  const char *path);\n"
11085 "\n"
11086 msgstr ""
11087
11088 # type: textblock
11089 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
11090 msgid ""
11091 "Create a directory named C<path>, creating any parent directories as "
11092 "necessary.  This is like the C<mkdir -p> shell command."
11093 msgstr ""
11094
11095 # type: =head2
11096 #: ../src/guestfs-actions.pod:3933
11097 msgid "guestfs_mkdtemp"
11098 msgstr ""
11099
11100 # type: verbatim
11101 #: ../src/guestfs-actions.pod:3935
11102 #, no-wrap
11103 msgid ""
11104 " char *\n"
11105 " guestfs_mkdtemp (guestfs_h *g,\n"
11106 "                  const char *template);\n"
11107 "\n"
11108 msgstr ""
11109
11110 # type: textblock
11111 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
11112 msgid ""
11113 "This command creates a temporary directory.  The C<template> parameter "
11114 "should be a full pathname for the temporary directory name with the final "
11115 "six characters being \"XXXXXX\"."
11116 msgstr ""
11117
11118 # type: textblock
11119 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
11120 msgid ""
11121 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11122 "being suitable for Windows filesystems."
11123 msgstr ""
11124
11125 # type: textblock
11126 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
11127 msgid "The name of the temporary directory that was created is returned."
11128 msgstr ""
11129
11130 # type: textblock
11131 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
11132 msgid "The temporary directory is created with mode 0700 and is owned by root."
11133 msgstr ""
11134
11135 # type: textblock
11136 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
11137 msgid ""
11138 "The caller is responsible for deleting the temporary directory and its "
11139 "contents after use."
11140 msgstr ""
11141
11142 # type: textblock
11143 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
11144 msgid "See also: L<mkdtemp(3)>"
11145 msgstr ""
11146
11147 # type: =head2
11148 #: ../src/guestfs-actions.pod:3963
11149 msgid "guestfs_mke2fs_J"
11150 msgstr ""
11151
11152 # type: verbatim
11153 #: ../src/guestfs-actions.pod:3965
11154 #, no-wrap
11155 msgid ""
11156 " int\n"
11157 " guestfs_mke2fs_J (guestfs_h *g,\n"
11158 "                   const char *fstype,\n"
11159 "                   int blocksize,\n"
11160 "                   const char *device,\n"
11161 "                   const char *journal);\n"
11162 "\n"
11163 msgstr ""
11164
11165 # type: textblock
11166 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
11167 msgid ""
11168 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11169 "C<journal>.  It is equivalent to the command:"
11170 msgstr ""
11171
11172 # type: verbatim
11173 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
11174 #, no-wrap
11175 msgid ""
11176 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11177 "\n"
11178 msgstr ""
11179
11180 # type: textblock
11181 #: ../src/guestfs-actions.pod:3978
11182 msgid "See also C<guestfs_mke2journal>."
11183 msgstr ""
11184
11185 # type: textblock
11186 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000
11187 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034
11188 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062
11189 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
11190 msgid "(Added in 1.0.68)"
11191 msgstr ""
11192
11193 # type: =head2
11194 #: ../src/guestfs-actions.pod:3984
11195 msgid "guestfs_mke2fs_JL"
11196 msgstr ""
11197
11198 # type: verbatim
11199 #: ../src/guestfs-actions.pod:3986
11200 #, no-wrap
11201 msgid ""
11202 " int\n"
11203 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11204 "                    const char *fstype,\n"
11205 "                    int blocksize,\n"
11206 "                    const char *device,\n"
11207 "                    const char *label);\n"
11208 "\n"
11209 msgstr ""
11210
11211 # type: textblock
11212 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
11213 msgid ""
11214 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11215 "the journal labeled C<label>."
11216 msgstr ""
11217
11218 # type: textblock
11219 #: ../src/guestfs-actions.pod:3996
11220 msgid "See also C<guestfs_mke2journal_L>."
11221 msgstr ""
11222
11223 # type: =head2
11224 #: ../src/guestfs-actions.pod:4002
11225 msgid "guestfs_mke2fs_JU"
11226 msgstr ""
11227
11228 # type: verbatim
11229 #: ../src/guestfs-actions.pod:4004
11230 #, no-wrap
11231 msgid ""
11232 " int\n"
11233 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11234 "                    const char *fstype,\n"
11235 "                    int blocksize,\n"
11236 "                    const char *device,\n"
11237 "                    const char *uuid);\n"
11238 "\n"
11239 msgstr ""
11240
11241 # type: textblock
11242 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
11243 msgid ""
11244 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11245 "the journal with UUID C<uuid>."
11246 msgstr ""
11247
11248 # type: textblock
11249 #: ../src/guestfs-actions.pod:4014
11250 msgid "See also C<guestfs_mke2journal_U>."
11251 msgstr ""
11252
11253 # type: =head2
11254 #: ../src/guestfs-actions.pod:4020
11255 msgid "guestfs_mke2journal"
11256 msgstr ""
11257
11258 # type: verbatim
11259 #: ../src/guestfs-actions.pod:4022
11260 #, no-wrap
11261 msgid ""
11262 " int\n"
11263 " guestfs_mke2journal (guestfs_h *g,\n"
11264 "                      int blocksize,\n"
11265 "                      const char *device);\n"
11266 "\n"
11267 msgstr ""
11268
11269 # type: textblock
11270 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
11271 msgid ""
11272 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11273 "command:"
11274 msgstr ""
11275
11276 # type: verbatim
11277 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
11278 #, no-wrap
11279 msgid ""
11280 " mke2fs -O journal_dev -b blocksize device\n"
11281 "\n"
11282 msgstr ""
11283
11284 # type: =head2
11285 #: ../src/guestfs-actions.pod:4036
11286 msgid "guestfs_mke2journal_L"
11287 msgstr ""
11288
11289 # type: verbatim
11290 #: ../src/guestfs-actions.pod:4038
11291 #, no-wrap
11292 msgid ""
11293 " int\n"
11294 " guestfs_mke2journal_L (guestfs_h *g,\n"
11295 "                        int blocksize,\n"
11296 "                        const char *label,\n"
11297 "                        const char *device);\n"
11298 "\n"
11299 msgstr ""
11300
11301 # type: textblock
11302 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
11303 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11304 msgstr ""
11305
11306 # type: =head2
11307 #: ../src/guestfs-actions.pod:4050
11308 msgid "guestfs_mke2journal_U"
11309 msgstr ""
11310
11311 # type: verbatim
11312 #: ../src/guestfs-actions.pod:4052
11313 #, no-wrap
11314 msgid ""
11315 " int\n"
11316 " guestfs_mke2journal_U (guestfs_h *g,\n"
11317 "                        int blocksize,\n"
11318 "                        const char *uuid,\n"
11319 "                        const char *device);\n"
11320 "\n"
11321 msgstr ""
11322
11323 # type: textblock
11324 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
11325 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11326 msgstr ""
11327
11328 # type: =head2
11329 #: ../src/guestfs-actions.pod:4064
11330 msgid "guestfs_mkfifo"
11331 msgstr ""
11332
11333 # type: verbatim
11334 #: ../src/guestfs-actions.pod:4066
11335 #, no-wrap
11336 msgid ""
11337 " int\n"
11338 " guestfs_mkfifo (guestfs_h *g,\n"
11339 "                 int mode,\n"
11340 "                 const char *path);\n"
11341 "\n"
11342 msgstr ""
11343
11344 # type: textblock
11345 #: ../src/guestfs-actions.pod:4071
11346 msgid ""
11347 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11348 "is just a convenient wrapper around C<guestfs_mknod>."
11349 msgstr ""
11350
11351 # type: =head2
11352 #: ../src/guestfs-actions.pod:4081
11353 msgid "guestfs_mkfs"
11354 msgstr ""
11355
11356 # type: verbatim
11357 #: ../src/guestfs-actions.pod:4083
11358 #, no-wrap
11359 msgid ""
11360 " int\n"
11361 " guestfs_mkfs (guestfs_h *g,\n"
11362 "               const char *fstype,\n"
11363 "               const char *device);\n"
11364 "\n"
11365 msgstr ""
11366
11367 # type: textblock
11368 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
11369 msgid ""
11370 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11371 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11372 msgstr ""
11373
11374 # type: =head2
11375 #: ../src/guestfs-actions.pod:4096
11376 msgid "guestfs_mkfs_b"
11377 msgstr ""
11378
11379 # type: verbatim
11380 #: ../src/guestfs-actions.pod:4098
11381 #, no-wrap
11382 msgid ""
11383 " int\n"
11384 " guestfs_mkfs_b (guestfs_h *g,\n"
11385 "                 const char *fstype,\n"
11386 "                 int blocksize,\n"
11387 "                 const char *device);\n"
11388 "\n"
11389 msgstr ""
11390
11391 # type: textblock
11392 #: ../src/guestfs-actions.pod:4104
11393 msgid ""
11394 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11395 "block size of the resulting filesystem.  Supported block sizes depend on the "
11396 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11397 msgstr ""
11398
11399 # type: textblock
11400 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
11401 msgid ""
11402 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11403 "cluster size."
11404 msgstr ""
11405
11406 # type: =head2
11407 #: ../src/guestfs-actions.pod:4116
11408 msgid "guestfs_mkmountpoint"
11409 msgstr ""
11410
11411 # type: verbatim
11412 #: ../src/guestfs-actions.pod:4118
11413 #, no-wrap
11414 msgid ""
11415 " int\n"
11416 " guestfs_mkmountpoint (guestfs_h *g,\n"
11417 "                       const char *exemptpath);\n"
11418 "\n"
11419 msgstr ""
11420
11421 # type: textblock
11422 #: ../src/guestfs-actions.pod:4122
11423 msgid ""
11424 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11425 "that can be used to create extra mountpoints before mounting the first "
11426 "filesystem."
11427 msgstr ""
11428
11429 # type: textblock
11430 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11431 msgid ""
11432 "These calls are I<only> necessary in some very limited circumstances, mainly "
11433 "the case where you want to mount a mix of unrelated and/or read-only "
11434 "filesystems together."
11435 msgstr ""
11436
11437 # type: textblock
11438 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
11439 msgid ""
11440 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11441 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11442 "inside that.  You can unpack this as follows in guestfish:"
11443 msgstr ""
11444
11445 # type: verbatim
11446 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
11447 #, no-wrap
11448 msgid ""
11449 " add-ro Fedora-11-i686-Live.iso\n"
11450 " run\n"
11451 " mkmountpoint /cd\n"
11452 " mkmountpoint /sqsh\n"
11453 " mkmountpoint /ext3fs\n"
11454 " mount /dev/sda /cd\n"
11455 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11456 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11457 "\n"
11458 msgstr ""
11459
11460 # type: textblock
11461 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
11462 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11463 msgstr ""
11464
11465 # type: textblock
11466 #: ../src/guestfs-actions.pod:4146
11467 msgid ""
11468 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11469 "may get unexpected errors if you try to mix these calls.  It is safest to "
11470 "manually unmount filesystems and remove mountpoints after use."
11471 msgstr ""
11472
11473 # type: textblock
11474 #: ../src/guestfs-actions.pod:4150
11475 msgid ""
11476 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11477 "first, so for this to work for manual mountpoints, you must ensure that the "
11478 "innermost mountpoints have the longest pathnames, as in the example code "
11479 "above."
11480 msgstr ""
11481
11482 # type: textblock
11483 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11484 msgid ""
11485 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11486 msgstr ""
11487
11488 # type: textblock
11489 #: ../src/guestfs-actions.pod:4157
11490 msgid ""
11491 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11492 "means that C<guestfs_umount_all> is called when the handle is closed which "
11493 "can also trigger these issues."
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422
11498 #: ../src/guestfs-actions.pod:5315
11499 msgid "(Added in 1.0.62)"
11500 msgstr ""
11501
11502 # type: =head2
11503 #: ../src/guestfs-actions.pod:4165
11504 msgid "guestfs_mknod"
11505 msgstr ""
11506
11507 # type: verbatim
11508 #: ../src/guestfs-actions.pod:4167
11509 #, no-wrap
11510 msgid ""
11511 " int\n"
11512 " guestfs_mknod (guestfs_h *g,\n"
11513 "                int mode,\n"
11514 "                int devmajor,\n"
11515 "                int devminor,\n"
11516 "                const char *path);\n"
11517 "\n"
11518 msgstr ""
11519
11520 # type: textblock
11521 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11522 msgid ""
11523 "This call creates block or character special devices, or named pipes (FIFOs)."
11524 msgstr ""
11525
11526 # type: textblock
11527 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11528 msgid ""
11529 "The C<mode> parameter should be the mode, using the standard constants.  "
11530 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11531 "used when creating block and character special devices."
11532 msgstr ""
11533
11534 # type: textblock
11535 #: ../src/guestfs-actions.pod:4182
11536 msgid ""
11537 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11538 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11539 "regular file).  These constants are available in the standard Linux header "
11540 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11541 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11542 "the appropriate constant for you."
11543 msgstr ""
11544
11545 # type: =head2
11546 #: ../src/guestfs-actions.pod:4196
11547 msgid "guestfs_mknod_b"
11548 msgstr ""
11549
11550 # type: verbatim
11551 #: ../src/guestfs-actions.pod:4198
11552 #, no-wrap
11553 msgid ""
11554 " int\n"
11555 " guestfs_mknod_b (guestfs_h *g,\n"
11556 "                  int mode,\n"
11557 "                  int devmajor,\n"
11558 "                  int devminor,\n"
11559 "                  const char *path);\n"
11560 "\n"
11561 msgstr ""
11562
11563 # type: textblock
11564 #: ../src/guestfs-actions.pod:4205
11565 msgid ""
11566 "This call creates a block device node called C<path> with mode C<mode> and "
11567 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11568 "wrapper around C<guestfs_mknod>."
11569 msgstr ""
11570
11571 # type: =head2
11572 #: ../src/guestfs-actions.pod:4215
11573 msgid "guestfs_mknod_c"
11574 msgstr ""
11575
11576 # type: verbatim
11577 #: ../src/guestfs-actions.pod:4217
11578 #, no-wrap
11579 msgid ""
11580 " int\n"
11581 " guestfs_mknod_c (guestfs_h *g,\n"
11582 "                  int mode,\n"
11583 "                  int devmajor,\n"
11584 "                  int devminor,\n"
11585 "                  const char *path);\n"
11586 "\n"
11587 msgstr ""
11588
11589 # type: textblock
11590 #: ../src/guestfs-actions.pod:4224
11591 msgid ""
11592 "This call creates a char device node called C<path> with mode C<mode> and "
11593 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11594 "wrapper around C<guestfs_mknod>."
11595 msgstr ""
11596
11597 # type: =head2
11598 #: ../src/guestfs-actions.pod:4234
11599 msgid "guestfs_mkswap"
11600 msgstr ""
11601
11602 # type: verbatim
11603 #: ../src/guestfs-actions.pod:4236
11604 #, no-wrap
11605 msgid ""
11606 " int\n"
11607 " guestfs_mkswap (guestfs_h *g,\n"
11608 "                 const char *device);\n"
11609 "\n"
11610 msgstr ""
11611
11612 # type: textblock
11613 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11614 msgid "Create a swap partition on C<device>."
11615 msgstr ""
11616
11617 # type: =head2
11618 #: ../src/guestfs-actions.pod:4246
11619 msgid "guestfs_mkswap_L"
11620 msgstr ""
11621
11622 # type: verbatim
11623 #: ../src/guestfs-actions.pod:4248
11624 #, no-wrap
11625 msgid ""
11626 " int\n"
11627 " guestfs_mkswap_L (guestfs_h *g,\n"
11628 "                   const char *label,\n"
11629 "                   const char *device);\n"
11630 "\n"
11631 msgstr ""
11632
11633 # type: textblock
11634 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11635 msgid "Create a swap partition on C<device> with label C<label>."
11636 msgstr ""
11637
11638 # type: textblock
11639 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11640 msgid ""
11641 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11642 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11643 "or swap tools."
11644 msgstr ""
11645
11646 # type: =head2
11647 #: ../src/guestfs-actions.pod:4263
11648 msgid "guestfs_mkswap_U"
11649 msgstr ""
11650
11651 # type: verbatim
11652 #: ../src/guestfs-actions.pod:4265
11653 #, no-wrap
11654 msgid ""
11655 " int\n"
11656 " guestfs_mkswap_U (guestfs_h *g,\n"
11657 "                   const char *uuid,\n"
11658 "                   const char *device);\n"
11659 "\n"
11660 msgstr ""
11661
11662 # type: textblock
11663 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11664 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11665 msgstr ""
11666
11667 # type: =head2
11668 #: ../src/guestfs-actions.pod:4276
11669 msgid "guestfs_mkswap_file"
11670 msgstr ""
11671
11672 # type: verbatim
11673 #: ../src/guestfs-actions.pod:4278
11674 #, no-wrap
11675 msgid ""
11676 " int\n"
11677 " guestfs_mkswap_file (guestfs_h *g,\n"
11678 "                      const char *path);\n"
11679 "\n"
11680 msgstr ""
11681
11682 # type: textblock
11683 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11684 msgid "Create a swap file."
11685 msgstr ""
11686
11687 # type: textblock
11688 #: ../src/guestfs-actions.pod:4284
11689 msgid ""
11690 "This command just writes a swap file signature to an existing file.  To "
11691 "create the file itself, use something like C<guestfs_fallocate>."
11692 msgstr ""
11693
11694 # type: =head2
11695 #: ../src/guestfs-actions.pod:4291
11696 msgid "guestfs_modprobe"
11697 msgstr ""
11698
11699 # type: verbatim
11700 #: ../src/guestfs-actions.pod:4293
11701 #, no-wrap
11702 msgid ""
11703 " int\n"
11704 " guestfs_modprobe (guestfs_h *g,\n"
11705 "                   const char *modulename);\n"
11706 "\n"
11707 msgstr ""
11708
11709 # type: textblock
11710 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11711 msgid "This loads a kernel module in the appliance."
11712 msgstr ""
11713
11714 # type: textblock
11715 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11716 msgid ""
11717 "The kernel module must have been whitelisted when libguestfs was built (see "
11718 "C<appliance/kmod.whitelist.in> in the source)."
11719 msgstr ""
11720
11721 # type: =head2
11722 #: ../src/guestfs-actions.pod:4306
11723 msgid "guestfs_mount"
11724 msgstr ""
11725
11726 # type: verbatim
11727 #: ../src/guestfs-actions.pod:4308
11728 #, no-wrap
11729 msgid ""
11730 " int\n"
11731 " guestfs_mount (guestfs_h *g,\n"
11732 "                const char *device,\n"
11733 "                const char *mountpoint);\n"
11734 "\n"
11735 msgstr ""
11736
11737 # type: textblock
11738 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11739 msgid ""
11740 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11741 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11742 "those block devices contain partitions, they will have the usual names (eg. "
11743 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11744 msgstr ""
11745
11746 # type: textblock
11747 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11748 msgid ""
11749 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11750 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11751 "mounted on directories which already exist."
11752 msgstr ""
11753
11754 # type: textblock
11755 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11756 msgid ""
11757 "The mounted filesystem is writable, if we have sufficient permissions on the "
11758 "underlying device."
11759 msgstr ""
11760
11761 # type: textblock
11762 #: ../src/guestfs-actions.pod:4327
11763 msgid ""
11764 "B<Important note:> When you use this call, the filesystem options C<sync> "
11765 "and C<noatime> are set implicitly.  This was originally done because we "
11766 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11767 "very large negative performance impact and negligible effect on "
11768 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11769 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11770 "(use an empty string for the first parameter if you don't want any options)."
11771 msgstr ""
11772
11773 # type: =head2
11774 #: ../src/guestfs-actions.pod:4341
11775 msgid "guestfs_mount_loop"
11776 msgstr ""
11777
11778 # type: verbatim
11779 #: ../src/guestfs-actions.pod:4343
11780 #, no-wrap
11781 msgid ""
11782 " int\n"
11783 " guestfs_mount_loop (guestfs_h *g,\n"
11784 "                     const char *file,\n"
11785 "                     const char *mountpoint);\n"
11786 "\n"
11787 msgstr ""
11788
11789 # type: textblock
11790 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11791 msgid ""
11792 "This command lets you mount C<file> (a filesystem image in a file) on a "
11793 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11794 "mountpoint>."
11795 msgstr ""
11796
11797 # type: =head2
11798 #: ../src/guestfs-actions.pod:4356
11799 msgid "guestfs_mount_options"
11800 msgstr ""
11801
11802 # type: verbatim
11803 #: ../src/guestfs-actions.pod:4358
11804 #, no-wrap
11805 msgid ""
11806 " int\n"
11807 " guestfs_mount_options (guestfs_h *g,\n"
11808 "                        const char *options,\n"
11809 "                        const char *device,\n"
11810 "                        const char *mountpoint);\n"
11811 "\n"
11812 msgstr ""
11813
11814 # type: textblock
11815 #: ../src/guestfs-actions.pod:4364
11816 msgid ""
11817 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11818 "the mount options as for the L<mount(8)> I<-o> flag."
11819 msgstr ""
11820
11821 # type: textblock
11822 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11823 msgid ""
11824 "If the C<options> parameter is an empty string, then no options are passed "
11825 "(all options default to whatever the filesystem uses)."
11826 msgstr ""
11827
11828 # type: textblock
11829 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388
11830 #: ../src/guestfs-actions.pod:4405
11831 msgid "(Added in 1.0.10)"
11832 msgstr ""
11833
11834 # type: =head2
11835 #: ../src/guestfs-actions.pod:4376
11836 msgid "guestfs_mount_ro"
11837 msgstr ""
11838
11839 # type: verbatim
11840 #: ../src/guestfs-actions.pod:4378
11841 #, no-wrap
11842 msgid ""
11843 " int\n"
11844 " guestfs_mount_ro (guestfs_h *g,\n"
11845 "                   const char *device,\n"
11846 "                   const char *mountpoint);\n"
11847 "\n"
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4383
11852 msgid ""
11853 "This is the same as the C<guestfs_mount> command, but it mounts the "
11854 "filesystem with the read-only (I<-o ro>) flag."
11855 msgstr ""
11856
11857 # type: =head2
11858 #: ../src/guestfs-actions.pod:4390
11859 msgid "guestfs_mount_vfs"
11860 msgstr ""
11861
11862 # type: verbatim
11863 #: ../src/guestfs-actions.pod:4392
11864 #, no-wrap
11865 msgid ""
11866 " int\n"
11867 " guestfs_mount_vfs (guestfs_h *g,\n"
11868 "                    const char *options,\n"
11869 "                    const char *vfstype,\n"
11870 "                    const char *device,\n"
11871 "                    const char *mountpoint);\n"
11872 "\n"
11873 msgstr ""
11874
11875 # type: textblock
11876 #: ../src/guestfs-actions.pod:4399
11877 msgid ""
11878 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11879 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11880 "t> flags."
11881 msgstr ""
11882
11883 # type: =head2
11884 #: ../src/guestfs-actions.pod:4407
11885 msgid "guestfs_mountpoints"
11886 msgstr ""
11887
11888 # type: verbatim
11889 #: ../src/guestfs-actions.pod:4409
11890 #, no-wrap
11891 msgid ""
11892 " char **\n"
11893 " guestfs_mountpoints (guestfs_h *g);\n"
11894 "\n"
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4412
11899 msgid ""
11900 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11901 "devices.  This one returns a hash table (map) of device name to directory "
11902 "where the device is mounted."
11903 msgstr ""
11904
11905 # type: =head2
11906 #: ../src/guestfs-actions.pod:4424
11907 msgid "guestfs_mounts"
11908 msgstr ""
11909
11910 # type: verbatim
11911 #: ../src/guestfs-actions.pod:4426
11912 #, no-wrap
11913 msgid ""
11914 " char **\n"
11915 " guestfs_mounts (guestfs_h *g);\n"
11916 "\n"
11917 msgstr ""
11918
11919 # type: textblock
11920 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11921 msgid ""
11922 "This returns the list of currently mounted filesystems.  It returns the list "
11923 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11924 msgstr ""
11925
11926 # type: textblock
11927 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11928 msgid "Some internal mounts are not shown."
11929 msgstr ""
11930
11931 # type: textblock
11932 #: ../src/guestfs-actions.pod:4434
11933 msgid "See also: C<guestfs_mountpoints>"
11934 msgstr ""
11935
11936 # type: =head2
11937 #: ../src/guestfs-actions.pod:4442
11938 msgid "guestfs_mv"
11939 msgstr ""
11940
11941 # type: verbatim
11942 #: ../src/guestfs-actions.pod:4444
11943 #, no-wrap
11944 msgid ""
11945 " int\n"
11946 " guestfs_mv (guestfs_h *g,\n"
11947 "             const char *src,\n"
11948 "             const char *dest);\n"
11949 "\n"
11950 msgstr ""
11951
11952 # type: textblock
11953 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11954 msgid ""
11955 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11956 "destination filename or destination directory."
11957 msgstr ""
11958
11959 # type: =head2
11960 #: ../src/guestfs-actions.pod:4456
11961 msgid "guestfs_ntfs_3g_probe"
11962 msgstr ""
11963
11964 # type: verbatim
11965 #: ../src/guestfs-actions.pod:4458
11966 #, no-wrap
11967 msgid ""
11968 " int\n"
11969 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11970 "                        int rw,\n"
11971 "                        const char *device);\n"
11972 "\n"
11973 msgstr ""
11974
11975 # type: textblock
11976 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11977 msgid ""
11978 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11979 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11980 "write, and some cannot be mounted at all)."
11981 msgstr ""
11982
11983 # type: textblock
11984 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11985 msgid ""
11986 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11987 "can be mounted read-write.  Set it to false if you want to test if the "
11988 "volume can be mounted read-only."
11989 msgstr ""
11990
11991 # type: textblock
11992 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
11993 msgid ""
11994 "The return value is an integer which C<0> if the operation would succeed, or "
11995 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11996 msgstr ""
11997
11998 # type: textblock
11999 #: ../src/guestfs-actions.pod:4477
12000 msgid "(Added in 1.0.43)"
12001 msgstr ""
12002
12003 # type: =head2
12004 #: ../src/guestfs-actions.pod:4479
12005 msgid "guestfs_ntfsresize"
12006 msgstr ""
12007
12008 # type: verbatim
12009 #: ../src/guestfs-actions.pod:4481
12010 #, no-wrap
12011 msgid ""
12012 " int\n"
12013 " guestfs_ntfsresize (guestfs_h *g,\n"
12014 "                     const char *device);\n"
12015 "\n"
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
12020 msgid ""
12021 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12022 "size of the underlying device.  See also L<ntfsresize(8)>."
12023 msgstr ""
12024
12025 # type: =head2
12026 #: ../src/guestfs-actions.pod:4493
12027 msgid "guestfs_ntfsresize_size"
12028 msgstr ""
12029
12030 # type: verbatim
12031 #: ../src/guestfs-actions.pod:4495
12032 #, no-wrap
12033 msgid ""
12034 " int\n"
12035 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12036 "                          const char *device,\n"
12037 "                          int64_t size);\n"
12038 "\n"
12039 msgstr ""
12040
12041 # type: textblock
12042 #: ../src/guestfs-actions.pod:4500
12043 msgid ""
12044 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12045 "to specify the new size (in bytes) explicitly."
12046 msgstr ""
12047
12048 # type: textblock
12049 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941
12050 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
12051 msgid "(Added in 1.3.14)"
12052 msgstr ""
12053
12054 # type: =head2
12055 #: ../src/guestfs-actions.pod:4507
12056 msgid "guestfs_part_add"
12057 msgstr ""
12058
12059 # type: verbatim
12060 #: ../src/guestfs-actions.pod:4509
12061 #, no-wrap
12062 msgid ""
12063 " int\n"
12064 " guestfs_part_add (guestfs_h *g,\n"
12065 "                   const char *device,\n"
12066 "                   const char *prlogex,\n"
12067 "                   int64_t startsect,\n"
12068 "                   int64_t endsect);\n"
12069 "\n"
12070 msgstr ""
12071
12072 # type: textblock
12073 #: ../src/guestfs-actions.pod:4516
12074 msgid ""
12075 "This command adds a partition to C<device>.  If there is no partition table "
12076 "on the device, call C<guestfs_part_init> first."
12077 msgstr ""
12078
12079 # type: textblock
12080 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
12081 msgid ""
12082 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12083 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12084 "C<logical>) and C<e> (or C<extended>) partition types."
12085 msgstr ""
12086
12087 # type: textblock
12088 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
12089 msgid ""
12090 "C<startsect> and C<endsect> are the start and end of the partition in "
12091 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12092 "from the end of the disk (C<-1> is the last sector)."
12093 msgstr ""
12094
12095 # type: textblock
12096 #: ../src/guestfs-actions.pod:4528
12097 msgid ""
12098 "Creating a partition which covers the whole disk is not so easy.  Use "
12099 "C<guestfs_part_disk> to do that."
12100 msgstr ""
12101
12102 # type: textblock
12103 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571
12104 #: ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702
12105 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759
12106 #: ../src/guestfs-actions.pod:4799
12107 msgid "(Added in 1.0.78)"
12108 msgstr ""
12109
12110 # type: =head2
12111 #: ../src/guestfs-actions.pod:4535
12112 msgid "guestfs_part_del"
12113 msgstr ""
12114
12115 # type: verbatim
12116 #: ../src/guestfs-actions.pod:4537
12117 #, no-wrap
12118 msgid ""
12119 " int\n"
12120 " guestfs_part_del (guestfs_h *g,\n"
12121 "                   const char *device,\n"
12122 "                   int partnum);\n"
12123 "\n"
12124 msgstr ""
12125
12126 # type: textblock
12127 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
12128 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
12133 msgid ""
12134 "Note that in the case of MBR partitioning, deleting an extended partition "
12135 "also deletes any logical partitions it contains."
12136 msgstr ""
12137
12138 # type: =head2
12139 #: ../src/guestfs-actions.pod:4552
12140 msgid "guestfs_part_disk"
12141 msgstr ""
12142
12143 # type: verbatim
12144 #: ../src/guestfs-actions.pod:4554
12145 #, no-wrap
12146 msgid ""
12147 " int\n"
12148 " guestfs_part_disk (guestfs_h *g,\n"
12149 "                    const char *device,\n"
12150 "                    const char *parttype);\n"
12151 "\n"
12152 msgstr ""
12153
12154 # type: textblock
12155 #: ../src/guestfs-actions.pod:4559
12156 msgid ""
12157 "This command is simply a combination of C<guestfs_part_init> followed by "
12158 "C<guestfs_part_add> to create a single primary partition covering the whole "
12159 "disk."
12160 msgstr ""
12161
12162 # type: textblock
12163 #: ../src/guestfs-actions.pod:4563
12164 msgid ""
12165 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12166 "possible values are described in C<guestfs_part_init>."
12167 msgstr ""
12168
12169 # type: =head2
12170 #: ../src/guestfs-actions.pod:4573
12171 msgid "guestfs_part_get_bootable"
12172 msgstr ""
12173
12174 # type: verbatim
12175 #: ../src/guestfs-actions.pod:4575
12176 #, no-wrap
12177 msgid ""
12178 " int\n"
12179 " guestfs_part_get_bootable (guestfs_h *g,\n"
12180 "                            const char *device,\n"
12181 "                            int partnum);\n"
12182 "\n"
12183 msgstr ""
12184
12185 # type: textblock
12186 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
12187 msgid ""
12188 "This command returns true if the partition C<partnum> on C<device> has the "
12189 "bootable flag set."
12190 msgstr ""
12191
12192 # type: textblock
12193 #: ../src/guestfs-actions.pod:4583
12194 msgid "See also C<guestfs_part_set_bootable>."
12195 msgstr ""
12196
12197 # type: =head2
12198 #: ../src/guestfs-actions.pod:4589
12199 msgid "guestfs_part_get_mbr_id"
12200 msgstr ""
12201
12202 # type: verbatim
12203 #: ../src/guestfs-actions.pod:4591
12204 #, no-wrap
12205 msgid ""
12206 " int\n"
12207 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12208 "                          const char *device,\n"
12209 "                          int partnum);\n"
12210 "\n"
12211 msgstr ""
12212
12213 # type: textblock
12214 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
12215 msgid ""
12216 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12217 "partition C<partnum>."
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
12222 msgid ""
12223 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12224 "undefined results for other partition table types (see "
12225 "C<guestfs_part_get_parttype>)."
12226 msgstr ""
12227
12228 # type: =head2
12229 #: ../src/guestfs-actions.pod:4607
12230 msgid "guestfs_part_get_parttype"
12231 msgstr ""
12232
12233 # type: verbatim
12234 #: ../src/guestfs-actions.pod:4609
12235 #, no-wrap
12236 msgid ""
12237 " char *\n"
12238 " guestfs_part_get_parttype (guestfs_h *g,\n"
12239 "                            const char *device);\n"
12240 "\n"
12241 msgstr ""
12242
12243 # type: textblock
12244 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
12245 msgid ""
12246 "This command examines the partition table on C<device> and returns the "
12247 "partition table type (format) being used."
12248 msgstr ""
12249
12250 # type: textblock
12251 #: ../src/guestfs-actions.pod:4616
12252 msgid ""
12253 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12254 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12255 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12256 msgstr ""
12257
12258 # type: =head2
12259 #: ../src/guestfs-actions.pod:4626
12260 msgid "guestfs_part_init"
12261 msgstr ""
12262
12263 # type: verbatim
12264 #: ../src/guestfs-actions.pod:4628
12265 #, no-wrap
12266 msgid ""
12267 " int\n"
12268 " guestfs_part_init (guestfs_h *g,\n"
12269 "                    const char *device,\n"
12270 "                    const char *parttype);\n"
12271 "\n"
12272 msgstr ""
12273
12274 # type: textblock
12275 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
12276 msgid ""
12277 "This creates an empty partition table on C<device> of one of the partition "
12278 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12279 "(for large disks)."
12280 msgstr ""
12281
12282 # type: textblock
12283 #: ../src/guestfs-actions.pod:4637
12284 msgid ""
12285 "Initially there are no partitions.  Following this, you should call "
12286 "C<guestfs_part_add> for each partition required."
12287 msgstr ""
12288
12289 # type: textblock
12290 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
12291 msgid "Possible values for C<parttype> are:"
12292 msgstr ""
12293
12294 # type: =item
12295 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
12296 msgid "B<efi> | B<gpt>"
12297 msgstr ""
12298
12299 # type: textblock
12300 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
12301 msgid "Intel EFI / GPT partition table."
12302 msgstr ""
12303
12304 # type: textblock
12305 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
12306 msgid ""
12307 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12308 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12309 "the C<mbr> format."
12310 msgstr ""
12311
12312 # type: =item
12313 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
12314 msgid "B<mbr> | B<msdos>"
12315 msgstr ""
12316
12317 # type: textblock
12318 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
12319 msgid ""
12320 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12321 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12322 "TB.  For large disks we recommend using C<gpt>."
12323 msgstr ""
12324
12325 # type: textblock
12326 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
12327 msgid ""
12328 "Other partition table types that may work but are not supported include:"
12329 msgstr ""
12330
12331 # type: =item
12332 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
12333 msgid "B<aix>"
12334 msgstr ""
12335
12336 # type: textblock
12337 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
12338 msgid "AIX disk labels."
12339 msgstr ""
12340
12341 # type: =item
12342 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
12343 msgid "B<amiga> | B<rdb>"
12344 msgstr ""
12345
12346 # type: textblock
12347 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
12348 msgid "Amiga \"Rigid Disk Block\" format."
12349 msgstr ""
12350
12351 # type: =item
12352 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
12353 msgid "B<bsd>"
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
12358 msgid "BSD disk labels."
12359 msgstr ""
12360
12361 # type: =item
12362 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
12363 msgid "B<dasd>"
12364 msgstr ""
12365
12366 # type: textblock
12367 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
12368 msgid "DASD, used on IBM mainframes."
12369 msgstr ""
12370
12371 # type: =item
12372 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
12373 msgid "B<dvh>"
12374 msgstr ""
12375
12376 # type: textblock
12377 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
12378 msgid "MIPS/SGI volumes."
12379 msgstr ""
12380
12381 # type: =item
12382 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
12383 msgid "B<mac>"
12384 msgstr ""
12385
12386 # type: textblock
12387 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
12388 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12389 msgstr ""
12390
12391 # type: =item
12392 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
12393 msgid "B<pc98>"
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
12398 msgid "NEC PC-98 format, common in Japan apparently."
12399 msgstr ""
12400
12401 # type: =item
12402 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
12403 msgid "B<sun>"
12404 msgstr ""
12405
12406 # type: textblock
12407 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
12408 msgid "Sun disk labels."
12409 msgstr ""
12410
12411 # type: =head2
12412 #: ../src/guestfs-actions.pod:4704
12413 msgid "guestfs_part_list"
12414 msgstr ""
12415
12416 # type: verbatim
12417 #: ../src/guestfs-actions.pod:4706
12418 #, no-wrap
12419 msgid ""
12420 " struct guestfs_partition_list *\n"
12421 " guestfs_part_list (guestfs_h *g,\n"
12422 "                    const char *device);\n"
12423 "\n"
12424 msgstr ""
12425
12426 # type: textblock
12427 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
12428 msgid ""
12429 "This command parses the partition table on C<device> and returns the list of "
12430 "partitions found."
12431 msgstr ""
12432
12433 # type: textblock
12434 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
12435 msgid "The fields in the returned structure are:"
12436 msgstr ""
12437
12438 # type: =item
12439 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
12440 msgid "B<part_num>"
12441 msgstr ""
12442
12443 # type: textblock
12444 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
12445 msgid "Partition number, counting from 1."
12446 msgstr ""
12447
12448 # type: =item
12449 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
12450 msgid "B<part_start>"
12451 msgstr ""
12452
12453 # type: textblock
12454 #: ../src/guestfs-actions.pod:4723
12455 msgid ""
12456 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12457 "the device's sector size, see C<guestfs_blockdev_getss>."
12458 msgstr ""
12459
12460 # type: =item
12461 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
12462 msgid "B<part_end>"
12463 msgstr ""
12464
12465 # type: textblock
12466 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
12467 msgid "End of the partition in bytes."
12468 msgstr ""
12469
12470 # type: =item
12471 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12472 msgid "B<part_size>"
12473 msgstr ""
12474
12475 # type: textblock
12476 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12477 msgid "Size of the partition in bytes."
12478 msgstr ""
12479
12480 # type: textblock
12481 #: ../src/guestfs-actions.pod:4736
12482 msgid ""
12483 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12484 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12485 "use>."
12486 msgstr ""
12487
12488 # type: =head2
12489 #: ../src/guestfs-actions.pod:4742
12490 msgid "guestfs_part_set_bootable"
12491 msgstr ""
12492
12493 # type: verbatim
12494 #: ../src/guestfs-actions.pod:4744
12495 #, no-wrap
12496 msgid ""
12497 " int\n"
12498 " guestfs_part_set_bootable (guestfs_h *g,\n"
12499 "                            const char *device,\n"
12500 "                            int partnum,\n"
12501 "                            int bootable);\n"
12502 "\n"
12503 msgstr ""
12504
12505 # type: textblock
12506 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12507 msgid ""
12508 "This sets the bootable flag on partition numbered C<partnum> on device "
12509 "C<device>.  Note that partitions are numbered from 1."
12510 msgstr ""
12511
12512 # type: textblock
12513 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12514 msgid ""
12515 "The bootable flag is used by some operating systems (notably Windows) to "
12516 "determine which partition to boot from.  It is by no means universally "
12517 "recognized."
12518 msgstr ""
12519
12520 # type: =head2
12521 #: ../src/guestfs-actions.pod:4761
12522 msgid "guestfs_part_set_mbr_id"
12523 msgstr ""
12524
12525 # type: verbatim
12526 #: ../src/guestfs-actions.pod:4763
12527 #, no-wrap
12528 msgid ""
12529 " int\n"
12530 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12531 "                          const char *device,\n"
12532 "                          int partnum,\n"
12533 "                          int idbyte);\n"
12534 "\n"
12535 msgstr ""
12536
12537 # type: textblock
12538 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12539 msgid ""
12540 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12541 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12542 "documentation are in fact hexadecimal numbers, but usually documented "
12543 "without any leading \"0x\" which might be confusing."
12544 msgstr ""
12545
12546 # type: =head2
12547 #: ../src/guestfs-actions.pod:4783
12548 msgid "guestfs_part_set_name"
12549 msgstr ""
12550
12551 # type: verbatim
12552 #: ../src/guestfs-actions.pod:4785
12553 #, no-wrap
12554 msgid ""
12555 " int\n"
12556 " guestfs_part_set_name (guestfs_h *g,\n"
12557 "                        const char *device,\n"
12558 "                        int partnum,\n"
12559 "                        const char *name);\n"
12560 "\n"
12561 msgstr ""
12562
12563 # type: textblock
12564 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12565 msgid ""
12566 "This sets the partition name on partition numbered C<partnum> on device "
12567 "C<device>.  Note that partitions are numbered from 1."
12568 msgstr ""
12569
12570 # type: textblock
12571 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12572 msgid ""
12573 "The partition name can only be set on certain types of partition table.  "
12574 "This works on C<gpt> but not on C<mbr> partitions."
12575 msgstr ""
12576
12577 # type: =head2
12578 #: ../src/guestfs-actions.pod:4801
12579 msgid "guestfs_part_to_dev"
12580 msgstr ""
12581
12582 # type: verbatim
12583 #: ../src/guestfs-actions.pod:4803
12584 #, no-wrap
12585 msgid ""
12586 " char *\n"
12587 " guestfs_part_to_dev (guestfs_h *g,\n"
12588 "                      const char *partition);\n"
12589 "\n"
12590 msgstr ""
12591
12592 # type: textblock
12593 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12594 msgid ""
12595 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12596 "partition number, returning the device name (eg. \"/dev/sdb\")."
12597 msgstr ""
12598
12599 # type: textblock
12600 #: ../src/guestfs-actions.pod:4811
12601 msgid ""
12602 "The named partition must exist, for example as a string returned from "
12603 "C<guestfs_list_partitions>."
12604 msgstr ""
12605
12606 # type: =head2
12607 #: ../src/guestfs-actions.pod:4819
12608 msgid "guestfs_ping_daemon"
12609 msgstr ""
12610
12611 # type: verbatim
12612 #: ../src/guestfs-actions.pod:4821
12613 #, no-wrap
12614 msgid ""
12615 " int\n"
12616 " guestfs_ping_daemon (guestfs_h *g);\n"
12617 "\n"
12618 msgstr ""
12619
12620 # type: textblock
12621 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12622 msgid ""
12623 "This is a test probe into the guestfs daemon running inside the qemu "
12624 "subprocess.  Calling this function checks that the daemon responds to the "
12625 "ping message, without affecting the daemon or attached block device(s) in "
12626 "any other way."
12627 msgstr ""
12628
12629 # type: =head2
12630 #: ../src/guestfs-actions.pod:4833
12631 msgid "guestfs_pread"
12632 msgstr ""
12633
12634 # type: verbatim
12635 #: ../src/guestfs-actions.pod:4835
12636 #, no-wrap
12637 msgid ""
12638 " char *\n"
12639 " guestfs_pread (guestfs_h *g,\n"
12640 "                const char *path,\n"
12641 "                int count,\n"
12642 "                int64_t offset,\n"
12643 "                size_t *size_r);\n"
12644 "\n"
12645 msgstr ""
12646
12647 # type: textblock
12648 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12649 msgid ""
12650 "This command lets you read part of a file.  It reads C<count> bytes of the "
12651 "file, starting at C<offset>, from file C<path>."
12652 msgstr ""
12653
12654 # type: textblock
12655 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871
12656 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12657 msgid ""
12658 "This may read fewer bytes than requested.  For further details see the "
12659 "L<pread(2)> system call."
12660 msgstr ""
12661
12662 # type: textblock
12663 #: ../src/guestfs-actions.pod:4848
12664 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12665 msgstr ""
12666
12667 # type: =head2
12668 #: ../src/guestfs-actions.pod:4859
12669 msgid "guestfs_pread_device"
12670 msgstr ""
12671
12672 # type: verbatim
12673 #: ../src/guestfs-actions.pod:4861
12674 #, no-wrap
12675 msgid ""
12676 " char *\n"
12677 " guestfs_pread_device (guestfs_h *g,\n"
12678 "                       const char *device,\n"
12679 "                       int count,\n"
12680 "                       int64_t offset,\n"
12681 "                       size_t *size_r);\n"
12682 "\n"
12683 msgstr ""
12684
12685 # type: textblock
12686 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12687 msgid ""
12688 "This command lets you read part of a file.  It reads C<count> bytes of "
12689 "C<device>, starting at C<offset>."
12690 msgstr ""
12691
12692 # type: textblock
12693 #: ../src/guestfs-actions.pod:4874
12694 msgid "See also C<guestfs_pread>."
12695 msgstr ""
12696
12697 # type: textblock
12698 #: ../src/guestfs-actions.pod:4883
12699 msgid "(Added in 1.5.21)"
12700 msgstr ""
12701
12702 # type: =head2
12703 #: ../src/guestfs-actions.pod:4885
12704 msgid "guestfs_pvcreate"
12705 msgstr ""
12706
12707 # type: verbatim
12708 #: ../src/guestfs-actions.pod:4887
12709 #, no-wrap
12710 msgid ""
12711 " int\n"
12712 " guestfs_pvcreate (guestfs_h *g,\n"
12713 "                   const char *device);\n"
12714 "\n"
12715 msgstr ""
12716
12717 # type: textblock
12718 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12719 msgid ""
12720 "This creates an LVM physical volume on the named C<device>, where C<device> "
12721 "should usually be a partition name such as C</dev/sda1>."
12722 msgstr ""
12723
12724 # type: =head2
12725 #: ../src/guestfs-actions.pod:4899
12726 msgid "guestfs_pvremove"
12727 msgstr ""
12728
12729 # type: verbatim
12730 #: ../src/guestfs-actions.pod:4901
12731 #, no-wrap
12732 msgid ""
12733 " int\n"
12734 " guestfs_pvremove (guestfs_h *g,\n"
12735 "                   const char *device);\n"
12736 "\n"
12737 msgstr ""
12738
12739 # type: textblock
12740 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12741 msgid ""
12742 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12743 "it."
12744 msgstr ""
12745
12746 # type: textblock
12747 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12748 msgid ""
12749 "The implementation uses the C<pvremove> command which refuses to wipe "
12750 "physical volumes that contain any volume groups, so you have to remove those "
12751 "first."
12752 msgstr ""
12753
12754 # type: =head2
12755 #: ../src/guestfs-actions.pod:4916
12756 msgid "guestfs_pvresize"
12757 msgstr ""
12758
12759 # type: verbatim
12760 #: ../src/guestfs-actions.pod:4918
12761 #, no-wrap
12762 msgid ""
12763 " int\n"
12764 " guestfs_pvresize (guestfs_h *g,\n"
12765 "                   const char *device);\n"
12766 "\n"
12767 msgstr ""
12768
12769 # type: textblock
12770 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12771 msgid ""
12772 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12773 "the new size of the underlying device."
12774 msgstr ""
12775
12776 # type: =head2
12777 #: ../src/guestfs-actions.pod:4929
12778 msgid "guestfs_pvresize_size"
12779 msgstr ""
12780
12781 # type: verbatim
12782 #: ../src/guestfs-actions.pod:4931
12783 #, no-wrap
12784 msgid ""
12785 " int\n"
12786 " guestfs_pvresize_size (guestfs_h *g,\n"
12787 "                        const char *device,\n"
12788 "                        int64_t size);\n"
12789 "\n"
12790 msgstr ""
12791
12792 # type: textblock
12793 #: ../src/guestfs-actions.pod:4936
12794 msgid ""
12795 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12796 "specify the new size (in bytes) explicitly."
12797 msgstr ""
12798
12799 # type: =head2
12800 #: ../src/guestfs-actions.pod:4943
12801 msgid "guestfs_pvs"
12802 msgstr ""
12803
12804 # type: verbatim
12805 #: ../src/guestfs-actions.pod:4945
12806 #, no-wrap
12807 msgid ""
12808 " char **\n"
12809 " guestfs_pvs (guestfs_h *g);\n"
12810 "\n"
12811 msgstr ""
12812
12813 # type: textblock
12814 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12815 msgid ""
12816 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12817 "(8)> command."
12818 msgstr ""
12819
12820 # type: textblock
12821 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12822 msgid ""
12823 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12824 "sda2>)."
12825 msgstr ""
12826
12827 # type: textblock
12828 #: ../src/guestfs-actions.pod:4954
12829 msgid "See also C<guestfs_pvs_full>."
12830 msgstr ""
12831
12832 # type: =head2
12833 #: ../src/guestfs-actions.pod:4962
12834 msgid "guestfs_pvs_full"
12835 msgstr ""
12836
12837 # type: verbatim
12838 #: ../src/guestfs-actions.pod:4964
12839 #, no-wrap
12840 msgid ""
12841 " struct guestfs_lvm_pv_list *\n"
12842 " guestfs_pvs_full (guestfs_h *g);\n"
12843 "\n"
12844 msgstr ""
12845
12846 # type: textblock
12847 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12848 msgid ""
12849 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12850 "(8)> command.  The \"full\" version includes all fields."
12851 msgstr ""
12852
12853 # type: textblock
12854 #: ../src/guestfs-actions.pod:4970
12855 msgid ""
12856 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12857 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12858 msgstr ""
12859
12860 # type: =head2
12861 #: ../src/guestfs-actions.pod:4976
12862 msgid "guestfs_pvuuid"
12863 msgstr ""
12864
12865 # type: verbatim
12866 #: ../src/guestfs-actions.pod:4978
12867 #, no-wrap
12868 msgid ""
12869 " char *\n"
12870 " guestfs_pvuuid (guestfs_h *g,\n"
12871 "                 const char *device);\n"
12872 "\n"
12873 msgstr ""
12874
12875 # type: textblock
12876 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12877 msgid "This command returns the UUID of the LVM PV C<device>."
12878 msgstr ""
12879
12880 # type: =head2
12881 #: ../src/guestfs-actions.pod:4989
12882 msgid "guestfs_pwrite"
12883 msgstr ""
12884
12885 # type: verbatim
12886 #: ../src/guestfs-actions.pod:4991
12887 #, no-wrap
12888 msgid ""
12889 " int\n"
12890 " guestfs_pwrite (guestfs_h *g,\n"
12891 "                 const char *path,\n"
12892 "                 const char *content,\n"
12893 "                 size_t content_size,\n"
12894 "                 int64_t offset);\n"
12895 "\n"
12896 msgstr ""
12897
12898 # type: textblock
12899 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12900 msgid ""
12901 "This command writes to part of a file.  It writes the data buffer C<content> "
12902 "to the file C<path> starting at offset C<offset>."
12903 msgstr ""
12904
12905 # type: textblock
12906 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12907 msgid ""
12908 "This command implements the L<pwrite(2)> system call, and like that system "
12909 "call it may not write the full data requested.  The return value is the "
12910 "number of bytes that were actually written to the file.  This could even be "
12911 "0, although short writes are unlikely for regular files in ordinary "
12912 "circumstances."
12913 msgstr ""
12914
12915 # type: textblock
12916 #: ../src/guestfs-actions.pod:5007
12917 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12918 msgstr ""
12919
12920 # type: =head2
12921 #: ../src/guestfs-actions.pod:5016
12922 msgid "guestfs_pwrite_device"
12923 msgstr ""
12924
12925 # type: verbatim
12926 #: ../src/guestfs-actions.pod:5018
12927 #, no-wrap
12928 msgid ""
12929 " int\n"
12930 " guestfs_pwrite_device (guestfs_h *g,\n"
12931 "                        const char *device,\n"
12932 "                        const char *content,\n"
12933 "                        size_t content_size,\n"
12934 "                        int64_t offset);\n"
12935 "\n"
12936 msgstr ""
12937
12938 # type: textblock
12939 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12940 msgid ""
12941 "This command writes to part of a device.  It writes the data buffer "
12942 "C<content> to C<device> starting at offset C<offset>."
12943 msgstr ""
12944
12945 # type: textblock
12946 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12947 msgid ""
12948 "This command implements the L<pwrite(2)> system call, and like that system "
12949 "call it may not write the full data requested (although short writes to disk "
12950 "devices and partitions are probably impossible with standard Linux kernels)."
12951 msgstr ""
12952
12953 # type: textblock
12954 #: ../src/guestfs-actions.pod:5033
12955 msgid "See also C<guestfs_pwrite>."
12956 msgstr ""
12957
12958 # type: textblock
12959 #: ../src/guestfs-actions.pod:5040
12960 msgid "(Added in 1.5.20)"
12961 msgstr ""
12962
12963 # type: =head2
12964 #: ../src/guestfs-actions.pod:5042
12965 msgid "guestfs_read_file"
12966 msgstr ""
12967
12968 # type: verbatim
12969 #: ../src/guestfs-actions.pod:5044
12970 #, no-wrap
12971 msgid ""
12972 " char *\n"
12973 " guestfs_read_file (guestfs_h *g,\n"
12974 "                    const char *path,\n"
12975 "                    size_t *size_r);\n"
12976 "\n"
12977 msgstr ""
12978
12979 # type: textblock
12980 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12981 msgid "This calls returns the contents of the file C<path> as a buffer."
12982 msgstr ""
12983
12984 # type: textblock
12985 #: ../src/guestfs-actions.pod:5052
12986 msgid ""
12987 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12988 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12989 "function is limited in the total size of file that can be handled."
12990 msgstr ""
12991
12992 # type: textblock
12993 #: ../src/guestfs-actions.pod:5064
12994 msgid "(Added in 1.0.63)"
12995 msgstr ""
12996
12997 # type: =head2
12998 #: ../src/guestfs-actions.pod:5066
12999 msgid "guestfs_read_lines"
13000 msgstr ""
13001
13002 # type: verbatim
13003 #: ../src/guestfs-actions.pod:5068
13004 #, no-wrap
13005 msgid ""
13006 " char **\n"
13007 " guestfs_read_lines (guestfs_h *g,\n"
13008 "                     const char *path);\n"
13009 "\n"
13010 msgstr ""
13011
13012 # type: textblock
13013 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
13014 msgid ""
13015 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13016 "C<CRLF> character sequences are I<not> returned."
13017 msgstr ""
13018
13019 # type: textblock
13020 #: ../src/guestfs-actions.pod:5077
13021 msgid ""
13022 "Note that this function cannot correctly handle binary files (specifically, "
13023 "files containing C<\\0> character which is treated as end of line).  For "
13024 "those you need to use the C<guestfs_read_file> function which has a more "
13025 "complex interface."
13026 msgstr ""
13027
13028 # type: =head2
13029 #: ../src/guestfs-actions.pod:5088
13030 msgid "guestfs_readdir"
13031 msgstr ""
13032
13033 # type: verbatim
13034 #: ../src/guestfs-actions.pod:5090
13035 #, no-wrap
13036 msgid ""
13037 " struct guestfs_dirent_list *\n"
13038 " guestfs_readdir (guestfs_h *g,\n"
13039 "                  const char *dir);\n"
13040 "\n"
13041 msgstr ""
13042
13043 # type: textblock
13044 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
13045 msgid "This returns the list of directory entries in directory C<dir>."
13046 msgstr ""
13047
13048 # type: textblock
13049 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
13050 msgid ""
13051 "All entries in the directory are returned, including C<.> and C<..>.  The "
13052 "entries are I<not> sorted, but returned in the same order as the underlying "
13053 "filesystem."
13054 msgstr ""
13055
13056 # type: textblock
13057 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
13058 msgid ""
13059 "Also this call returns basic file type information about each file.  The "
13060 "C<ftyp> field will contain one of the following characters:"
13061 msgstr ""
13062
13063 # type: =item
13064 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
13065 msgid "'b'"
13066 msgstr ""
13067
13068 # type: textblock
13069 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
13070 msgid "Block special"
13071 msgstr ""
13072
13073 # type: =item
13074 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
13075 msgid "'c'"
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
13080 msgid "Char special"
13081 msgstr ""
13082
13083 # type: =item
13084 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
13085 msgid "'d'"
13086 msgstr ""
13087
13088 # type: textblock
13089 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
13090 msgid "Directory"
13091 msgstr ""
13092
13093 # type: =item
13094 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
13095 msgid "'f'"
13096 msgstr ""
13097
13098 # type: textblock
13099 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
13100 msgid "FIFO (named pipe)"
13101 msgstr ""
13102
13103 # type: =item
13104 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
13105 msgid "'l'"
13106 msgstr ""
13107
13108 # type: textblock
13109 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
13110 msgid "Symbolic link"
13111 msgstr ""
13112
13113 # type: =item
13114 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
13115 msgid "'r'"
13116 msgstr ""
13117
13118 # type: textblock
13119 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
13120 msgid "Regular file"
13121 msgstr ""
13122
13123 # type: =item
13124 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
13125 msgid "'s'"
13126 msgstr ""
13127
13128 # type: textblock
13129 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
13130 msgid "Socket"
13131 msgstr ""
13132
13133 # type: =item
13134 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
13135 msgid "'u'"
13136 msgstr ""
13137
13138 # type: textblock
13139 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
13140 msgid "Unknown file type"
13141 msgstr ""
13142
13143 # type: =item
13144 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
13145 msgid "'?'"
13146 msgstr ""
13147
13148 # type: textblock
13149 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
13150 msgid ""
13151 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13152 msgstr ""
13153
13154 # type: textblock
13155 #: ../src/guestfs-actions.pod:5144
13156 msgid ""
13157 "This function is primarily intended for use by programs.  To get a simple "
13158 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13159 "consumption, use C<guestfs_ll>."
13160 msgstr ""
13161
13162 # type: textblock
13163 #: ../src/guestfs-actions.pod:5148
13164 msgid ""
13165 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13166 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13167 msgstr ""
13168
13169 # type: =head2
13170 #: ../src/guestfs-actions.pod:5154
13171 msgid "guestfs_readlink"
13172 msgstr ""
13173
13174 # type: verbatim
13175 #: ../src/guestfs-actions.pod:5156
13176 #, no-wrap
13177 msgid ""
13178 " char *\n"
13179 " guestfs_readlink (guestfs_h *g,\n"
13180 "                   const char *path);\n"
13181 "\n"
13182 msgstr ""
13183
13184 # type: textblock
13185 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
13186 msgid "This command reads the target of a symbolic link."
13187 msgstr ""
13188
13189 # type: =head2
13190 #: ../src/guestfs-actions.pod:5167
13191 msgid "guestfs_readlinklist"
13192 msgstr ""
13193
13194 # type: verbatim
13195 #: ../src/guestfs-actions.pod:5169
13196 #, no-wrap
13197 msgid ""
13198 " char **\n"
13199 " guestfs_readlinklist (guestfs_h *g,\n"
13200 "                       const char *path,\n"
13201 "                       char *const *names);\n"
13202 "\n"
13203 msgstr ""
13204
13205 # type: textblock
13206 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
13207 msgid ""
13208 "This call allows you to do a C<readlink> operation on multiple files, where "
13209 "all files are in the directory C<path>.  C<names> is the list of files from "
13210 "this directory."
13211 msgstr ""
13212
13213 # type: textblock
13214 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
13215 msgid ""
13216 "On return you get a list of strings, with a one-to-one correspondence to the "
13217 "C<names> list.  Each string is the value of the symbolic link."
13218 msgstr ""
13219
13220 # type: textblock
13221 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
13222 msgid ""
13223 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13224 "result string is the empty string C<\"\">.  However the whole operation is "
13225 "completed even if there were C<readlink(2)> errors, and so you can call this "
13226 "function with names where you don't know if they are symbolic links already "
13227 "(albeit slightly less efficient)."
13228 msgstr ""
13229
13230 # type: textblock
13231 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
13232 msgid ""
13233 "This call is intended for programs that want to efficiently list a directory "
13234 "contents without making many round-trips.  Very long directory listings "
13235 "might cause the protocol message size to be exceeded, causing this call to "
13236 "fail.  The caller must split up such requests into smaller groups of names."
13237 msgstr ""
13238
13239 # type: =head2
13240 #: ../src/guestfs-actions.pod:5202
13241 msgid "guestfs_realpath"
13242 msgstr ""
13243
13244 # type: verbatim
13245 #: ../src/guestfs-actions.pod:5204
13246 #, no-wrap
13247 msgid ""
13248 " char *\n"
13249 " guestfs_realpath (guestfs_h *g,\n"
13250 "                   const char *path);\n"
13251 "\n"
13252 msgstr ""
13253
13254 # type: textblock
13255 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
13256 msgid ""
13257 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13258 "has no C<.>, C<..> or symbolic link path elements."
13259 msgstr ""
13260
13261 # type: =head2
13262 #: ../src/guestfs-actions.pod:5216
13263 msgid "guestfs_removexattr"
13264 msgstr ""
13265
13266 # type: verbatim
13267 #: ../src/guestfs-actions.pod:5218
13268 #, no-wrap
13269 msgid ""
13270 " int\n"
13271 " guestfs_removexattr (guestfs_h *g,\n"
13272 "                      const char *xattr,\n"
13273 "                      const char *path);\n"
13274 "\n"
13275 msgstr ""
13276
13277 # type: textblock
13278 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
13279 msgid ""
13280 "This call removes the extended attribute named C<xattr> of the file C<path>."
13281 msgstr ""
13282
13283 # type: textblock
13284 #: ../src/guestfs-actions.pod:5226
13285 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13286 msgstr ""
13287
13288 # type: =head2
13289 #: ../src/guestfs-actions.pod:5232
13290 msgid "guestfs_resize2fs"
13291 msgstr ""
13292
13293 # type: verbatim
13294 #: ../src/guestfs-actions.pod:5234
13295 #, no-wrap
13296 msgid ""
13297 " int\n"
13298 " guestfs_resize2fs (guestfs_h *g,\n"
13299 "                    const char *device);\n"
13300 "\n"
13301 msgstr ""
13302
13303 # type: textblock
13304 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
13305 msgid ""
13306 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13307 "underlying device."
13308 msgstr ""
13309
13310 # type: textblock
13311 #: ../src/guestfs-actions.pod:5241
13312 msgid ""
13313 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13314 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13315 "sometimes gives an error about this and sometimes not.  In any case, it is "
13316 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13317 msgstr ""
13318
13319 # type: =head2
13320 #: ../src/guestfs-actions.pod:5251
13321 msgid "guestfs_resize2fs_size"
13322 msgstr ""
13323
13324 # type: verbatim
13325 #: ../src/guestfs-actions.pod:5253
13326 #, no-wrap
13327 msgid ""
13328 " int\n"
13329 " guestfs_resize2fs_size (guestfs_h *g,\n"
13330 "                         const char *device,\n"
13331 "                         int64_t size);\n"
13332 "\n"
13333 msgstr ""
13334
13335 # type: textblock
13336 #: ../src/guestfs-actions.pod:5258
13337 msgid ""
13338 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13339 "to specify the new size (in bytes) explicitly."
13340 msgstr ""
13341
13342 # type: =head2
13343 #: ../src/guestfs-actions.pod:5265
13344 msgid "guestfs_rm"
13345 msgstr ""
13346
13347 # type: verbatim
13348 #: ../src/guestfs-actions.pod:5267
13349 #, no-wrap
13350 msgid ""
13351 " int\n"
13352 " guestfs_rm (guestfs_h *g,\n"
13353 "             const char *path);\n"
13354 "\n"
13355 msgstr ""
13356
13357 # type: textblock
13358 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
13359 msgid "Remove the single file C<path>."
13360 msgstr ""
13361
13362 # type: =head2
13363 #: ../src/guestfs-actions.pod:5277
13364 msgid "guestfs_rm_rf"
13365 msgstr ""
13366
13367 # type: verbatim
13368 #: ../src/guestfs-actions.pod:5279
13369 #, no-wrap
13370 msgid ""
13371 " int\n"
13372 " guestfs_rm_rf (guestfs_h *g,\n"
13373 "                const char *path);\n"
13374 "\n"
13375 msgstr ""
13376
13377 # type: textblock
13378 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
13379 msgid ""
13380 "Remove the file or directory C<path>, recursively removing the contents if "
13381 "its a directory.  This is like the C<rm -rf> shell command."
13382 msgstr ""
13383
13384 # type: =head2
13385 #: ../src/guestfs-actions.pod:5291
13386 msgid "guestfs_rmdir"
13387 msgstr ""
13388
13389 # type: verbatim
13390 #: ../src/guestfs-actions.pod:5293
13391 #, no-wrap
13392 msgid ""
13393 " int\n"
13394 " guestfs_rmdir (guestfs_h *g,\n"
13395 "                const char *path);\n"
13396 "\n"
13397 msgstr ""
13398
13399 # type: textblock
13400 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
13401 msgid "Remove the single directory C<path>."
13402 msgstr ""
13403
13404 # type: =head2
13405 #: ../src/guestfs-actions.pod:5303
13406 msgid "guestfs_rmmountpoint"
13407 msgstr ""
13408
13409 # type: verbatim
13410 #: ../src/guestfs-actions.pod:5305
13411 #, no-wrap
13412 msgid ""
13413 " int\n"
13414 " guestfs_rmmountpoint (guestfs_h *g,\n"
13415 "                       const char *exemptpath);\n"
13416 "\n"
13417 msgstr ""
13418
13419 # type: textblock
13420 #: ../src/guestfs-actions.pod:5309
13421 msgid ""
13422 "This calls removes a mountpoint that was previously created with "
13423 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13424 msgstr ""
13425
13426 # type: =head2
13427 #: ../src/guestfs-actions.pod:5317
13428 msgid "guestfs_scrub_device"
13429 msgstr ""
13430
13431 # type: verbatim
13432 #: ../src/guestfs-actions.pod:5319
13433 #, no-wrap
13434 msgid ""
13435 " int\n"
13436 " guestfs_scrub_device (guestfs_h *g,\n"
13437 "                       const char *device);\n"
13438 "\n"
13439 msgstr ""
13440
13441 # type: textblock
13442 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
13443 msgid ""
13444 "This command writes patterns over C<device> to make data retrieval more "
13445 "difficult."
13446 msgstr ""
13447
13448 # type: textblock
13449 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347
13450 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564
13451 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13452 msgid ""
13453 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13454 "more details."
13455 msgstr ""
13456
13457 # type: textblock
13458 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352
13459 #: ../src/guestfs-actions.pod:5371
13460 msgid "(Added in 1.0.52)"
13461 msgstr ""
13462
13463 # type: =head2
13464 #: ../src/guestfs-actions.pod:5336
13465 msgid "guestfs_scrub_file"
13466 msgstr ""
13467
13468 # type: verbatim
13469 #: ../src/guestfs-actions.pod:5338
13470 #, no-wrap
13471 msgid ""
13472 " int\n"
13473 " guestfs_scrub_file (guestfs_h *g,\n"
13474 "                     const char *file);\n"
13475 "\n"
13476 msgstr ""
13477
13478 # type: textblock
13479 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13480 msgid ""
13481 "This command writes patterns over a file to make data retrieval more "
13482 "difficult."
13483 msgstr ""
13484
13485 # type: textblock
13486 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13487 msgid "The file is I<removed> after scrubbing."
13488 msgstr ""
13489
13490 # type: =head2
13491 #: ../src/guestfs-actions.pod:5354
13492 msgid "guestfs_scrub_freespace"
13493 msgstr ""
13494
13495 # type: verbatim
13496 #: ../src/guestfs-actions.pod:5356
13497 #, no-wrap
13498 msgid ""
13499 " int\n"
13500 " guestfs_scrub_freespace (guestfs_h *g,\n"
13501 "                          const char *dir);\n"
13502 "\n"
13503 msgstr ""
13504
13505 # type: textblock
13506 #: ../src/guestfs-actions.pod:5360
13507 msgid ""
13508 "This command creates the directory C<dir> and then fills it with files until "
13509 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13510 "and deletes them.  The intention is to scrub any free space on the partition "
13511 "containing C<dir>."
13512 msgstr ""
13513
13514 # type: =head2
13515 #: ../src/guestfs-actions.pod:5373
13516 msgid "guestfs_set_append"
13517 msgstr ""
13518
13519 # type: verbatim
13520 #: ../src/guestfs-actions.pod:5375
13521 #, no-wrap
13522 msgid ""
13523 " int\n"
13524 " guestfs_set_append (guestfs_h *g,\n"
13525 "                     const char *append);\n"
13526 "\n"
13527 msgstr ""
13528
13529 # type: textblock
13530 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13531 msgid ""
13532 "This function is used to add additional options to the guest kernel command "
13533 "line."
13534 msgstr ""
13535
13536 # type: textblock
13537 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13538 msgid ""
13539 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13540 "environment variable."
13541 msgstr ""
13542
13543 # type: textblock
13544 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13545 msgid ""
13546 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13547 "(libguestfs always adds a few of its own)."
13548 msgstr ""
13549
13550 # type: =head2
13551 #: ../src/guestfs-actions.pod:5392
13552 msgid "guestfs_set_autosync"
13553 msgstr ""
13554
13555 # type: verbatim
13556 #: ../src/guestfs-actions.pod:5394
13557 #, no-wrap
13558 msgid ""
13559 " int\n"
13560 " guestfs_set_autosync (guestfs_h *g,\n"
13561 "                       int autosync);\n"
13562 "\n"
13563 msgstr ""
13564
13565 # type: textblock
13566 #: ../src/guestfs-actions.pod:5398
13567 msgid ""
13568 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13569 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13570 "the handle is closed (also if the program exits without closing handles)."
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13575 msgid ""
13576 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13577 "disabled by default)."
13578 msgstr ""
13579
13580 # type: =head2
13581 #: ../src/guestfs-actions.pod:5410
13582 msgid "guestfs_set_direct"
13583 msgstr ""
13584
13585 # type: verbatim
13586 #: ../src/guestfs-actions.pod:5412
13587 #, no-wrap
13588 msgid ""
13589 " int\n"
13590 " guestfs_set_direct (guestfs_h *g,\n"
13591 "                     int direct);\n"
13592 "\n"
13593 msgstr ""
13594
13595 # type: textblock
13596 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13597 msgid ""
13598 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13599 "passed directly through to the appliance once it is launched."
13600 msgstr ""
13601
13602 # type: textblock
13603 #: ../src/guestfs-actions.pod:5420
13604 msgid ""
13605 "One consequence of this is that log messages aren't caught by the library "
13606 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13607 "stdout."
13608 msgstr ""
13609
13610 # type: textblock
13611 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13612 msgid "You probably don't want to use this unless you know what you are doing."
13613 msgstr ""
13614
13615 # type: textblock
13616 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13617 msgid "The default is disabled."
13618 msgstr ""
13619
13620 # type: =head2
13621 #: ../src/guestfs-actions.pod:5433
13622 msgid "guestfs_set_e2label"
13623 msgstr ""
13624
13625 # type: verbatim
13626 #: ../src/guestfs-actions.pod:5435
13627 #, no-wrap
13628 msgid ""
13629 " int\n"
13630 " guestfs_set_e2label (guestfs_h *g,\n"
13631 "                      const char *device,\n"
13632 "                      const char *label);\n"
13633 "\n"
13634 msgstr ""
13635
13636 # type: textblock
13637 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13638 msgid ""
13639 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13640 "C<label>.  Filesystem labels are limited to 16 characters."
13641 msgstr ""
13642
13643 # type: textblock
13644 #: ../src/guestfs-actions.pod:5444
13645 msgid ""
13646 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13647 "the existing label on a filesystem."
13648 msgstr ""
13649
13650 # type: =head2
13651 #: ../src/guestfs-actions.pod:5451
13652 msgid "guestfs_set_e2uuid"
13653 msgstr ""
13654
13655 # type: verbatim
13656 #: ../src/guestfs-actions.pod:5453
13657 #, no-wrap
13658 msgid ""
13659 " int\n"
13660 " guestfs_set_e2uuid (guestfs_h *g,\n"
13661 "                     const char *device,\n"
13662 "                     const char *uuid);\n"
13663 "\n"
13664 msgstr ""
13665
13666 # type: textblock
13667 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13668 msgid ""
13669 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13670 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13671 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13672 msgstr ""
13673
13674 # type: textblock
13675 #: ../src/guestfs-actions.pod:5463
13676 msgid ""
13677 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13678 "the existing UUID of a filesystem."
13679 msgstr ""
13680
13681 # type: =head2
13682 #: ../src/guestfs-actions.pod:5470
13683 msgid "guestfs_set_memsize"
13684 msgstr ""
13685
13686 # type: verbatim
13687 #: ../src/guestfs-actions.pod:5472
13688 #, no-wrap
13689 msgid ""
13690 " int\n"
13691 " guestfs_set_memsize (guestfs_h *g,\n"
13692 "                      int memsize);\n"
13693 "\n"
13694 msgstr ""
13695
13696 # type: textblock
13697 #: ../src/guestfs-actions.pod:5476
13698 msgid ""
13699 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13700 "This only has any effect if called before C<guestfs_launch>."
13701 msgstr ""
13702
13703 # type: textblock
13704 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13705 msgid ""
13706 "You can also change this by setting the environment variable "
13707 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13708 msgstr ""
13709
13710 # type: =head2
13711 #: ../src/guestfs-actions.pod:5491
13712 msgid "guestfs_set_network"
13713 msgstr ""
13714
13715 # type: verbatim
13716 #: ../src/guestfs-actions.pod:5493
13717 #, no-wrap
13718 msgid ""
13719 " int\n"
13720 " guestfs_set_network (guestfs_h *g,\n"
13721 "                      int network);\n"
13722 "\n"
13723 msgstr ""
13724
13725 # type: textblock
13726 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13727 msgid ""
13728 "If C<network> is true, then the network is enabled in the libguestfs "
13729 "appliance.  The default is false."
13730 msgstr ""
13731
13732 # type: textblock
13733 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13734 msgid ""
13735 "This affects whether commands are able to access the network (see L<guestfs"
13736 "(3)/RUNNING COMMANDS>)."
13737 msgstr ""
13738
13739 # type: textblock
13740 #: ../src/guestfs-actions.pod:5503
13741 msgid ""
13742 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13743 "effect."
13744 msgstr ""
13745
13746 # type: =head2
13747 #: ../src/guestfs-actions.pod:5510
13748 msgid "guestfs_set_path"
13749 msgstr ""
13750
13751 # type: verbatim
13752 #: ../src/guestfs-actions.pod:5512
13753 #, no-wrap
13754 msgid ""
13755 " int\n"
13756 " guestfs_set_path (guestfs_h *g,\n"
13757 "                   const char *searchpath);\n"
13758 "\n"
13759 msgstr ""
13760
13761 # type: textblock
13762 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13763 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13764 msgstr ""
13765
13766 # type: textblock
13767 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13768 msgid ""
13769 "The default is C<$libdir/guestfs> unless overridden by setting "
13770 "C<LIBGUESTFS_PATH> environment variable."
13771 msgstr ""
13772
13773 # type: textblock
13774 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13775 msgid "Setting C<path> to C<NULL> restores the default path."
13776 msgstr ""
13777
13778 # type: =head2
13779 #: ../src/guestfs-actions.pod:5527
13780 msgid "guestfs_set_qemu"
13781 msgstr ""
13782
13783 # type: verbatim
13784 #: ../src/guestfs-actions.pod:5529
13785 #, no-wrap
13786 msgid ""
13787 " int\n"
13788 " guestfs_set_qemu (guestfs_h *g,\n"
13789 "                   const char *qemu);\n"
13790 "\n"
13791 msgstr ""
13792
13793 # type: textblock
13794 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13795 msgid "Set the qemu binary that we will use."
13796 msgstr ""
13797
13798 # type: textblock
13799 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13800 msgid ""
13801 "The default is chosen when the library was compiled by the configure script."
13802 msgstr ""
13803
13804 # type: textblock
13805 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13806 msgid ""
13807 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13808 "variable."
13809 msgstr ""
13810
13811 # type: textblock
13812 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13813 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13814 msgstr ""
13815
13816 # type: textblock
13817 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13818 msgid ""
13819 "Note that you should call this function as early as possible after creating "
13820 "the handle.  This is because some pre-launch operations depend on testing "
13821 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13822 "don't retest features, and so you might see inconsistent results.  Using the "
13823 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13824 "the qemu binary at the same time as the handle is created."
13825 msgstr ""
13826
13827 # type: =head2
13828 #: ../src/guestfs-actions.pod:5555
13829 msgid "guestfs_set_recovery_proc"
13830 msgstr ""
13831
13832 # type: verbatim
13833 #: ../src/guestfs-actions.pod:5557
13834 #, no-wrap
13835 msgid ""
13836 " int\n"
13837 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13838 "                            int recoveryproc);\n"
13839 "\n"
13840 msgstr ""
13841
13842 # type: textblock
13843 #: ../src/guestfs-actions.pod:5561
13844 msgid ""
13845 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13846 "not create a recovery process.  The purpose of the recovery process is to "
13847 "stop runaway qemu processes in the case where the main program aborts "
13848 "abruptly."
13849 msgstr ""
13850
13851 # type: textblock
13852 #: ../src/guestfs-actions.pod:5566
13853 msgid ""
13854 "This only has any effect if called before C<guestfs_launch>, and the default "
13855 "is true."
13856 msgstr ""
13857
13858 # type: textblock
13859 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13860 msgid ""
13861 "About the only time when you would want to disable this is if the main "
13862 "process will fork itself into the background (\"daemonize\" itself).  In "
13863 "this case the recovery process thinks that the main program has disappeared "
13864 "and so kills qemu, which is not very helpful."
13865 msgstr ""
13866
13867 # type: =head2
13868 #: ../src/guestfs-actions.pod:5579
13869 msgid "guestfs_set_selinux"
13870 msgstr ""
13871
13872 # type: verbatim
13873 #: ../src/guestfs-actions.pod:5581
13874 #, no-wrap
13875 msgid ""
13876 " int\n"
13877 " guestfs_set_selinux (guestfs_h *g,\n"
13878 "                      int selinux);\n"
13879 "\n"
13880 msgstr ""
13881
13882 # type: textblock
13883 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13884 msgid ""
13885 "This sets the selinux flag that is passed to the appliance at boot time.  "
13886 "The default is C<selinux=0> (disabled)."
13887 msgstr ""
13888
13889 # type: textblock
13890 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13891 msgid ""
13892 "Note that if SELinux is enabled, it is always in Permissive mode "
13893 "(C<enforcing=0>)."
13894 msgstr ""
13895
13896 # type: =head2
13897 #: ../src/guestfs-actions.pod:5598
13898 msgid "guestfs_set_trace"
13899 msgstr ""
13900
13901 # type: verbatim
13902 #: ../src/guestfs-actions.pod:5600
13903 #, no-wrap
13904 msgid ""
13905 " int\n"
13906 " guestfs_set_trace (guestfs_h *g,\n"
13907 "                    int trace);\n"
13908 "\n"
13909 msgstr ""
13910
13911 # type: textblock
13912 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13913 msgid ""
13914 "If the command trace flag is set to 1, then commands are printed on stderr "
13915 "before they are executed in a format which is very similar to the one used "
13916 "by guestfish.  In other words, you can run a program with this enabled, and "
13917 "you will get out a script which you can feed to guestfish to perform the "
13918 "same set of actions."
13919 msgstr ""
13920
13921 # type: textblock
13922 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13923 msgid ""
13924 "If you want to trace C API calls into libguestfs (and other libraries) then "
13925 "possibly a better way is to use the external ltrace(1) command."
13926 msgstr ""
13927
13928 # type: textblock
13929 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13930 msgid ""
13931 "Command traces are disabled unless the environment variable "
13932 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13933 msgstr ""
13934
13935 # type: =head2
13936 #: ../src/guestfs-actions.pod:5622
13937 msgid "guestfs_set_verbose"
13938 msgstr ""
13939
13940 # type: verbatim
13941 #: ../src/guestfs-actions.pod:5624
13942 #, no-wrap
13943 msgid ""
13944 " int\n"
13945 " guestfs_set_verbose (guestfs_h *g,\n"
13946 "                      int verbose);\n"
13947 "\n"
13948 msgstr ""
13949
13950 # type: textblock
13951 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13952 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13953 msgstr ""
13954
13955 # type: textblock
13956 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13957 msgid ""
13958 "Verbose messages are disabled unless the environment variable "
13959 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13960 msgstr ""
13961
13962 # type: =head2
13963 #: ../src/guestfs-actions.pod:5637
13964 msgid "guestfs_setcon"
13965 msgstr ""
13966
13967 # type: verbatim
13968 #: ../src/guestfs-actions.pod:5639
13969 #, no-wrap
13970 msgid ""
13971 " int\n"
13972 " guestfs_setcon (guestfs_h *g,\n"
13973 "                 const char *context);\n"
13974 "\n"
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13979 msgid ""
13980 "This sets the SELinux security context of the daemon to the string "
13981 "C<context>."
13982 msgstr ""
13983
13984 # type: textblock
13985 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13986 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13987 msgstr ""
13988
13989 # type: =head2
13990 #: ../src/guestfs-actions.pod:5652
13991 msgid "guestfs_setxattr"
13992 msgstr ""
13993
13994 # type: verbatim
13995 #: ../src/guestfs-actions.pod:5654
13996 #, no-wrap
13997 msgid ""
13998 " int\n"
13999 " guestfs_setxattr (guestfs_h *g,\n"
14000 "                   const char *xattr,\n"
14001 "                   const char *val,\n"
14002 "                   int vallen,\n"
14003 "                   const char *path);\n"
14004 "\n"
14005 msgstr ""
14006
14007 # type: textblock
14008 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
14009 msgid ""
14010 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14011 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14012 msgstr ""
14013
14014 # type: textblock
14015 #: ../src/guestfs-actions.pod:5665
14016 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14017 msgstr ""
14018
14019 # type: =head2
14020 #: ../src/guestfs-actions.pod:5671
14021 msgid "guestfs_sfdisk"
14022 msgstr ""
14023
14024 # type: verbatim
14025 #: ../src/guestfs-actions.pod:5673
14026 #, no-wrap
14027 msgid ""
14028 " int\n"
14029 " guestfs_sfdisk (guestfs_h *g,\n"
14030 "                 const char *device,\n"
14031 "                 int cyls,\n"
14032 "                 int heads,\n"
14033 "                 int sectors,\n"
14034 "                 char *const *lines);\n"
14035 "\n"
14036 msgstr ""
14037
14038 # type: textblock
14039 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
14040 msgid ""
14041 "This is a direct interface to the L<sfdisk(8)> program for creating "
14042 "partitions on block devices."
14043 msgstr ""
14044
14045 # type: textblock
14046 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
14047 msgid "C<device> should be a block device, for example C</dev/sda>."
14048 msgstr ""
14049
14050 # type: textblock
14051 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
14052 msgid ""
14053 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14054 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14055 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14056 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14057 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14058 "the kernel) cannot work out the right geometry and you will need to tell it."
14059 msgstr ""
14060
14061 # type: textblock
14062 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
14063 msgid ""
14064 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14065 "refer to the L<sfdisk(8)> manpage."
14066 msgstr ""
14067
14068 # type: textblock
14069 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
14070 msgid ""
14071 "To create a single partition occupying the whole disk, you would pass "
14072 "C<lines> as a single element list, when the single element being the string "
14073 "C<,> (comma)."
14074 msgstr ""
14075
14076 # type: textblock
14077 #: ../src/guestfs-actions.pod:5701
14078 msgid ""
14079 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14080 msgstr ""
14081
14082 # type: =head2
14083 #: ../src/guestfs-actions.pod:5711
14084 msgid "guestfs_sfdiskM"
14085 msgstr ""
14086
14087 # type: verbatim
14088 #: ../src/guestfs-actions.pod:5713
14089 #, no-wrap
14090 msgid ""
14091 " int\n"
14092 " guestfs_sfdiskM (guestfs_h *g,\n"
14093 "                  const char *device,\n"
14094 "                  char *const *lines);\n"
14095 "\n"
14096 msgstr ""
14097
14098 # type: textblock
14099 #: ../src/guestfs-actions.pod:5718
14100 msgid ""
14101 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14102 "partition sizes are specified in megabytes only (rounded to the nearest "
14103 "cylinder) and you don't need to specify the cyls, heads and sectors "
14104 "parameters which were rarely if ever used anyway."
14105 msgstr ""
14106
14107 # type: textblock
14108 #: ../src/guestfs-actions.pod:5724
14109 msgid ""
14110 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14111 "C<guestfs_part_disk>"
14112 msgstr ""
14113
14114 # type: =head2
14115 #: ../src/guestfs-actions.pod:5734
14116 msgid "guestfs_sfdisk_N"
14117 msgstr ""
14118
14119 # type: verbatim
14120 #: ../src/guestfs-actions.pod:5736
14121 #, no-wrap
14122 msgid ""
14123 " int\n"
14124 " guestfs_sfdisk_N (guestfs_h *g,\n"
14125 "                   const char *device,\n"
14126 "                   int partnum,\n"
14127 "                   int cyls,\n"
14128 "                   int heads,\n"
14129 "                   int sectors,\n"
14130 "                   const char *line);\n"
14131 "\n"
14132 msgstr ""
14133
14134 # type: textblock
14135 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
14136 msgid ""
14137 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14138 "(note: C<n> counts from 1)."
14139 msgstr ""
14140
14141 # type: textblock
14142 #: ../src/guestfs-actions.pod:5748
14143 msgid ""
14144 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14145 "for the cyls/heads/sectors parameters."
14146 msgstr ""
14147
14148 # type: textblock
14149 #: ../src/guestfs-actions.pod:5751
14150 msgid "See also: C<guestfs_part_add>"
14151 msgstr ""
14152
14153 # type: =head2
14154 #: ../src/guestfs-actions.pod:5760
14155 msgid "guestfs_sfdisk_disk_geometry"
14156 msgstr ""
14157
14158 # type: verbatim
14159 #: ../src/guestfs-actions.pod:5762
14160 #, no-wrap
14161 msgid ""
14162 " char *\n"
14163 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14164 "                               const char *device);\n"
14165 "\n"
14166 msgstr ""
14167
14168 # type: textblock
14169 #: ../src/guestfs-actions.pod:5766
14170 msgid ""
14171 "This displays the disk geometry of C<device> read from the partition table.  "
14172 "Especially in the case where the underlying block device has been resized, "
14173 "this can be different from the kernel's idea of the geometry (see "
14174 "C<guestfs_sfdisk_kernel_geometry>)."
14175 msgstr ""
14176
14177 # type: textblock
14178 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787
14179 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14180 msgid "The result is in human-readable format, and not designed to be parsed."
14181 msgstr ""
14182
14183 # type: =head2
14184 #: ../src/guestfs-actions.pod:5779
14185 msgid "guestfs_sfdisk_kernel_geometry"
14186 msgstr ""
14187
14188 # type: verbatim
14189 #: ../src/guestfs-actions.pod:5781
14190 #, no-wrap
14191 msgid ""
14192 " char *\n"
14193 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14194 "                                 const char *device);\n"
14195 "\n"
14196 msgstr ""
14197
14198 # type: textblock
14199 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
14200 msgid "This displays the kernel's idea of the geometry of C<device>."
14201 msgstr ""
14202
14203 # type: =head2
14204 #: ../src/guestfs-actions.pod:5795
14205 msgid "guestfs_sfdisk_l"
14206 msgstr ""
14207
14208 # type: verbatim
14209 #: ../src/guestfs-actions.pod:5797
14210 #, no-wrap
14211 msgid ""
14212 " char *\n"
14213 " guestfs_sfdisk_l (guestfs_h *g,\n"
14214 "                   const char *device);\n"
14215 "\n"
14216 msgstr ""
14217
14218 # type: textblock
14219 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
14220 msgid ""
14221 "This displays the partition table on C<device>, in the human-readable output "
14222 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14223 msgstr ""
14224
14225 # type: textblock
14226 #: ../src/guestfs-actions.pod:5805
14227 msgid "See also: C<guestfs_part_list>"
14228 msgstr ""
14229
14230 # type: =head2
14231 #: ../src/guestfs-actions.pod:5812
14232 msgid "guestfs_sh"
14233 msgstr ""
14234
14235 # type: verbatim
14236 #: ../src/guestfs-actions.pod:5814
14237 #, no-wrap
14238 msgid ""
14239 " char *\n"
14240 " guestfs_sh (guestfs_h *g,\n"
14241 "             const char *command);\n"
14242 "\n"
14243 msgstr ""
14244
14245 # type: textblock
14246 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
14247 msgid ""
14248 "This call runs a command from the guest filesystem via the guest's C</bin/"
14249 "sh>."
14250 msgstr ""
14251
14252 # type: textblock
14253 #: ../src/guestfs-actions.pod:5821
14254 msgid "This is like C<guestfs_command>, but passes the command to:"
14255 msgstr ""
14256
14257 # type: verbatim
14258 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
14259 #, no-wrap
14260 msgid ""
14261 " /bin/sh -c \"command\"\n"
14262 "\n"
14263 msgstr ""
14264
14265 # type: textblock
14266 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
14267 msgid ""
14268 "Depending on the guest's shell, this usually results in wildcards being "
14269 "expanded, shell expressions being interpolated and so on."
14270 msgstr ""
14271
14272 # type: textblock
14273 #: ../src/guestfs-actions.pod:5829
14274 msgid "All the provisos about C<guestfs_command> apply to this call."
14275 msgstr ""
14276
14277 # type: =head2
14278 #: ../src/guestfs-actions.pod:5836
14279 msgid "guestfs_sh_lines"
14280 msgstr ""
14281
14282 # type: verbatim
14283 #: ../src/guestfs-actions.pod:5838
14284 #, no-wrap
14285 msgid ""
14286 " char **\n"
14287 " guestfs_sh_lines (guestfs_h *g,\n"
14288 "                   const char *command);\n"
14289 "\n"
14290 msgstr ""
14291
14292 # type: textblock
14293 #: ../src/guestfs-actions.pod:5842
14294 msgid ""
14295 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14296 "lines."
14297 msgstr ""
14298
14299 # type: textblock
14300 #: ../src/guestfs-actions.pod:5845
14301 msgid "See also: C<guestfs_command_lines>"
14302 msgstr ""
14303
14304 # type: =head2
14305 #: ../src/guestfs-actions.pod:5853
14306 msgid "guestfs_sleep"
14307 msgstr ""
14308
14309 # type: verbatim
14310 #: ../src/guestfs-actions.pod:5855
14311 #, no-wrap
14312 msgid ""
14313 " int\n"
14314 " guestfs_sleep (guestfs_h *g,\n"
14315 "                int secs);\n"
14316 "\n"
14317 msgstr ""
14318
14319 # type: textblock
14320 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
14321 msgid "Sleep for C<secs> seconds."
14322 msgstr ""
14323
14324 # type: textblock
14325 #: ../src/guestfs-actions.pod:5863
14326 msgid "(Added in 1.0.41)"
14327 msgstr ""
14328
14329 # type: =head2
14330 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
14331 msgid "guestfs_stat"
14332 msgstr ""
14333
14334 # type: verbatim
14335 #: ../src/guestfs-actions.pod:5867
14336 #, no-wrap
14337 msgid ""
14338 " struct guestfs_stat *\n"
14339 " guestfs_stat (guestfs_h *g,\n"
14340 "               const char *path);\n"
14341 "\n"
14342 msgstr ""
14343
14344 # type: textblock
14345 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
14346 msgid "This is the same as the C<stat(2)> system call."
14347 msgstr ""
14348
14349 # type: =head2
14350 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
14351 msgid "guestfs_statvfs"
14352 msgstr ""
14353
14354 # type: verbatim
14355 #: ../src/guestfs-actions.pod:5883
14356 #, no-wrap
14357 msgid ""
14358 " struct guestfs_statvfs *\n"
14359 " guestfs_statvfs (guestfs_h *g,\n"
14360 "                  const char *path);\n"
14361 "\n"
14362 msgstr ""
14363
14364 # type: textblock
14365 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
14366 msgid ""
14367 "Returns file system statistics for any mounted file system.  C<path> should "
14368 "be a file or directory in the mounted file system (typically it is the mount "
14369 "point itself, but it doesn't need to be)."
14370 msgstr ""
14371
14372 # type: textblock
14373 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
14374 msgid "This is the same as the C<statvfs(2)> system call."
14375 msgstr ""
14376
14377 # type: textblock
14378 #: ../src/guestfs-actions.pod:5893
14379 msgid ""
14380 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14381 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14382 msgstr ""
14383
14384 # type: =head2
14385 #: ../src/guestfs-actions.pod:5899
14386 msgid "guestfs_strings"
14387 msgstr ""
14388
14389 # type: verbatim
14390 #: ../src/guestfs-actions.pod:5901
14391 #, no-wrap
14392 msgid ""
14393 " char **\n"
14394 " guestfs_strings (guestfs_h *g,\n"
14395 "                  const char *path);\n"
14396 "\n"
14397 msgstr ""
14398
14399 # type: textblock
14400 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
14401 msgid ""
14402 "This runs the L<strings(1)> command on a file and returns the list of "
14403 "printable strings found."
14404 msgstr ""
14405
14406 # type: =head2
14407 #: ../src/guestfs-actions.pod:5917
14408 msgid "guestfs_strings_e"
14409 msgstr ""
14410
14411 # type: verbatim
14412 #: ../src/guestfs-actions.pod:5919
14413 #, no-wrap
14414 msgid ""
14415 " char **\n"
14416 " guestfs_strings_e (guestfs_h *g,\n"
14417 "                    const char *encoding,\n"
14418 "                    const char *path);\n"
14419 "\n"
14420 msgstr ""
14421
14422 # type: textblock
14423 #: ../src/guestfs-actions.pod:5924
14424 msgid ""
14425 "This is like the C<guestfs_strings> command, but allows you to specify the "
14426 "encoding of strings that are looked for in the source file C<path>."
14427 msgstr ""
14428
14429 # type: textblock
14430 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
14431 msgid "Allowed encodings are:"
14432 msgstr ""
14433
14434 # type: =item
14435 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
14436 msgid "s"
14437 msgstr ""
14438
14439 # type: textblock
14440 #: ../src/guestfs-actions.pod:5934
14441 msgid ""
14442 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14443 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14444 msgstr ""
14445
14446 # type: =item
14447 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
14448 msgid "S"
14449 msgstr ""
14450
14451 # type: textblock
14452 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
14453 msgid "Single 8-bit-byte characters."
14454 msgstr ""
14455
14456 # type: =item
14457 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
14458 msgid "b"
14459 msgstr ""
14460
14461 # type: textblock
14462 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
14463 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14464 msgstr ""
14465
14466 # type: =item
14467 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
14468 msgid "l (lower case letter L)"
14469 msgstr ""
14470
14471 # type: textblock
14472 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
14473 msgid ""
14474 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14475 "examining binaries in Windows guests."
14476 msgstr ""
14477
14478 # type: =item
14479 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14480 msgid "B"
14481 msgstr ""
14482
14483 # type: textblock
14484 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14485 msgid "32-bit big endian such as UCS-4BE."
14486 msgstr ""
14487
14488 # type: =item
14489 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14490 msgid "L"
14491 msgstr ""
14492
14493 # type: textblock
14494 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14495 msgid "32-bit little endian such as UCS-4LE."
14496 msgstr ""
14497
14498 # type: textblock
14499 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14500 msgid "The returned strings are transcoded to UTF-8."
14501 msgstr ""
14502
14503 # type: =head2
14504 #: ../src/guestfs-actions.pod:5972
14505 msgid "guestfs_swapoff_device"
14506 msgstr ""
14507
14508 # type: verbatim
14509 #: ../src/guestfs-actions.pod:5974
14510 #, no-wrap
14511 msgid ""
14512 " int\n"
14513 " guestfs_swapoff_device (guestfs_h *g,\n"
14514 "                         const char *device);\n"
14515 "\n"
14516 msgstr ""
14517
14518 # type: textblock
14519 #: ../src/guestfs-actions.pod:5978
14520 msgid ""
14521 "This command disables the libguestfs appliance swap device or partition "
14522 "named C<device>.  See C<guestfs_swapon_device>."
14523 msgstr ""
14524
14525 # type: =head2
14526 #: ../src/guestfs-actions.pod:5986
14527 msgid "guestfs_swapoff_file"
14528 msgstr ""
14529
14530 # type: verbatim
14531 #: ../src/guestfs-actions.pod:5988
14532 #, no-wrap
14533 msgid ""
14534 " int\n"
14535 " guestfs_swapoff_file (guestfs_h *g,\n"
14536 "                       const char *file);\n"
14537 "\n"
14538 msgstr ""
14539
14540 # type: textblock
14541 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14542 msgid "This command disables the libguestfs appliance swap on file."
14543 msgstr ""
14544
14545 # type: =head2
14546 #: ../src/guestfs-actions.pod:5998
14547 msgid "guestfs_swapoff_label"
14548 msgstr ""
14549
14550 # type: verbatim
14551 #: ../src/guestfs-actions.pod:6000
14552 #, no-wrap
14553 msgid ""
14554 " int\n"
14555 " guestfs_swapoff_label (guestfs_h *g,\n"
14556 "                        const char *label);\n"
14557 "\n"
14558 msgstr ""
14559
14560 # type: textblock
14561 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14562 msgid ""
14563 "This command disables the libguestfs appliance swap on labeled swap "
14564 "partition."
14565 msgstr ""
14566
14567 # type: =head2
14568 #: ../src/guestfs-actions.pod:6011
14569 msgid "guestfs_swapoff_uuid"
14570 msgstr ""
14571
14572 # type: verbatim
14573 #: ../src/guestfs-actions.pod:6013
14574 #, no-wrap
14575 msgid ""
14576 " int\n"
14577 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14578 "                       const char *uuid);\n"
14579 "\n"
14580 msgstr ""
14581
14582 # type: textblock
14583 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14584 msgid ""
14585 "This command disables the libguestfs appliance swap partition with the given "
14586 "UUID."
14587 msgstr ""
14588
14589 # type: =head2
14590 #: ../src/guestfs-actions.pod:6024
14591 msgid "guestfs_swapon_device"
14592 msgstr ""
14593
14594 # type: verbatim
14595 #: ../src/guestfs-actions.pod:6026
14596 #, no-wrap
14597 msgid ""
14598 " int\n"
14599 " guestfs_swapon_device (guestfs_h *g,\n"
14600 "                        const char *device);\n"
14601 "\n"
14602 msgstr ""
14603
14604 # type: textblock
14605 #: ../src/guestfs-actions.pod:6030
14606 msgid ""
14607 "This command enables the libguestfs appliance to use the swap device or "
14608 "partition named C<device>.  The increased memory is made available for all "
14609 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14610 msgstr ""
14611
14612 # type: textblock
14613 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14614 msgid ""
14615 "Note that you should not swap to existing guest swap partitions unless you "
14616 "know what you are doing.  They may contain hibernation information, or other "
14617 "information that the guest doesn't want you to trash.  You also risk leaking "
14618 "information about the host to the guest this way.  Instead, attach a new "
14619 "host device to the guest and swap on that."
14620 msgstr ""
14621
14622 # type: =head2
14623 #: ../src/guestfs-actions.pod:6046
14624 msgid "guestfs_swapon_file"
14625 msgstr ""
14626
14627 # type: verbatim
14628 #: ../src/guestfs-actions.pod:6048
14629 #, no-wrap
14630 msgid ""
14631 " int\n"
14632 " guestfs_swapon_file (guestfs_h *g,\n"
14633 "                      const char *file);\n"
14634 "\n"
14635 msgstr ""
14636
14637 # type: textblock
14638 #: ../src/guestfs-actions.pod:6052
14639 msgid ""
14640 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14641 "notes."
14642 msgstr ""
14643
14644 # type: =head2
14645 #: ../src/guestfs-actions.pod:6059
14646 msgid "guestfs_swapon_label"
14647 msgstr ""
14648
14649 # type: verbatim
14650 #: ../src/guestfs-actions.pod:6061
14651 #, no-wrap
14652 msgid ""
14653 " int\n"
14654 " guestfs_swapon_label (guestfs_h *g,\n"
14655 "                       const char *label);\n"
14656 "\n"
14657 msgstr ""
14658
14659 # type: textblock
14660 #: ../src/guestfs-actions.pod:6065
14661 msgid ""
14662 "This command enables swap to a labeled swap partition.  See "
14663 "C<guestfs_swapon_device> for other notes."
14664 msgstr ""
14665
14666 # type: =head2
14667 #: ../src/guestfs-actions.pod:6072
14668 msgid "guestfs_swapon_uuid"
14669 msgstr ""
14670
14671 # type: verbatim
14672 #: ../src/guestfs-actions.pod:6074
14673 #, no-wrap
14674 msgid ""
14675 " int\n"
14676 " guestfs_swapon_uuid (guestfs_h *g,\n"
14677 "                      const char *uuid);\n"
14678 "\n"
14679 msgstr ""
14680
14681 # type: textblock
14682 #: ../src/guestfs-actions.pod:6078
14683 msgid ""
14684 "This command enables swap to a swap partition with the given UUID.  See "
14685 "C<guestfs_swapon_device> for other notes."
14686 msgstr ""
14687
14688 # type: =head2
14689 #: ../src/guestfs-actions.pod:6085
14690 msgid "guestfs_sync"
14691 msgstr ""
14692
14693 # type: verbatim
14694 #: ../src/guestfs-actions.pod:6087
14695 #, no-wrap
14696 msgid ""
14697 " int\n"
14698 " guestfs_sync (guestfs_h *g);\n"
14699 "\n"
14700 msgstr ""
14701
14702 # type: textblock
14703 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14704 msgid ""
14705 "This syncs the disk, so that any writes are flushed through to the "
14706 "underlying disk image."
14707 msgstr ""
14708
14709 # type: textblock
14710 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14711 msgid ""
14712 "You should always call this if you have modified a disk image, before "
14713 "closing the handle."
14714 msgstr ""
14715
14716 # type: =head2
14717 #: ../src/guestfs-actions.pod:6100
14718 msgid "guestfs_tail"
14719 msgstr ""
14720
14721 # type: verbatim
14722 #: ../src/guestfs-actions.pod:6102
14723 #, no-wrap
14724 msgid ""
14725 " char **\n"
14726 " guestfs_tail (guestfs_h *g,\n"
14727 "               const char *path);\n"
14728 "\n"
14729 msgstr ""
14730
14731 # type: textblock
14732 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14733 msgid ""
14734 "This command returns up to the last 10 lines of a file as a list of strings."
14735 msgstr ""
14736
14737 # type: =head2
14738 #: ../src/guestfs-actions.pod:6118
14739 msgid "guestfs_tail_n"
14740 msgstr ""
14741
14742 # type: verbatim
14743 #: ../src/guestfs-actions.pod:6120
14744 #, no-wrap
14745 msgid ""
14746 " char **\n"
14747 " guestfs_tail_n (guestfs_h *g,\n"
14748 "                 int nrlines,\n"
14749 "                 const char *path);\n"
14750 "\n"
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14755 msgid ""
14756 "If the parameter C<nrlines> is a positive number, this returns the last "
14757 "C<nrlines> lines of the file C<path>."
14758 msgstr ""
14759
14760 # type: textblock
14761 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14762 msgid ""
14763 "If the parameter C<nrlines> is a negative number, this returns lines from "
14764 "the file C<path>, starting with the C<-nrlines>th line."
14765 msgstr ""
14766
14767 # type: =head2
14768 #: ../src/guestfs-actions.pod:6142
14769 msgid "guestfs_tar_in"
14770 msgstr ""
14771
14772 # type: verbatim
14773 #: ../src/guestfs-actions.pod:6144
14774 #, no-wrap
14775 msgid ""
14776 " int\n"
14777 " guestfs_tar_in (guestfs_h *g,\n"
14778 "                 const char *tarfile,\n"
14779 "                 const char *directory);\n"
14780 "\n"
14781 msgstr ""
14782
14783 # type: textblock
14784 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14785 msgid ""
14786 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14787 "tar file) into C<directory>."
14788 msgstr ""
14789
14790 # type: textblock
14791 #: ../src/guestfs-actions.pod:6152
14792 msgid ""
14793 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14794 msgstr ""
14795
14796 # type: textblock
14797 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174
14798 #: ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14799 msgid "(Added in 1.0.3)"
14800 msgstr ""
14801
14802 # type: =head2
14803 #: ../src/guestfs-actions.pod:6159
14804 msgid "guestfs_tar_out"
14805 msgstr ""
14806
14807 # type: verbatim
14808 #: ../src/guestfs-actions.pod:6161
14809 #, no-wrap
14810 msgid ""
14811 " int\n"
14812 " guestfs_tar_out (guestfs_h *g,\n"
14813 "                  const char *directory,\n"
14814 "                  const char *tarfile);\n"
14815 "\n"
14816 msgstr ""
14817
14818 # type: textblock
14819 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14820 msgid ""
14821 "This command packs the contents of C<directory> and downloads it to local "
14822 "file C<tarfile>."
14823 msgstr ""
14824
14825 # type: textblock
14826 #: ../src/guestfs-actions.pod:6169
14827 msgid ""
14828 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14829 "C<guestfs_txz_out>."
14830 msgstr ""
14831
14832 # type: =head2
14833 #: ../src/guestfs-actions.pod:6176
14834 msgid "guestfs_tgz_in"
14835 msgstr ""
14836
14837 # type: verbatim
14838 #: ../src/guestfs-actions.pod:6178
14839 #, no-wrap
14840 msgid ""
14841 " int\n"
14842 " guestfs_tgz_in (guestfs_h *g,\n"
14843 "                 const char *tarball,\n"
14844 "                 const char *directory);\n"
14845 "\n"
14846 msgstr ""
14847
14848 # type: textblock
14849 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14850 msgid ""
14851 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14852 "tar file) into C<directory>."
14853 msgstr ""
14854
14855 # type: textblock
14856 #: ../src/guestfs-actions.pod:6186
14857 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14858 msgstr ""
14859
14860 # type: =head2
14861 #: ../src/guestfs-actions.pod:6192
14862 msgid "guestfs_tgz_out"
14863 msgstr ""
14864
14865 # type: verbatim
14866 #: ../src/guestfs-actions.pod:6194
14867 #, no-wrap
14868 msgid ""
14869 " int\n"
14870 " guestfs_tgz_out (guestfs_h *g,\n"
14871 "                  const char *directory,\n"
14872 "                  const char *tarball);\n"
14873 "\n"
14874 msgstr ""
14875
14876 # type: textblock
14877 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14878 msgid ""
14879 "This command packs the contents of C<directory> and downloads it to local "
14880 "file C<tarball>."
14881 msgstr ""
14882
14883 # type: textblock
14884 #: ../src/guestfs-actions.pod:6202
14885 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14886 msgstr ""
14887
14888 # type: =head2
14889 #: ../src/guestfs-actions.pod:6208
14890 msgid "guestfs_touch"
14891 msgstr ""
14892
14893 # type: verbatim
14894 #: ../src/guestfs-actions.pod:6210
14895 #, no-wrap
14896 msgid ""
14897 " int\n"
14898 " guestfs_touch (guestfs_h *g,\n"
14899 "                const char *path);\n"
14900 "\n"
14901 msgstr ""
14902
14903 # type: textblock
14904 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14905 msgid ""
14906 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14907 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14908 "length file."
14909 msgstr ""
14910
14911 # type: textblock
14912 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14913 msgid ""
14914 "This command only works on regular files, and will fail on other file types "
14915 "such as directories, symbolic links, block special etc."
14916 msgstr ""
14917
14918 # type: =head2
14919 #: ../src/guestfs-actions.pod:6225
14920 msgid "guestfs_truncate"
14921 msgstr ""
14922
14923 # type: verbatim
14924 #: ../src/guestfs-actions.pod:6227
14925 #, no-wrap
14926 msgid ""
14927 " int\n"
14928 " guestfs_truncate (guestfs_h *g,\n"
14929 "                   const char *path);\n"
14930 "\n"
14931 msgstr ""
14932
14933 # type: textblock
14934 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14935 msgid ""
14936 "This command truncates C<path> to a zero-length file.  The file must exist "
14937 "already."
14938 msgstr ""
14939
14940 # type: =head2
14941 #: ../src/guestfs-actions.pod:6238
14942 msgid "guestfs_truncate_size"
14943 msgstr ""
14944
14945 # type: verbatim
14946 #: ../src/guestfs-actions.pod:6240
14947 #, no-wrap
14948 msgid ""
14949 " int\n"
14950 " guestfs_truncate_size (guestfs_h *g,\n"
14951 "                        const char *path,\n"
14952 "                        int64_t size);\n"
14953 "\n"
14954 msgstr ""
14955
14956 # type: textblock
14957 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14958 msgid ""
14959 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14960 "already."
14961 msgstr ""
14962
14963 # type: textblock
14964 #: ../src/guestfs-actions.pod:6248
14965 msgid ""
14966 "If the current file size is less than C<size> then the file is extended to "
14967 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14968 "blocks are not allocated for the file until you write to it).  To create a "
14969 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14970 msgstr ""
14971
14972 # type: =head2
14973 #: ../src/guestfs-actions.pod:6258
14974 msgid "guestfs_tune2fs_l"
14975 msgstr ""
14976
14977 # type: verbatim
14978 #: ../src/guestfs-actions.pod:6260
14979 #, no-wrap
14980 msgid ""
14981 " char **\n"
14982 " guestfs_tune2fs_l (guestfs_h *g,\n"
14983 "                    const char *device);\n"
14984 "\n"
14985 msgstr ""
14986
14987 # type: textblock
14988 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
14989 msgid ""
14990 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14991 "C<device>."
14992 msgstr ""
14993
14994 # type: textblock
14995 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
14996 msgid ""
14997 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14998 "for more details.  The list of fields returned isn't clearly defined, and "
14999 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15000 "and the filesystem itself."
15001 msgstr ""
15002
15003 # type: =head2
15004 #: ../src/guestfs-actions.pod:6280
15005 msgid "guestfs_txz_in"
15006 msgstr ""
15007
15008 # type: verbatim
15009 #: ../src/guestfs-actions.pod:6282
15010 #, no-wrap
15011 msgid ""
15012 " int\n"
15013 " guestfs_txz_in (guestfs_h *g,\n"
15014 "                 const char *tarball,\n"
15015 "                 const char *directory);\n"
15016 "\n"
15017 msgstr ""
15018
15019 # type: textblock
15020 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
15021 msgid ""
15022 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15023 "tar file) into C<directory>."
15024 msgstr ""
15025
15026 # type: =head2
15027 #: ../src/guestfs-actions.pod:6294
15028 msgid "guestfs_txz_out"
15029 msgstr ""
15030
15031 # type: verbatim
15032 #: ../src/guestfs-actions.pod:6296
15033 #, no-wrap
15034 msgid ""
15035 " int\n"
15036 " guestfs_txz_out (guestfs_h *g,\n"
15037 "                  const char *directory,\n"
15038 "                  const char *tarball);\n"
15039 "\n"
15040 msgstr ""
15041
15042 # type: textblock
15043 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
15044 msgid ""
15045 "This command packs the contents of C<directory> and downloads it to local "
15046 "file C<tarball> (as an xz compressed tar archive)."
15047 msgstr ""
15048
15049 # type: =head2
15050 #: ../src/guestfs-actions.pod:6308
15051 msgid "guestfs_umask"
15052 msgstr ""
15053
15054 # type: verbatim
15055 #: ../src/guestfs-actions.pod:6310
15056 #, no-wrap
15057 msgid ""
15058 " int\n"
15059 " guestfs_umask (guestfs_h *g,\n"
15060 "                int mask);\n"
15061 "\n"
15062 msgstr ""
15063
15064 # type: textblock
15065 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
15066 msgid ""
15067 "This function sets the mask used for creating new files and device nodes to "
15068 "C<mask & 0777>."
15069 msgstr ""
15070
15071 # type: textblock
15072 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
15073 msgid ""
15074 "Typical umask values would be C<022> which creates new files with "
15075 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15076 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15077 msgstr ""
15078
15079 # type: textblock
15080 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
15081 msgid ""
15082 "The default umask is C<022>.  This is important because it means that "
15083 "directories and device nodes will be created with C<0644> or C<0755> mode "
15084 "even if you specify C<0777>."
15085 msgstr ""
15086
15087 # type: textblock
15088 #: ../src/guestfs-actions.pod:6326
15089 msgid ""
15090 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15091 "C<guestfs_mkdir>."
15092 msgstr ""
15093
15094 # type: textblock
15095 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
15096 msgid "This call returns the previous umask."
15097 msgstr ""
15098
15099 # type: =head2
15100 #: ../src/guestfs-actions.pod:6335
15101 msgid "guestfs_umount"
15102 msgstr ""
15103
15104 # type: verbatim
15105 #: ../src/guestfs-actions.pod:6337
15106 #, no-wrap
15107 msgid ""
15108 " int\n"
15109 " guestfs_umount (guestfs_h *g,\n"
15110 "                 const char *pathordevice);\n"
15111 "\n"
15112 msgstr ""
15113
15114 # type: textblock
15115 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
15116 msgid ""
15117 "This unmounts the given filesystem.  The filesystem may be specified either "
15118 "by its mountpoint (path) or the device which contains the filesystem."
15119 msgstr ""
15120
15121 # type: =head2
15122 #: ../src/guestfs-actions.pod:6349
15123 msgid "guestfs_umount_all"
15124 msgstr ""
15125
15126 # type: verbatim
15127 #: ../src/guestfs-actions.pod:6351
15128 #, no-wrap
15129 msgid ""
15130 " int\n"
15131 " guestfs_umount_all (guestfs_h *g);\n"
15132 "\n"
15133 msgstr ""
15134
15135 # type: textblock
15136 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
15137 msgid "This unmounts all mounted filesystems."
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
15142 msgid "Some internal mounts are not unmounted by this call."
15143 msgstr ""
15144
15145 # type: =head2
15146 #: ../src/guestfs-actions.pod:6362
15147 msgid "guestfs_upload"
15148 msgstr ""
15149
15150 # type: verbatim
15151 #: ../src/guestfs-actions.pod:6364
15152 #, no-wrap
15153 msgid ""
15154 " int\n"
15155 " guestfs_upload (guestfs_h *g,\n"
15156 "                 const char *filename,\n"
15157 "                 const char *remotefilename);\n"
15158 "\n"
15159 msgstr ""
15160
15161 # type: textblock
15162 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388
15163 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15164 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15165 msgstr ""
15166
15167 # type: textblock
15168 #: ../src/guestfs-actions.pod:6374
15169 msgid "See also C<guestfs_download>."
15170 msgstr ""
15171
15172 # type: =head2
15173 #: ../src/guestfs-actions.pod:6380
15174 msgid "guestfs_upload_offset"
15175 msgstr ""
15176
15177 # type: verbatim
15178 #: ../src/guestfs-actions.pod:6382
15179 #, no-wrap
15180 msgid ""
15181 " int\n"
15182 " guestfs_upload_offset (guestfs_h *g,\n"
15183 "                        const char *filename,\n"
15184 "                        const char *remotefilename,\n"
15185 "                        int64_t offset);\n"
15186 "\n"
15187 msgstr ""
15188
15189 # type: textblock
15190 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
15191 msgid ""
15192 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15193 "The intention is to overwrite parts of existing files or devices, although "
15194 "if a non-existant file is specified then it is created with a \"hole\" "
15195 "before C<offset>.  The size of the data written is implicit in the size of "
15196 "the source C<filename>."
15197 msgstr ""
15198
15199 # type: textblock
15200 #: ../src/guestfs-actions.pod:6398
15201 msgid ""
15202 "Note that there is no limit on the amount of data that can be uploaded with "
15203 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15204 "full amount unless an error occurs."
15205 msgstr ""
15206
15207 # type: textblock
15208 #: ../src/guestfs-actions.pod:6403
15209 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15210 msgstr ""
15211
15212 # type: =head2
15213 #: ../src/guestfs-actions.pod:6409
15214 msgid "guestfs_utimens"
15215 msgstr ""
15216
15217 # type: verbatim
15218 #: ../src/guestfs-actions.pod:6411
15219 #, no-wrap
15220 msgid ""
15221 " int\n"
15222 " guestfs_utimens (guestfs_h *g,\n"
15223 "                  const char *path,\n"
15224 "                  int64_t atsecs,\n"
15225 "                  int64_t atnsecs,\n"
15226 "                  int64_t mtsecs,\n"
15227 "                  int64_t mtnsecs);\n"
15228 "\n"
15229 msgstr ""
15230
15231 # type: textblock
15232 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
15233 msgid "This command sets the timestamps of a file with nanosecond precision."
15234 msgstr ""
15235
15236 # type: textblock
15237 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
15238 msgid ""
15239 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15240 "from the epoch."
15241 msgstr ""
15242
15243 # type: textblock
15244 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
15245 msgid ""
15246 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15247 "nanoseconds from the epoch."
15248 msgstr ""
15249
15250 # type: textblock
15251 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
15252 msgid ""
15253 "If the C<*nsecs> field contains the special value C<-1> then the "
15254 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15255 "ignored in this case)."
15256 msgstr ""
15257
15258 # type: textblock
15259 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
15260 msgid ""
15261 "If the C<*nsecs> field contains the special value C<-2> then the "
15262 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15263 "in this case)."
15264 msgstr ""
15265
15266 # type: =head2
15267 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
15268 msgid "guestfs_version"
15269 msgstr ""
15270
15271 # type: verbatim
15272 #: ../src/guestfs-actions.pod:6442
15273 #, no-wrap
15274 msgid ""
15275 " struct guestfs_version *\n"
15276 " guestfs_version (guestfs_h *g);\n"
15277 "\n"
15278 msgstr ""
15279
15280 # type: textblock
15281 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
15282 msgid ""
15283 "Return the libguestfs version number that the program is linked against."
15284 msgstr ""
15285
15286 # type: textblock
15287 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
15288 msgid ""
15289 "Note that because of dynamic linking this is not necessarily the version of "
15290 "libguestfs that you compiled against.  You can compile the program, and then "
15291 "at runtime dynamically link against a completely different C<libguestfs.so> "
15292 "library."
15293 msgstr ""
15294
15295 # type: textblock
15296 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
15297 msgid ""
15298 "This call was added in version C<1.0.58>.  In previous versions of "
15299 "libguestfs there was no way to get the version number.  From C code you can "
15300 "use dynamic linker functions to find out if this symbol exists (if it "
15301 "doesn't, then it's an earlier version)."
15302 msgstr ""
15303
15304 # type: textblock
15305 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
15306 msgid ""
15307 "The call returns a structure with four elements.  The first three (C<major>, "
15308 "C<minor> and C<release>) are numbers and correspond to the usual version "
15309 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15310 "but may be used for distro-specific information."
15311 msgstr ""
15312
15313 # type: textblock
15314 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
15315 msgid ""
15316 "To construct the original version string: C<$major.$minor.$release$extra>"
15317 msgstr ""
15318
15319 # type: textblock
15320 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
15321 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15322 msgstr ""
15323
15324 # type: textblock
15325 #: ../src/guestfs-actions.pod:6470
15326 msgid ""
15327 "I<Note:> Don't use this call to test for availability of features.  In "
15328 "enterprise distributions we backport features from later versions into "
15329 "earlier versions, making this an unreliable way to test for features.  Use "
15330 "C<guestfs_available> instead."
15331 msgstr ""
15332
15333 # type: textblock
15334 #: ../src/guestfs-actions.pod:6476
15335 msgid ""
15336 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15337 "error.  I<The caller must call C<guestfs_free_version> after use>."
15338 msgstr ""
15339
15340 # type: textblock
15341 #: ../src/guestfs-actions.pod:6480
15342 msgid "(Added in 1.0.58)"
15343 msgstr ""
15344
15345 # type: =head2
15346 #: ../src/guestfs-actions.pod:6482
15347 msgid "guestfs_vfs_label"
15348 msgstr ""
15349
15350 # type: verbatim
15351 #: ../src/guestfs-actions.pod:6484
15352 #, no-wrap
15353 msgid ""
15354 " char *\n"
15355 " guestfs_vfs_label (guestfs_h *g,\n"
15356 "                    const char *device);\n"
15357 "\n"
15358 msgstr ""
15359
15360 # type: textblock
15361 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
15362 msgid "This returns the filesystem label of the filesystem on C<device>."
15363 msgstr ""
15364
15365 # type: textblock
15366 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
15367 msgid "If the filesystem is unlabeled, this returns the empty string."
15368 msgstr ""
15369
15370 # type: textblock
15371 #: ../src/guestfs-actions.pod:6493
15372 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
15377 msgid "(Added in 1.3.18)"
15378 msgstr ""
15379
15380 # type: =head2
15381 #: ../src/guestfs-actions.pod:6500
15382 msgid "guestfs_vfs_type"
15383 msgstr ""
15384
15385 # type: verbatim
15386 #: ../src/guestfs-actions.pod:6502
15387 #, no-wrap
15388 msgid ""
15389 " char *\n"
15390 " guestfs_vfs_type (guestfs_h *g,\n"
15391 "                   const char *device);\n"
15392 "\n"
15393 msgstr ""
15394
15395 # type: textblock
15396 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
15397 msgid ""
15398 "This command gets the filesystem type corresponding to the filesystem on "
15399 "C<device>."
15400 msgstr ""
15401
15402 # type: textblock
15403 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
15404 msgid ""
15405 "For most filesystems, the result is the name of the Linux VFS module which "
15406 "would be used to mount this filesystem if you mounted it without specifying "
15407 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15408 msgstr ""
15409
15410 # type: =head2
15411 #: ../src/guestfs-actions.pod:6519
15412 msgid "guestfs_vfs_uuid"
15413 msgstr ""
15414
15415 # type: verbatim
15416 #: ../src/guestfs-actions.pod:6521
15417 #, no-wrap
15418 msgid ""
15419 " char *\n"
15420 " guestfs_vfs_uuid (guestfs_h *g,\n"
15421 "                   const char *device);\n"
15422 "\n"
15423 msgstr ""
15424
15425 # type: textblock
15426 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
15427 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15428 msgstr ""
15429
15430 # type: textblock
15431 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
15432 msgid "If the filesystem does not have a UUID, this returns the empty string."
15433 msgstr ""
15434
15435 # type: textblock
15436 #: ../src/guestfs-actions.pod:6530
15437 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15438 msgstr ""
15439
15440 # type: =head2
15441 #: ../src/guestfs-actions.pod:6537
15442 msgid "guestfs_vg_activate"
15443 msgstr ""
15444
15445 # type: verbatim
15446 #: ../src/guestfs-actions.pod:6539
15447 #, no-wrap
15448 msgid ""
15449 " int\n"
15450 " guestfs_vg_activate (guestfs_h *g,\n"
15451 "                      int activate,\n"
15452 "                      char *const *volgroups);\n"
15453 "\n"
15454 msgstr ""
15455
15456 # type: textblock
15457 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
15458 msgid ""
15459 "This command activates or (if C<activate> is false) deactivates all logical "
15460 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15461 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15462 "deactivated, then those devices disappear."
15463 msgstr ""
15464
15465 # type: textblock
15466 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
15467 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15468 msgstr ""
15469
15470 # type: textblock
15471 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
15472 msgid ""
15473 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15474 "activated or deactivated."
15475 msgstr ""
15476
15477 # type: =head2
15478 #: ../src/guestfs-actions.pod:6559
15479 msgid "guestfs_vg_activate_all"
15480 msgstr ""
15481
15482 # type: verbatim
15483 #: ../src/guestfs-actions.pod:6561
15484 #, no-wrap
15485 msgid ""
15486 " int\n"
15487 " guestfs_vg_activate_all (guestfs_h *g,\n"
15488 "                          int activate);\n"
15489 "\n"
15490 msgstr ""
15491
15492 # type: textblock
15493 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15494 msgid ""
15495 "This command activates or (if C<activate> is false) deactivates all logical "
15496 "volumes in all volume groups.  If activated, then they are made known to the "
15497 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15498 "those devices disappear."
15499 msgstr ""
15500
15501 # type: textblock
15502 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15503 msgid "This command is the same as running C<vgchange -a y|n>"
15504 msgstr ""
15505
15506 # type: =head2
15507 #: ../src/guestfs-actions.pod:6577
15508 msgid "guestfs_vgcreate"
15509 msgstr ""
15510
15511 # type: verbatim
15512 #: ../src/guestfs-actions.pod:6579
15513 #, no-wrap
15514 msgid ""
15515 " int\n"
15516 " guestfs_vgcreate (guestfs_h *g,\n"
15517 "                   const char *volgroup,\n"
15518 "                   char *const *physvols);\n"
15519 "\n"
15520 msgstr ""
15521
15522 # type: textblock
15523 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15524 msgid ""
15525 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15526 "of physical volumes C<physvols>."
15527 msgstr ""
15528
15529 # type: =head2
15530 #: ../src/guestfs-actions.pod:6591
15531 msgid "guestfs_vglvuuids"
15532 msgstr ""
15533
15534 # type: verbatim
15535 #: ../src/guestfs-actions.pod:6593
15536 #, no-wrap
15537 msgid ""
15538 " char **\n"
15539 " guestfs_vglvuuids (guestfs_h *g,\n"
15540 "                    const char *vgname);\n"
15541 "\n"
15542 msgstr ""
15543
15544 # type: textblock
15545 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15546 msgid ""
15547 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15548 "volumes created in this volume group."
15549 msgstr ""
15550
15551 # type: textblock
15552 #: ../src/guestfs-actions.pod:6600
15553 msgid ""
15554 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15555 "associate logical volumes and volume groups."
15556 msgstr ""
15557
15558 # type: textblock
15559 #: ../src/guestfs-actions.pod:6603
15560 msgid "See also C<guestfs_vgpvuuids>."
15561 msgstr ""
15562
15563 # type: =head2
15564 #: ../src/guestfs-actions.pod:6611
15565 msgid "guestfs_vgpvuuids"
15566 msgstr ""
15567
15568 # type: verbatim
15569 #: ../src/guestfs-actions.pod:6613
15570 #, no-wrap
15571 msgid ""
15572 " char **\n"
15573 " guestfs_vgpvuuids (guestfs_h *g,\n"
15574 "                    const char *vgname);\n"
15575 "\n"
15576 msgstr ""
15577
15578 # type: textblock
15579 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15580 msgid ""
15581 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15582 "volumes that this volume group resides on."
15583 msgstr ""
15584
15585 # type: textblock
15586 #: ../src/guestfs-actions.pod:6620
15587 msgid ""
15588 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15589 "associate physical volumes and volume groups."
15590 msgstr ""
15591
15592 # type: textblock
15593 #: ../src/guestfs-actions.pod:6623
15594 msgid "See also C<guestfs_vglvuuids>."
15595 msgstr ""
15596
15597 # type: =head2
15598 #: ../src/guestfs-actions.pod:6631
15599 msgid "guestfs_vgremove"
15600 msgstr ""
15601
15602 # type: verbatim
15603 #: ../src/guestfs-actions.pod:6633
15604 #, no-wrap
15605 msgid ""
15606 " int\n"
15607 " guestfs_vgremove (guestfs_h *g,\n"
15608 "                   const char *vgname);\n"
15609 "\n"
15610 msgstr ""
15611
15612 # type: textblock
15613 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15614 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15615 msgstr ""
15616
15617 # type: textblock
15618 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15619 msgid ""
15620 "This also forcibly removes all logical volumes in the volume group (if any)."
15621 msgstr ""
15622
15623 # type: =head2
15624 #: ../src/guestfs-actions.pod:6646
15625 msgid "guestfs_vgrename"
15626 msgstr ""
15627
15628 # type: verbatim
15629 #: ../src/guestfs-actions.pod:6648
15630 #, no-wrap
15631 msgid ""
15632 " int\n"
15633 " guestfs_vgrename (guestfs_h *g,\n"
15634 "                   const char *volgroup,\n"
15635 "                   const char *newvolgroup);\n"
15636 "\n"
15637 msgstr ""
15638
15639 # type: textblock
15640 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15641 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15642 msgstr ""
15643
15644 # type: =head2
15645 #: ../src/guestfs-actions.pod:6659
15646 msgid "guestfs_vgs"
15647 msgstr ""
15648
15649 # type: verbatim
15650 #: ../src/guestfs-actions.pod:6661
15651 #, no-wrap
15652 msgid ""
15653 " char **\n"
15654 " guestfs_vgs (guestfs_h *g);\n"
15655 "\n"
15656 msgstr ""
15657
15658 # type: textblock
15659 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15660 msgid ""
15661 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15662 "> command."
15663 msgstr ""
15664
15665 # type: textblock
15666 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15667 msgid ""
15668 "This returns a list of just the volume group names that were detected (eg. "
15669 "C<VolGroup00>)."
15670 msgstr ""
15671
15672 # type: textblock
15673 #: ../src/guestfs-actions.pod:6670
15674 msgid "See also C<guestfs_vgs_full>."
15675 msgstr ""
15676
15677 # type: =head2
15678 #: ../src/guestfs-actions.pod:6678
15679 msgid "guestfs_vgs_full"
15680 msgstr ""
15681
15682 # type: verbatim
15683 #: ../src/guestfs-actions.pod:6680
15684 #, no-wrap
15685 msgid ""
15686 " struct guestfs_lvm_vg_list *\n"
15687 " guestfs_vgs_full (guestfs_h *g);\n"
15688 "\n"
15689 msgstr ""
15690
15691 # type: textblock
15692 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15693 msgid ""
15694 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15695 "> command.  The \"full\" version includes all fields."
15696 msgstr ""
15697
15698 # type: textblock
15699 #: ../src/guestfs-actions.pod:6686
15700 msgid ""
15701 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15702 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15703 msgstr ""
15704
15705 # type: =head2
15706 #: ../src/guestfs-actions.pod:6692
15707 msgid "guestfs_vgscan"
15708 msgstr ""
15709
15710 # type: verbatim
15711 #: ../src/guestfs-actions.pod:6694
15712 #, no-wrap
15713 msgid ""
15714 " int\n"
15715 " guestfs_vgscan (guestfs_h *g);\n"
15716 "\n"
15717 msgstr ""
15718
15719 # type: textblock
15720 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15721 msgid ""
15722 "This rescans all block devices and rebuilds the list of LVM physical "
15723 "volumes, volume groups and logical volumes."
15724 msgstr ""
15725
15726 # type: =head2
15727 #: ../src/guestfs-actions.pod:6704
15728 msgid "guestfs_vguuid"
15729 msgstr ""
15730
15731 # type: verbatim
15732 #: ../src/guestfs-actions.pod:6706
15733 #, no-wrap
15734 msgid ""
15735 " char *\n"
15736 " guestfs_vguuid (guestfs_h *g,\n"
15737 "                 const char *vgname);\n"
15738 "\n"
15739 msgstr ""
15740
15741 # type: textblock
15742 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15743 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15744 msgstr ""
15745
15746 # type: =head2
15747 #: ../src/guestfs-actions.pod:6717
15748 msgid "guestfs_wait_ready"
15749 msgstr ""
15750
15751 # type: verbatim
15752 #: ../src/guestfs-actions.pod:6719
15753 #, no-wrap
15754 msgid ""
15755 " int\n"
15756 " guestfs_wait_ready (guestfs_h *g);\n"
15757 "\n"
15758 msgstr ""
15759
15760 # type: textblock
15761 #: ../src/guestfs-actions.pod:6722
15762 msgid "This function is a no op."
15763 msgstr ""
15764
15765 # type: textblock
15766 #: ../src/guestfs-actions.pod:6724
15767 msgid ""
15768 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15769 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15770 "is no longer necessary because C<guestfs_launch> now does the waiting."
15771 msgstr ""
15772
15773 # type: textblock
15774 #: ../src/guestfs-actions.pod:6729
15775 msgid ""
15776 "If you see any calls to this function in code then you can just remove them, "
15777 "unless you want to retain compatibility with older versions of the API."
15778 msgstr ""
15779
15780 # type: =head2
15781 #: ../src/guestfs-actions.pod:6737
15782 msgid "guestfs_wc_c"
15783 msgstr ""
15784
15785 # type: verbatim
15786 #: ../src/guestfs-actions.pod:6739
15787 #, no-wrap
15788 msgid ""
15789 " int\n"
15790 " guestfs_wc_c (guestfs_h *g,\n"
15791 "               const char *path);\n"
15792 "\n"
15793 msgstr ""
15794
15795 # type: textblock
15796 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15797 msgid ""
15798 "This command counts the characters in a file, using the C<wc -c> external "
15799 "command."
15800 msgstr ""
15801
15802 # type: =head2
15803 #: ../src/guestfs-actions.pod:6750
15804 msgid "guestfs_wc_l"
15805 msgstr ""
15806
15807 # type: verbatim
15808 #: ../src/guestfs-actions.pod:6752
15809 #, no-wrap
15810 msgid ""
15811 " int\n"
15812 " guestfs_wc_l (guestfs_h *g,\n"
15813 "               const char *path);\n"
15814 "\n"
15815 msgstr ""
15816
15817 # type: textblock
15818 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15819 msgid ""
15820 "This command counts the lines in a file, using the C<wc -l> external command."
15821 msgstr ""
15822
15823 # type: =head2
15824 #: ../src/guestfs-actions.pod:6763
15825 msgid "guestfs_wc_w"
15826 msgstr ""
15827
15828 # type: verbatim
15829 #: ../src/guestfs-actions.pod:6765
15830 #, no-wrap
15831 msgid ""
15832 " int\n"
15833 " guestfs_wc_w (guestfs_h *g,\n"
15834 "               const char *path);\n"
15835 "\n"
15836 msgstr ""
15837
15838 # type: textblock
15839 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15840 msgid ""
15841 "This command counts the words in a file, using the C<wc -w> external command."
15842 msgstr ""
15843
15844 # type: =head2
15845 #: ../src/guestfs-actions.pod:6776
15846 msgid "guestfs_write"
15847 msgstr ""
15848
15849 # type: verbatim
15850 #: ../src/guestfs-actions.pod:6778
15851 #, no-wrap
15852 msgid ""
15853 " int\n"
15854 " guestfs_write (guestfs_h *g,\n"
15855 "                const char *path,\n"
15856 "                const char *content,\n"
15857 "                size_t content_size);\n"
15858 "\n"
15859 msgstr ""
15860
15861 # type: textblock
15862 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15863 msgid ""
15864 "This call creates a file called C<path>.  The content of the file is the "
15865 "string C<content> (which can contain any 8 bit data)."
15866 msgstr ""
15867
15868 # type: =head2
15869 #: ../src/guestfs-actions.pod:6794
15870 msgid "guestfs_write_file"
15871 msgstr ""
15872
15873 # type: verbatim
15874 #: ../src/guestfs-actions.pod:6796
15875 #, no-wrap
15876 msgid ""
15877 " int\n"
15878 " guestfs_write_file (guestfs_h *g,\n"
15879 "                     const char *path,\n"
15880 "                     const char *content,\n"
15881 "                     int size);\n"
15882 "\n"
15883 msgstr ""
15884
15885 # type: textblock
15886 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15887 msgid ""
15888 "This call creates a file called C<path>.  The contents of the file is the "
15889 "string C<content> (which can contain any 8 bit data), with length C<size>."
15890 msgstr ""
15891
15892 # type: textblock
15893 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15894 msgid ""
15895 "As a special case, if C<size> is C<0> then the length is calculated using "
15896 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15897 msgstr ""
15898
15899 # type: textblock
15900 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15901 msgid ""
15902 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15903 "I<not> work, even if the length is specified."
15904 msgstr ""
15905
15906 # type: textblock
15907 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15908 msgid ""
15909 "This function is deprecated.  In new code, use the C<write> call instead."
15910 msgstr ""
15911
15912 # type: =head2
15913 #: ../src/guestfs-actions.pod:6827
15914 msgid "guestfs_zegrep"
15915 msgstr ""
15916
15917 # type: verbatim
15918 #: ../src/guestfs-actions.pod:6829
15919 #, no-wrap
15920 msgid ""
15921 " char **\n"
15922 " guestfs_zegrep (guestfs_h *g,\n"
15923 "                 const char *regex,\n"
15924 "                 const char *path);\n"
15925 "\n"
15926 msgstr ""
15927
15928 # type: textblock
15929 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15930 msgid ""
15931 "This calls the external C<zegrep> program and returns the matching lines."
15932 msgstr ""
15933
15934 # type: =head2
15935 #: ../src/guestfs-actions.pod:6846
15936 msgid "guestfs_zegrepi"
15937 msgstr ""
15938
15939 # type: verbatim
15940 #: ../src/guestfs-actions.pod:6848
15941 #, no-wrap
15942 msgid ""
15943 " char **\n"
15944 " guestfs_zegrepi (guestfs_h *g,\n"
15945 "                  const char *regex,\n"
15946 "                  const char *path);\n"
15947 "\n"
15948 msgstr ""
15949
15950 # type: textblock
15951 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15952 msgid ""
15953 "This calls the external C<zegrep -i> program and returns the matching lines."
15954 msgstr ""
15955
15956 # type: =head2
15957 #: ../src/guestfs-actions.pod:6865
15958 msgid "guestfs_zero"
15959 msgstr ""
15960
15961 # type: verbatim
15962 #: ../src/guestfs-actions.pod:6867
15963 #, no-wrap
15964 msgid ""
15965 " int\n"
15966 " guestfs_zero (guestfs_h *g,\n"
15967 "               const char *device);\n"
15968 "\n"
15969 msgstr ""
15970
15971 # type: textblock
15972 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15973 msgid "This command writes zeroes over the first few blocks of C<device>."
15974 msgstr ""
15975
15976 # type: textblock
15977 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15978 msgid ""
15979 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15980 "securely wipe the device).  It should be sufficient to remove any partition "
15981 "tables, filesystem superblocks and so on."
15982 msgstr ""
15983
15984 # type: textblock
15985 #: ../src/guestfs-actions.pod:6877
15986 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15987 msgstr ""
15988
15989 # type: =head2
15990 #: ../src/guestfs-actions.pod:6888
15991 msgid "guestfs_zero_device"
15992 msgstr ""
15993
15994 # type: verbatim
15995 #: ../src/guestfs-actions.pod:6890
15996 #, no-wrap
15997 msgid ""
15998 " int\n"
15999 " guestfs_zero_device (guestfs_h *g,\n"
16000 "                      const char *device);\n"
16001 "\n"
16002 msgstr ""
16003
16004 # type: textblock
16005 #: ../src/guestfs-actions.pod:6894
16006 msgid ""
16007 "This command writes zeroes over the entire C<device>.  Compare with "
16008 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16009 msgstr ""
16010
16011 # type: textblock
16012 #: ../src/guestfs-actions.pod:6908
16013 msgid "(Added in 1.3.1)"
16014 msgstr ""
16015
16016 # type: =head2
16017 #: ../src/guestfs-actions.pod:6910
16018 msgid "guestfs_zerofree"
16019 msgstr ""
16020
16021 # type: verbatim
16022 #: ../src/guestfs-actions.pod:6912
16023 #, no-wrap
16024 msgid ""
16025 " int\n"
16026 " guestfs_zerofree (guestfs_h *g,\n"
16027 "                   const char *device);\n"
16028 "\n"
16029 msgstr ""
16030
16031 # type: textblock
16032 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
16033 msgid ""
16034 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16035 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16036 "possible to compress the filesystem more effectively."
16037 msgstr ""
16038
16039 # type: textblock
16040 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
16041 msgid "You should B<not> run this program if the filesystem is mounted."
16042 msgstr ""
16043
16044 # type: textblock
16045 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
16046 msgid ""
16047 "It is possible that using this program can damage the filesystem or data on "
16048 "the filesystem."
16049 msgstr ""
16050
16051 # type: =head2
16052 #: ../src/guestfs-actions.pod:6931
16053 msgid "guestfs_zfgrep"
16054 msgstr ""
16055
16056 # type: verbatim
16057 #: ../src/guestfs-actions.pod:6933
16058 #, no-wrap
16059 msgid ""
16060 " char **\n"
16061 " guestfs_zfgrep (guestfs_h *g,\n"
16062 "                 const char *pattern,\n"
16063 "                 const char *path);\n"
16064 "\n"
16065 msgstr ""
16066
16067 # type: textblock
16068 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
16069 msgid ""
16070 "This calls the external C<zfgrep> program and returns the matching lines."
16071 msgstr ""
16072
16073 # type: =head2
16074 #: ../src/guestfs-actions.pod:6950
16075 msgid "guestfs_zfgrepi"
16076 msgstr ""
16077
16078 # type: verbatim
16079 #: ../src/guestfs-actions.pod:6952
16080 #, no-wrap
16081 msgid ""
16082 " char **\n"
16083 " guestfs_zfgrepi (guestfs_h *g,\n"
16084 "                  const char *pattern,\n"
16085 "                  const char *path);\n"
16086 "\n"
16087 msgstr ""
16088
16089 # type: textblock
16090 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
16091 msgid ""
16092 "This calls the external C<zfgrep -i> program and returns the matching lines."
16093 msgstr ""
16094
16095 # type: =head2
16096 #: ../src/guestfs-actions.pod:6969
16097 msgid "guestfs_zfile"
16098 msgstr ""
16099
16100 # type: verbatim
16101 #: ../src/guestfs-actions.pod:6971
16102 #, no-wrap
16103 msgid ""
16104 " char *\n"
16105 " guestfs_zfile (guestfs_h *g,\n"
16106 "                const char *meth,\n"
16107 "                const char *path);\n"
16108 "\n"
16109 msgstr ""
16110
16111 # type: textblock
16112 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
16113 msgid ""
16114 "This command runs C<file> after first decompressing C<path> using C<method>."
16115 msgstr ""
16116
16117 # type: textblock
16118 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
16119 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16120 msgstr ""
16121
16122 # type: textblock
16123 #: ../src/guestfs-actions.pod:6981
16124 msgid ""
16125 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16126 "files."
16127 msgstr ""
16128
16129 # type: textblock
16130 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
16131 msgid ""
16132 "This function is deprecated.  In new code, use the C<file> call instead."
16133 msgstr ""
16134
16135 # type: =head2
16136 #: ../src/guestfs-actions.pod:6996
16137 msgid "guestfs_zgrep"
16138 msgstr ""
16139
16140 # type: verbatim
16141 #: ../src/guestfs-actions.pod:6998
16142 #, no-wrap
16143 msgid ""
16144 " char **\n"
16145 " guestfs_zgrep (guestfs_h *g,\n"
16146 "                const char *regex,\n"
16147 "                const char *path);\n"
16148 "\n"
16149 msgstr ""
16150
16151 # type: textblock
16152 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
16153 msgid ""
16154 "This calls the external C<zgrep> program and returns the matching lines."
16155 msgstr ""
16156
16157 # type: =head2
16158 #: ../src/guestfs-actions.pod:7015
16159 msgid "guestfs_zgrepi"
16160 msgstr ""
16161
16162 # type: verbatim
16163 #: ../src/guestfs-actions.pod:7017
16164 #, no-wrap
16165 msgid ""
16166 " char **\n"
16167 " guestfs_zgrepi (guestfs_h *g,\n"
16168 "                 const char *regex,\n"
16169 "                 const char *path);\n"
16170 "\n"
16171 msgstr ""
16172
16173 # type: textblock
16174 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
16175 msgid ""
16176 "This calls the external C<zgrep -i> program and returns the matching lines."
16177 msgstr ""
16178
16179 # type: =item
16180 #: ../src/guestfs-availability.pod:3
16181 msgid "B<augeas>"
16182 msgstr ""
16183
16184 # type: textblock
16185 #: ../src/guestfs-availability.pod:5
16186 msgid ""
16187 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16188 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16189 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16190 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16191 "L</guestfs_aug_save> L</guestfs_aug_set>"
16192 msgstr ""
16193
16194 # type: =item
16195 #: ../src/guestfs-availability.pod:21
16196 msgid "B<inotify>"
16197 msgstr ""
16198
16199 # type: textblock
16200 #: ../src/guestfs-availability.pod:23
16201 msgid ""
16202 "The following functions: L</guestfs_inotify_add_watch> L</"
16203 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16204 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16205 msgstr ""
16206
16207 # type: =item
16208 #: ../src/guestfs-availability.pod:31
16209 msgid "B<linuxfsuuid>"
16210 msgstr ""
16211
16212 # type: textblock
16213 #: ../src/guestfs-availability.pod:33
16214 msgid ""
16215 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16216 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16217 msgstr ""
16218
16219 # type: =item
16220 #: ../src/guestfs-availability.pod:40
16221 msgid "B<linuxmodules>"
16222 msgstr ""
16223
16224 # type: textblock
16225 #: ../src/guestfs-availability.pod:42
16226 msgid "The following functions: L</guestfs_modprobe>"
16227 msgstr ""
16228
16229 # type: =item
16230 #: ../src/guestfs-availability.pod:45
16231 msgid "B<linuxxattrs>"
16232 msgstr ""
16233
16234 # type: textblock
16235 #: ../src/guestfs-availability.pod:47
16236 msgid ""
16237 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16238 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16239 "guestfs_removexattr> L</guestfs_setxattr>"
16240 msgstr ""
16241
16242 # type: =item
16243 #: ../src/guestfs-availability.pod:56
16244 msgid "B<luks>"
16245 msgstr ""
16246
16247 # type: textblock
16248 #: ../src/guestfs-availability.pod:58
16249 msgid ""
16250 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16251 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16252 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16253 msgstr ""
16254
16255 # type: =item
16256 #: ../src/guestfs-availability.pod:67
16257 msgid "B<lvm2>"
16258 msgstr ""
16259
16260 # type: textblock
16261 #: ../src/guestfs-availability.pod:69
16262 msgid ""
16263 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16264 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16265 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16266 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16267 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16268 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16269 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16270 msgstr ""
16271
16272 # type: =item
16273 #: ../src/guestfs-availability.pod:92
16274 msgid "B<mknod>"
16275 msgstr ""
16276
16277 # type: textblock
16278 #: ../src/guestfs-availability.pod:94
16279 msgid ""
16280 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16281 "guestfs_mknod_b> L</guestfs_mknod_c>"
16282 msgstr ""
16283
16284 # type: =item
16285 #: ../src/guestfs-availability.pod:100
16286 msgid "B<ntfs3g>"
16287 msgstr ""
16288
16289 # type: textblock
16290 #: ../src/guestfs-availability.pod:102
16291 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16292 msgstr ""
16293
16294 # type: =item
16295 #: ../src/guestfs-availability.pod:105
16296 msgid "B<ntfsprogs>"
16297 msgstr ""
16298
16299 # type: textblock
16300 #: ../src/guestfs-availability.pod:107
16301 msgid ""
16302 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16303 msgstr ""
16304
16305 # type: =item
16306 #: ../src/guestfs-availability.pod:111
16307 msgid "B<realpath>"
16308 msgstr ""
16309
16310 # type: textblock
16311 #: ../src/guestfs-availability.pod:113
16312 msgid "The following functions: L</guestfs_realpath>"
16313 msgstr ""
16314
16315 # type: =item
16316 #: ../src/guestfs-availability.pod:116
16317 msgid "B<scrub>"
16318 msgstr ""
16319
16320 # type: textblock
16321 #: ../src/guestfs-availability.pod:118
16322 msgid ""
16323 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16324 "guestfs_scrub_freespace>"
16325 msgstr ""
16326
16327 # type: =item
16328 #: ../src/guestfs-availability.pod:123
16329 msgid "B<selinux>"
16330 msgstr ""
16331
16332 # type: textblock
16333 #: ../src/guestfs-availability.pod:125
16334 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16335 msgstr ""
16336
16337 # type: =item
16338 #: ../src/guestfs-availability.pod:129
16339 msgid "B<xz>"
16340 msgstr ""
16341
16342 # type: textblock
16343 #: ../src/guestfs-availability.pod:131
16344 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16345 msgstr ""
16346
16347 # type: =item
16348 #: ../src/guestfs-availability.pod:135
16349 msgid "B<zerofree>"
16350 msgstr ""
16351
16352 # type: textblock
16353 #: ../src/guestfs-availability.pod:137
16354 msgid "The following functions: L</guestfs_zerofree>"
16355 msgstr ""
16356
16357 # type: =head2
16358 #: ../src/guestfs-structs.pod:1
16359 msgid "guestfs_int_bool"
16360 msgstr ""
16361
16362 # type: verbatim
16363 #: ../src/guestfs-structs.pod:3
16364 #, no-wrap
16365 msgid ""
16366 " struct guestfs_int_bool {\n"
16367 "   int32_t i;\n"
16368 "   int32_t b;\n"
16369 " };\n"
16370 " \n"
16371 msgstr ""
16372
16373 # type: verbatim
16374 #: ../src/guestfs-structs.pod:8
16375 #, no-wrap
16376 msgid ""
16377 " struct guestfs_int_bool_list {\n"
16378 "   uint32_t len; /* Number of elements in list. */\n"
16379 "   struct guestfs_int_bool *val; /* Elements. */\n"
16380 " };\n"
16381 " \n"
16382 msgstr ""
16383
16384 # type: verbatim
16385 #: ../src/guestfs-structs.pod:13
16386 #, no-wrap
16387 msgid ""
16388 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16389 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16390 "\n"
16391 msgstr ""
16392
16393 # type: =head2
16394 #: ../src/guestfs-structs.pod:16
16395 msgid "guestfs_lvm_pv"
16396 msgstr ""
16397
16398 # type: verbatim
16399 #: ../src/guestfs-structs.pod:18
16400 #, no-wrap
16401 msgid ""
16402 " struct guestfs_lvm_pv {\n"
16403 "   char *pv_name;\n"
16404 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16405 "   char pv_uuid[32];\n"
16406 "   char *pv_fmt;\n"
16407 "   uint64_t pv_size;\n"
16408 "   uint64_t dev_size;\n"
16409 "   uint64_t pv_free;\n"
16410 "   uint64_t pv_used;\n"
16411 "   char *pv_attr;\n"
16412 "   int64_t pv_pe_count;\n"
16413 "   int64_t pv_pe_alloc_count;\n"
16414 "   char *pv_tags;\n"
16415 "   uint64_t pe_start;\n"
16416 "   int64_t pv_mda_count;\n"
16417 "   uint64_t pv_mda_free;\n"
16418 " };\n"
16419 " \n"
16420 msgstr ""
16421
16422 # type: verbatim
16423 #: ../src/guestfs-structs.pod:36
16424 #, no-wrap
16425 msgid ""
16426 " struct guestfs_lvm_pv_list {\n"
16427 "   uint32_t len; /* Number of elements in list. */\n"
16428 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16429 " };\n"
16430 " \n"
16431 msgstr ""
16432
16433 # type: verbatim
16434 #: ../src/guestfs-structs.pod:41
16435 #, no-wrap
16436 msgid ""
16437 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16438 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16439 "\n"
16440 msgstr ""
16441
16442 # type: =head2
16443 #: ../src/guestfs-structs.pod:44
16444 msgid "guestfs_lvm_vg"
16445 msgstr ""
16446
16447 # type: verbatim
16448 #: ../src/guestfs-structs.pod:46
16449 #, no-wrap
16450 msgid ""
16451 " struct guestfs_lvm_vg {\n"
16452 "   char *vg_name;\n"
16453 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16454 "   char vg_uuid[32];\n"
16455 "   char *vg_fmt;\n"
16456 "   char *vg_attr;\n"
16457 "   uint64_t vg_size;\n"
16458 "   uint64_t vg_free;\n"
16459 "   char *vg_sysid;\n"
16460 "   uint64_t vg_extent_size;\n"
16461 "   int64_t vg_extent_count;\n"
16462 "   int64_t vg_free_count;\n"
16463 "   int64_t max_lv;\n"
16464 "   int64_t max_pv;\n"
16465 "   int64_t pv_count;\n"
16466 "   int64_t lv_count;\n"
16467 "   int64_t snap_count;\n"
16468 "   int64_t vg_seqno;\n"
16469 "   char *vg_tags;\n"
16470 "   int64_t vg_mda_count;\n"
16471 "   uint64_t vg_mda_free;\n"
16472 " };\n"
16473 " \n"
16474 msgstr ""
16475
16476 # type: verbatim
16477 #: ../src/guestfs-structs.pod:69
16478 #, no-wrap
16479 msgid ""
16480 " struct guestfs_lvm_vg_list {\n"
16481 "   uint32_t len; /* Number of elements in list. */\n"
16482 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16483 " };\n"
16484 " \n"
16485 msgstr ""
16486
16487 # type: verbatim
16488 #: ../src/guestfs-structs.pod:74
16489 #, no-wrap
16490 msgid ""
16491 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16492 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16493 "\n"
16494 msgstr ""
16495
16496 # type: =head2
16497 #: ../src/guestfs-structs.pod:77
16498 msgid "guestfs_lvm_lv"
16499 msgstr ""
16500
16501 # type: verbatim
16502 #: ../src/guestfs-structs.pod:79
16503 #, no-wrap
16504 msgid ""
16505 " struct guestfs_lvm_lv {\n"
16506 "   char *lv_name;\n"
16507 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16508 "   char lv_uuid[32];\n"
16509 "   char *lv_attr;\n"
16510 "   int64_t lv_major;\n"
16511 "   int64_t lv_minor;\n"
16512 "   int64_t lv_kernel_major;\n"
16513 "   int64_t lv_kernel_minor;\n"
16514 "   uint64_t lv_size;\n"
16515 "   int64_t seg_count;\n"
16516 "   char *origin;\n"
16517 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16518 "   float snap_percent;\n"
16519 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16520 "   float copy_percent;\n"
16521 "   char *move_pv;\n"
16522 "   char *lv_tags;\n"
16523 "   char *mirror_log;\n"
16524 "   char *modules;\n"
16525 " };\n"
16526 " \n"
16527 msgstr ""
16528
16529 # type: verbatim
16530 #: ../src/guestfs-structs.pod:101
16531 #, no-wrap
16532 msgid ""
16533 " struct guestfs_lvm_lv_list {\n"
16534 "   uint32_t len; /* Number of elements in list. */\n"
16535 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16536 " };\n"
16537 " \n"
16538 msgstr ""
16539
16540 # type: verbatim
16541 #: ../src/guestfs-structs.pod:106
16542 #, no-wrap
16543 msgid ""
16544 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16545 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16546 "\n"
16547 msgstr ""
16548
16549 # type: verbatim
16550 #: ../src/guestfs-structs.pod:111
16551 #, no-wrap
16552 msgid ""
16553 " struct guestfs_stat {\n"
16554 "   int64_t dev;\n"
16555 "   int64_t ino;\n"
16556 "   int64_t mode;\n"
16557 "   int64_t nlink;\n"
16558 "   int64_t uid;\n"
16559 "   int64_t gid;\n"
16560 "   int64_t rdev;\n"
16561 "   int64_t size;\n"
16562 "   int64_t blksize;\n"
16563 "   int64_t blocks;\n"
16564 "   int64_t atime;\n"
16565 "   int64_t mtime;\n"
16566 "   int64_t ctime;\n"
16567 " };\n"
16568 " \n"
16569 msgstr ""
16570
16571 # type: verbatim
16572 #: ../src/guestfs-structs.pod:127
16573 #, no-wrap
16574 msgid ""
16575 " struct guestfs_stat_list {\n"
16576 "   uint32_t len; /* Number of elements in list. */\n"
16577 "   struct guestfs_stat *val; /* Elements. */\n"
16578 " };\n"
16579 " \n"
16580 msgstr ""
16581
16582 # type: verbatim
16583 #: ../src/guestfs-structs.pod:132
16584 #, no-wrap
16585 msgid ""
16586 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16587 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16588 "\n"
16589 msgstr ""
16590
16591 # type: verbatim
16592 #: ../src/guestfs-structs.pod:137
16593 #, no-wrap
16594 msgid ""
16595 " struct guestfs_statvfs {\n"
16596 "   int64_t bsize;\n"
16597 "   int64_t frsize;\n"
16598 "   int64_t blocks;\n"
16599 "   int64_t bfree;\n"
16600 "   int64_t bavail;\n"
16601 "   int64_t files;\n"
16602 "   int64_t ffree;\n"
16603 "   int64_t favail;\n"
16604 "   int64_t fsid;\n"
16605 "   int64_t flag;\n"
16606 "   int64_t namemax;\n"
16607 " };\n"
16608 " \n"
16609 msgstr ""
16610
16611 # type: verbatim
16612 #: ../src/guestfs-structs.pod:151
16613 #, no-wrap
16614 msgid ""
16615 " struct guestfs_statvfs_list {\n"
16616 "   uint32_t len; /* Number of elements in list. */\n"
16617 "   struct guestfs_statvfs *val; /* Elements. */\n"
16618 " };\n"
16619 " \n"
16620 msgstr ""
16621
16622 # type: verbatim
16623 #: ../src/guestfs-structs.pod:156
16624 #, no-wrap
16625 msgid ""
16626 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16627 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16628 "\n"
16629 msgstr ""
16630
16631 # type: =head2
16632 #: ../src/guestfs-structs.pod:159
16633 msgid "guestfs_dirent"
16634 msgstr ""
16635
16636 # type: verbatim
16637 #: ../src/guestfs-structs.pod:161
16638 #, no-wrap
16639 msgid ""
16640 " struct guestfs_dirent {\n"
16641 "   int64_t ino;\n"
16642 "   char ftyp;\n"
16643 "   char *name;\n"
16644 " };\n"
16645 " \n"
16646 msgstr ""
16647
16648 # type: verbatim
16649 #: ../src/guestfs-structs.pod:167
16650 #, no-wrap
16651 msgid ""
16652 " struct guestfs_dirent_list {\n"
16653 "   uint32_t len; /* Number of elements in list. */\n"
16654 "   struct guestfs_dirent *val; /* Elements. */\n"
16655 " };\n"
16656 " \n"
16657 msgstr ""
16658
16659 # type: verbatim
16660 #: ../src/guestfs-structs.pod:172
16661 #, no-wrap
16662 msgid ""
16663 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16664 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16665 "\n"
16666 msgstr ""
16667
16668 # type: verbatim
16669 #: ../src/guestfs-structs.pod:177
16670 #, no-wrap
16671 msgid ""
16672 " struct guestfs_version {\n"
16673 "   int64_t major;\n"
16674 "   int64_t minor;\n"
16675 "   int64_t release;\n"
16676 "   char *extra;\n"
16677 " };\n"
16678 " \n"
16679 msgstr ""
16680
16681 # type: verbatim
16682 #: ../src/guestfs-structs.pod:184
16683 #, no-wrap
16684 msgid ""
16685 " struct guestfs_version_list {\n"
16686 "   uint32_t len; /* Number of elements in list. */\n"
16687 "   struct guestfs_version *val; /* Elements. */\n"
16688 " };\n"
16689 " \n"
16690 msgstr ""
16691
16692 # type: verbatim
16693 #: ../src/guestfs-structs.pod:189
16694 #, no-wrap
16695 msgid ""
16696 " void guestfs_free_version (struct guestfs_free_version *);\n"
16697 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16698 "\n"
16699 msgstr ""
16700
16701 # type: =head2
16702 #: ../src/guestfs-structs.pod:192
16703 msgid "guestfs_xattr"
16704 msgstr ""
16705
16706 # type: verbatim
16707 #: ../src/guestfs-structs.pod:194
16708 #, no-wrap
16709 msgid ""
16710 " struct guestfs_xattr {\n"
16711 "   char *attrname;\n"
16712 "   /* The next two fields describe a byte array. */\n"
16713 "   uint32_t attrval_len;\n"
16714 "   char *attrval;\n"
16715 " };\n"
16716 " \n"
16717 msgstr ""
16718
16719 # type: verbatim
16720 #: ../src/guestfs-structs.pod:201
16721 #, no-wrap
16722 msgid ""
16723 " struct guestfs_xattr_list {\n"
16724 "   uint32_t len; /* Number of elements in list. */\n"
16725 "   struct guestfs_xattr *val; /* Elements. */\n"
16726 " };\n"
16727 " \n"
16728 msgstr ""
16729
16730 # type: verbatim
16731 #: ../src/guestfs-structs.pod:206
16732 #, no-wrap
16733 msgid ""
16734 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16735 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16736 "\n"
16737 msgstr ""
16738
16739 # type: =head2
16740 #: ../src/guestfs-structs.pod:209
16741 msgid "guestfs_inotify_event"
16742 msgstr ""
16743
16744 # type: verbatim
16745 #: ../src/guestfs-structs.pod:211
16746 #, no-wrap
16747 msgid ""
16748 " struct guestfs_inotify_event {\n"
16749 "   int64_t in_wd;\n"
16750 "   uint32_t in_mask;\n"
16751 "   uint32_t in_cookie;\n"
16752 "   char *in_name;\n"
16753 " };\n"
16754 " \n"
16755 msgstr ""
16756
16757 # type: verbatim
16758 #: ../src/guestfs-structs.pod:218
16759 #, no-wrap
16760 msgid ""
16761 " struct guestfs_inotify_event_list {\n"
16762 "   uint32_t len; /* Number of elements in list. */\n"
16763 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16764 " };\n"
16765 " \n"
16766 msgstr ""
16767
16768 # type: verbatim
16769 #: ../src/guestfs-structs.pod:223
16770 #, no-wrap
16771 msgid ""
16772 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16773 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16774 "\n"
16775 msgstr ""
16776
16777 # type: =head2
16778 #: ../src/guestfs-structs.pod:226
16779 msgid "guestfs_partition"
16780 msgstr ""
16781
16782 # type: verbatim
16783 #: ../src/guestfs-structs.pod:228
16784 #, no-wrap
16785 msgid ""
16786 " struct guestfs_partition {\n"
16787 "   int32_t part_num;\n"
16788 "   uint64_t part_start;\n"
16789 "   uint64_t part_end;\n"
16790 "   uint64_t part_size;\n"
16791 " };\n"
16792 " \n"
16793 msgstr ""
16794
16795 # type: verbatim
16796 #: ../src/guestfs-structs.pod:235
16797 #, no-wrap
16798 msgid ""
16799 " struct guestfs_partition_list {\n"
16800 "   uint32_t len; /* Number of elements in list. */\n"
16801 "   struct guestfs_partition *val; /* Elements. */\n"
16802 " };\n"
16803 " \n"
16804 msgstr ""
16805
16806 # type: verbatim
16807 #: ../src/guestfs-structs.pod:240
16808 #, no-wrap
16809 msgid ""
16810 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16811 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16812 "\n"
16813 msgstr ""
16814
16815 # type: =head2
16816 #: ../src/guestfs-structs.pod:243
16817 msgid "guestfs_application"
16818 msgstr ""
16819
16820 # type: verbatim
16821 #: ../src/guestfs-structs.pod:245
16822 #, no-wrap
16823 msgid ""
16824 " struct guestfs_application {\n"
16825 "   char *app_name;\n"
16826 "   char *app_display_name;\n"
16827 "   int32_t app_epoch;\n"
16828 "   char *app_version;\n"
16829 "   char *app_release;\n"
16830 "   char *app_install_path;\n"
16831 "   char *app_trans_path;\n"
16832 "   char *app_publisher;\n"
16833 "   char *app_url;\n"
16834 "   char *app_source_package;\n"
16835 "   char *app_summary;\n"
16836 "   char *app_description;\n"
16837 " };\n"
16838 " \n"
16839 msgstr ""
16840
16841 # type: verbatim
16842 #: ../src/guestfs-structs.pod:260
16843 #, no-wrap
16844 msgid ""
16845 " struct guestfs_application_list {\n"
16846 "   uint32_t len; /* Number of elements in list. */\n"
16847 "   struct guestfs_application *val; /* Elements. */\n"
16848 " };\n"
16849 " \n"
16850 msgstr ""
16851
16852 # type: verbatim
16853 #: ../src/guestfs-structs.pod:265
16854 #, no-wrap
16855 msgid ""
16856 " void guestfs_free_application (struct guestfs_free_application *);\n"
16857 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16858 "\n"
16859 msgstr ""
16860
16861 # type: textblock
16862 #: ../fish/guestfish.pod:5
16863 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16864 msgstr ""
16865
16866 # type: verbatim
16867 #: ../fish/guestfish.pod:9
16868 #, no-wrap
16869 msgid ""
16870 " guestfish [--options] [commands]\n"
16871 "\n"
16872 msgstr ""
16873
16874 # type: verbatim
16875 #: ../fish/guestfish.pod:11
16876 #, no-wrap
16877 msgid ""
16878 " guestfish\n"
16879 "\n"
16880 msgstr ""
16881
16882 # type: verbatim
16883 #: ../fish/guestfish.pod:13
16884 #, no-wrap
16885 msgid ""
16886 " guestfish [--ro|--rw] -a disk.img\n"
16887 "\n"
16888 msgstr ""
16889
16890 # type: verbatim
16891 #: ../fish/guestfish.pod:15
16892 #, no-wrap
16893 msgid ""
16894 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16895 "\n"
16896 msgstr ""
16897
16898 # type: verbatim
16899 #: ../fish/guestfish.pod:17
16900 #, no-wrap
16901 msgid ""
16902 " guestfish -d libvirt-domain\n"
16903 "\n"
16904 msgstr ""
16905
16906 # type: verbatim
16907 #: ../fish/guestfish.pod:19
16908 #, no-wrap
16909 msgid ""
16910 " guestfish [--ro|--rw] -a disk.img -i\n"
16911 "\n"
16912 msgstr ""
16913
16914 # type: verbatim
16915 #: ../fish/guestfish.pod:21
16916 #, no-wrap
16917 msgid ""
16918 " guestfish -d libvirt-domain -i\n"
16919 "\n"
16920 msgstr ""
16921
16922 # type: =head1
16923 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16924 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16925 #: ../tools/virt-rescue.pl:41
16926 msgid "WARNING"
16927 msgstr ""
16928
16929 # type: textblock
16930 #: ../fish/guestfish.pod:25
16931 msgid ""
16932 "Using guestfish in read/write mode on live virtual machines can be "
16933 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16934 "option to use guestfish safely if the disk image or virtual machine might be "
16935 "live."
16936 msgstr ""
16937
16938 # type: textblock
16939 #: ../fish/guestfish.pod:32
16940 msgid ""
16941 "Guestfish is a shell and command-line tool for examining and modifying "
16942 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16943 "functionality of the guestfs API, see L<guestfs(3)>."
16944 msgstr ""
16945
16946 # type: textblock
16947 #: ../fish/guestfish.pod:36
16948 msgid ""
16949 "Guestfish gives you structured access to the libguestfs API, from shell "
16950 "scripts or the command line or interactively.  If you want to rescue a "
16951 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16952 "command."
16953 msgstr ""
16954
16955 # type: =head1
16956 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847
16957 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16958 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16959 msgid "EXAMPLES"
16960 msgstr ""
16961
16962 # type: =head2
16963 #: ../fish/guestfish.pod:43
16964 msgid "As an interactive shell"
16965 msgstr ""
16966
16967 # type: verbatim
16968 #: ../fish/guestfish.pod:45
16969 #, no-wrap
16970 msgid ""
16971 " $ guestfish\n"
16972 " \n"
16973 msgstr ""
16974
16975 # type: verbatim
16976 #: ../fish/guestfish.pod:47
16977 #, no-wrap
16978 msgid ""
16979 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16980 " editing virtual machine filesystems.\n"
16981 " \n"
16982 msgstr ""
16983
16984 # type: verbatim
16985 #: ../fish/guestfish.pod:50
16986 #, no-wrap
16987 msgid ""
16988 " Type: 'help' for a list of commands\n"
16989 "       'man' to read the manual\n"
16990 "       'quit' to quit the shell\n"
16991 " \n"
16992 msgstr ""
16993
16994 # type: verbatim
16995 #: ../fish/guestfish.pod:54
16996 #, no-wrap
16997 msgid ""
16998 " ><fs> add-ro disk.img\n"
16999 " ><fs> run\n"
17000 " ><fs> list-filesystems\n"
17001 " /dev/sda1: ext4\n"
17002 " /dev/vg_guest/lv_root: ext4\n"
17003 " /dev/vg_guest/lv_swap: swap\n"
17004 " ><fs> mount /dev/vg_guest/lv_root /\n"
17005 " ><fs> cat /etc/fstab\n"
17006 " # /etc/fstab\n"
17007 " # Created by anaconda\n"
17008 " [...]\n"
17009 " ><fs> exit\n"
17010 "\n"
17011 msgstr ""
17012
17013 # type: =head2
17014 #: ../fish/guestfish.pod:67
17015 msgid "From shell scripts"
17016 msgstr ""
17017
17018 # type: textblock
17019 #: ../fish/guestfish.pod:69
17020 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17021 msgstr ""
17022
17023 # type: verbatim
17024 #: ../fish/guestfish.pod:71
17025 #, no-wrap
17026 msgid ""
17027 " guestfish <<_EOF_\n"
17028 " add disk.img\n"
17029 " run\n"
17030 " mount /dev/vg_guest/lv_root /\n"
17031 " write /etc/motd \"Welcome, new users\"\n"
17032 " _EOF_\n"
17033 "\n"
17034 msgstr ""
17035
17036 # type: textblock
17037 #: ../fish/guestfish.pod:78
17038 msgid "List the LVM logical volumes in a disk image:"
17039 msgstr ""
17040
17041 # type: verbatim
17042 #: ../fish/guestfish.pod:80
17043 #, no-wrap
17044 msgid ""
17045 " guestfish -a disk.img --ro <<_EOF_\n"
17046 " run\n"
17047 " lvs\n"
17048 " _EOF_\n"
17049 "\n"
17050 msgstr ""
17051
17052 # type: textblock
17053 #: ../fish/guestfish.pod:85
17054 msgid "List all the filesystems in a disk image:"
17055 msgstr ""
17056
17057 # type: verbatim
17058 #: ../fish/guestfish.pod:87
17059 #, no-wrap
17060 msgid ""
17061 " guestfish -a disk.img --ro <<_EOF_\n"
17062 " run\n"
17063 " list-filesystems\n"
17064 " _EOF_\n"
17065 "\n"
17066 msgstr ""
17067
17068 # type: =head2
17069 #: ../fish/guestfish.pod:92
17070 msgid "On one command line"
17071 msgstr ""
17072
17073 # type: textblock
17074 #: ../fish/guestfish.pod:94
17075 msgid "Update C</etc/resolv.conf> in a guest:"
17076 msgstr ""
17077
17078 # type: verbatim
17079 #: ../fish/guestfish.pod:96
17080 #, no-wrap
17081 msgid ""
17082 " guestfish \\\n"
17083 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17084 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17085 "\n"
17086 msgstr ""
17087
17088 # type: textblock
17089 #: ../fish/guestfish.pod:100
17090 msgid "Edit C</boot/grub/grub.conf> interactively:"
17091 msgstr ""
17092
17093 # type: verbatim
17094 #: ../fish/guestfish.pod:102
17095 #, no-wrap
17096 msgid ""
17097 " guestfish --rw --add disk.img \\\n"
17098 "   --mount /dev/vg_guest/lv_root \\\n"
17099 "   --mount /dev/sda1:/boot \\\n"
17100 "   edit /boot/grub/grub.conf\n"
17101 "\n"
17102 msgstr ""
17103
17104 # type: =head2
17105 #: ../fish/guestfish.pod:107
17106 msgid "Mount disks automatically"
17107 msgstr ""
17108
17109 # type: textblock
17110 #: ../fish/guestfish.pod:109
17111 msgid ""
17112 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17113 msgstr ""
17114
17115 # type: verbatim
17116 #: ../fish/guestfish.pod:112
17117 #, no-wrap
17118 msgid ""
17119 " guestfish --ro -a disk.img -i cat /etc/group\n"
17120 "\n"
17121 msgstr ""
17122
17123 # type: verbatim
17124 #: ../fish/guestfish.pod:114
17125 #, no-wrap
17126 msgid ""
17127 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17128 "\n"
17129 msgstr ""
17130
17131 # type: textblock
17132 #: ../fish/guestfish.pod:116
17133 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17134 msgstr ""
17135
17136 # type: verbatim
17137 #: ../fish/guestfish.pod:118
17138 #, no-wrap
17139 msgid ""
17140 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17141 "\n"
17142 msgstr ""
17143
17144 # type: =head2
17145 #: ../fish/guestfish.pod:120
17146 msgid "As a script interpreter"
17147 msgstr ""
17148
17149 # type: textblock
17150 #: ../fish/guestfish.pod:122
17151 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17152 msgstr ""
17153
17154 # type: verbatim
17155 #: ../fish/guestfish.pod:124
17156 #, no-wrap
17157 msgid ""
17158 " #!/usr/bin/guestfish -f\n"
17159 " sparse test1.img 100M\n"
17160 " run\n"
17161 " part-disk /dev/sda mbr\n"
17162 " mkfs ext2 /dev/sda1\n"
17163 "\n"
17164 msgstr ""
17165
17166 # type: =head2
17167 #: ../fish/guestfish.pod:130
17168 msgid "Start with a prepared disk"
17169 msgstr ""
17170
17171 # type: textblock
17172 #: ../fish/guestfish.pod:132
17173 msgid ""
17174 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17175 "single ext2-formatted partition:"
17176 msgstr ""
17177
17178 # type: verbatim
17179 #: ../fish/guestfish.pod:135
17180 #, no-wrap
17181 msgid ""
17182 " guestfish -N fs\n"
17183 "\n"
17184 msgstr ""
17185
17186 # type: textblock
17187 #: ../fish/guestfish.pod:137
17188 msgid "To list what is available do:"
17189 msgstr ""
17190
17191 # type: verbatim
17192 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
17193 #, no-wrap
17194 msgid ""
17195 " guestfish -N help | less\n"
17196 "\n"
17197 msgstr ""
17198
17199 # type: =head2
17200 #: ../fish/guestfish.pod:141
17201 msgid "Remote control"
17202 msgstr ""
17203
17204 # type: verbatim
17205 #: ../fish/guestfish.pod:143
17206 #, no-wrap
17207 msgid ""
17208 " eval \"`guestfish --listen`\"\n"
17209 " guestfish --remote add-ro disk.img\n"
17210 " guestfish --remote run\n"
17211 " guestfish --remote lvs\n"
17212 "\n"
17213 msgstr ""
17214
17215 # type: =head1
17216 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17217 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17218 #: ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71
17219 #: ../tools/virt-resize.pl:256 ../tools/virt-list-filesystems.pl:53
17220 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
17221 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17222 msgid "OPTIONS"
17223 msgstr ""
17224
17225 # type: =item
17226 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17227 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17228 #: ../tools/virt-df.pl:79 ../tools/virt-resize.pl:264
17229 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:106
17230 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
17231 #: ../tools/virt-list-partitions.pl:62
17232 msgid "B<--help>"
17233 msgstr ""
17234
17235 # type: textblock
17236 #: ../fish/guestfish.pod:154
17237 msgid "Displays general help on options."
17238 msgstr ""
17239
17240 # type: =item
17241 #: ../fish/guestfish.pod:156
17242 msgid "B<-h> | B<--cmd-help>"
17243 msgstr ""
17244
17245 # type: textblock
17246 #: ../fish/guestfish.pod:158
17247 msgid "Lists all available guestfish commands."
17248 msgstr ""
17249
17250 # type: =item
17251 #: ../fish/guestfish.pod:160
17252 msgid "B<-h cmd> | B<--cmd-help cmd>"
17253 msgstr ""
17254
17255 # type: textblock
17256 #: ../fish/guestfish.pod:162
17257 msgid "Displays detailed help on a single command C<cmd>."
17258 msgstr ""
17259
17260 # type: =item
17261 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17262 msgid "B<-a image> | B<--add image>"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish.pod:166
17267 msgid "Add a block device or virtual machine image to the shell."
17268 msgstr ""
17269
17270 # type: textblock
17271 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17272 msgid ""
17273 "The format of the disk image is auto-detected.  To override this and force a "
17274 "particular format use the I<--format=..> option."
17275 msgstr ""
17276
17277 # type: =item
17278 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17279 msgid "B<-c URI> | B<--connect URI>"
17280 msgstr ""
17281
17282 # type: textblock
17283 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17284 msgid ""
17285 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17286 "URI to use.  The default is to use the default libvirt connection."
17287 msgstr ""
17288
17289 # type: =item
17290 #: ../fish/guestfish.pod:177
17291 msgid "B<--csh>"
17292 msgstr ""
17293
17294 # type: textblock
17295 #: ../fish/guestfish.pod:179
17296 msgid ""
17297 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17298 "section L</REMOTE CONTROL AND CSH> below."
17299 msgstr ""
17300
17301 # type: =item
17302 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17303 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17304 msgstr ""
17305
17306 # type: textblock
17307 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17308 msgid ""
17309 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17310 "used, then any libvirt domain can be used.  However in write mode, only "
17311 "libvirt domains which are shut down can be named here."
17312 msgstr ""
17313
17314 # type: =item
17315 #: ../fish/guestfish.pod:188
17316 msgid "B<-D> | B<--no-dest-paths>"
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish.pod:190
17321 msgid ""
17322 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17323 "to hit the tab key to complete paths on the guest filesystem, but this "
17324 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17325 "allow this feature to be disabled."
17326 msgstr ""
17327
17328 # type: =item
17329 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17330 msgid "B<--echo-keys>"
17331 msgstr ""
17332
17333 # type: textblock
17334 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17335 msgid ""
17336 "When prompting for keys and passphrases, guestfish normally turns echoing "
17337 "off so you cannot see what you are typing.  If you are not worried about "
17338 "Tempest attacks and there is no one else in the room you can specify this "
17339 "flag to see what you are typing."
17340 msgstr ""
17341
17342 # type: =item
17343 #: ../fish/guestfish.pod:202
17344 msgid "B<-f file> | B<--file file>"
17345 msgstr ""
17346
17347 # type: textblock
17348 #: ../fish/guestfish.pod:204
17349 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17350 msgstr ""
17351
17352 # type: verbatim
17353 #: ../fish/guestfish.pod:207
17354 #, no-wrap
17355 msgid ""
17356 " #!/usr/bin/guestfish -f\n"
17357 "\n"
17358 msgstr ""
17359
17360 # type: =item
17361 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17362 msgid "B<--format=raw|qcow2|..> | B<--format>"
17363 msgstr ""
17364
17365 # type: textblock
17366 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17367 msgid ""
17368 "The default for the I<-a> option is to auto-detect the format of the disk "
17369 "image.  Using this forces the disk format for I<-a> options which follow on "
17370 "the command line.  Using I<--format> with no argument switches back to auto-"
17371 "detection for subsequent I<-a> options."
17372 msgstr ""
17373
17374 # type: textblock
17375 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17376 msgid "For example:"
17377 msgstr ""
17378
17379 # type: verbatim
17380 #: ../fish/guestfish.pod:218
17381 #, no-wrap
17382 msgid ""
17383 " guestfish --format=raw -a disk.img\n"
17384 "\n"
17385 msgstr ""
17386
17387 # type: textblock
17388 #: ../fish/guestfish.pod:220
17389 msgid "forces raw format (no auto-detection) for C<disk.img>."
17390 msgstr ""
17391
17392 # type: verbatim
17393 #: ../fish/guestfish.pod:222
17394 #, no-wrap
17395 msgid ""
17396 " guestfish --format=raw -a disk.img --format -a another.img\n"
17397 "\n"
17398 msgstr ""
17399
17400 # type: textblock
17401 #: ../fish/guestfish.pod:224
17402 msgid ""
17403 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17404 "detection for C<another.img>."
17405 msgstr ""
17406
17407 # type: textblock
17408 #: ../fish/guestfish.pod:227
17409 msgid ""
17410 "If you have untrusted raw-format guest disk images, you should use this "
17411 "option to specify the disk format.  This avoids a possible security problem "
17412 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17413 msgstr ""
17414
17415 # type: =item
17416 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17417 msgid "B<-i> | B<--inspector>"
17418 msgstr ""
17419
17420 # type: textblock
17421 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17422 msgid ""
17423 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17424 "system and mount filesystems as they would be mounted on the real virtual "
17425 "machine."
17426 msgstr ""
17427
17428 # type: textblock
17429 #: ../fish/guestfish.pod:238
17430 msgid "Typical usage is either:"
17431 msgstr ""
17432
17433 # type: verbatim
17434 #: ../fish/guestfish.pod:240
17435 #, no-wrap
17436 msgid ""
17437 " guestfish -d myguest -i\n"
17438 "\n"
17439 msgstr ""
17440
17441 # type: textblock
17442 #: ../fish/guestfish.pod:242
17443 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17444 msgstr ""
17445
17446 # type: verbatim
17447 #: ../fish/guestfish.pod:244
17448 #, no-wrap
17449 msgid ""
17450 " guestfish --ro -d myguest -i\n"
17451 "\n"
17452 msgstr ""
17453
17454 # type: textblock
17455 #: ../fish/guestfish.pod:246
17456 msgid "(for active domains, readonly), or specify the block device directly:"
17457 msgstr ""
17458
17459 # type: verbatim
17460 #: ../fish/guestfish.pod:248
17461 #, no-wrap
17462 msgid ""
17463 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17464 "\n"
17465 msgstr ""
17466
17467 # type: textblock
17468 #: ../fish/guestfish.pod:250
17469 msgid ""
17470 "Note that the command line syntax changed slightly over older versions of "
17471 "guestfish.  You can still use the old syntax:"
17472 msgstr ""
17473
17474 # type: verbatim
17475 #: ../fish/guestfish.pod:253
17476 #, no-wrap
17477 msgid ""
17478 " guestfish [--ro] -i disk.img\n"
17479 "\n"
17480 msgstr ""
17481
17482 # type: verbatim
17483 #: ../fish/guestfish.pod:255
17484 #, no-wrap
17485 msgid ""
17486 " guestfish [--ro] -i libvirt-domain\n"
17487 "\n"
17488 msgstr ""
17489
17490 # type: =item
17491 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17492 msgid "B<--keys-from-stdin>"
17493 msgstr ""
17494
17495 # type: textblock
17496 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17497 msgid ""
17498 "Read key or passphrase parameters from stdin.  The default is to try to read "
17499 "passphrases from the user by opening C</dev/tty>."
17500 msgstr ""
17501
17502 # type: =item
17503 #: ../fish/guestfish.pod:262
17504 msgid "B<--listen>"
17505 msgstr ""
17506
17507 # type: textblock
17508 #: ../fish/guestfish.pod:264
17509 msgid ""
17510 "Fork into the background and listen for remote commands.  See section L</"
17511 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17512 msgstr ""
17513
17514 # type: =item
17515 #: ../fish/guestfish.pod:267
17516 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17517 msgstr ""
17518
17519 # type: textblock
17520 #: ../fish/guestfish.pod:269
17521 msgid "Mount the named partition or logical volume on the given mountpoint."
17522 msgstr ""
17523
17524 # type: textblock
17525 #: ../fish/guestfish.pod:271
17526 msgid "If the mountpoint is omitted, it defaults to C</>."
17527 msgstr ""
17528
17529 # type: textblock
17530 #: ../fish/guestfish.pod:273
17531 msgid "You have to mount something on C</> before most commands will work."
17532 msgstr ""
17533
17534 # type: textblock
17535 #: ../fish/guestfish.pod:275
17536 msgid ""
17537 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17538 "launched."
17539 msgstr ""
17540
17541 # type: textblock
17542 #: ../fish/guestfish.pod:278
17543 msgid ""
17544 "If you don't know what filesystems a disk image contains, you can either run "
17545 "guestfish without this option, then list the partitions, filesystems and LVs "
17546 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17547 "commands), or you can use the L<virt-filesystems(1)> program."
17548 msgstr ""
17549
17550 # type: =item
17551 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17552 msgid "B<-n> | B<--no-sync>"
17553 msgstr ""
17554
17555 # type: textblock
17556 #: ../fish/guestfish.pod:286
17557 msgid ""
17558 "Disable autosync.  This is enabled by default.  See the discussion of "
17559 "autosync in the L<guestfs(3)> manpage."
17560 msgstr ""
17561
17562 # type: =item
17563 #: ../fish/guestfish.pod:289
17564 msgid "B<-N type> | B<--new type> | B<-N help>"
17565 msgstr ""
17566
17567 # type: textblock
17568 #: ../fish/guestfish.pod:291
17569 msgid ""
17570 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17571 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17572 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17573 "IMAGES> below."
17574 msgstr ""
17575
17576 # type: =item
17577 #: ../fish/guestfish.pod:296
17578 msgid "B<--progress-bars>"
17579 msgstr ""
17580
17581 # type: textblock
17582 #: ../fish/guestfish.pod:298
17583 msgid "Enable progress bars, even when guestfish is used non-interactively."
17584 msgstr ""
17585
17586 # type: textblock
17587 #: ../fish/guestfish.pod:300
17588 msgid ""
17589 "Progress bars are enabled by default when guestfish is used as an "
17590 "interactive shell."
17591 msgstr ""
17592
17593 # type: =item
17594 #: ../fish/guestfish.pod:303
17595 msgid "B<--no-progress-bars>"
17596 msgstr ""
17597
17598 # type: textblock
17599 #: ../fish/guestfish.pod:305
17600 msgid "Disable progress bars."
17601 msgstr ""
17602
17603 # type: =item
17604 #: ../fish/guestfish.pod:307
17605 msgid "B<--remote[=pid]>"
17606 msgstr ""
17607
17608 # type: textblock
17609 #: ../fish/guestfish.pod:309
17610 msgid ""
17611 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17612 "CONTROL GUESTFISH OVER A SOCKET> below."
17613 msgstr ""
17614
17615 # type: =item
17616 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17617 msgid "B<-r> | B<--ro>"
17618 msgstr ""
17619
17620 # type: textblock
17621 #: ../fish/guestfish.pod:314
17622 msgid ""
17623 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17624 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17625 msgstr ""
17626
17627 # type: textblock
17628 #: ../fish/guestfish.pod:317 ../tools/virt-rescue.pl:187
17629 msgid ""
17630 "The option must always be used if the disk image or virtual machine might be "
17631 "running, and is generally recommended in cases where you don't need write "
17632 "access to the disk."
17633 msgstr ""
17634
17635 # type: textblock
17636 #: ../fish/guestfish.pod:321
17637 msgid ""
17638 "Note that prepared disk images created with I<-N> are not affected by the "
17639 "I<--ro> option."
17640 msgstr ""
17641
17642 # type: textblock
17643 #: ../fish/guestfish.pod:324
17644 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17645 msgstr ""
17646
17647 # type: =item
17648 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17649 #: ../tools/virt-rescue.pl:195
17650 msgid "B<--selinux>"
17651 msgstr ""
17652
17653 # type: textblock
17654 #: ../fish/guestfish.pod:328
17655 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17656 msgstr ""
17657
17658 # type: =item
17659 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17660 msgid "B<-v> | B<--verbose>"
17661 msgstr ""
17662
17663 # type: textblock
17664 #: ../fish/guestfish.pod:332
17665 msgid ""
17666 "Enable very verbose messages.  This is particularly useful if you find a bug."
17667 msgstr ""
17668
17669 # type: =item
17670 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17671 msgid "B<-V> | B<--version>"
17672 msgstr ""
17673
17674 # type: textblock
17675 #: ../fish/guestfish.pod:337
17676 msgid "Display the guestfish / libguestfs version number and exit."
17677 msgstr ""
17678
17679 # type: =item
17680 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17681 msgid "B<-w> | B<--rw>"
17682 msgstr ""
17683
17684 # type: textblock
17685 #: ../fish/guestfish.pod:341
17686 msgid ""
17687 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17688 "WRITE> below."
17689 msgstr ""
17690
17691 # type: =item
17692 #: ../fish/guestfish.pod:344
17693 msgid "B<-x>"
17694 msgstr ""
17695
17696 # type: textblock
17697 #: ../fish/guestfish.pod:346
17698 msgid "Echo each command before executing it."
17699 msgstr ""
17700
17701 # type: =head1
17702 #: ../fish/guestfish.pod:350
17703 msgid "COMMANDS ON COMMAND LINE"
17704 msgstr ""
17705
17706 # type: textblock
17707 #: ../fish/guestfish.pod:352
17708 msgid ""
17709 "Any additional (non-option) arguments are treated as commands to execute."
17710 msgstr ""
17711
17712 # type: textblock
17713 #: ../fish/guestfish.pod:355
17714 msgid ""
17715 "Commands to execute should be separated by a colon (C<:>), where the colon "
17716 "is a separate parameter.  Thus:"
17717 msgstr ""
17718
17719 # type: verbatim
17720 #: ../fish/guestfish.pod:358
17721 #, no-wrap
17722 msgid ""
17723 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17724 "\n"
17725 msgstr ""
17726
17727 # type: textblock
17728 #: ../fish/guestfish.pod:360
17729 msgid ""
17730 "If there are no additional arguments, then we enter a shell, either an "
17731 "interactive shell with a prompt (if the input is a terminal) or a non-"
17732 "interactive shell."
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish.pod:364
17737 msgid ""
17738 "In either command line mode or non-interactive shell, the first command that "
17739 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17740 "prompt) if a command fails, you can continue to enter commands."
17741 msgstr ""
17742
17743 # type: =head1
17744 #: ../fish/guestfish.pod:369
17745 msgid "USING launch (OR run)"
17746 msgstr ""
17747
17748 # type: textblock
17749 #: ../fish/guestfish.pod:371
17750 msgid ""
17751 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17752 "then launch it, then mount any disks you need, and finally issue actions/"
17753 "commands.  So the general order of the day is:"
17754 msgstr ""
17755
17756 # type: textblock
17757 #: ../fish/guestfish.pod:379
17758 msgid "add or -a/--add"
17759 msgstr ""
17760
17761 # type: textblock
17762 #: ../fish/guestfish.pod:383
17763 msgid "launch (aka run)"
17764 msgstr ""
17765
17766 # type: textblock
17767 #: ../fish/guestfish.pod:387
17768 msgid "mount or -m/--mount"
17769 msgstr ""
17770
17771 # type: textblock
17772 #: ../fish/guestfish.pod:391
17773 msgid "any other commands"
17774 msgstr ""
17775
17776 # type: textblock
17777 #: ../fish/guestfish.pod:395
17778 msgid ""
17779 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17780 "guest before mounting or performing any other commands."
17781 msgstr ""
17782
17783 # type: textblock
17784 #: ../fish/guestfish.pod:398
17785 msgid ""
17786 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17787 "I<--new> options were given then C<run> is done automatically, simply "
17788 "because guestfish can't perform the action you asked for without doing this."
17789 msgstr ""
17790
17791 # type: =head1
17792 #: ../fish/guestfish.pod:403
17793 msgid "OPENING DISKS FOR READ AND WRITE"
17794 msgstr ""
17795
17796 # type: textblock
17797 #: ../fish/guestfish.pod:405
17798 msgid ""
17799 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17800 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17801 "open disk images read-only or for writing."
17802 msgstr ""
17803
17804 # type: textblock
17805 #: ../fish/guestfish.pod:409
17806 msgid ""
17807 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17808 "disk images supplied on the command line for write.  To open a disk image "
17809 "read-only you have to do I<-a image --ro>."
17810 msgstr ""
17811
17812 # type: textblock
17813 #: ../fish/guestfish.pod:413
17814 msgid ""
17815 "This matters: If you accidentally open a live VM disk image writable then "
17816 "you will cause irreversible disk corruption."
17817 msgstr ""
17818
17819 # type: textblock
17820 #: ../fish/guestfish.pod:416
17821 msgid ""
17822 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17823 "images will be opened read-only.  You will have to either specify "
17824 "I<guestfish --rw> or change a configuration file in order to get write "
17825 "access for disk images specified by those other command line options."
17826 msgstr ""
17827
17828 # type: textblock
17829 #: ../fish/guestfish.pod:421
17830 msgid ""
17831 "This version of guestfish has a I<--rw> option which does nothing (it is "
17832 "already the default).  However it is highly recommended that you use this "
17833 "option to indicate that guestfish needs write access, and to prepare your "
17834 "scripts for the day when this option will be required for write access."
17835 msgstr ""
17836
17837 # type: textblock
17838 #: ../fish/guestfish.pod:427
17839 msgid ""
17840 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17841 "other libguestfs program apart from guestfish and guestmount."
17842 msgstr ""
17843
17844 # type: =head1
17845 #: ../fish/guestfish.pod:430
17846 msgid "QUOTING"
17847 msgstr ""
17848
17849 # type: textblock
17850 #: ../fish/guestfish.pod:432
17851 msgid ""
17852 "You can quote ordinary parameters using either single or double quotes.  For "
17853 "example:"
17854 msgstr ""
17855
17856 # type: verbatim
17857 #: ../fish/guestfish.pod:435
17858 #, no-wrap
17859 msgid ""
17860 " add \"file with a space.img\"\n"
17861 "\n"
17862 msgstr ""
17863
17864 # type: verbatim
17865 #: ../fish/guestfish.pod:437
17866 #, no-wrap
17867 msgid ""
17868 " rm '/file name'\n"
17869 "\n"
17870 msgstr ""
17871
17872 # type: verbatim
17873 #: ../fish/guestfish.pod:439
17874 #, no-wrap
17875 msgid ""
17876 " rm '/\"'\n"
17877 "\n"
17878 msgstr ""
17879
17880 # type: textblock
17881 #: ../fish/guestfish.pod:441
17882 msgid ""
17883 "A few commands require a list of strings to be passed.  For these, use a "
17884 "whitespace-separated list, enclosed in quotes.  Strings containing "
17885 "whitespace to be passed through must be enclosed in single quotes.  A "
17886 "literal single quote must be escaped with a backslash."
17887 msgstr ""
17888
17889 # type: verbatim
17890 #: ../fish/guestfish.pod:446
17891 #, no-wrap
17892 msgid ""
17893 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17894 " command \"/bin/echo 'foo      bar'\"\n"
17895 " command \"/bin/echo \\'foo\\'\"\n"
17896 "\n"
17897 msgstr ""
17898
17899 # type: =head1
17900 #: ../fish/guestfish.pod:450
17901 msgid "OPTIONAL ARGUMENTS"
17902 msgstr ""
17903
17904 # type: textblock
17905 #: ../fish/guestfish.pod:452
17906 msgid ""
17907 "Some commands take optional arguments.  These arguments appear in this "
17908 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17909 msgstr ""
17910
17911 # type: verbatim
17912 #: ../fish/guestfish.pod:456
17913 #, no-wrap
17914 msgid ""
17915 " add-drive-opts filename\n"
17916 "\n"
17917 msgstr ""
17918
17919 # type: verbatim
17920 #: ../fish/guestfish.pod:458
17921 #, no-wrap
17922 msgid ""
17923 " add-drive-opts filename readonly:true\n"
17924 "\n"
17925 msgstr ""
17926
17927 # type: verbatim
17928 #: ../fish/guestfish.pod:460
17929 #, no-wrap
17930 msgid ""
17931 " add-drive-opts filename format:qcow2 readonly:false\n"
17932 "\n"
17933 msgstr ""
17934
17935 # type: textblock
17936 #: ../fish/guestfish.pod:462
17937 msgid ""
17938 "Each optional argument can appear at most once.  All optional arguments must "
17939 "appear after the required ones."
17940 msgstr ""
17941
17942 # type: =head1
17943 #: ../fish/guestfish.pod:465
17944 msgid "NUMBERS"
17945 msgstr ""
17946
17947 # type: textblock
17948 #: ../fish/guestfish.pod:467
17949 msgid ""
17950 "This section applies to all commands which can take integers as parameters."
17951 msgstr ""
17952
17953 # type: =head2
17954 #: ../fish/guestfish.pod:470
17955 msgid "SIZE SUFFIX"
17956 msgstr ""
17957
17958 # type: textblock
17959 #: ../fish/guestfish.pod:472
17960 msgid ""
17961 "When the command takes a parameter measured in bytes, you can use one of the "
17962 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17963 msgstr ""
17964
17965 # type: =item
17966 #: ../fish/guestfish.pod:478
17967 msgid "B<k> or B<K> or B<KiB>"
17968 msgstr ""
17969
17970 # type: textblock
17971 #: ../fish/guestfish.pod:480
17972 msgid "The size in kilobytes (multiplied by 1024)."
17973 msgstr ""
17974
17975 # type: =item
17976 #: ../fish/guestfish.pod:482
17977 msgid "B<KB>"
17978 msgstr ""
17979
17980 # type: textblock
17981 #: ../fish/guestfish.pod:484
17982 msgid "The size in SI 1000 byte units."
17983 msgstr ""
17984
17985 # type: =item
17986 #: ../fish/guestfish.pod:486
17987 msgid "B<M> or B<MiB>"
17988 msgstr ""
17989
17990 # type: textblock
17991 #: ../fish/guestfish.pod:488
17992 msgid "The size in megabytes (multiplied by 1048576)."
17993 msgstr ""
17994
17995 # type: =item
17996 #: ../fish/guestfish.pod:490
17997 msgid "B<MB>"
17998 msgstr ""
17999
18000 # type: textblock
18001 #: ../fish/guestfish.pod:492
18002 msgid "The size in SI 1000000 byte units."
18003 msgstr ""
18004
18005 # type: =item
18006 #: ../fish/guestfish.pod:494
18007 msgid "B<G> or B<GiB>"
18008 msgstr ""
18009
18010 # type: textblock
18011 #: ../fish/guestfish.pod:496
18012 msgid "The size in gigabytes (multiplied by 2**30)."
18013 msgstr ""
18014
18015 # type: =item
18016 #: ../fish/guestfish.pod:498
18017 msgid "B<GB>"
18018 msgstr ""
18019
18020 # type: textblock
18021 #: ../fish/guestfish.pod:500
18022 msgid "The size in SI 10**9 byte units."
18023 msgstr ""
18024
18025 # type: =item
18026 #: ../fish/guestfish.pod:502
18027 msgid "B<T> or B<TiB>"
18028 msgstr ""
18029
18030 # type: textblock
18031 #: ../fish/guestfish.pod:504
18032 msgid "The size in terabytes (multiplied by 2**40)."
18033 msgstr ""
18034
18035 # type: =item
18036 #: ../fish/guestfish.pod:506
18037 msgid "B<TB>"
18038 msgstr ""
18039
18040 # type: textblock
18041 #: ../fish/guestfish.pod:508
18042 msgid "The size in SI 10**12 byte units."
18043 msgstr ""
18044
18045 # type: =item
18046 #: ../fish/guestfish.pod:510
18047 msgid "B<P> or B<PiB>"
18048 msgstr ""
18049
18050 # type: textblock
18051 #: ../fish/guestfish.pod:512
18052 msgid "The size in petabytes (multiplied by 2**50)."
18053 msgstr ""
18054
18055 # type: =item
18056 #: ../fish/guestfish.pod:514
18057 msgid "B<PB>"
18058 msgstr ""
18059
18060 # type: textblock
18061 #: ../fish/guestfish.pod:516
18062 msgid "The size in SI 10**15 byte units."
18063 msgstr ""
18064
18065 # type: =item
18066 #: ../fish/guestfish.pod:518
18067 msgid "B<E> or B<EiB>"
18068 msgstr ""
18069
18070 # type: textblock
18071 #: ../fish/guestfish.pod:520
18072 msgid "The size in exabytes (multiplied by 2**60)."
18073 msgstr ""
18074
18075 # type: =item
18076 #: ../fish/guestfish.pod:522
18077 msgid "B<EB>"
18078 msgstr ""
18079
18080 # type: textblock
18081 #: ../fish/guestfish.pod:524
18082 msgid "The size in SI 10**18 byte units."
18083 msgstr ""
18084
18085 # type: =item
18086 #: ../fish/guestfish.pod:526
18087 msgid "B<Z> or B<ZiB>"
18088 msgstr ""
18089
18090 # type: textblock
18091 #: ../fish/guestfish.pod:528
18092 msgid "The size in zettabytes (multiplied by 2**70)."
18093 msgstr ""
18094
18095 # type: =item
18096 #: ../fish/guestfish.pod:530
18097 msgid "B<ZB>"
18098 msgstr ""
18099
18100 # type: textblock
18101 #: ../fish/guestfish.pod:532
18102 msgid "The size in SI 10**21 byte units."
18103 msgstr ""
18104
18105 # type: =item
18106 #: ../fish/guestfish.pod:534
18107 msgid "B<Y> or B<YiB>"
18108 msgstr ""
18109
18110 # type: textblock
18111 #: ../fish/guestfish.pod:536
18112 msgid "The size in yottabytes (multiplied by 2**80)."
18113 msgstr ""
18114
18115 # type: =item
18116 #: ../fish/guestfish.pod:538
18117 msgid "B<YB>"
18118 msgstr ""
18119
18120 # type: textblock
18121 #: ../fish/guestfish.pod:540
18122 msgid "The size in SI 10**24 byte units."
18123 msgstr ""
18124
18125 # type: verbatim
18126 #: ../fish/guestfish.pod:546
18127 #, no-wrap
18128 msgid ""
18129 " truncate-size /file 1G\n"
18130 "\n"
18131 msgstr ""
18132
18133 # type: textblock
18134 #: ../fish/guestfish.pod:548
18135 msgid "would truncate the file to 1 gigabyte."
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish.pod:550
18140 msgid ""
18141 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18142 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18143 "suffix will probably not do what you expect."
18144 msgstr ""
18145
18146 # type: =head2
18147 #: ../fish/guestfish.pod:554
18148 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18149 msgstr ""
18150
18151 # type: textblock
18152 #: ../fish/guestfish.pod:556
18153 msgid ""
18154 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18155 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18156 msgstr ""
18157
18158 # type: verbatim
18159 #: ../fish/guestfish.pod:559
18160 #, no-wrap
18161 msgid ""
18162 " 1234      decimal number 1234\n"
18163 " 02322     octal number, equivalent to decimal 1234\n"
18164 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18165 "\n"
18166 msgstr ""
18167
18168 # type: textblock
18169 #: ../fish/guestfish.pod:563
18170 msgid ""
18171 "When using the C<chmod> command, you almost always want to specify an octal "
18172 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18173 "L<chmod(1)> program):"
18174 msgstr ""
18175
18176 # type: verbatim
18177 #: ../fish/guestfish.pod:567
18178 #, no-wrap
18179 msgid ""
18180 " chmod 0777 /public  # OK\n"
18181 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18182 "\n"
18183 msgstr ""
18184
18185 # type: textblock
18186 #: ../fish/guestfish.pod:570
18187 msgid ""
18188 "Commands that return numbers usually print them in decimal, but some "
18189 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18190 "octal, preceeded by C<0>)."
18191 msgstr ""
18192
18193 # type: =head1
18194 #: ../fish/guestfish.pod:574
18195 msgid "WILDCARDS AND GLOBBING"
18196 msgstr ""
18197
18198 # type: textblock
18199 #: ../fish/guestfish.pod:576
18200 msgid ""
18201 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18202 "(globbing) by default.  So for example the following will not do what you "
18203 "expect:"
18204 msgstr ""
18205
18206 # type: verbatim
18207 #: ../fish/guestfish.pod:580
18208 #, no-wrap
18209 msgid ""
18210 " rm-rf /home/*\n"
18211 "\n"
18212 msgstr ""
18213
18214 # type: textblock
18215 #: ../fish/guestfish.pod:582
18216 msgid ""
18217 "Assuming you don't have a directory called literally C</home/*> then the "
18218 "above command will return an error."
18219 msgstr ""
18220
18221 # type: textblock
18222 #: ../fish/guestfish.pod:585
18223 msgid "To perform wildcard expansion, use the C<glob> command."
18224 msgstr ""
18225
18226 # type: verbatim
18227 #: ../fish/guestfish.pod:587
18228 #, no-wrap
18229 msgid ""
18230 " glob rm-rf /home/*\n"
18231 "\n"
18232 msgstr ""
18233
18234 # type: textblock
18235 #: ../fish/guestfish.pod:589
18236 msgid ""
18237 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18238 "many times), equivalent to:"
18239 msgstr ""
18240
18241 # type: verbatim
18242 #: ../fish/guestfish.pod:592
18243 #, no-wrap
18244 msgid ""
18245 " rm-rf /home/jim\n"
18246 " rm-rf /home/joe\n"
18247 " rm-rf /home/mary\n"
18248 "\n"
18249 msgstr ""
18250
18251 # type: textblock
18252 #: ../fish/guestfish.pod:596
18253 msgid "C<glob> only works on simple guest paths and not on device names."
18254 msgstr ""
18255
18256 # type: textblock
18257 #: ../fish/guestfish.pod:598
18258 msgid ""
18259 "If you have several parameters, each containing a wildcard, then glob will "
18260 "perform a Cartesian product."
18261 msgstr ""
18262
18263 # type: =head1
18264 #: ../fish/guestfish.pod:601
18265 msgid "COMMENTS"
18266 msgstr ""
18267
18268 # type: textblock
18269 #: ../fish/guestfish.pod:603
18270 msgid ""
18271 "Any line which starts with a I<#> character is treated as a comment and "
18272 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18273 "a command.  For example:"
18274 msgstr ""
18275
18276 # type: verbatim
18277 #: ../fish/guestfish.pod:607
18278 #, no-wrap
18279 msgid ""
18280 " # this is a comment\n"
18281 "         # this is a comment\n"
18282 " foo # NOT a comment\n"
18283 "\n"
18284 msgstr ""
18285
18286 # type: textblock
18287 #: ../fish/guestfish.pod:611
18288 msgid "Blank lines are also ignored."
18289 msgstr ""
18290
18291 # type: =head1
18292 #: ../fish/guestfish.pod:613
18293 msgid "RUNNING COMMANDS LOCALLY"
18294 msgstr ""
18295
18296 # type: textblock
18297 #: ../fish/guestfish.pod:615
18298 msgid ""
18299 "Any line which starts with a I<!> character is treated as a command sent to "
18300 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18301 msgstr ""
18302
18303 # type: verbatim
18304 #: ../fish/guestfish.pod:619
18305 #, no-wrap
18306 msgid ""
18307 " !mkdir local\n"
18308 " tgz-out /remote local/remote-data.tar.gz\n"
18309 "\n"
18310 msgstr ""
18311
18312 # type: textblock
18313 #: ../fish/guestfish.pod:622
18314 msgid ""
18315 "will create a directory C<local> on the host, and then export the contents "
18316 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18317 "(See C<tgz-out>)."
18318 msgstr ""
18319
18320 # type: textblock
18321 #: ../fish/guestfish.pod:626
18322 msgid ""
18323 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18324 "effect, due to the way that subprocesses work in Unix."
18325 msgstr ""
18326
18327 # type: =head1
18328 #: ../fish/guestfish.pod:629
18329 msgid "PIPES"
18330 msgstr ""
18331
18332 # type: textblock
18333 #: ../fish/guestfish.pod:631
18334 msgid ""
18335 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18336 "command (a guestfish command) to the second command (any host command).  For "
18337 "example:"
18338 msgstr ""
18339
18340 # type: verbatim
18341 #: ../fish/guestfish.pod:635
18342 #, no-wrap
18343 msgid ""
18344 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18345 "\n"
18346 msgstr ""
18347
18348 # type: textblock
18349 #: ../fish/guestfish.pod:637
18350 msgid ""
18351 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18352 "program).  The above command would list all accounts in the guest filesystem "
18353 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18354 msgstr ""
18355
18356 # type: verbatim
18357 #: ../fish/guestfish.pod:642
18358 #, no-wrap
18359 msgid ""
18360 " hexdump /bin/ls | head\n"
18361 " list-devices | tail -1\n"
18362 " tgz-out / - | tar ztf -\n"
18363 "\n"
18364 msgstr ""
18365
18366 # type: textblock
18367 #: ../fish/guestfish.pod:646
18368 msgid ""
18369 "The space before the pipe symbol is required, any space after the pipe "
18370 "symbol is optional.  Everything after the pipe symbol is just passed "
18371 "straight to the host shell, so it can contain redirections, globs and "
18372 "anything else that makes sense on the host side."
18373 msgstr ""
18374
18375 # type: textblock
18376 #: ../fish/guestfish.pod:651
18377 msgid ""
18378 "To use a literal argument which begins with a pipe symbol, you have to quote "
18379 "it, eg:"
18380 msgstr ""
18381
18382 # type: verbatim
18383 #: ../fish/guestfish.pod:654
18384 #, no-wrap
18385 msgid ""
18386 " echo \"|\"\n"
18387 "\n"
18388 msgstr ""
18389
18390 # type: =head1
18391 #: ../fish/guestfish.pod:656
18392 msgid "HOME DIRECTORIES"
18393 msgstr ""
18394
18395 # type: textblock
18396 #: ../fish/guestfish.pod:658
18397 msgid ""
18398 "If a parameter starts with the character C<~> then the tilde may be expanded "
18399 "as a home directory path (either C<~> for the current user's home directory, "
18400 "or C<~user> for another user)."
18401 msgstr ""
18402
18403 # type: textblock
18404 #: ../fish/guestfish.pod:662
18405 msgid ""
18406 "Note that home directory expansion happens for users known I<on the host>, "
18407 "not in the guest filesystem."
18408 msgstr ""
18409
18410 # type: textblock
18411 #: ../fish/guestfish.pod:665
18412 msgid ""
18413 "To use a literal argument which begins with a tilde, you have to quote it, "
18414 "eg:"
18415 msgstr ""
18416
18417 # type: verbatim
18418 #: ../fish/guestfish.pod:668
18419 #, no-wrap
18420 msgid ""
18421 " echo \"~\"\n"
18422 "\n"
18423 msgstr ""
18424
18425 # type: textblock
18426 #: ../fish/guestfish.pod:672
18427 msgid ""
18428 "Libguestfs has some support for Linux guests encrypted according to the "
18429 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18430 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18431 "LUKS is supported."
18432 msgstr ""
18433
18434 # type: textblock
18435 #: ../fish/guestfish.pod:677
18436 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18437 msgstr ""
18438
18439 # type: verbatim
18440 #: ../fish/guestfish.pod:679
18441 #, no-wrap
18442 msgid ""
18443 " ><fs> vfs-type /dev/sda2\n"
18444 " crypto_LUKS\n"
18445 "\n"
18446 msgstr ""
18447
18448 # type: textblock
18449 #: ../fish/guestfish.pod:682
18450 msgid ""
18451 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18452 "device called C</dev/mapper/luksdev>."
18453 msgstr ""
18454
18455 # type: verbatim
18456 #: ../fish/guestfish.pod:685
18457 #, no-wrap
18458 msgid ""
18459 " ><fs> luks-open /dev/sda2 luksdev\n"
18460 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18461 "\n"
18462 msgstr ""
18463
18464 # type: textblock
18465 #: ../fish/guestfish.pod:688
18466 msgid ""
18467 "Finally you have to tell LVM to scan for volume groups on the newly created "
18468 "mapper device:"
18469 msgstr ""
18470
18471 # type: verbatim
18472 #: ../fish/guestfish.pod:691
18473 #, no-wrap
18474 msgid ""
18475 " vgscan\n"
18476 " vg-activate-all true\n"
18477 "\n"
18478 msgstr ""
18479
18480 # type: textblock
18481 #: ../fish/guestfish.pod:694
18482 msgid "The logical volume(s) can now be mounted in the usual way."
18483 msgstr ""
18484
18485 # type: textblock
18486 #: ../fish/guestfish.pod:696
18487 msgid ""
18488 "Before closing a LUKS device you must unmount any logical volumes on it and "
18489 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18490 "one.  Then you can close the mapper device:"
18491 msgstr ""
18492
18493 # type: verbatim
18494 #: ../fish/guestfish.pod:700
18495 #, no-wrap
18496 msgid ""
18497 " vg-activate false /dev/VG\n"
18498 " luks-close /dev/mapper/luksdev\n"
18499 "\n"
18500 msgstr ""
18501
18502 # type: =head1
18503 #: ../fish/guestfish.pod:703
18504 msgid "WINDOWS PATHS"
18505 msgstr ""
18506
18507 # type: textblock
18508 #: ../fish/guestfish.pod:705
18509 msgid ""
18510 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18511 "(with some limitations).  The following commands are equivalent:"
18512 msgstr ""
18513
18514 # type: verbatim
18515 #: ../fish/guestfish.pod:708
18516 #, no-wrap
18517 msgid ""
18518 " file /WINDOWS/system32/config/system.LOG\n"
18519 "\n"
18520 msgstr ""
18521
18522 # type: verbatim
18523 #: ../fish/guestfish.pod:710
18524 #, no-wrap
18525 msgid ""
18526 " file win:/windows/system32/config/system.log\n"
18527 "\n"
18528 msgstr ""
18529
18530 # type: verbatim
18531 #: ../fish/guestfish.pod:712
18532 #, no-wrap
18533 msgid ""
18534 " file win:\\windows\\system32\\config\\system.log\n"
18535 "\n"
18536 msgstr ""
18537
18538 # type: verbatim
18539 #: ../fish/guestfish.pod:714
18540 #, no-wrap
18541 msgid ""
18542 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18543 "\n"
18544 msgstr ""
18545
18546 # type: textblock
18547 #: ../fish/guestfish.pod:716
18548 msgid ""
18549 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18550 "handles case insensitivity like Windows would.  This only works in argument "
18551 "positions that expect a path."
18552 msgstr ""
18553
18554 # type: =head1
18555 #: ../fish/guestfish.pod:720
18556 msgid "UPLOADING AND DOWNLOADING FILES"
18557 msgstr ""
18558
18559 # type: textblock
18560 #: ../fish/guestfish.pod:722
18561 msgid ""
18562 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18563 "others which upload from or download to a local file, you can use the "
18564 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18565 msgstr ""
18566
18567 # type: verbatim
18568 #: ../fish/guestfish.pod:726
18569 #, no-wrap
18570 msgid ""
18571 " upload - /foo\n"
18572 "\n"
18573 msgstr ""
18574
18575 # type: textblock
18576 #: ../fish/guestfish.pod:728
18577 msgid ""
18578 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18579 msgstr ""
18580
18581 # type: verbatim
18582 #: ../fish/guestfish.pod:731
18583 #, no-wrap
18584 msgid ""
18585 " tar-out /etc - | tar tf -\n"
18586 "\n"
18587 msgstr ""
18588
18589 # type: textblock
18590 #: ../fish/guestfish.pod:733
18591 msgid ""
18592 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18593 "command (see L</PIPES>)."
18594 msgstr ""
18595
18596 # type: textblock
18597 #: ../fish/guestfish.pod:736
18598 msgid ""
18599 "When using C<-> to read from stdin, the input is read up to the end of "
18600 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18601 "some arbitrary end marker:"
18602 msgstr ""
18603
18604 # type: verbatim
18605 #: ../fish/guestfish.pod:740
18606 #, no-wrap
18607 msgid ""
18608 " upload -<<END /foo\n"
18609 " input line 1\n"
18610 " input line 2\n"
18611 " input line 3\n"
18612 " END\n"
18613 "\n"
18614 msgstr ""
18615
18616 # type: textblock
18617 #: ../fish/guestfish.pod:746
18618 msgid ""
18619 "Any string of characters can be used instead of C<END>.  The end marker must "
18620 "appear on a line of its own, without any preceeding or following characters "
18621 "(not even spaces)."
18622 msgstr ""
18623
18624 # type: textblock
18625 #: ../fish/guestfish.pod:750
18626 msgid ""
18627 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18628 "upload local files (so-called \"FileIn\" parameters in the generator)."
18629 msgstr ""
18630
18631 # type: =head1
18632 #: ../fish/guestfish.pod:753
18633 msgid "EXIT ON ERROR BEHAVIOUR"
18634 msgstr ""
18635
18636 # type: textblock
18637 #: ../fish/guestfish.pod:755
18638 msgid ""
18639 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18640 "taking commands from a human over a tty), and will exit on the first error "
18641 "in non-interactive mode (scripts, commands given on the command line)."
18642 msgstr ""
18643
18644 # type: textblock
18645 #: ../fish/guestfish.pod:760
18646 msgid ""
18647 "If you prefix a command with a I<-> character, then that command will not "
18648 "cause guestfish to exit, even if that (one) command returns an error."
18649 msgstr ""
18650
18651 # type: =head1
18652 #: ../fish/guestfish.pod:764
18653 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18654 msgstr ""
18655
18656 # type: textblock
18657 #: ../fish/guestfish.pod:766
18658 msgid ""
18659 "Guestfish can be remote-controlled over a socket.  This is useful "
18660 "particularly in shell scripts where you want to make several different "
18661 "changes to a filesystem, but you don't want the overhead of starting up a "
18662 "guestfish process each time."
18663 msgstr ""
18664
18665 # type: textblock
18666 #: ../fish/guestfish.pod:771
18667 msgid "Start a guestfish server process using:"
18668 msgstr ""
18669
18670 # type: verbatim
18671 #: ../fish/guestfish.pod:773
18672 #, no-wrap
18673 msgid ""
18674 " eval \"`guestfish --listen`\"\n"
18675 "\n"
18676 msgstr ""
18677
18678 # type: textblock
18679 #: ../fish/guestfish.pod:775
18680 msgid "and then send it commands by doing:"
18681 msgstr ""
18682
18683 # type: verbatim
18684 #: ../fish/guestfish.pod:777
18685 #, no-wrap
18686 msgid ""
18687 " guestfish --remote cmd [...]\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: textblock
18692 #: ../fish/guestfish.pod:779
18693 msgid "To cause the server to exit, send it the exit command:"
18694 msgstr ""
18695
18696 # type: verbatim
18697 #: ../fish/guestfish.pod:781
18698 #, no-wrap
18699 msgid ""
18700 " guestfish --remote exit\n"
18701 "\n"
18702 msgstr ""
18703
18704 # type: textblock
18705 #: ../fish/guestfish.pod:783
18706 msgid ""
18707 "Note that the server will normally exit if there is an error in a command.  "
18708 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18709 "BEHAVIOUR>."
18710 msgstr ""
18711
18712 # type: =head2
18713 #: ../fish/guestfish.pod:787
18714 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18715 msgstr ""
18716
18717 # type: textblock
18718 #: ../fish/guestfish.pod:789
18719 msgid ""
18720 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18721 "is how the I<--remote> option knows where to send the commands.  You can "
18722 "have several guestfish listener processes running using:"
18723 msgstr ""
18724
18725 # type: verbatim
18726 #: ../fish/guestfish.pod:793
18727 #, no-wrap
18728 msgid ""
18729 " eval \"`guestfish --listen`\"\n"
18730 " pid1=$GUESTFISH_PID\n"
18731 " eval \"`guestfish --listen`\"\n"
18732 " pid2=$GUESTFISH_PID\n"
18733 " ...\n"
18734 " guestfish --remote=$pid1 cmd\n"
18735 " guestfish --remote=$pid2 cmd\n"
18736 "\n"
18737 msgstr ""
18738
18739 # type: =head2
18740 #: ../fish/guestfish.pod:801
18741 msgid "REMOTE CONTROL AND CSH"
18742 msgstr ""
18743
18744 # type: textblock
18745 #: ../fish/guestfish.pod:803
18746 msgid ""
18747 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18748 "option:"
18749 msgstr ""
18750
18751 # type: verbatim
18752 #: ../fish/guestfish.pod:806
18753 #, no-wrap
18754 msgid ""
18755 " eval \"`guestfish --listen --csh`\"\n"
18756 "\n"
18757 msgstr ""
18758
18759 # type: =head2
18760 #: ../fish/guestfish.pod:808
18761 msgid "REMOTE CONTROL DETAILS"
18762 msgstr ""
18763
18764 # type: textblock
18765 #: ../fish/guestfish.pod:810
18766 msgid ""
18767 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18768 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18769 "and C<$PID> is the process ID of the server."
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish.pod:814
18774 msgid "Guestfish client and server versions must match exactly."
18775 msgstr ""
18776
18777 # type: =head1
18778 #: ../fish/guestfish.pod:816
18779 msgid "PREPARED DISK IMAGES"
18780 msgstr ""
18781
18782 # type: textblock
18783 #: ../fish/guestfish.pod:818
18784 msgid ""
18785 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18786 "preformatted disk images that guestfish can make for you to save typing.  "
18787 "This is particularly useful for testing purposes.  This option is used "
18788 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18789 "can be mixed with I<-a>)."
18790 msgstr ""
18791
18792 # type: textblock
18793 #: ../fish/guestfish.pod:824
18794 msgid ""
18795 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18796 "the second and so on.  Existing files in the current directory are "
18797 "I<overwritten>."
18798 msgstr ""
18799
18800 # type: textblock
18801 #: ../fish/guestfish.pod:828
18802 msgid ""
18803 "The type briefly describes how the disk should be sized, partitioned, how "
18804 "filesystem(s) should be created, and how content should be added.  "
18805 "Optionally the type can be followed by extra parameters, separated by C<:> "
18806 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18807 "allocated disk, containing a single partition, with the partition formatted "
18808 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18809 "disk instead."
18810 msgstr ""
18811
18812 # type: textblock
18813 #: ../fish/guestfish.pod:836
18814 msgid "To list the available types and any extra parameters they take, run:"
18815 msgstr ""
18816
18817 # type: textblock
18818 #: ../fish/guestfish.pod:840
18819 msgid ""
18820 "Note that the prepared filesystem is not mounted.  You would usually have to "
18821 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18822 msgstr ""
18823
18824 # type: textblock
18825 #: ../fish/guestfish.pod:844
18826 msgid ""
18827 "If any I<-N> or I<--new> options are given, the guest is automatically "
18828 "launched."
18829 msgstr ""
18830
18831 # type: textblock
18832 #: ../fish/guestfish.pod:849
18833 msgid "Create a 100MB disk with an ext4-formatted partition:"
18834 msgstr ""
18835
18836 # type: verbatim
18837 #: ../fish/guestfish.pod:851
18838 #, no-wrap
18839 msgid ""
18840 " guestfish -N fs:ext4\n"
18841 "\n"
18842 msgstr ""
18843
18844 # type: textblock
18845 #: ../fish/guestfish.pod:853
18846 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18847 msgstr ""
18848
18849 # type: verbatim
18850 #: ../fish/guestfish.pod:855
18851 #, no-wrap
18852 msgid ""
18853 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18854 "\n"
18855 msgstr ""
18856
18857 # type: textblock
18858 #: ../fish/guestfish.pod:857
18859 msgid "Create a blank 200MB disk:"
18860 msgstr ""
18861
18862 # type: verbatim
18863 #: ../fish/guestfish.pod:859
18864 #, no-wrap
18865 msgid ""
18866 " guestfish -N disk:200M\n"
18867 "\n"
18868 msgstr ""
18869
18870 # type: =head1
18871 #: ../fish/guestfish.pod:861
18872 msgid "PROGRESS BARS"
18873 msgstr ""
18874
18875 # type: textblock
18876 #: ../fish/guestfish.pod:863
18877 msgid ""
18878 "Some (not all) long-running commands send progress notification messages as "
18879 "they are running.  Guestfish turns these messages into progress bars."
18880 msgstr ""
18881
18882 # type: textblock
18883 #: ../fish/guestfish.pod:867
18884 msgid ""
18885 "When a command that supports progress bars takes longer than two seconds to "
18886 "run, and if progress bars are enabled, then you will see one appearing below "
18887 "the command:"
18888 msgstr ""
18889
18890 # type: verbatim
18891 #: ../fish/guestfish.pod:871
18892 #, no-wrap
18893 msgid ""
18894 " ><fs> copy-size /large-file /another-file 2048M\n"
18895 " / 10% [#####-----------------------------------------] 00:30\n"
18896 "\n"
18897 msgstr ""
18898
18899 # type: textblock
18900 #: ../fish/guestfish.pod:874
18901 msgid ""
18902 "The spinner on the left hand side moves round once for every progress "
18903 "notification received from the backend.  This is a (reasonably) golden "
18904 "assurance that the command is \"doing something\" even if the progress bar "
18905 "is not moving, because the command is able to send the progress "
18906 "notifications.  When the bar reaches 100% and the command finishes, the "
18907 "spinner disappears."
18908 msgstr ""
18909
18910 # type: textblock
18911 #: ../fish/guestfish.pod:881
18912 msgid ""
18913 "Progress bars are enabled by default when guestfish is used interactively.  "
18914 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18915 "and you can disable them completely using I<--no-progress-bars>."
18916 msgstr ""
18917
18918 # type: =head1
18919 #: ../fish/guestfish.pod:886
18920 msgid "GUESTFISH COMMANDS"
18921 msgstr ""
18922
18923 # type: textblock
18924 #: ../fish/guestfish.pod:888
18925 msgid ""
18926 "The commands in this section are guestfish convenience commands, in other "
18927 "words, they are not part of the L<guestfs(3)> API."
18928 msgstr ""
18929
18930 # type: =head2
18931 #: ../fish/guestfish.pod:891
18932 msgid "help"
18933 msgstr ""
18934
18935 # type: verbatim
18936 #: ../fish/guestfish.pod:893
18937 #, no-wrap
18938 msgid ""
18939 " help\n"
18940 " help cmd\n"
18941 "\n"
18942 msgstr ""
18943
18944 # type: textblock
18945 #: ../fish/guestfish.pod:896
18946 msgid "Without any parameter, this provides general help."
18947 msgstr ""
18948
18949 # type: textblock
18950 #: ../fish/guestfish.pod:898
18951 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18952 msgstr ""
18953
18954 # type: =head2
18955 #: ../fish/guestfish.pod:900
18956 msgid "quit | exit"
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish.pod:902
18961 msgid "This exits guestfish.  You can also use C<^D> key."
18962 msgstr ""
18963
18964 # type: textblock
18965 #: ../fish/guestfish.pod:904
18966 msgid "@FISH_COMMANDS@"
18967 msgstr ""
18968
18969 # type: =head1
18970 #: ../fish/guestfish.pod:906
18971 msgid "COMMANDS"
18972 msgstr ""
18973
18974 # type: =head1
18975 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18976 msgid "EXIT CODE"
18977 msgstr ""
18978
18979 # type: textblock
18980 #: ../fish/guestfish.pod:912
18981 msgid ""
18982 "guestfish returns 0 if the commands completed without error, or 1 if there "
18983 "was an error."
18984 msgstr ""
18985
18986 # type: =item
18987 #: ../fish/guestfish.pod:919
18988 msgid "EDITOR"
18989 msgstr ""
18990
18991 # type: textblock
18992 #: ../fish/guestfish.pod:921
18993 msgid ""
18994 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18995 "C<vi>."
18996 msgstr ""
18997
18998 # type: =item
18999 #: ../fish/guestfish.pod:924
19000 msgid "GUESTFISH_PID"
19001 msgstr ""
19002
19003 # type: textblock
19004 #: ../fish/guestfish.pod:926
19005 msgid ""
19006 "Used with the I<--remote> option to specify the remote guestfish process to "
19007 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19008 msgstr ""
19009
19010 # type: =item
19011 #: ../fish/guestfish.pod:930
19012 msgid "HEXEDITOR"
19013 msgstr ""
19014
19015 # type: textblock
19016 #: ../fish/guestfish.pod:932
19017 msgid ""
19018 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19019 "not specified, the external L<hexedit(1)> program is used."
19020 msgstr ""
19021
19022 # type: =item
19023 #: ../fish/guestfish.pod:936
19024 msgid "HOME"
19025 msgstr ""
19026
19027 # type: textblock
19028 #: ../fish/guestfish.pod:938
19029 msgid ""
19030 "If compiled with GNU readline support, various files in the home directory "
19031 "can be used.  See L</FILES>."
19032 msgstr ""
19033
19034 # type: textblock
19035 #: ../fish/guestfish.pod:947
19036 msgid ""
19037 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19038 "effect as using the B<-v> option."
19039 msgstr ""
19040
19041 # type: textblock
19042 #: ../fish/guestfish.pod:959
19043 msgid ""
19044 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19045 "the discussion of paths in L<guestfs(3)>."
19046 msgstr ""
19047
19048 # type: textblock
19049 #: ../fish/guestfish.pod:970
19050 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19051 msgstr ""
19052
19053 # type: =item
19054 #: ../fish/guestfish.pod:972
19055 msgid "PAGER"
19056 msgstr ""
19057
19058 # type: textblock
19059 #: ../fish/guestfish.pod:974
19060 msgid ""
19061 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19062 "C<more>."
19063 msgstr ""
19064
19065 # type: =head1
19066 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
19067 msgid "FILES"
19068 msgstr ""
19069
19070 # type: =item
19071 #: ../fish/guestfish.pod:993
19072 msgid "$HOME/.guestfish"
19073 msgstr ""
19074
19075 # type: textblock
19076 #: ../fish/guestfish.pod:995
19077 msgid ""
19078 "If compiled with GNU readline support, then the command history is saved in "
19079 "this file."
19080 msgstr ""
19081
19082 # type: =item
19083 #: ../fish/guestfish.pod:998
19084 msgid "$HOME/.inputrc"
19085 msgstr ""
19086
19087 # type: =item
19088 #: ../fish/guestfish.pod:1000
19089 msgid "/etc/inputrc"
19090 msgstr ""
19091
19092 # type: textblock
19093 #: ../fish/guestfish.pod:1002
19094 msgid ""
19095 "If compiled with GNU readline support, then these files can be used to "
19096 "configure readline.  For further information, please see L<readline(3)/"
19097 "INITIALIZATION FILE>."
19098 msgstr ""
19099
19100 # type: textblock
19101 #: ../fish/guestfish.pod:1006
19102 msgid "To write rules which only apply to guestfish, use:"
19103 msgstr ""
19104
19105 # type: verbatim
19106 #: ../fish/guestfish.pod:1008
19107 #, no-wrap
19108 msgid ""
19109 " $if guestfish\n"
19110 " ...\n"
19111 " $endif\n"
19112 "\n"
19113 msgstr ""
19114
19115 # type: textblock
19116 #: ../fish/guestfish.pod:1012
19117 msgid ""
19118 "Variables that you can set in inputrc that change the behaviour of guestfish "
19119 "in useful ways include:"
19120 msgstr ""
19121
19122 # type: =item
19123 #: ../fish/guestfish.pod:1017
19124 msgid "completion-ignore-case (default: on)"
19125 msgstr ""
19126
19127 # type: textblock
19128 #: ../fish/guestfish.pod:1019
19129 msgid ""
19130 "By default, guestfish will ignore case when tab-completing paths on the "
19131 "disk.  Use:"
19132 msgstr ""
19133
19134 # type: verbatim
19135 #: ../fish/guestfish.pod:1022
19136 #, no-wrap
19137 msgid ""
19138 " set completion-ignore-case off\n"
19139 "\n"
19140 msgstr ""
19141
19142 # type: textblock
19143 #: ../fish/guestfish.pod:1024
19144 msgid "to make guestfish case sensitive."
19145 msgstr ""
19146
19147 # type: =item
19148 #: ../fish/guestfish.pod:1028
19149 msgid "test1.img"
19150 msgstr ""
19151
19152 # type: =item
19153 #: ../fish/guestfish.pod:1030
19154 msgid "test2.img (etc)"
19155 msgstr ""
19156
19157 # type: textblock
19158 #: ../fish/guestfish.pod:1032
19159 msgid ""
19160 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19161 "will be created in the file C<test1.img> in the current directory.  The "
19162 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19163 "the same name will be overwritten."
19164 msgstr ""
19165
19166 # type: textblock
19167 #: ../fish/guestfish.pod:1041
19168 msgid ""
19169 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19170 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19171 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19172 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19173 "L<hexedit(1)>."
19174 msgstr ""
19175
19176 # type: textblock
19177 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124
19178 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19179 #: ../tools/virt-win-reg.pl:518 ../tools/virt-df.pl:657
19180 #: ../tools/virt-resize.pl:1514 ../tools/virt-list-filesystems.pl:210
19181 #: ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285
19182 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19183 msgid ""
19184 "This program is free software; you can redistribute it and/or modify it "
19185 "under the terms of the GNU General Public License as published by the Free "
19186 "Software Foundation; either version 2 of the License, or (at your option) "
19187 "any later version."
19188 msgstr ""
19189
19190 # type: textblock
19191 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129
19192 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19193 #: ../tools/virt-win-reg.pl:523 ../tools/virt-df.pl:662
19194 #: ../tools/virt-resize.pl:1519 ../tools/virt-list-filesystems.pl:215
19195 #: ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290
19196 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19197 msgid ""
19198 "This program is distributed in the hope that it will be useful, but WITHOUT "
19199 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19200 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19201 "more details."
19202 msgstr ""
19203
19204 # type: textblock
19205 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134
19206 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19207 #: ../tools/virt-win-reg.pl:528 ../tools/virt-df.pl:667
19208 #: ../tools/virt-resize.pl:1524 ../tools/virt-list-filesystems.pl:220
19209 #: ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295
19210 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19211 msgid ""
19212 "You should have received a copy of the GNU General Public License along with "
19213 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19214 "Ave, Cambridge, MA 02139, USA."
19215 msgstr ""
19216
19217 # type: =head2
19218 #: ../fish/guestfish-actions.pod:1
19219 msgid "add-cdrom"
19220 msgstr ""
19221
19222 # type: verbatim
19223 #: ../fish/guestfish-actions.pod:3
19224 #, no-wrap
19225 msgid ""
19226 " add-cdrom filename\n"
19227 "\n"
19228 msgstr ""
19229
19230 # type: textblock
19231 #: ../fish/guestfish-actions.pod:15
19232 msgid ""
19233 "This call checks for the existence of C<filename>.  This stops you from "
19234 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19235 "and C<http:> URLs.  To specify those, use the general L</config> call "
19236 "instead."
19237 msgstr ""
19238
19239 # type: textblock
19240 #: ../fish/guestfish-actions.pod:22
19241 msgid ""
19242 "If you just want to add an ISO file (often you use this as an efficient way "
19243 "to transfer large files into the guest), then you should probably use L</add-"
19244 "drive-ro> instead."
19245 msgstr ""
19246
19247 # type: =head2
19248 #: ../fish/guestfish-actions.pod:35
19249 msgid "add-domain"
19250 msgstr ""
19251
19252 # type: =head2
19253 #: ../fish/guestfish-actions.pod:37
19254 msgid "domain"
19255 msgstr ""
19256
19257 # type: verbatim
19258 #: ../fish/guestfish-actions.pod:39
19259 #, no-wrap
19260 msgid ""
19261 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19262 "\n"
19263 msgstr ""
19264
19265 # type: textblock
19266 #: ../fish/guestfish-actions.pod:41
19267 msgid ""
19268 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19269 "It works by connecting to libvirt, requesting the domain and domain XML from "
19270 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19271 msgstr ""
19272
19273 # type: textblock
19274 #: ../fish/guestfish-actions.pod:58
19275 msgid ""
19276 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19277 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19278 "libvirt URI (or one set through an environment variable, see the libvirt "
19279 "documentation for full details).  If you are using the C API directly then "
19280 "it is more flexible to create the libvirt connection object yourself, get "
19281 "the domain object, and call L</add-libvirt-dom>."
19282 msgstr ""
19283
19284 # type: textblock
19285 #: ../fish/guestfish-actions.pod:66
19286 msgid ""
19287 "The other optional parameters are passed directly through to L</add-drive-"
19288 "opts>."
19289 msgstr ""
19290
19291 # type: textblock
19292 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19293 msgid ""
19294 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19295 msgstr ""
19296
19297 # type: =head2
19298 #: ../fish/guestfish-actions.pod:71
19299 msgid "add-drive"
19300 msgstr ""
19301
19302 # type: verbatim
19303 #: ../fish/guestfish-actions.pod:73
19304 #, no-wrap
19305 msgid ""
19306 " add-drive filename\n"
19307 "\n"
19308 msgstr ""
19309
19310 # type: textblock
19311 #: ../fish/guestfish-actions.pod:75
19312 msgid ""
19313 "This function is the equivalent of calling L</add-drive-opts> with no "
19314 "optional parameters, so the disk is added writable, with the format being "
19315 "detected automatically."
19316 msgstr ""
19317
19318 # type: textblock
19319 #: ../fish/guestfish-actions.pod:79
19320 msgid ""
19321 "Automatic detection of the format opens you up to a potential security hole "
19322 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19323 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19324 "you should think about replacing calls to this function with calls to L</add-"
19325 "drive-opts>, and specifying the format."
19326 msgstr ""
19327
19328 # type: =head2
19329 #: ../fish/guestfish-actions.pod:86
19330 msgid "add-drive-opts"
19331 msgstr ""
19332
19333 # type: =head2
19334 #: ../fish/guestfish-actions.pod:88
19335 msgid "add"
19336 msgstr ""
19337
19338 # type: verbatim
19339 #: ../fish/guestfish-actions.pod:90
19340 #, no-wrap
19341 msgid ""
19342 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19343 "\n"
19344 msgstr ""
19345
19346 # type: textblock
19347 #: ../fish/guestfish-actions.pod:117
19348 msgid ""
19349 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19350 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19351 "include C<raw> and C<qcow2>."
19352 msgstr ""
19353
19354 # type: textblock
19355 #: ../fish/guestfish-actions.pod:128
19356 msgid ""
19357 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19358 "add-drive-with-if> call (q.v.)"
19359 msgstr ""
19360
19361 # type: =head2
19362 #: ../fish/guestfish-actions.pod:135
19363 msgid "add-drive-ro"
19364 msgstr ""
19365
19366 # type: =head2
19367 #: ../fish/guestfish-actions.pod:137
19368 msgid "add-ro"
19369 msgstr ""
19370
19371 # type: verbatim
19372 #: ../fish/guestfish-actions.pod:139
19373 #, no-wrap
19374 msgid ""
19375 " add-drive-ro filename\n"
19376 "\n"
19377 msgstr ""
19378
19379 # type: textblock
19380 #: ../fish/guestfish-actions.pod:141
19381 msgid ""
19382 "This function is the equivalent of calling L</add-drive-opts> with the "
19383 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19384 "is added read-only, with the format being detected automatically."
19385 msgstr ""
19386
19387 # type: =head2
19388 #: ../fish/guestfish-actions.pod:146
19389 msgid "add-drive-ro-with-if"
19390 msgstr ""
19391
19392 # type: verbatim
19393 #: ../fish/guestfish-actions.pod:148
19394 #, no-wrap
19395 msgid ""
19396 " add-drive-ro-with-if filename iface\n"
19397 "\n"
19398 msgstr ""
19399
19400 # type: textblock
19401 #: ../fish/guestfish-actions.pod:150
19402 msgid ""
19403 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19404 "interface emulation to use at run time."
19405 msgstr ""
19406
19407 # type: =head2
19408 #: ../fish/guestfish-actions.pod:160
19409 msgid "add-drive-with-if"
19410 msgstr ""
19411
19412 # type: verbatim
19413 #: ../fish/guestfish-actions.pod:162
19414 #, no-wrap
19415 msgid ""
19416 " add-drive-with-if filename iface\n"
19417 "\n"
19418 msgstr ""
19419
19420 # type: textblock
19421 #: ../fish/guestfish-actions.pod:164
19422 msgid ""
19423 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19424 "interface emulation to use at run time."
19425 msgstr ""
19426
19427 # type: =head2
19428 #: ../fish/guestfish-actions.pod:174
19429 msgid "aug-clear"
19430 msgstr ""
19431
19432 # type: verbatim
19433 #: ../fish/guestfish-actions.pod:176
19434 #, no-wrap
19435 msgid ""
19436 " aug-clear augpath\n"
19437 "\n"
19438 msgstr ""
19439
19440 # type: =head2
19441 #: ../fish/guestfish-actions.pod:181
19442 msgid "aug-close"
19443 msgstr ""
19444
19445 # type: verbatim
19446 #: ../fish/guestfish-actions.pod:183
19447 #, no-wrap
19448 msgid ""
19449 " aug-close\n"
19450 "\n"
19451 msgstr ""
19452
19453 # type: textblock
19454 #: ../fish/guestfish-actions.pod:185
19455 msgid ""
19456 "Close the current Augeas handle and free up any resources used by it.  After "
19457 "calling this, you have to call L</aug-init> again before you can use any "
19458 "other Augeas functions."
19459 msgstr ""
19460
19461 # type: =head2
19462 #: ../fish/guestfish-actions.pod:190
19463 msgid "aug-defnode"
19464 msgstr ""
19465
19466 # type: verbatim
19467 #: ../fish/guestfish-actions.pod:192
19468 #, no-wrap
19469 msgid ""
19470 " aug-defnode name expr val\n"
19471 "\n"
19472 msgstr ""
19473
19474 # type: textblock
19475 #: ../fish/guestfish-actions.pod:197
19476 msgid ""
19477 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19478 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19479 "containing that single node."
19480 msgstr ""
19481
19482 # type: =head2
19483 #: ../fish/guestfish-actions.pod:205
19484 msgid "aug-defvar"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #: ../fish/guestfish-actions.pod:207
19489 #, no-wrap
19490 msgid ""
19491 " aug-defvar name expr\n"
19492 "\n"
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:216
19497 msgid "aug-get"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #: ../fish/guestfish-actions.pod:218
19502 #, no-wrap
19503 msgid ""
19504 " aug-get augpath\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: =head2
19509 #: ../fish/guestfish-actions.pod:223
19510 msgid "aug-init"
19511 msgstr ""
19512
19513 # type: verbatim
19514 #: ../fish/guestfish-actions.pod:225
19515 #, no-wrap
19516 msgid ""
19517 " aug-init root flags\n"
19518 "\n"
19519 msgstr ""
19520
19521 # type: textblock
19522 #: ../fish/guestfish-actions.pod:231
19523 msgid "You must call this before using any other L</aug-*> commands."
19524 msgstr ""
19525
19526 # type: textblock
19527 #: ../fish/guestfish-actions.pod:266
19528 msgid "Do not load the tree in L</aug-init>."
19529 msgstr ""
19530
19531 # type: textblock
19532 #: ../fish/guestfish-actions.pod:270
19533 msgid "To close the handle, you can call L</aug-close>."
19534 msgstr ""
19535
19536 # type: =head2
19537 #: ../fish/guestfish-actions.pod:274
19538 msgid "aug-insert"
19539 msgstr ""
19540
19541 # type: verbatim
19542 #: ../fish/guestfish-actions.pod:276
19543 #, no-wrap
19544 msgid ""
19545 " aug-insert augpath label true|false\n"
19546 "\n"
19547 msgstr ""
19548
19549 # type: =head2
19550 #: ../fish/guestfish-actions.pod:286
19551 msgid "aug-load"
19552 msgstr ""
19553
19554 # type: verbatim
19555 #: ../fish/guestfish-actions.pod:288
19556 #, no-wrap
19557 msgid ""
19558 " aug-load\n"
19559 "\n"
19560 msgstr ""
19561
19562 # type: =head2
19563 #: ../fish/guestfish-actions.pod:295
19564 msgid "aug-ls"
19565 msgstr ""
19566
19567 # type: verbatim
19568 #: ../fish/guestfish-actions.pod:297
19569 #, no-wrap
19570 msgid ""
19571 " aug-ls augpath\n"
19572 "\n"
19573 msgstr ""
19574
19575 # type: textblock
19576 #: ../fish/guestfish-actions.pod:299
19577 msgid ""
19578 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19579 "resulting nodes into alphabetical order."
19580 msgstr ""
19581
19582 # type: =head2
19583 #: ../fish/guestfish-actions.pod:302
19584 msgid "aug-match"
19585 msgstr ""
19586
19587 # type: verbatim
19588 #: ../fish/guestfish-actions.pod:304
19589 #, no-wrap
19590 msgid ""
19591 " aug-match augpath\n"
19592 "\n"
19593 msgstr ""
19594
19595 # type: =head2
19596 #: ../fish/guestfish-actions.pod:310
19597 msgid "aug-mv"
19598 msgstr ""
19599
19600 # type: verbatim
19601 #: ../fish/guestfish-actions.pod:312
19602 #, no-wrap
19603 msgid ""
19604 " aug-mv src dest\n"
19605 "\n"
19606 msgstr ""
19607
19608 # type: =head2
19609 #: ../fish/guestfish-actions.pod:317
19610 msgid "aug-rm"
19611 msgstr ""
19612
19613 # type: verbatim
19614 #: ../fish/guestfish-actions.pod:319
19615 #, no-wrap
19616 msgid ""
19617 " aug-rm augpath\n"
19618 "\n"
19619 msgstr ""
19620
19621 # type: =head2
19622 #: ../fish/guestfish-actions.pod:325
19623 msgid "aug-save"
19624 msgstr ""
19625
19626 # type: verbatim
19627 #: ../fish/guestfish-actions.pod:327
19628 #, no-wrap
19629 msgid ""
19630 " aug-save\n"
19631 "\n"
19632 msgstr ""
19633
19634 # type: textblock
19635 #: ../fish/guestfish-actions.pod:331
19636 msgid ""
19637 "The flags which were passed to L</aug-init> affect exactly how files are "
19638 "saved."
19639 msgstr ""
19640
19641 # type: =head2
19642 #: ../fish/guestfish-actions.pod:334
19643 msgid "aug-set"
19644 msgstr ""
19645
19646 # type: verbatim
19647 #: ../fish/guestfish-actions.pod:336
19648 #, no-wrap
19649 msgid ""
19650 " aug-set augpath val\n"
19651 "\n"
19652 msgstr ""
19653
19654 # type: textblock
19655 #: ../fish/guestfish-actions.pod:340
19656 msgid ""
19657 "In the Augeas API, it is possible to clear a node by setting the value to "
19658 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19659 "this call.  Instead you must use the L</aug-clear> call."
19660 msgstr ""
19661
19662 # type: =head2
19663 #: ../fish/guestfish-actions.pod:345
19664 msgid "available"
19665 msgstr ""
19666
19667 # type: verbatim
19668 #: ../fish/guestfish-actions.pod:347
19669 #, no-wrap
19670 msgid ""
19671 " available 'groups ...'\n"
19672 "\n"
19673 msgstr ""
19674
19675 # type: textblock
19676 #: ../fish/guestfish-actions.pod:353
19677 msgid ""
19678 "The libguestfs groups, and the functions that those groups correspond to, "
19679 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19680 "runtime by calling L</available-all-groups>."
19681 msgstr ""
19682
19683 # type: textblock
19684 #: ../fish/guestfish-actions.pod:377
19685 msgid "You must call L</launch> before calling this function."
19686 msgstr ""
19687
19688 # type: textblock
19689 #: ../fish/guestfish-actions.pod:399
19690 msgid ""
19691 "This call was added in version C<1.0.80>.  In previous versions of "
19692 "libguestfs all you could do would be to speculatively execute a command to "
19693 "find out if the daemon implemented it.  See also L</version>."
19694 msgstr ""
19695
19696 # type: =head2
19697 #: ../fish/guestfish-actions.pod:406
19698 msgid "available-all-groups"
19699 msgstr ""
19700
19701 # type: verbatim
19702 #: ../fish/guestfish-actions.pod:408
19703 #, no-wrap
19704 msgid ""
19705 " available-all-groups\n"
19706 "\n"
19707 msgstr ""
19708
19709 # type: textblock
19710 #: ../fish/guestfish-actions.pod:410
19711 msgid ""
19712 "This command returns a list of all optional groups that this daemon knows "
19713 "about.  Note this returns both supported and unsupported groups.  To find "
19714 "out which ones the daemon can actually support you have to call L</"
19715 "available> on each member of the returned list."
19716 msgstr ""
19717
19718 # type: textblock
19719 #: ../fish/guestfish-actions.pod:416
19720 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19721 msgstr ""
19722
19723 # type: =head2
19724 #: ../fish/guestfish-actions.pod:418
19725 msgid "base64-in"
19726 msgstr ""
19727
19728 # type: verbatim
19729 #: ../fish/guestfish-actions.pod:420
19730 #, no-wrap
19731 msgid ""
19732 " base64-in (base64file|-) filename\n"
19733 "\n"
19734 msgstr ""
19735
19736 # type: textblock
19737 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19738 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19739 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19740 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19741 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19742 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19743 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19744 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19745 msgstr ""
19746
19747 # type: =head2
19748 #: ../fish/guestfish-actions.pod:427
19749 msgid "base64-out"
19750 msgstr ""
19751
19752 # type: verbatim
19753 #: ../fish/guestfish-actions.pod:429
19754 #, no-wrap
19755 msgid ""
19756 " base64-out filename (base64file|-)\n"
19757 "\n"
19758 msgstr ""
19759
19760 # type: =head2
19761 #: ../fish/guestfish-actions.pod:436
19762 msgid "blockdev-flushbufs"
19763 msgstr ""
19764
19765 # type: verbatim
19766 #: ../fish/guestfish-actions.pod:438
19767 #, no-wrap
19768 msgid ""
19769 " blockdev-flushbufs device\n"
19770 "\n"
19771 msgstr ""
19772
19773 # type: =head2
19774 #: ../fish/guestfish-actions.pod:445
19775 msgid "blockdev-getbsz"
19776 msgstr ""
19777
19778 # type: verbatim
19779 #: ../fish/guestfish-actions.pod:447
19780 #, no-wrap
19781 msgid ""
19782 " blockdev-getbsz device\n"
19783 "\n"
19784 msgstr ""
19785
19786 # type: =head2
19787 #: ../fish/guestfish-actions.pod:456
19788 msgid "blockdev-getro"
19789 msgstr ""
19790
19791 # type: verbatim
19792 #: ../fish/guestfish-actions.pod:458
19793 #, no-wrap
19794 msgid ""
19795 " blockdev-getro device\n"
19796 "\n"
19797 msgstr ""
19798
19799 # type: =head2
19800 #: ../fish/guestfish-actions.pod:465
19801 msgid "blockdev-getsize64"
19802 msgstr ""
19803
19804 # type: verbatim
19805 #: ../fish/guestfish-actions.pod:467
19806 #, no-wrap
19807 msgid ""
19808 " blockdev-getsize64 device\n"
19809 "\n"
19810 msgstr ""
19811
19812 # type: textblock
19813 #: ../fish/guestfish-actions.pod:471
19814 msgid "See also L</blockdev-getsz>."
19815 msgstr ""
19816
19817 # type: =head2
19818 #: ../fish/guestfish-actions.pod:475
19819 msgid "blockdev-getss"
19820 msgstr ""
19821
19822 # type: verbatim
19823 #: ../fish/guestfish-actions.pod:477
19824 #, no-wrap
19825 msgid ""
19826 " blockdev-getss device\n"
19827 "\n"
19828 msgstr ""
19829
19830 # type: textblock
19831 #: ../fish/guestfish-actions.pod:482
19832 msgid ""
19833 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19834 msgstr ""
19835
19836 # type: =head2
19837 #: ../fish/guestfish-actions.pod:487
19838 msgid "blockdev-getsz"
19839 msgstr ""
19840
19841 # type: verbatim
19842 #: ../fish/guestfish-actions.pod:489
19843 #, no-wrap
19844 msgid ""
19845 " blockdev-getsz device\n"
19846 "\n"
19847 msgstr ""
19848
19849 # type: textblock
19850 #: ../fish/guestfish-actions.pod:494
19851 msgid ""
19852 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19853 "blockdev-getsize64> for the more useful I<size in bytes>."
19854 msgstr ""
19855
19856 # type: =head2
19857 #: ../fish/guestfish-actions.pod:500
19858 msgid "blockdev-rereadpt"
19859 msgstr ""
19860
19861 # type: verbatim
19862 #: ../fish/guestfish-actions.pod:502
19863 #, no-wrap
19864 msgid ""
19865 " blockdev-rereadpt device\n"
19866 "\n"
19867 msgstr ""
19868
19869 # type: =head2
19870 #: ../fish/guestfish-actions.pod:508
19871 msgid "blockdev-setbsz"
19872 msgstr ""
19873
19874 # type: verbatim
19875 #: ../fish/guestfish-actions.pod:510
19876 #, no-wrap
19877 msgid ""
19878 " blockdev-setbsz device blocksize\n"
19879 "\n"
19880 msgstr ""
19881
19882 # type: =head2
19883 #: ../fish/guestfish-actions.pod:519
19884 msgid "blockdev-setro"
19885 msgstr ""
19886
19887 # type: verbatim
19888 #: ../fish/guestfish-actions.pod:521
19889 #, no-wrap
19890 msgid ""
19891 " blockdev-setro device\n"
19892 "\n"
19893 msgstr ""
19894
19895 # type: =head2
19896 #: ../fish/guestfish-actions.pod:527
19897 msgid "blockdev-setrw"
19898 msgstr ""
19899
19900 # type: verbatim
19901 #: ../fish/guestfish-actions.pod:529
19902 #, no-wrap
19903 msgid ""
19904 " blockdev-setrw device\n"
19905 "\n"
19906 msgstr ""
19907
19908 # type: =head2
19909 #: ../fish/guestfish-actions.pod:535
19910 msgid "case-sensitive-path"
19911 msgstr ""
19912
19913 # type: verbatim
19914 #: ../fish/guestfish-actions.pod:537
19915 #, no-wrap
19916 msgid ""
19917 " case-sensitive-path path\n"
19918 "\n"
19919 msgstr ""
19920
19921 # type: textblock
19922 #: ../fish/guestfish-actions.pod:561
19923 msgid ""
19924 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19925 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19926 "the directories were originally created under Windows)."
19927 msgstr ""
19928
19929 # type: textblock
19930 #: ../fish/guestfish-actions.pod:569
19931 msgid "See also L</realpath>."
19932 msgstr ""
19933
19934 # type: =head2
19935 #: ../fish/guestfish-actions.pod:571
19936 msgid "cat"
19937 msgstr ""
19938
19939 # type: verbatim
19940 #: ../fish/guestfish-actions.pod:573
19941 #, no-wrap
19942 msgid ""
19943 " cat path\n"
19944 "\n"
19945 msgstr ""
19946
19947 # type: textblock
19948 #: ../fish/guestfish-actions.pod:577
19949 msgid ""
19950 "Note that this function cannot correctly handle binary files (specifically, "
19951 "files containing C<\\0> character which is treated as end of string).  For "
19952 "those you need to use the L</read-file> or L</download> functions which have "
19953 "a more complex interface."
19954 msgstr ""
19955
19956 # type: =head2
19957 #: ../fish/guestfish-actions.pod:585
19958 msgid "checksum"
19959 msgstr ""
19960
19961 # type: verbatim
19962 #: ../fish/guestfish-actions.pod:587
19963 #, no-wrap
19964 msgid ""
19965 " checksum csumtype path\n"
19966 "\n"
19967 msgstr ""
19968
19969 # type: textblock
19970 #: ../fish/guestfish-actions.pod:630
19971 msgid "To get the checksum for a device, use L</checksum-device>."
19972 msgstr ""
19973
19974 # type: textblock
19975 #: ../fish/guestfish-actions.pod:632
19976 msgid "To get the checksums for many files, use L</checksums-out>."
19977 msgstr ""
19978
19979 # type: =head2
19980 #: ../fish/guestfish-actions.pod:634
19981 msgid "checksum-device"
19982 msgstr ""
19983
19984 # type: verbatim
19985 #: ../fish/guestfish-actions.pod:636
19986 #, no-wrap
19987 msgid ""
19988 " checksum-device csumtype device\n"
19989 "\n"
19990 msgstr ""
19991
19992 # type: textblock
19993 #: ../fish/guestfish-actions.pod:638
19994 msgid ""
19995 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19996 "device named C<device>.  For the types of checksums supported see the L</"
19997 "checksum> command."
19998 msgstr ""
19999
20000 # type: =head2
20001 #: ../fish/guestfish-actions.pod:642
20002 msgid "checksums-out"
20003 msgstr ""
20004
20005 # type: verbatim
20006 #: ../fish/guestfish-actions.pod:644
20007 #, no-wrap
20008 msgid ""
20009 " checksums-out csumtype directory (sumsfile|-)\n"
20010 "\n"
20011 msgstr ""
20012
20013 # type: =head2
20014 #: ../fish/guestfish-actions.pod:660
20015 msgid "chmod"
20016 msgstr ""
20017
20018 # type: verbatim
20019 #: ../fish/guestfish-actions.pod:662
20020 #, no-wrap
20021 msgid ""
20022 " chmod mode path\n"
20023 "\n"
20024 msgstr ""
20025
20026 # type: =head2
20027 #: ../fish/guestfish-actions.pod:673
20028 msgid "chown"
20029 msgstr ""
20030
20031 # type: verbatim
20032 #: ../fish/guestfish-actions.pod:675
20033 #, no-wrap
20034 msgid ""
20035 " chown owner group path\n"
20036 "\n"
20037 msgstr ""
20038
20039 # type: =head2
20040 #: ../fish/guestfish-actions.pod:683
20041 msgid "command"
20042 msgstr ""
20043
20044 # type: verbatim
20045 #: ../fish/guestfish-actions.pod:685
20046 #, no-wrap
20047 msgid ""
20048 " command 'arguments ...'\n"
20049 "\n"
20050 msgstr ""
20051
20052 # type: textblock
20053 #: ../fish/guestfish-actions.pod:692
20054 msgid ""
20055 "The single parameter is an argv-style list of arguments.  The first element "
20056 "is the name of the program to run.  Subsequent elements are parameters.  The "
20057 "list must be non-empty (ie. must contain a program name).  Note that the "
20058 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20059 msgstr ""
20060
20061 # type: =head2
20062 #: ../fish/guestfish-actions.pod:720
20063 msgid "command-lines"
20064 msgstr ""
20065
20066 # type: verbatim
20067 #: ../fish/guestfish-actions.pod:722
20068 #, no-wrap
20069 msgid ""
20070 " command-lines 'arguments ...'\n"
20071 "\n"
20072 msgstr ""
20073
20074 # type: textblock
20075 #: ../fish/guestfish-actions.pod:724
20076 msgid ""
20077 "This is the same as L</command>, but splits the result into a list of lines."
20078 msgstr ""
20079
20080 # type: textblock
20081 #: ../fish/guestfish-actions.pod:727
20082 msgid "See also: L</sh-lines>"
20083 msgstr ""
20084
20085 # type: =head2
20086 #: ../fish/guestfish-actions.pod:732
20087 msgid "config"
20088 msgstr ""
20089
20090 # type: verbatim
20091 #: ../fish/guestfish-actions.pod:734
20092 #, no-wrap
20093 msgid ""
20094 " config qemuparam qemuvalue\n"
20095 "\n"
20096 msgstr ""
20097
20098 # type: =head2
20099 #: ../fish/guestfish-actions.pod:745
20100 msgid "copy-size"
20101 msgstr ""
20102
20103 # type: verbatim
20104 #: ../fish/guestfish-actions.pod:747
20105 #, no-wrap
20106 msgid ""
20107 " copy-size src dest size\n"
20108 "\n"
20109 msgstr ""
20110
20111 # type: =head2
20112 #: ../fish/guestfish-actions.pod:755
20113 msgid "cp"
20114 msgstr ""
20115
20116 # type: verbatim
20117 #: ../fish/guestfish-actions.pod:757
20118 #, no-wrap
20119 msgid ""
20120 " cp src dest\n"
20121 "\n"
20122 msgstr ""
20123
20124 # type: =head2
20125 #: ../fish/guestfish-actions.pod:762
20126 msgid "cp-a"
20127 msgstr ""
20128
20129 # type: verbatim
20130 #: ../fish/guestfish-actions.pod:764
20131 #, no-wrap
20132 msgid ""
20133 " cp-a src dest\n"
20134 "\n"
20135 msgstr ""
20136
20137 # type: =head2
20138 #: ../fish/guestfish-actions.pod:769
20139 msgid "dd"
20140 msgstr ""
20141
20142 # type: verbatim
20143 #: ../fish/guestfish-actions.pod:771
20144 #, no-wrap
20145 msgid ""
20146 " dd src dest\n"
20147 "\n"
20148 msgstr ""
20149
20150 # type: textblock
20151 #: ../fish/guestfish-actions.pod:778
20152 msgid ""
20153 "If the destination is a device, it must be as large or larger than the "
20154 "source file or device, otherwise the copy will fail.  This command cannot do "
20155 "partial copies (see L</copy-size>)."
20156 msgstr ""
20157
20158 # type: =head2
20159 #: ../fish/guestfish-actions.pod:782
20160 msgid "df"
20161 msgstr ""
20162
20163 # type: verbatim
20164 #: ../fish/guestfish-actions.pod:784
20165 #, no-wrap
20166 msgid ""
20167 " df\n"
20168 "\n"
20169 msgstr ""
20170
20171 # type: =head2
20172 #: ../fish/guestfish-actions.pod:792
20173 msgid "df-h"
20174 msgstr ""
20175
20176 # type: verbatim
20177 #: ../fish/guestfish-actions.pod:794
20178 #, no-wrap
20179 msgid ""
20180 " df-h\n"
20181 "\n"
20182 msgstr ""
20183
20184 # type: =head2
20185 #: ../fish/guestfish-actions.pod:803
20186 msgid "dmesg"
20187 msgstr ""
20188
20189 # type: verbatim
20190 #: ../fish/guestfish-actions.pod:805
20191 #, no-wrap
20192 msgid ""
20193 " dmesg\n"
20194 "\n"
20195 msgstr ""
20196
20197 # type: textblock
20198 #: ../fish/guestfish-actions.pod:811
20199 msgid ""
20200 "Another way to get the same information is to enable verbose messages with "
20201 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20202 "before running the program."
20203 msgstr ""
20204
20205 # type: =head2
20206 #: ../fish/guestfish-actions.pod:816
20207 msgid "download"
20208 msgstr ""
20209
20210 # type: verbatim
20211 #: ../fish/guestfish-actions.pod:818
20212 #, no-wrap
20213 msgid ""
20214 " download remotefilename (filename|-)\n"
20215 "\n"
20216 msgstr ""
20217
20218 # type: textblock
20219 #: ../fish/guestfish-actions.pod:825
20220 msgid "See also L</upload>, L</cat>."
20221 msgstr ""
20222
20223 # type: =head2
20224 #: ../fish/guestfish-actions.pod:829
20225 msgid "download-offset"
20226 msgstr ""
20227
20228 # type: verbatim
20229 #: ../fish/guestfish-actions.pod:831
20230 #, no-wrap
20231 msgid ""
20232 " download-offset remotefilename (filename|-) offset size\n"
20233 "\n"
20234 msgstr ""
20235
20236 # type: textblock
20237 #: ../fish/guestfish-actions.pod:839
20238 msgid ""
20239 "Note that there is no limit on the amount of data that can be downloaded "
20240 "with this call, unlike with L</pread>, and this call always reads the full "
20241 "amount unless an error occurs."
20242 msgstr ""
20243
20244 # type: textblock
20245 #: ../fish/guestfish-actions.pod:844
20246 msgid "See also L</download>, L</pread>."
20247 msgstr ""
20248
20249 # type: =head2
20250 #: ../fish/guestfish-actions.pod:848
20251 msgid "drop-caches"
20252 msgstr ""
20253
20254 # type: verbatim
20255 #: ../fish/guestfish-actions.pod:850
20256 #, no-wrap
20257 msgid ""
20258 " drop-caches whattodrop\n"
20259 "\n"
20260 msgstr ""
20261
20262 # type: =head2
20263 #: ../fish/guestfish-actions.pod:862
20264 msgid "du"
20265 msgstr ""
20266
20267 # type: verbatim
20268 #: ../fish/guestfish-actions.pod:864
20269 #, no-wrap
20270 msgid ""
20271 " du path\n"
20272 "\n"
20273 msgstr ""
20274
20275 # type: =head2
20276 #: ../fish/guestfish-actions.pod:876
20277 msgid "e2fsck-f"
20278 msgstr ""
20279
20280 # type: verbatim
20281 #: ../fish/guestfish-actions.pod:878
20282 #, no-wrap
20283 msgid ""
20284 " e2fsck-f device\n"
20285 "\n"
20286 msgstr ""
20287
20288 # type: textblock
20289 #: ../fish/guestfish-actions.pod:884
20290 msgid ""
20291 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20292 "should use L</fsck>."
20293 msgstr ""
20294
20295 # type: =head2
20296 #: ../fish/guestfish-actions.pod:887
20297 msgid "echo-daemon"
20298 msgstr ""
20299
20300 # type: verbatim
20301 #: ../fish/guestfish-actions.pod:889
20302 #, no-wrap
20303 msgid ""
20304 " echo-daemon 'words ...'\n"
20305 "\n"
20306 msgstr ""
20307
20308 # type: textblock
20309 #: ../fish/guestfish-actions.pod:896
20310 msgid "See also L</ping-daemon>."
20311 msgstr ""
20312
20313 # type: =head2
20314 #: ../fish/guestfish-actions.pod:898
20315 msgid "egrep"
20316 msgstr ""
20317
20318 # type: verbatim
20319 #: ../fish/guestfish-actions.pod:900
20320 #, no-wrap
20321 msgid ""
20322 " egrep regex path\n"
20323 "\n"
20324 msgstr ""
20325
20326 # type: =head2
20327 #: ../fish/guestfish-actions.pod:908
20328 msgid "egrepi"
20329 msgstr ""
20330
20331 # type: verbatim
20332 #: ../fish/guestfish-actions.pod:910
20333 #, no-wrap
20334 msgid ""
20335 " egrepi regex path\n"
20336 "\n"
20337 msgstr ""
20338
20339 # type: =head2
20340 #: ../fish/guestfish-actions.pod:918
20341 msgid "equal"
20342 msgstr ""
20343
20344 # type: verbatim
20345 #: ../fish/guestfish-actions.pod:920
20346 #, no-wrap
20347 msgid ""
20348 " equal file1 file2\n"
20349 "\n"
20350 msgstr ""
20351
20352 # type: =head2
20353 #: ../fish/guestfish-actions.pod:927
20354 msgid "exists"
20355 msgstr ""
20356
20357 # type: verbatim
20358 #: ../fish/guestfish-actions.pod:929
20359 #, no-wrap
20360 msgid ""
20361 " exists path\n"
20362 "\n"
20363 msgstr ""
20364
20365 # type: textblock
20366 #: ../fish/guestfish-actions.pod:934
20367 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20368 msgstr ""
20369
20370 # type: =head2
20371 #: ../fish/guestfish-actions.pod:936
20372 msgid "fallocate"
20373 msgstr ""
20374
20375 # type: verbatim
20376 #: ../fish/guestfish-actions.pod:938
20377 #, no-wrap
20378 msgid ""
20379 " fallocate path len\n"
20380 "\n"
20381 msgstr ""
20382
20383 # type: =head2
20384 #: ../fish/guestfish-actions.pod:955
20385 msgid "fallocate64"
20386 msgstr ""
20387
20388 # type: verbatim
20389 #: ../fish/guestfish-actions.pod:957
20390 #, no-wrap
20391 msgid ""
20392 " fallocate64 path len\n"
20393 "\n"
20394 msgstr ""
20395
20396 # type: textblock
20397 #: ../fish/guestfish-actions.pod:963
20398 msgid ""
20399 "Note that this call allocates disk blocks for the file.  To create a sparse "
20400 "file use L</truncate-size> instead."
20401 msgstr ""
20402
20403 # type: textblock
20404 #: ../fish/guestfish-actions.pod:966
20405 msgid ""
20406 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20407 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20408 "maximum size of files created through that call to 1GB."
20409 msgstr ""
20410
20411 # type: =head2
20412 #: ../fish/guestfish-actions.pod:975
20413 msgid "fgrep"
20414 msgstr ""
20415
20416 # type: verbatim
20417 #: ../fish/guestfish-actions.pod:977
20418 #, no-wrap
20419 msgid ""
20420 " fgrep pattern path\n"
20421 "\n"
20422 msgstr ""
20423
20424 # type: =head2
20425 #: ../fish/guestfish-actions.pod:985
20426 msgid "fgrepi"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #: ../fish/guestfish-actions.pod:987
20431 #, no-wrap
20432 msgid ""
20433 " fgrepi pattern path\n"
20434 "\n"
20435 msgstr ""
20436
20437 # type: =head2
20438 #: ../fish/guestfish-actions.pod:995
20439 msgid "file"
20440 msgstr ""
20441
20442 # type: verbatim
20443 #: ../fish/guestfish-actions.pod:997
20444 #, no-wrap
20445 msgid ""
20446 " file path\n"
20447 "\n"
20448 msgstr ""
20449
20450 # type: textblock
20451 #: ../fish/guestfish-actions.pod:1009
20452 msgid ""
20453 "This command can also be used on C</dev/> devices (and partitions, LV "
20454 "names).  You can for example use this to determine if a device contains a "
20455 "filesystem, although it's usually better to use L</vfs-type>."
20456 msgstr ""
20457
20458 # type: =head2
20459 #: ../fish/guestfish-actions.pod:1019
20460 msgid "file-architecture"
20461 msgstr ""
20462
20463 # type: verbatim
20464 #: ../fish/guestfish-actions.pod:1021
20465 #, no-wrap
20466 msgid ""
20467 " file-architecture filename\n"
20468 "\n"
20469 msgstr ""
20470
20471 # type: =head2
20472 #: ../fish/guestfish-actions.pod:1124
20473 msgid "filesize"
20474 msgstr ""
20475
20476 # type: verbatim
20477 #: ../fish/guestfish-actions.pod:1126
20478 #, no-wrap
20479 msgid ""
20480 " filesize file\n"
20481 "\n"
20482 msgstr ""
20483
20484 # type: textblock
20485 #: ../fish/guestfish-actions.pod:1130
20486 msgid ""
20487 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20488 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20489 msgstr ""
20490
20491 # type: =head2
20492 #: ../fish/guestfish-actions.pod:1134
20493 msgid "fill"
20494 msgstr ""
20495
20496 # type: verbatim
20497 #: ../fish/guestfish-actions.pod:1136
20498 #, no-wrap
20499 msgid ""
20500 " fill c len path\n"
20501 "\n"
20502 msgstr ""
20503
20504 # type: textblock
20505 #: ../fish/guestfish-actions.pod:1142
20506 msgid ""
20507 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20508 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20509 "L</fill-pattern>."
20510 msgstr ""
20511
20512 # type: =head2
20513 #: ../fish/guestfish-actions.pod:1147
20514 msgid "fill-pattern"
20515 msgstr ""
20516
20517 # type: verbatim
20518 #: ../fish/guestfish-actions.pod:1149
20519 #, no-wrap
20520 msgid ""
20521 " fill-pattern pattern len path\n"
20522 "\n"
20523 msgstr ""
20524
20525 # type: textblock
20526 #: ../fish/guestfish-actions.pod:1151
20527 msgid ""
20528 "This function is like L</fill> except that it creates a new file of length "
20529 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20530 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20531 "bytes."
20532 msgstr ""
20533
20534 # type: =head2
20535 #: ../fish/guestfish-actions.pod:1156
20536 msgid "find"
20537 msgstr ""
20538
20539 # type: verbatim
20540 #: ../fish/guestfish-actions.pod:1158
20541 #, no-wrap
20542 msgid ""
20543 " find directory\n"
20544 "\n"
20545 msgstr ""
20546
20547 # type: textblock
20548 #: ../fish/guestfish-actions.pod:1172
20549 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20550 msgstr ""
20551
20552 # type: textblock
20553 #: ../fish/guestfish-actions.pod:1185
20554 msgid "See also L</find0>."
20555 msgstr ""
20556
20557 # type: =head2
20558 #: ../fish/guestfish-actions.pod:1190
20559 msgid "find0"
20560 msgstr ""
20561
20562 # type: verbatim
20563 #: ../fish/guestfish-actions.pod:1192
20564 #, no-wrap
20565 msgid ""
20566 " find0 directory (files|-)\n"
20567 "\n"
20568 msgstr ""
20569
20570 # type: textblock
20571 #: ../fish/guestfish-actions.pod:1198
20572 msgid ""
20573 "This command works the same way as L</find> with the following exceptions:"
20574 msgstr ""
20575
20576 # type: =head2
20577 #: ../fish/guestfish-actions.pod:1225
20578 msgid "findfs-label"
20579 msgstr ""
20580
20581 # type: verbatim
20582 #: ../fish/guestfish-actions.pod:1227
20583 #, no-wrap
20584 msgid ""
20585 " findfs-label label\n"
20586 "\n"
20587 msgstr ""
20588
20589 # type: textblock
20590 #: ../fish/guestfish-actions.pod:1233
20591 msgid "To find the label of a filesystem, use L</vfs-label>."
20592 msgstr ""
20593
20594 # type: =head2
20595 #: ../fish/guestfish-actions.pod:1235
20596 msgid "findfs-uuid"
20597 msgstr ""
20598
20599 # type: verbatim
20600 #: ../fish/guestfish-actions.pod:1237
20601 #, no-wrap
20602 msgid ""
20603 " findfs-uuid uuid\n"
20604 "\n"
20605 msgstr ""
20606
20607 # type: textblock
20608 #: ../fish/guestfish-actions.pod:1243
20609 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20610 msgstr ""
20611
20612 # type: =head2
20613 #: ../fish/guestfish-actions.pod:1245
20614 msgid "fsck"
20615 msgstr ""
20616
20617 # type: verbatim
20618 #: ../fish/guestfish-actions.pod:1247
20619 #, no-wrap
20620 msgid ""
20621 " fsck fstype device\n"
20622 "\n"
20623 msgstr ""
20624
20625 # type: =head2
20626 #: ../fish/guestfish-actions.pod:1277
20627 msgid "get-append"
20628 msgstr ""
20629
20630 # type: verbatim
20631 #: ../fish/guestfish-actions.pod:1279
20632 #, no-wrap
20633 msgid ""
20634 " get-append\n"
20635 "\n"
20636 msgstr ""
20637
20638 # type: =head2
20639 #: ../fish/guestfish-actions.pod:1286
20640 msgid "get-autosync"
20641 msgstr ""
20642
20643 # type: verbatim
20644 #: ../fish/guestfish-actions.pod:1288
20645 #, no-wrap
20646 msgid ""
20647 " get-autosync\n"
20648 "\n"
20649 msgstr ""
20650
20651 # type: =head2
20652 #: ../fish/guestfish-actions.pod:1292
20653 msgid "get-direct"
20654 msgstr ""
20655
20656 # type: verbatim
20657 #: ../fish/guestfish-actions.pod:1294
20658 #, no-wrap
20659 msgid ""
20660 " get-direct\n"
20661 "\n"
20662 msgstr ""
20663
20664 # type: =head2
20665 #: ../fish/guestfish-actions.pod:1298
20666 msgid "get-e2label"
20667 msgstr ""
20668
20669 # type: verbatim
20670 #: ../fish/guestfish-actions.pod:1300
20671 #, no-wrap
20672 msgid ""
20673 " get-e2label device\n"
20674 "\n"
20675 msgstr ""
20676
20677 # type: =head2
20678 #: ../fish/guestfish-actions.pod:1312
20679 msgid "get-e2uuid"
20680 msgstr ""
20681
20682 # type: verbatim
20683 #: ../fish/guestfish-actions.pod:1314
20684 #, no-wrap
20685 msgid ""
20686 " get-e2uuid device\n"
20687 "\n"
20688 msgstr ""
20689
20690 # type: =head2
20691 #: ../fish/guestfish-actions.pod:1326
20692 msgid "get-memsize"
20693 msgstr ""
20694
20695 # type: verbatim
20696 #: ../fish/guestfish-actions.pod:1328
20697 #, no-wrap
20698 msgid ""
20699 " get-memsize\n"
20700 "\n"
20701 msgstr ""
20702
20703 # type: textblock
20704 #: ../fish/guestfish-actions.pod:1333
20705 msgid ""
20706 "If L</set-memsize> was not called on this handle, and if "
20707 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20708 "value for memsize."
20709 msgstr ""
20710
20711 # type: =head2
20712 #: ../fish/guestfish-actions.pod:1340
20713 msgid "get-network"
20714 msgstr ""
20715
20716 # type: verbatim
20717 #: ../fish/guestfish-actions.pod:1342
20718 #, no-wrap
20719 msgid ""
20720 " get-network\n"
20721 "\n"
20722 msgstr ""
20723
20724 # type: =head2
20725 #: ../fish/guestfish-actions.pod:1346
20726 msgid "get-path"
20727 msgstr ""
20728
20729 # type: verbatim
20730 #: ../fish/guestfish-actions.pod:1348
20731 #, no-wrap
20732 msgid ""
20733 " get-path\n"
20734 "\n"
20735 msgstr ""
20736
20737 # type: =head2
20738 #: ../fish/guestfish-actions.pod:1355
20739 msgid "get-pid"
20740 msgstr ""
20741
20742 # type: =head2
20743 #: ../fish/guestfish-actions.pod:1357
20744 msgid "pid"
20745 msgstr ""
20746
20747 # type: verbatim
20748 #: ../fish/guestfish-actions.pod:1359
20749 #, no-wrap
20750 msgid ""
20751 " get-pid\n"
20752 "\n"
20753 msgstr ""
20754
20755 # type: =head2
20756 #: ../fish/guestfish-actions.pod:1366
20757 msgid "get-qemu"
20758 msgstr ""
20759
20760 # type: verbatim
20761 #: ../fish/guestfish-actions.pod:1368
20762 #, no-wrap
20763 msgid ""
20764 " get-qemu\n"
20765 "\n"
20766 msgstr ""
20767
20768 # type: =head2
20769 #: ../fish/guestfish-actions.pod:1375
20770 msgid "get-recovery-proc"
20771 msgstr ""
20772
20773 # type: verbatim
20774 #: ../fish/guestfish-actions.pod:1377
20775 #, no-wrap
20776 msgid ""
20777 " get-recovery-proc\n"
20778 "\n"
20779 msgstr ""
20780
20781 # type: =head2
20782 #: ../fish/guestfish-actions.pod:1381
20783 msgid "get-selinux"
20784 msgstr ""
20785
20786 # type: verbatim
20787 #: ../fish/guestfish-actions.pod:1383
20788 #, no-wrap
20789 msgid ""
20790 " get-selinux\n"
20791 "\n"
20792 msgstr ""
20793
20794 # type: textblock
20795 #: ../fish/guestfish-actions.pod:1385
20796 msgid ""
20797 "This returns the current setting of the selinux flag which is passed to the "
20798 "appliance at boot time.  See L</set-selinux>."
20799 msgstr ""
20800
20801 # type: =head2
20802 #: ../fish/guestfish-actions.pod:1391
20803 msgid "get-state"
20804 msgstr ""
20805
20806 # type: verbatim
20807 #: ../fish/guestfish-actions.pod:1393
20808 #, no-wrap
20809 msgid ""
20810 " get-state\n"
20811 "\n"
20812 msgstr ""
20813
20814 # type: =head2
20815 #: ../fish/guestfish-actions.pod:1400
20816 msgid "get-trace"
20817 msgstr ""
20818
20819 # type: verbatim
20820 #: ../fish/guestfish-actions.pod:1402
20821 #, no-wrap
20822 msgid ""
20823 " get-trace\n"
20824 "\n"
20825 msgstr ""
20826
20827 # type: =head2
20828 #: ../fish/guestfish-actions.pod:1406
20829 msgid "get-umask"
20830 msgstr ""
20831
20832 # type: verbatim
20833 #: ../fish/guestfish-actions.pod:1408
20834 #, no-wrap
20835 msgid ""
20836 " get-umask\n"
20837 "\n"
20838 msgstr ""
20839
20840 # type: textblock
20841 #: ../fish/guestfish-actions.pod:1410
20842 msgid ""
20843 "Return the current umask.  By default the umask is C<022> unless it has been "
20844 "set by calling L</umask>."
20845 msgstr ""
20846
20847 # type: =head2
20848 #: ../fish/guestfish-actions.pod:1413
20849 msgid "get-verbose"
20850 msgstr ""
20851
20852 # type: verbatim
20853 #: ../fish/guestfish-actions.pod:1415
20854 #, no-wrap
20855 msgid ""
20856 " get-verbose\n"
20857 "\n"
20858 msgstr ""
20859
20860 # type: =head2
20861 #: ../fish/guestfish-actions.pod:1419
20862 msgid "getcon"
20863 msgstr ""
20864
20865 # type: verbatim
20866 #: ../fish/guestfish-actions.pod:1421
20867 #, no-wrap
20868 msgid ""
20869 " getcon\n"
20870 "\n"
20871 msgstr ""
20872
20873 # type: textblock
20874 #: ../fish/guestfish-actions.pod:1425
20875 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20876 msgstr ""
20877
20878 # type: =head2
20879 #: ../fish/guestfish-actions.pod:1428
20880 msgid "getxattrs"
20881 msgstr ""
20882
20883 # type: verbatim
20884 #: ../fish/guestfish-actions.pod:1430
20885 #, no-wrap
20886 msgid ""
20887 " getxattrs path\n"
20888 "\n"
20889 msgstr ""
20890
20891 # type: textblock
20892 #: ../fish/guestfish-actions.pod:1438
20893 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20894 msgstr ""
20895
20896 # type: =head2
20897 #: ../fish/guestfish-actions.pod:1440
20898 msgid "glob-expand"
20899 msgstr ""
20900
20901 # type: verbatim
20902 #: ../fish/guestfish-actions.pod:1442
20903 #, no-wrap
20904 msgid ""
20905 " glob-expand pattern\n"
20906 "\n"
20907 msgstr ""
20908
20909 # type: =head2
20910 #: ../fish/guestfish-actions.pod:1455
20911 msgid "grep"
20912 msgstr ""
20913
20914 # type: verbatim
20915 #: ../fish/guestfish-actions.pod:1457
20916 #, no-wrap
20917 msgid ""
20918 " grep regex path\n"
20919 "\n"
20920 msgstr ""
20921
20922 # type: =head2
20923 #: ../fish/guestfish-actions.pod:1465
20924 msgid "grepi"
20925 msgstr ""
20926
20927 # type: verbatim
20928 #: ../fish/guestfish-actions.pod:1467
20929 #, no-wrap
20930 msgid ""
20931 " grepi regex path\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: =head2
20936 #: ../fish/guestfish-actions.pod:1475
20937 msgid "grub-install"
20938 msgstr ""
20939
20940 # type: verbatim
20941 #: ../fish/guestfish-actions.pod:1477
20942 #, no-wrap
20943 msgid ""
20944 " grub-install root device\n"
20945 "\n"
20946 msgstr ""
20947
20948 # type: =head2
20949 #: ../fish/guestfish-actions.pod:1493
20950 msgid "head"
20951 msgstr ""
20952
20953 # type: verbatim
20954 #: ../fish/guestfish-actions.pod:1495
20955 #, no-wrap
20956 msgid ""
20957 " head path\n"
20958 "\n"
20959 msgstr ""
20960
20961 # type: =head2
20962 #: ../fish/guestfish-actions.pod:1503
20963 msgid "head-n"
20964 msgstr ""
20965
20966 # type: verbatim
20967 #: ../fish/guestfish-actions.pod:1505
20968 #, no-wrap
20969 msgid ""
20970 " head-n nrlines path\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: =head2
20975 #: ../fish/guestfish-actions.pod:1518
20976 msgid "hexdump"
20977 msgstr ""
20978
20979 # type: verbatim
20980 #: ../fish/guestfish-actions.pod:1520
20981 #, no-wrap
20982 msgid ""
20983 " hexdump path\n"
20984 "\n"
20985 msgstr ""
20986
20987 # type: =head2
20988 #: ../fish/guestfish-actions.pod:1528
20989 msgid "initrd-cat"
20990 msgstr ""
20991
20992 # type: verbatim
20993 #: ../fish/guestfish-actions.pod:1530
20994 #, no-wrap
20995 msgid ""
20996 " initrd-cat initrdpath filename\n"
20997 "\n"
20998 msgstr ""
20999
21000 # type: textblock
21001 #: ../fish/guestfish-actions.pod:1542
21002 msgid "See also L</initrd-list>."
21003 msgstr ""
21004
21005 # type: =head2
21006 #: ../fish/guestfish-actions.pod:1547
21007 msgid "initrd-list"
21008 msgstr ""
21009
21010 # type: verbatim
21011 #: ../fish/guestfish-actions.pod:1549
21012 #, no-wrap
21013 msgid ""
21014 " initrd-list path\n"
21015 "\n"
21016 msgstr ""
21017
21018 # type: =head2
21019 #: ../fish/guestfish-actions.pod:1561
21020 msgid "inotify-add-watch"
21021 msgstr ""
21022
21023 # type: verbatim
21024 #: ../fish/guestfish-actions.pod:1563
21025 #, no-wrap
21026 msgid ""
21027 " inotify-add-watch path mask\n"
21028 "\n"
21029 msgstr ""
21030
21031 # type: =head2
21032 #: ../fish/guestfish-actions.pod:1575
21033 msgid "inotify-close"
21034 msgstr ""
21035
21036 # type: verbatim
21037 #: ../fish/guestfish-actions.pod:1577
21038 #, no-wrap
21039 msgid ""
21040 " inotify-close\n"
21041 "\n"
21042 msgstr ""
21043
21044 # type: =head2
21045 #: ../fish/guestfish-actions.pod:1583
21046 msgid "inotify-files"
21047 msgstr ""
21048
21049 # type: verbatim
21050 #: ../fish/guestfish-actions.pod:1585
21051 #, no-wrap
21052 msgid ""
21053 " inotify-files\n"
21054 "\n"
21055 msgstr ""
21056
21057 # type: textblock
21058 #: ../fish/guestfish-actions.pod:1587
21059 msgid ""
21060 "This function is a helpful wrapper around L</inotify-read> which just "
21061 "returns a list of pathnames of objects that were touched.  The returned "
21062 "pathnames are sorted and deduplicated."
21063 msgstr ""
21064
21065 # type: =head2
21066 #: ../fish/guestfish-actions.pod:1591
21067 msgid "inotify-init"
21068 msgstr ""
21069
21070 # type: verbatim
21071 #: ../fish/guestfish-actions.pod:1593
21072 #, no-wrap
21073 msgid ""
21074 " inotify-init maxevents\n"
21075 "\n"
21076 msgstr ""
21077
21078 # type: textblock
21079 #: ../fish/guestfish-actions.pod:1599
21080 msgid ""
21081 "C<maxevents> is the maximum number of events which will be queued up between "
21082 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21083 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21084 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21085 "but records the fact that it threw them away by setting a flag "
21086 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21087 msgstr ""
21088
21089 # type: textblock
21090 #: ../fish/guestfish-actions.pod:1609
21091 msgid ""
21092 "Before any events are generated, you have to add some watches to the "
21093 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21094 "L</inotify-watch-all>."
21095 msgstr ""
21096
21097 # type: textblock
21098 #: ../fish/guestfish-actions.pod:1615
21099 msgid ""
21100 "Queued up events should be read periodically by calling L</inotify-read> (or "
21101 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21102 "If you don't read the events out often enough then you risk the internal "
21103 "queue overflowing."
21104 msgstr ""
21105
21106 # type: textblock
21107 #: ../fish/guestfish-actions.pod:1622
21108 msgid ""
21109 "The handle should be closed after use by calling L</inotify-close>.  This "
21110 "also removes any watches automatically."
21111 msgstr ""
21112
21113 # type: =head2
21114 #: ../fish/guestfish-actions.pod:1631
21115 msgid "inotify-read"
21116 msgstr ""
21117
21118 # type: verbatim
21119 #: ../fish/guestfish-actions.pod:1633
21120 #, no-wrap
21121 msgid ""
21122 " inotify-read\n"
21123 "\n"
21124 msgstr ""
21125
21126 # type: =head2
21127 #: ../fish/guestfish-actions.pod:1646
21128 msgid "inotify-rm-watch"
21129 msgstr ""
21130
21131 # type: verbatim
21132 #: ../fish/guestfish-actions.pod:1648
21133 #, no-wrap
21134 msgid ""
21135 " inotify-rm-watch wd\n"
21136 "\n"
21137 msgstr ""
21138
21139 # type: textblock
21140 #: ../fish/guestfish-actions.pod:1650
21141 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21142 msgstr ""
21143
21144 # type: =head2
21145 #: ../fish/guestfish-actions.pod:1653
21146 msgid "inspect-get-arch"
21147 msgstr ""
21148
21149 # type: verbatim
21150 #: ../fish/guestfish-actions.pod:1655
21151 #, no-wrap
21152 msgid ""
21153 " inspect-get-arch root\n"
21154 "\n"
21155 msgstr ""
21156
21157 # type: textblock
21158 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21159 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21160 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21161 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21162 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21163 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21164 #: ../fish/guestfish-actions.pod:1966
21165 msgid ""
21166 "This function should only be called with a root device string as returned by "
21167 "L</inspect-os>."
21168 msgstr ""
21169
21170 # type: textblock
21171 #: ../fish/guestfish-actions.pod:1660
21172 msgid ""
21173 "This returns the architecture of the inspected operating system.  The "
21174 "possible return values are listed under L</file-architecture>."
21175 msgstr ""
21176
21177 # type: =head2
21178 #: ../fish/guestfish-actions.pod:1669
21179 msgid "inspect-get-distro"
21180 msgstr ""
21181
21182 # type: verbatim
21183 #: ../fish/guestfish-actions.pod:1671
21184 #, no-wrap
21185 msgid ""
21186 " inspect-get-distro root\n"
21187 "\n"
21188 msgstr ""
21189
21190 # type: =head2
21191 #: ../fish/guestfish-actions.pod:1743
21192 msgid "inspect-get-filesystems"
21193 msgstr ""
21194
21195 # type: verbatim
21196 #: ../fish/guestfish-actions.pod:1745
21197 #, no-wrap
21198 msgid ""
21199 " inspect-get-filesystems root\n"
21200 "\n"
21201 msgstr ""
21202
21203 # type: textblock
21204 #: ../fish/guestfish-actions.pod:1758
21205 msgid ""
21206 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21207 "get-mountpoints>."
21208 msgstr ""
21209
21210 # type: =head2
21211 #: ../fish/guestfish-actions.pod:1761
21212 msgid "inspect-get-hostname"
21213 msgstr ""
21214
21215 # type: verbatim
21216 #: ../fish/guestfish-actions.pod:1763
21217 #, no-wrap
21218 msgid ""
21219 " inspect-get-hostname root\n"
21220 "\n"
21221 msgstr ""
21222
21223 # type: =head2
21224 #: ../fish/guestfish-actions.pod:1776
21225 msgid "inspect-get-major-version"
21226 msgstr ""
21227
21228 # type: verbatim
21229 #: ../fish/guestfish-actions.pod:1778
21230 #, no-wrap
21231 msgid ""
21232 " inspect-get-major-version root\n"
21233 "\n"
21234 msgstr ""
21235
21236 # type: =head2
21237 #: ../fish/guestfish-actions.pod:1797
21238 msgid "inspect-get-minor-version"
21239 msgstr ""
21240
21241 # type: verbatim
21242 #: ../fish/guestfish-actions.pod:1799
21243 #, no-wrap
21244 msgid ""
21245 " inspect-get-minor-version root\n"
21246 "\n"
21247 msgstr ""
21248
21249 # type: textblock
21250 #: ../fish/guestfish-actions.pod:1809
21251 msgid ""
21252 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21253 "get-major-version>."
21254 msgstr ""
21255
21256 # type: =head2
21257 #: ../fish/guestfish-actions.pod:1812
21258 msgid "inspect-get-mountpoints"
21259 msgstr ""
21260
21261 # type: verbatim
21262 #: ../fish/guestfish-actions.pod:1814
21263 #, no-wrap
21264 msgid ""
21265 " inspect-get-mountpoints root\n"
21266 "\n"
21267 msgstr ""
21268
21269 # type: textblock
21270 #: ../fish/guestfish-actions.pod:1832
21271 msgid ""
21272 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21273 "get-filesystems>."
21274 msgstr ""
21275
21276 # type: =head2
21277 #: ../fish/guestfish-actions.pod:1835
21278 msgid "inspect-get-package-format"
21279 msgstr ""
21280
21281 # type: verbatim
21282 #: ../fish/guestfish-actions.pod:1837
21283 #, no-wrap
21284 msgid ""
21285 " inspect-get-package-format root\n"
21286 "\n"
21287 msgstr ""
21288
21289 # type: textblock
21290 #: ../fish/guestfish-actions.pod:1842
21291 msgid ""
21292 "This function and L</inspect-get-package-management> return the package "
21293 "format and package management tool used by the inspected operating system.  "
21294 "For example for Fedora these functions would return C<rpm> (package format) "
21295 "and C<yum> (package management)."
21296 msgstr ""
21297
21298 # type: =head2
21299 #: ../fish/guestfish-actions.pod:1857
21300 msgid "inspect-get-package-management"
21301 msgstr ""
21302
21303 # type: verbatim
21304 #: ../fish/guestfish-actions.pod:1859
21305 #, no-wrap
21306 msgid ""
21307 " inspect-get-package-management root\n"
21308 "\n"
21309 msgstr ""
21310
21311 # type: textblock
21312 #: ../fish/guestfish-actions.pod:1864
21313 msgid ""
21314 "L</inspect-get-package-format> and this function return the package format "
21315 "and package management tool used by the inspected operating system.  For "
21316 "example for Fedora these functions would return C<rpm> (package format) and "
21317 "C<yum> (package management)."
21318 msgstr ""
21319
21320 # type: =head2
21321 #: ../fish/guestfish-actions.pod:1881
21322 msgid "inspect-get-product-name"
21323 msgstr ""
21324
21325 # type: verbatim
21326 #: ../fish/guestfish-actions.pod:1883
21327 #, no-wrap
21328 msgid ""
21329 " inspect-get-product-name root\n"
21330 "\n"
21331 msgstr ""
21332
21333 # type: =head2
21334 #: ../fish/guestfish-actions.pod:1898
21335 msgid "inspect-get-roots"
21336 msgstr ""
21337
21338 # type: verbatim
21339 #: ../fish/guestfish-actions.pod:1900
21340 #, no-wrap
21341 msgid ""
21342 " inspect-get-roots\n"
21343 "\n"
21344 msgstr ""
21345
21346 # type: textblock
21347 #: ../fish/guestfish-actions.pod:1902
21348 msgid ""
21349 "This function is a convenient way to get the list of root devices, as "
21350 "returned from a previous call to L</inspect-os>, but without redoing the "
21351 "whole inspection process."
21352 msgstr ""
21353
21354 # type: textblock
21355 #: ../fish/guestfish-actions.pod:1906
21356 msgid ""
21357 "This returns an empty list if either no root devices were found or the "
21358 "caller has not called L</inspect-os>."
21359 msgstr ""
21360
21361 # type: =head2
21362 #: ../fish/guestfish-actions.pod:1911
21363 msgid "inspect-get-type"
21364 msgstr ""
21365
21366 # type: verbatim
21367 #: ../fish/guestfish-actions.pod:1913
21368 #, no-wrap
21369 msgid ""
21370 " inspect-get-type root\n"
21371 "\n"
21372 msgstr ""
21373
21374 # type: =head2
21375 #: ../fish/guestfish-actions.pod:1946
21376 msgid "inspect-get-windows-systemroot"
21377 msgstr ""
21378
21379 # type: verbatim
21380 #: ../fish/guestfish-actions.pod:1948
21381 #, no-wrap
21382 msgid ""
21383 " inspect-get-windows-systemroot root\n"
21384 "\n"
21385 msgstr ""
21386
21387 # type: =head2
21388 #: ../fish/guestfish-actions.pod:1962
21389 msgid "inspect-list-applications"
21390 msgstr ""
21391
21392 # type: verbatim
21393 #: ../fish/guestfish-actions.pod:1964
21394 #, no-wrap
21395 msgid ""
21396 " inspect-list-applications root\n"
21397 "\n"
21398 msgstr ""
21399
21400 # type: textblock
21401 #: ../fish/guestfish-actions.pod:1971
21402 msgid ""
21403 "I<Note:> This call works differently from other parts of the inspection "
21404 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21405 "then mount up the disks, before calling this.  Listing applications is a "
21406 "significantly more difficult operation which requires access to the full "
21407 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21408 "are just returning data cached in the libguestfs handle, this call actually "
21409 "reads parts of the mounted filesystems during the call."
21410 msgstr ""
21411
21412 # type: =head2
21413 #: ../fish/guestfish-actions.pod:2061
21414 msgid "inspect-os"
21415 msgstr ""
21416
21417 # type: verbatim
21418 #: ../fish/guestfish-actions.pod:2063
21419 #, no-wrap
21420 msgid ""
21421 " inspect-os\n"
21422 "\n"
21423 msgstr ""
21424
21425 # type: textblock
21426 #: ../fish/guestfish-actions.pod:2078
21427 msgid ""
21428 "You can pass the root string(s) returned to other L</inspect-get-*> "
21429 "functions in order to query further information about each operating system, "
21430 "such as the name and version."
21431 msgstr ""
21432
21433 # type: textblock
21434 #: ../fish/guestfish-actions.pod:2083
21435 msgid ""
21436 "This function uses other libguestfs features such as L</mount-ro> and L</"
21437 "umount-all> in order to mount and unmount filesystems and look at the "
21438 "contents.  This should be called with no disks currently mounted.  The "
21439 "function may also use Augeas, so any existing Augeas handle will be closed."
21440 msgstr ""
21441
21442 # type: textblock
21443 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21444 #: ../fish/guestfish-actions.pod:2297
21445 msgid "See also L</list-filesystems>."
21446 msgstr ""
21447
21448 # type: =head2
21449 #: ../fish/guestfish-actions.pod:2097
21450 msgid "is-blockdev"
21451 msgstr ""
21452
21453 # type: verbatim
21454 #: ../fish/guestfish-actions.pod:2099
21455 #, no-wrap
21456 msgid ""
21457 " is-blockdev path\n"
21458 "\n"
21459 msgstr ""
21460
21461 # type: textblock
21462 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21463 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21464 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21465 #: ../fish/guestfish-actions.pod:2203
21466 msgid "See also L</stat>."
21467 msgstr ""
21468
21469 # type: =head2
21470 #: ../fish/guestfish-actions.pod:2106
21471 msgid "is-busy"
21472 msgstr ""
21473
21474 # type: verbatim
21475 #: ../fish/guestfish-actions.pod:2108
21476 #, no-wrap
21477 msgid ""
21478 " is-busy\n"
21479 "\n"
21480 msgstr ""
21481
21482 # type: =head2
21483 #: ../fish/guestfish-actions.pod:2115
21484 msgid "is-chardev"
21485 msgstr ""
21486
21487 # type: verbatim
21488 #: ../fish/guestfish-actions.pod:2117
21489 #, no-wrap
21490 msgid ""
21491 " is-chardev path\n"
21492 "\n"
21493 msgstr ""
21494
21495 # type: =head2
21496 #: ../fish/guestfish-actions.pod:2124
21497 msgid "is-config"
21498 msgstr ""
21499
21500 # type: verbatim
21501 #: ../fish/guestfish-actions.pod:2126
21502 #, no-wrap
21503 msgid ""
21504 " is-config\n"
21505 "\n"
21506 msgstr ""
21507
21508 # type: =head2
21509 #: ../fish/guestfish-actions.pod:2133
21510 msgid "is-dir"
21511 msgstr ""
21512
21513 # type: verbatim
21514 #: ../fish/guestfish-actions.pod:2135
21515 #, no-wrap
21516 msgid ""
21517 " is-dir path\n"
21518 "\n"
21519 msgstr ""
21520
21521 # type: =head2
21522 #: ../fish/guestfish-actions.pod:2143
21523 msgid "is-fifo"
21524 msgstr ""
21525
21526 # type: verbatim
21527 #: ../fish/guestfish-actions.pod:2145
21528 #, no-wrap
21529 msgid ""
21530 " is-fifo path\n"
21531 "\n"
21532 msgstr ""
21533
21534 # type: =head2
21535 #: ../fish/guestfish-actions.pod:2152
21536 msgid "is-file"
21537 msgstr ""
21538
21539 # type: verbatim
21540 #: ../fish/guestfish-actions.pod:2154
21541 #, no-wrap
21542 msgid ""
21543 " is-file path\n"
21544 "\n"
21545 msgstr ""
21546
21547 # type: =head2
21548 #: ../fish/guestfish-actions.pod:2162
21549 msgid "is-launching"
21550 msgstr ""
21551
21552 # type: verbatim
21553 #: ../fish/guestfish-actions.pod:2164
21554 #, no-wrap
21555 msgid ""
21556 " is-launching\n"
21557 "\n"
21558 msgstr ""
21559
21560 # type: =head2
21561 #: ../fish/guestfish-actions.pod:2171
21562 msgid "is-lv"
21563 msgstr ""
21564
21565 # type: verbatim
21566 #: ../fish/guestfish-actions.pod:2173
21567 #, no-wrap
21568 msgid ""
21569 " is-lv device\n"
21570 "\n"
21571 msgstr ""
21572
21573 # type: =head2
21574 #: ../fish/guestfish-actions.pod:2178
21575 msgid "is-ready"
21576 msgstr ""
21577
21578 # type: verbatim
21579 #: ../fish/guestfish-actions.pod:2180
21580 #, no-wrap
21581 msgid ""
21582 " is-ready\n"
21583 "\n"
21584 msgstr ""
21585
21586 # type: =head2
21587 #: ../fish/guestfish-actions.pod:2187
21588 msgid "is-socket"
21589 msgstr ""
21590
21591 # type: verbatim
21592 #: ../fish/guestfish-actions.pod:2189
21593 #, no-wrap
21594 msgid ""
21595 " is-socket path\n"
21596 "\n"
21597 msgstr ""
21598
21599 # type: =head2
21600 #: ../fish/guestfish-actions.pod:2196
21601 msgid "is-symlink"
21602 msgstr ""
21603
21604 # type: verbatim
21605 #: ../fish/guestfish-actions.pod:2198
21606 #, no-wrap
21607 msgid ""
21608 " is-symlink path\n"
21609 "\n"
21610 msgstr ""
21611
21612 # type: =head2
21613 #: ../fish/guestfish-actions.pod:2205
21614 msgid "kill-subprocess"
21615 msgstr ""
21616
21617 # type: verbatim
21618 #: ../fish/guestfish-actions.pod:2207
21619 #, no-wrap
21620 msgid ""
21621 " kill-subprocess\n"
21622 "\n"
21623 msgstr ""
21624
21625 # type: =head2
21626 #: ../fish/guestfish-actions.pod:2211
21627 msgid "launch"
21628 msgstr ""
21629
21630 # type: =head2
21631 #: ../fish/guestfish-actions.pod:2213
21632 msgid "run"
21633 msgstr ""
21634
21635 # type: verbatim
21636 #: ../fish/guestfish-actions.pod:2215
21637 #, no-wrap
21638 msgid ""
21639 " launch\n"
21640 "\n"
21641 msgstr ""
21642
21643 # type: =head2
21644 #: ../fish/guestfish-actions.pod:2223
21645 msgid "lchown"
21646 msgstr ""
21647
21648 # type: verbatim
21649 #: ../fish/guestfish-actions.pod:2225
21650 #, no-wrap
21651 msgid ""
21652 " lchown owner group path\n"
21653 "\n"
21654 msgstr ""
21655
21656 # type: textblock
21657 #: ../fish/guestfish-actions.pod:2227
21658 msgid ""
21659 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21660 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21661 "target."
21662 msgstr ""
21663
21664 # type: =head2
21665 #: ../fish/guestfish-actions.pod:2235
21666 msgid "lgetxattrs"
21667 msgstr ""
21668
21669 # type: verbatim
21670 #: ../fish/guestfish-actions.pod:2237
21671 #, no-wrap
21672 msgid ""
21673 " lgetxattrs path\n"
21674 "\n"
21675 msgstr ""
21676
21677 # type: textblock
21678 #: ../fish/guestfish-actions.pod:2239
21679 msgid ""
21680 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21681 "it returns the extended attributes of the link itself."
21682 msgstr ""
21683
21684 # type: =head2
21685 #: ../fish/guestfish-actions.pod:2243
21686 msgid "list-devices"
21687 msgstr ""
21688
21689 # type: verbatim
21690 #: ../fish/guestfish-actions.pod:2245
21691 #, no-wrap
21692 msgid ""
21693 " list-devices\n"
21694 "\n"
21695 msgstr ""
21696
21697 # type: =head2
21698 #: ../fish/guestfish-actions.pod:2253
21699 msgid "list-filesystems"
21700 msgstr ""
21701
21702 # type: verbatim
21703 #: ../fish/guestfish-actions.pod:2255
21704 #, no-wrap
21705 msgid ""
21706 " list-filesystems\n"
21707 "\n"
21708 msgstr ""
21709
21710 # type: textblock
21711 #: ../fish/guestfish-actions.pod:2274
21712 msgid ""
21713 "This command runs other libguestfs commands, which might include L</mount> "
21714 "and L</umount>, and therefore you should use this soon after launch and only "
21715 "when nothing is mounted."
21716 msgstr ""
21717
21718 # type: textblock
21719 #: ../fish/guestfish-actions.pod:2278
21720 msgid ""
21721 "Not all of the filesystems returned will be mountable.  In particular, swap "
21722 "partitions are returned in the list.  Also this command does not check that "
21723 "each filesystem found is valid and mountable, and some filesystems might be "
21724 "mountable but require special options.  Filesystems may not all belong to a "
21725 "single logical operating system (use L</inspect-os> to look for OSes)."
21726 msgstr ""
21727
21728 # type: =head2
21729 #: ../fish/guestfish-actions.pod:2286
21730 msgid "list-partitions"
21731 msgstr ""
21732
21733 # type: verbatim
21734 #: ../fish/guestfish-actions.pod:2288
21735 #, no-wrap
21736 msgid ""
21737 " list-partitions\n"
21738 "\n"
21739 msgstr ""
21740
21741 # type: textblock
21742 #: ../fish/guestfish-actions.pod:2294
21743 msgid ""
21744 "This does not return logical volumes.  For that you will need to call L</"
21745 "lvs>."
21746 msgstr ""
21747
21748 # type: =head2
21749 #: ../fish/guestfish-actions.pod:2299
21750 msgid "ll"
21751 msgstr ""
21752
21753 # type: verbatim
21754 #: ../fish/guestfish-actions.pod:2301
21755 #, no-wrap
21756 msgid ""
21757 " ll directory\n"
21758 "\n"
21759 msgstr ""
21760
21761 # type: =head2
21762 #: ../fish/guestfish-actions.pod:2309
21763 msgid "ln"
21764 msgstr ""
21765
21766 # type: verbatim
21767 #: ../fish/guestfish-actions.pod:2311
21768 #, no-wrap
21769 msgid ""
21770 " ln target linkname\n"
21771 "\n"
21772 msgstr ""
21773
21774 # type: =head2
21775 #: ../fish/guestfish-actions.pod:2315
21776 msgid "ln-f"
21777 msgstr ""
21778
21779 # type: verbatim
21780 #: ../fish/guestfish-actions.pod:2317
21781 #, no-wrap
21782 msgid ""
21783 " ln-f target linkname\n"
21784 "\n"
21785 msgstr ""
21786
21787 # type: =head2
21788 #: ../fish/guestfish-actions.pod:2322
21789 msgid "ln-s"
21790 msgstr ""
21791
21792 # type: verbatim
21793 #: ../fish/guestfish-actions.pod:2324
21794 #, no-wrap
21795 msgid ""
21796 " ln-s target linkname\n"
21797 "\n"
21798 msgstr ""
21799
21800 # type: =head2
21801 #: ../fish/guestfish-actions.pod:2328
21802 msgid "ln-sf"
21803 msgstr ""
21804
21805 # type: verbatim
21806 #: ../fish/guestfish-actions.pod:2330
21807 #, no-wrap
21808 msgid ""
21809 " ln-sf target linkname\n"
21810 "\n"
21811 msgstr ""
21812
21813 # type: =head2
21814 #: ../fish/guestfish-actions.pod:2335
21815 msgid "lremovexattr"
21816 msgstr ""
21817
21818 # type: verbatim
21819 #: ../fish/guestfish-actions.pod:2337
21820 #, no-wrap
21821 msgid ""
21822 " lremovexattr xattr path\n"
21823 "\n"
21824 msgstr ""
21825
21826 # type: textblock
21827 #: ../fish/guestfish-actions.pod:2339
21828 msgid ""
21829 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21830 "it removes an extended attribute of the link itself."
21831 msgstr ""
21832
21833 # type: =head2
21834 #: ../fish/guestfish-actions.pod:2343
21835 msgid "ls"
21836 msgstr ""
21837
21838 # type: verbatim
21839 #: ../fish/guestfish-actions.pod:2345
21840 #, no-wrap
21841 msgid ""
21842 " ls directory\n"
21843 "\n"
21844 msgstr ""
21845
21846 # type: textblock
21847 #: ../fish/guestfish-actions.pod:2351
21848 msgid ""
21849 "This command is mostly useful for interactive sessions.  Programs should "
21850 "probably use L</readdir> instead."
21851 msgstr ""
21852
21853 # type: =head2
21854 #: ../fish/guestfish-actions.pod:2354
21855 msgid "lsetxattr"
21856 msgstr ""
21857
21858 # type: verbatim
21859 #: ../fish/guestfish-actions.pod:2356
21860 #, no-wrap
21861 msgid ""
21862 " lsetxattr xattr val vallen path\n"
21863 "\n"
21864 msgstr ""
21865
21866 # type: textblock
21867 #: ../fish/guestfish-actions.pod:2358
21868 msgid ""
21869 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21870 "sets an extended attribute of the link itself."
21871 msgstr ""
21872
21873 # type: =head2
21874 #: ../fish/guestfish-actions.pod:2362
21875 msgid "lstat"
21876 msgstr ""
21877
21878 # type: verbatim
21879 #: ../fish/guestfish-actions.pod:2364
21880 #, no-wrap
21881 msgid ""
21882 " lstat path\n"
21883 "\n"
21884 msgstr ""
21885
21886 # type: textblock
21887 #: ../fish/guestfish-actions.pod:2368
21888 msgid ""
21889 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21890 "the link is stat-ed, not the file it refers to."
21891 msgstr ""
21892
21893 # type: =head2
21894 #: ../fish/guestfish-actions.pod:2374
21895 msgid "lstatlist"
21896 msgstr ""
21897
21898 # type: verbatim
21899 #: ../fish/guestfish-actions.pod:2376
21900 #, no-wrap
21901 msgid ""
21902 " lstatlist path 'names ...'\n"
21903 "\n"
21904 msgstr ""
21905
21906 # type: textblock
21907 #: ../fish/guestfish-actions.pod:2378
21908 msgid ""
21909 "This call allows you to perform the L</lstat> operation on multiple files, "
21910 "where all files are in the directory C<path>.  C<names> is the list of files "
21911 "from this directory."
21912 msgstr ""
21913
21914 # type: textblock
21915 #: ../fish/guestfish-actions.pod:2387
21916 msgid ""
21917 "This call is intended for programs that want to efficiently list a directory "
21918 "contents without making many round-trips.  See also L</lxattrlist> for a "
21919 "similarly efficient call for getting extended attributes.  Very long "
21920 "directory listings might cause the protocol message size to be exceeded, "
21921 "causing this call to fail.  The caller must split up such requests into "
21922 "smaller groups of names."
21923 msgstr ""
21924
21925 # type: =head2
21926 #: ../fish/guestfish-actions.pod:2395
21927 msgid "luks-add-key"
21928 msgstr ""
21929
21930 # type: verbatim
21931 #: ../fish/guestfish-actions.pod:2397
21932 #, no-wrap
21933 msgid ""
21934 " luks-add-key device keyslot\n"
21935 "\n"
21936 msgstr ""
21937
21938 # type: textblock
21939 #: ../fish/guestfish-actions.pod:2404
21940 msgid ""
21941 "Note that if C<keyslot> already contains a key, then this command will "
21942 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21943 msgstr ""
21944
21945 # type: textblock
21946 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21947 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21948 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21949 msgid ""
21950 "This command has one or more key or passphrase parameters.  Guestfish will "
21951 "prompt for these separately."
21952 msgstr ""
21953
21954 # type: =head2
21955 #: ../fish/guestfish-actions.pod:2411
21956 msgid "luks-close"
21957 msgstr ""
21958
21959 # type: verbatim
21960 #: ../fish/guestfish-actions.pod:2413
21961 #, no-wrap
21962 msgid ""
21963 " luks-close device\n"
21964 "\n"
21965 msgstr ""
21966
21967 # type: textblock
21968 #: ../fish/guestfish-actions.pod:2415
21969 msgid ""
21970 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21971 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21972 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21973 "block device."
21974 msgstr ""
21975
21976 # type: =head2
21977 #: ../fish/guestfish-actions.pod:2421
21978 msgid "luks-format"
21979 msgstr ""
21980
21981 # type: verbatim
21982 #: ../fish/guestfish-actions.pod:2423
21983 #, no-wrap
21984 msgid ""
21985 " luks-format device keyslot\n"
21986 "\n"
21987 msgstr ""
21988
21989 # type: =head2
21990 #: ../fish/guestfish-actions.pod:2436
21991 msgid "luks-format-cipher"
21992 msgstr ""
21993
21994 # type: verbatim
21995 #: ../fish/guestfish-actions.pod:2438
21996 #, no-wrap
21997 msgid ""
21998 " luks-format-cipher device keyslot cipher\n"
21999 "\n"
22000 msgstr ""
22001
22002 # type: textblock
22003 #: ../fish/guestfish-actions.pod:2440
22004 msgid ""
22005 "This command is the same as L</luks-format> but it also allows you to set "
22006 "the C<cipher> used."
22007 msgstr ""
22008
22009 # type: =head2
22010 #: ../fish/guestfish-actions.pod:2449
22011 msgid "luks-kill-slot"
22012 msgstr ""
22013
22014 # type: verbatim
22015 #: ../fish/guestfish-actions.pod:2451
22016 #, no-wrap
22017 msgid ""
22018 " luks-kill-slot device keyslot\n"
22019 "\n"
22020 msgstr ""
22021
22022 # type: =head2
22023 #: ../fish/guestfish-actions.pod:2460
22024 msgid "luks-open"
22025 msgstr ""
22026
22027 # type: verbatim
22028 #: ../fish/guestfish-actions.pod:2462
22029 #, no-wrap
22030 msgid ""
22031 " luks-open device mapname\n"
22032 "\n"
22033 msgstr ""
22034
22035 # type: textblock
22036 #: ../fish/guestfish-actions.pod:2476
22037 msgid ""
22038 "If this block device contains LVM volume groups, then calling L</vgscan> "
22039 "followed by L</vg-activate-all> will make them visible."
22040 msgstr ""
22041
22042 # type: =head2
22043 #: ../fish/guestfish-actions.pod:2483
22044 msgid "luks-open-ro"
22045 msgstr ""
22046
22047 # type: verbatim
22048 #: ../fish/guestfish-actions.pod:2485
22049 #, no-wrap
22050 msgid ""
22051 " luks-open-ro device mapname\n"
22052 "\n"
22053 msgstr ""
22054
22055 # type: textblock
22056 #: ../fish/guestfish-actions.pod:2487
22057 msgid ""
22058 "This is the same as L</luks-open> except that a read-only mapping is created."
22059 msgstr ""
22060
22061 # type: =head2
22062 #: ../fish/guestfish-actions.pod:2493
22063 msgid "lvcreate"
22064 msgstr ""
22065
22066 # type: verbatim
22067 #: ../fish/guestfish-actions.pod:2495
22068 #, no-wrap
22069 msgid ""
22070 " lvcreate logvol volgroup mbytes\n"
22071 "\n"
22072 msgstr ""
22073
22074 # type: =head2
22075 #: ../fish/guestfish-actions.pod:2500
22076 msgid "lvm-canonical-lv-name"
22077 msgstr ""
22078
22079 # type: verbatim
22080 #: ../fish/guestfish-actions.pod:2502
22081 #, no-wrap
22082 msgid ""
22083 " lvm-canonical-lv-name lvname\n"
22084 "\n"
22085 msgstr ""
22086
22087 # type: textblock
22088 #: ../fish/guestfish-actions.pod:2511
22089 msgid "See also L</is-lv>."
22090 msgstr ""
22091
22092 # type: =head2
22093 #: ../fish/guestfish-actions.pod:2513
22094 msgid "lvm-clear-filter"
22095 msgstr ""
22096
22097 # type: verbatim
22098 #: ../fish/guestfish-actions.pod:2515
22099 #, no-wrap
22100 msgid ""
22101 " lvm-clear-filter\n"
22102 "\n"
22103 msgstr ""
22104
22105 # type: textblock
22106 #: ../fish/guestfish-actions.pod:2517
22107 msgid ""
22108 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22109 "block device."
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:2523
22114 msgid "lvm-remove-all"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:2525
22119 #, no-wrap
22120 msgid ""
22121 " lvm-remove-all\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: =head2
22126 #: ../fish/guestfish-actions.pod:2533
22127 msgid "lvm-set-filter"
22128 msgstr ""
22129
22130 # type: verbatim
22131 #: ../fish/guestfish-actions.pod:2535
22132 #, no-wrap
22133 msgid ""
22134 " lvm-set-filter 'devices ...'\n"
22135 "\n"
22136 msgstr ""
22137
22138 # type: =head2
22139 #: ../fish/guestfish-actions.pod:2560
22140 msgid "lvremove"
22141 msgstr ""
22142
22143 # type: verbatim
22144 #: ../fish/guestfish-actions.pod:2562
22145 #, no-wrap
22146 msgid ""
22147 " lvremove device\n"
22148 "\n"
22149 msgstr ""
22150
22151 # type: =head2
22152 #: ../fish/guestfish-actions.pod:2570
22153 msgid "lvrename"
22154 msgstr ""
22155
22156 # type: verbatim
22157 #: ../fish/guestfish-actions.pod:2572
22158 #, no-wrap
22159 msgid ""
22160 " lvrename logvol newlogvol\n"
22161 "\n"
22162 msgstr ""
22163
22164 # type: =head2
22165 #: ../fish/guestfish-actions.pod:2576
22166 msgid "lvresize"
22167 msgstr ""
22168
22169 # type: verbatim
22170 #: ../fish/guestfish-actions.pod:2578
22171 #, no-wrap
22172 msgid ""
22173 " lvresize device mbytes\n"
22174 "\n"
22175 msgstr ""
22176
22177 # type: =head2
22178 #: ../fish/guestfish-actions.pod:2584
22179 msgid "lvresize-free"
22180 msgstr ""
22181
22182 # type: verbatim
22183 #: ../fish/guestfish-actions.pod:2586
22184 #, no-wrap
22185 msgid ""
22186 " lvresize-free lv percent\n"
22187 "\n"
22188 msgstr ""
22189
22190 # type: =head2
22191 #: ../fish/guestfish-actions.pod:2594
22192 msgid "lvs"
22193 msgstr ""
22194
22195 # type: verbatim
22196 #: ../fish/guestfish-actions.pod:2596
22197 #, no-wrap
22198 msgid ""
22199 " lvs\n"
22200 "\n"
22201 msgstr ""
22202
22203 # type: textblock
22204 #: ../fish/guestfish-actions.pod:2604
22205 msgid "See also L</lvs-full>, L</list-filesystems>."
22206 msgstr ""
22207
22208 # type: =head2
22209 #: ../fish/guestfish-actions.pod:2606
22210 msgid "lvs-full"
22211 msgstr ""
22212
22213 # type: verbatim
22214 #: ../fish/guestfish-actions.pod:2608
22215 #, no-wrap
22216 msgid ""
22217 " lvs-full\n"
22218 "\n"
22219 msgstr ""
22220
22221 # type: =head2
22222 #: ../fish/guestfish-actions.pod:2613
22223 msgid "lvuuid"
22224 msgstr ""
22225
22226 # type: verbatim
22227 #: ../fish/guestfish-actions.pod:2615
22228 #, no-wrap
22229 msgid ""
22230 " lvuuid device\n"
22231 "\n"
22232 msgstr ""
22233
22234 # type: =head2
22235 #: ../fish/guestfish-actions.pod:2619
22236 msgid "lxattrlist"
22237 msgstr ""
22238
22239 # type: verbatim
22240 #: ../fish/guestfish-actions.pod:2621
22241 #, no-wrap
22242 msgid ""
22243 " lxattrlist path 'names ...'\n"
22244 "\n"
22245 msgstr ""
22246
22247 # type: textblock
22248 #: ../fish/guestfish-actions.pod:2637
22249 msgid ""
22250 "This call is intended for programs that want to efficiently list a directory "
22251 "contents without making many round-trips.  See also L</lstatlist> for a "
22252 "similarly efficient call for getting standard stats.  Very long directory "
22253 "listings might cause the protocol message size to be exceeded, causing this "
22254 "call to fail.  The caller must split up such requests into smaller groups of "
22255 "names."
22256 msgstr ""
22257
22258 # type: =head2
22259 #: ../fish/guestfish-actions.pod:2645
22260 msgid "mkdir"
22261 msgstr ""
22262
22263 # type: verbatim
22264 #: ../fish/guestfish-actions.pod:2647
22265 #, no-wrap
22266 msgid ""
22267 " mkdir path\n"
22268 "\n"
22269 msgstr ""
22270
22271 # type: =head2
22272 #: ../fish/guestfish-actions.pod:2651
22273 msgid "mkdir-mode"
22274 msgstr ""
22275
22276 # type: verbatim
22277 #: ../fish/guestfish-actions.pod:2653
22278 #, no-wrap
22279 msgid ""
22280 " mkdir-mode path mode\n"
22281 "\n"
22282 msgstr ""
22283
22284 # type: textblock
22285 #: ../fish/guestfish-actions.pod:2662
22286 msgid "See also L</mkdir>, L</umask>"
22287 msgstr ""
22288
22289 # type: =head2
22290 #: ../fish/guestfish-actions.pod:2664
22291 msgid "mkdir-p"
22292 msgstr ""
22293
22294 # type: verbatim
22295 #: ../fish/guestfish-actions.pod:2666
22296 #, no-wrap
22297 msgid ""
22298 " mkdir-p path\n"
22299 "\n"
22300 msgstr ""
22301
22302 # type: =head2
22303 #: ../fish/guestfish-actions.pod:2671
22304 msgid "mkdtemp"
22305 msgstr ""
22306
22307 # type: verbatim
22308 #: ../fish/guestfish-actions.pod:2673
22309 #, no-wrap
22310 msgid ""
22311 " mkdtemp template\n"
22312 "\n"
22313 msgstr ""
22314
22315 # type: =head2
22316 #: ../fish/guestfish-actions.pod:2694
22317 msgid "mke2fs-J"
22318 msgstr ""
22319
22320 # type: verbatim
22321 #: ../fish/guestfish-actions.pod:2696
22322 #, no-wrap
22323 msgid ""
22324 " mke2fs-J fstype blocksize device journal\n"
22325 "\n"
22326 msgstr ""
22327
22328 # type: textblock
22329 #: ../fish/guestfish-actions.pod:2704
22330 msgid "See also L</mke2journal>."
22331 msgstr ""
22332
22333 # type: =head2
22334 #: ../fish/guestfish-actions.pod:2706
22335 msgid "mke2fs-JL"
22336 msgstr ""
22337
22338 # type: verbatim
22339 #: ../fish/guestfish-actions.pod:2708
22340 #, no-wrap
22341 msgid ""
22342 " mke2fs-JL fstype blocksize device label\n"
22343 "\n"
22344 msgstr ""
22345
22346 # type: textblock
22347 #: ../fish/guestfish-actions.pod:2713
22348 msgid "See also L</mke2journal-L>."
22349 msgstr ""
22350
22351 # type: =head2
22352 #: ../fish/guestfish-actions.pod:2715
22353 msgid "mke2fs-JU"
22354 msgstr ""
22355
22356 # type: verbatim
22357 #: ../fish/guestfish-actions.pod:2717
22358 #, no-wrap
22359 msgid ""
22360 " mke2fs-JU fstype blocksize device uuid\n"
22361 "\n"
22362 msgstr ""
22363
22364 # type: textblock
22365 #: ../fish/guestfish-actions.pod:2722
22366 msgid "See also L</mke2journal-U>."
22367 msgstr ""
22368
22369 # type: =head2
22370 #: ../fish/guestfish-actions.pod:2724
22371 msgid "mke2journal"
22372 msgstr ""
22373
22374 # type: verbatim
22375 #: ../fish/guestfish-actions.pod:2726
22376 #, no-wrap
22377 msgid ""
22378 " mke2journal blocksize device\n"
22379 "\n"
22380 msgstr ""
22381
22382 # type: =head2
22383 #: ../fish/guestfish-actions.pod:2733
22384 msgid "mke2journal-L"
22385 msgstr ""
22386
22387 # type: verbatim
22388 #: ../fish/guestfish-actions.pod:2735
22389 #, no-wrap
22390 msgid ""
22391 " mke2journal-L blocksize label device\n"
22392 "\n"
22393 msgstr ""
22394
22395 # type: =head2
22396 #: ../fish/guestfish-actions.pod:2739
22397 msgid "mke2journal-U"
22398 msgstr ""
22399
22400 # type: verbatim
22401 #: ../fish/guestfish-actions.pod:2741
22402 #, no-wrap
22403 msgid ""
22404 " mke2journal-U blocksize uuid device\n"
22405 "\n"
22406 msgstr ""
22407
22408 # type: =head2
22409 #: ../fish/guestfish-actions.pod:2745
22410 msgid "mkfifo"
22411 msgstr ""
22412
22413 # type: verbatim
22414 #: ../fish/guestfish-actions.pod:2747
22415 #, no-wrap
22416 msgid ""
22417 " mkfifo mode path\n"
22418 "\n"
22419 msgstr ""
22420
22421 # type: textblock
22422 #: ../fish/guestfish-actions.pod:2749
22423 msgid ""
22424 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22425 "is just a convenient wrapper around L</mknod>."
22426 msgstr ""
22427
22428 # type: =head2
22429 #: ../fish/guestfish-actions.pod:2755
22430 msgid "mkfs"
22431 msgstr ""
22432
22433 # type: verbatim
22434 #: ../fish/guestfish-actions.pod:2757
22435 #, no-wrap
22436 msgid ""
22437 " mkfs fstype device\n"
22438 "\n"
22439 msgstr ""
22440
22441 # type: =head2
22442 #: ../fish/guestfish-actions.pod:2763
22443 msgid "mkfs-b"
22444 msgstr ""
22445
22446 # type: verbatim
22447 #: ../fish/guestfish-actions.pod:2765
22448 #, no-wrap
22449 msgid ""
22450 " mkfs-b fstype blocksize device\n"
22451 "\n"
22452 msgstr ""
22453
22454 # type: textblock
22455 #: ../fish/guestfish-actions.pod:2767
22456 msgid ""
22457 "This call is similar to L</mkfs>, but it allows you to control the block "
22458 "size of the resulting filesystem.  Supported block sizes depend on the "
22459 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22460 msgstr ""
22461
22462 # type: =head2
22463 #: ../fish/guestfish-actions.pod:2775
22464 msgid "mkmountpoint"
22465 msgstr ""
22466
22467 # type: verbatim
22468 #: ../fish/guestfish-actions.pod:2777
22469 #, no-wrap
22470 msgid ""
22471 " mkmountpoint exemptpath\n"
22472 "\n"
22473 msgstr ""
22474
22475 # type: textblock
22476 #: ../fish/guestfish-actions.pod:2779
22477 msgid ""
22478 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22479 "to create extra mountpoints before mounting the first filesystem."
22480 msgstr ""
22481
22482 # type: textblock
22483 #: ../fish/guestfish-actions.pod:2803
22484 msgid ""
22485 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22486 "unexpected errors if you try to mix these calls.  It is safest to manually "
22487 "unmount filesystems and remove mountpoints after use."
22488 msgstr ""
22489
22490 # type: textblock
22491 #: ../fish/guestfish-actions.pod:2807
22492 msgid ""
22493 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22494 "for this to work for manual mountpoints, you must ensure that the innermost "
22495 "mountpoints have the longest pathnames, as in the example code above."
22496 msgstr ""
22497
22498 # type: textblock
22499 #: ../fish/guestfish-actions.pod:2814
22500 msgid ""
22501 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22502 "that L</umount-all> is called when the handle is closed which can also "
22503 "trigger these issues."
22504 msgstr ""
22505
22506 # type: =head2
22507 #: ../fish/guestfish-actions.pod:2818
22508 msgid "mknod"
22509 msgstr ""
22510
22511 # type: verbatim
22512 #: ../fish/guestfish-actions.pod:2820
22513 #, no-wrap
22514 msgid ""
22515 " mknod mode devmajor devminor path\n"
22516 "\n"
22517 msgstr ""
22518
22519 # type: textblock
22520 #: ../fish/guestfish-actions.pod:2830
22521 msgid ""
22522 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22523 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22524 "regular file).  These constants are available in the standard Linux header "
22525 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22526 "wrappers around this command which bitwise OR in the appropriate constant "
22527 "for you."
22528 msgstr ""
22529
22530 # type: =head2
22531 #: ../fish/guestfish-actions.pod:2840
22532 msgid "mknod-b"
22533 msgstr ""
22534
22535 # type: verbatim
22536 #: ../fish/guestfish-actions.pod:2842
22537 #, no-wrap
22538 msgid ""
22539 " mknod-b mode devmajor devminor path\n"
22540 "\n"
22541 msgstr ""
22542
22543 # type: textblock
22544 #: ../fish/guestfish-actions.pod:2844
22545 msgid ""
22546 "This call creates a block device node called C<path> with mode C<mode> and "
22547 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22548 "wrapper around L</mknod>."
22549 msgstr ""
22550
22551 # type: =head2
22552 #: ../fish/guestfish-actions.pod:2850
22553 msgid "mknod-c"
22554 msgstr ""
22555
22556 # type: verbatim
22557 #: ../fish/guestfish-actions.pod:2852
22558 #, no-wrap
22559 msgid ""
22560 " mknod-c mode devmajor devminor path\n"
22561 "\n"
22562 msgstr ""
22563
22564 # type: textblock
22565 #: ../fish/guestfish-actions.pod:2854
22566 msgid ""
22567 "This call creates a char device node called C<path> with mode C<mode> and "
22568 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22569 "wrapper around L</mknod>."
22570 msgstr ""
22571
22572 # type: =head2
22573 #: ../fish/guestfish-actions.pod:2860
22574 msgid "mkswap"
22575 msgstr ""
22576
22577 # type: verbatim
22578 #: ../fish/guestfish-actions.pod:2862
22579 #, no-wrap
22580 msgid ""
22581 " mkswap device\n"
22582 "\n"
22583 msgstr ""
22584
22585 # type: =head2
22586 #: ../fish/guestfish-actions.pod:2866
22587 msgid "mkswap-L"
22588 msgstr ""
22589
22590 # type: verbatim
22591 #: ../fish/guestfish-actions.pod:2868
22592 #, no-wrap
22593 msgid ""
22594 " mkswap-L label device\n"
22595 "\n"
22596 msgstr ""
22597
22598 # type: =head2
22599 #: ../fish/guestfish-actions.pod:2876
22600 msgid "mkswap-U"
22601 msgstr ""
22602
22603 # type: verbatim
22604 #: ../fish/guestfish-actions.pod:2878
22605 #, no-wrap
22606 msgid ""
22607 " mkswap-U uuid device\n"
22608 "\n"
22609 msgstr ""
22610
22611 # type: =head2
22612 #: ../fish/guestfish-actions.pod:2882
22613 msgid "mkswap-file"
22614 msgstr ""
22615
22616 # type: verbatim
22617 #: ../fish/guestfish-actions.pod:2884
22618 #, no-wrap
22619 msgid ""
22620 " mkswap-file path\n"
22621 "\n"
22622 msgstr ""
22623
22624 # type: textblock
22625 #: ../fish/guestfish-actions.pod:2888
22626 msgid ""
22627 "This command just writes a swap file signature to an existing file.  To "
22628 "create the file itself, use something like L</fallocate>."
22629 msgstr ""
22630
22631 # type: =head2
22632 #: ../fish/guestfish-actions.pod:2891
22633 msgid "modprobe"
22634 msgstr ""
22635
22636 # type: verbatim
22637 #: ../fish/guestfish-actions.pod:2893
22638 #, no-wrap
22639 msgid ""
22640 " modprobe modulename\n"
22641 "\n"
22642 msgstr ""
22643
22644 # type: =head2
22645 #: ../fish/guestfish-actions.pod:2900
22646 msgid "mount"
22647 msgstr ""
22648
22649 # type: verbatim
22650 #: ../fish/guestfish-actions.pod:2902
22651 #, no-wrap
22652 msgid ""
22653 " mount device mountpoint\n"
22654 "\n"
22655 msgstr ""
22656
22657 # type: textblock
22658 #: ../fish/guestfish-actions.pod:2918
22659 msgid ""
22660 "B<Important note:> When you use this call, the filesystem options C<sync> "
22661 "and C<noatime> are set implicitly.  This was originally done because we "
22662 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22663 "very large negative performance impact and negligible effect on "
22664 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22665 "code that needs performance, and instead use L</mount-options> (use an empty "
22666 "string for the first parameter if you don't want any options)."
22667 msgstr ""
22668
22669 # type: =head2
22670 #: ../fish/guestfish-actions.pod:2928
22671 msgid "mount-loop"
22672 msgstr ""
22673
22674 # type: verbatim
22675 #: ../fish/guestfish-actions.pod:2930
22676 #, no-wrap
22677 msgid ""
22678 " mount-loop file mountpoint\n"
22679 "\n"
22680 msgstr ""
22681
22682 # type: =head2
22683 #: ../fish/guestfish-actions.pod:2936
22684 msgid "mount-options"
22685 msgstr ""
22686
22687 # type: verbatim
22688 #: ../fish/guestfish-actions.pod:2938
22689 #, no-wrap
22690 msgid ""
22691 " mount-options options device mountpoint\n"
22692 "\n"
22693 msgstr ""
22694
22695 # type: textblock
22696 #: ../fish/guestfish-actions.pod:2940
22697 msgid ""
22698 "This is the same as the L</mount> command, but it allows you to set the "
22699 "mount options as for the L<mount(8)> I<-o> flag."
22700 msgstr ""
22701
22702 # type: =head2
22703 #: ../fish/guestfish-actions.pod:2948
22704 msgid "mount-ro"
22705 msgstr ""
22706
22707 # type: verbatim
22708 #: ../fish/guestfish-actions.pod:2950
22709 #, no-wrap
22710 msgid ""
22711 " mount-ro device mountpoint\n"
22712 "\n"
22713 msgstr ""
22714
22715 # type: textblock
22716 #: ../fish/guestfish-actions.pod:2952
22717 msgid ""
22718 "This is the same as the L</mount> command, but it mounts the filesystem with "
22719 "the read-only (I<-o ro>) flag."
22720 msgstr ""
22721
22722 # type: =head2
22723 #: ../fish/guestfish-actions.pod:2955
22724 msgid "mount-vfs"
22725 msgstr ""
22726
22727 # type: verbatim
22728 #: ../fish/guestfish-actions.pod:2957
22729 #, no-wrap
22730 msgid ""
22731 " mount-vfs options vfstype device mountpoint\n"
22732 "\n"
22733 msgstr ""
22734
22735 # type: textblock
22736 #: ../fish/guestfish-actions.pod:2959
22737 msgid ""
22738 "This is the same as the L</mount> command, but it allows you to set both the "
22739 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22740 msgstr ""
22741
22742 # type: =head2
22743 #: ../fish/guestfish-actions.pod:2963
22744 msgid "mountpoints"
22745 msgstr ""
22746
22747 # type: verbatim
22748 #: ../fish/guestfish-actions.pod:2965
22749 #, no-wrap
22750 msgid ""
22751 " mountpoints\n"
22752 "\n"
22753 msgstr ""
22754
22755 # type: textblock
22756 #: ../fish/guestfish-actions.pod:2967
22757 msgid ""
22758 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22759 "This one returns a hash table (map) of device name to directory where the "
22760 "device is mounted."
22761 msgstr ""
22762
22763 # type: =head2
22764 #: ../fish/guestfish-actions.pod:2971
22765 msgid "mounts"
22766 msgstr ""
22767
22768 # type: verbatim
22769 #: ../fish/guestfish-actions.pod:2973
22770 #, no-wrap
22771 msgid ""
22772 " mounts\n"
22773 "\n"
22774 msgstr ""
22775
22776 # type: textblock
22777 #: ../fish/guestfish-actions.pod:2980
22778 msgid "See also: L</mountpoints>"
22779 msgstr ""
22780
22781 # type: =head2
22782 #: ../fish/guestfish-actions.pod:2982
22783 msgid "mv"
22784 msgstr ""
22785
22786 # type: verbatim
22787 #: ../fish/guestfish-actions.pod:2984
22788 #, no-wrap
22789 msgid ""
22790 " mv src dest\n"
22791 "\n"
22792 msgstr ""
22793
22794 # type: =head2
22795 #: ../fish/guestfish-actions.pod:2989
22796 msgid "ntfs-3g-probe"
22797 msgstr ""
22798
22799 # type: verbatim
22800 #: ../fish/guestfish-actions.pod:2991
22801 #, no-wrap
22802 msgid ""
22803 " ntfs-3g-probe true|false device\n"
22804 "\n"
22805 msgstr ""
22806
22807 # type: =head2
22808 #: ../fish/guestfish-actions.pod:3005
22809 msgid "ntfsresize"
22810 msgstr ""
22811
22812 # type: verbatim
22813 #: ../fish/guestfish-actions.pod:3007
22814 #, no-wrap
22815 msgid ""
22816 " ntfsresize device\n"
22817 "\n"
22818 msgstr ""
22819
22820 # type: =head2
22821 #: ../fish/guestfish-actions.pod:3013
22822 msgid "ntfsresize-size"
22823 msgstr ""
22824
22825 # type: verbatim
22826 #: ../fish/guestfish-actions.pod:3015
22827 #, no-wrap
22828 msgid ""
22829 " ntfsresize-size device size\n"
22830 "\n"
22831 msgstr ""
22832
22833 # type: textblock
22834 #: ../fish/guestfish-actions.pod:3017
22835 msgid ""
22836 "This command is the same as L</ntfsresize> except that it allows you to "
22837 "specify the new size (in bytes) explicitly."
22838 msgstr ""
22839
22840 # type: =head2
22841 #: ../fish/guestfish-actions.pod:3020
22842 msgid "part-add"
22843 msgstr ""
22844
22845 # type: verbatim
22846 #: ../fish/guestfish-actions.pod:3022
22847 #, no-wrap
22848 msgid ""
22849 " part-add device prlogex startsect endsect\n"
22850 "\n"
22851 msgstr ""
22852
22853 # type: textblock
22854 #: ../fish/guestfish-actions.pod:3024
22855 msgid ""
22856 "This command adds a partition to C<device>.  If there is no partition table "
22857 "on the device, call L</part-init> first."
22858 msgstr ""
22859
22860 # type: textblock
22861 #: ../fish/guestfish-actions.pod:3036
22862 msgid ""
22863 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22864 "part-disk> to do that."
22865 msgstr ""
22866
22867 # type: =head2
22868 #: ../fish/guestfish-actions.pod:3039
22869 msgid "part-del"
22870 msgstr ""
22871
22872 # type: verbatim
22873 #: ../fish/guestfish-actions.pod:3041
22874 #, no-wrap
22875 msgid ""
22876 " part-del device partnum\n"
22877 "\n"
22878 msgstr ""
22879
22880 # type: =head2
22881 #: ../fish/guestfish-actions.pod:3049
22882 msgid "part-disk"
22883 msgstr ""
22884
22885 # type: verbatim
22886 #: ../fish/guestfish-actions.pod:3051
22887 #, no-wrap
22888 msgid ""
22889 " part-disk device parttype\n"
22890 "\n"
22891 msgstr ""
22892
22893 # type: textblock
22894 #: ../fish/guestfish-actions.pod:3053
22895 msgid ""
22896 "This command is simply a combination of L</part-init> followed by L</part-"
22897 "add> to create a single primary partition covering the whole disk."
22898 msgstr ""
22899
22900 # type: textblock
22901 #: ../fish/guestfish-actions.pod:3057
22902 msgid ""
22903 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22904 "possible values are described in L</part-init>."
22905 msgstr ""
22906
22907 # type: =head2
22908 #: ../fish/guestfish-actions.pod:3063
22909 msgid "part-get-bootable"
22910 msgstr ""
22911
22912 # type: verbatim
22913 #: ../fish/guestfish-actions.pod:3065
22914 #, no-wrap
22915 msgid ""
22916 " part-get-bootable device partnum\n"
22917 "\n"
22918 msgstr ""
22919
22920 # type: textblock
22921 #: ../fish/guestfish-actions.pod:3070
22922 msgid "See also L</part-set-bootable>."
22923 msgstr ""
22924
22925 # type: =head2
22926 #: ../fish/guestfish-actions.pod:3072
22927 msgid "part-get-mbr-id"
22928 msgstr ""
22929
22930 # type: verbatim
22931 #: ../fish/guestfish-actions.pod:3074
22932 #, no-wrap
22933 msgid ""
22934 " part-get-mbr-id device partnum\n"
22935 "\n"
22936 msgstr ""
22937
22938 # type: textblock
22939 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22940 msgid ""
22941 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22942 "undefined results for other partition table types (see L</part-get-"
22943 "parttype>)."
22944 msgstr ""
22945
22946 # type: =head2
22947 #: ../fish/guestfish-actions.pod:3083
22948 msgid "part-get-parttype"
22949 msgstr ""
22950
22951 # type: verbatim
22952 #: ../fish/guestfish-actions.pod:3085
22953 #, no-wrap
22954 msgid ""
22955 " part-get-parttype device\n"
22956 "\n"
22957 msgstr ""
22958
22959 # type: textblock
22960 #: ../fish/guestfish-actions.pod:3090
22961 msgid ""
22962 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22963 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22964 "possible, although unusual.  See L</part-init> for a full list."
22965 msgstr ""
22966
22967 # type: =head2
22968 #: ../fish/guestfish-actions.pod:3095
22969 msgid "part-init"
22970 msgstr ""
22971
22972 # type: verbatim
22973 #: ../fish/guestfish-actions.pod:3097
22974 #, no-wrap
22975 msgid ""
22976 " part-init device parttype\n"
22977 "\n"
22978 msgstr ""
22979
22980 # type: textblock
22981 #: ../fish/guestfish-actions.pod:3103
22982 msgid ""
22983 "Initially there are no partitions.  Following this, you should call L</part-"
22984 "add> for each partition required."
22985 msgstr ""
22986
22987 # type: =head2
22988 #: ../fish/guestfish-actions.pod:3166
22989 msgid "part-list"
22990 msgstr ""
22991
22992 # type: verbatim
22993 #: ../fish/guestfish-actions.pod:3168
22994 #, no-wrap
22995 msgid ""
22996 " part-list device\n"
22997 "\n"
22998 msgstr ""
22999
23000 # type: textblock
23001 #: ../fish/guestfish-actions.pod:3183
23002 msgid ""
23003 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23004 "the device's sector size, see L</blockdev-getss>."
23005 msgstr ""
23006
23007 # type: =head2
23008 #: ../fish/guestfish-actions.pod:3196
23009 msgid "part-set-bootable"
23010 msgstr ""
23011
23012 # type: verbatim
23013 #: ../fish/guestfish-actions.pod:3198
23014 #, no-wrap
23015 msgid ""
23016 " part-set-bootable device partnum true|false\n"
23017 "\n"
23018 msgstr ""
23019
23020 # type: =head2
23021 #: ../fish/guestfish-actions.pod:3207
23022 msgid "part-set-mbr-id"
23023 msgstr ""
23024
23025 # type: verbatim
23026 #: ../fish/guestfish-actions.pod:3209
23027 #, no-wrap
23028 msgid ""
23029 " part-set-mbr-id device partnum idbyte\n"
23030 "\n"
23031 msgstr ""
23032
23033 # type: =head2
23034 #: ../fish/guestfish-actions.pod:3221
23035 msgid "part-set-name"
23036 msgstr ""
23037
23038 # type: verbatim
23039 #: ../fish/guestfish-actions.pod:3223
23040 #, no-wrap
23041 msgid ""
23042 " part-set-name device partnum name\n"
23043 "\n"
23044 msgstr ""
23045
23046 # type: =head2
23047 #: ../fish/guestfish-actions.pod:3231
23048 msgid "part-to-dev"
23049 msgstr ""
23050
23051 # type: verbatim
23052 #: ../fish/guestfish-actions.pod:3233
23053 #, no-wrap
23054 msgid ""
23055 " part-to-dev partition\n"
23056 "\n"
23057 msgstr ""
23058
23059 # type: textblock
23060 #: ../fish/guestfish-actions.pod:3239
23061 msgid ""
23062 "The named partition must exist, for example as a string returned from L</"
23063 "list-partitions>."
23064 msgstr ""
23065
23066 # type: =head2
23067 #: ../fish/guestfish-actions.pod:3242
23068 msgid "ping-daemon"
23069 msgstr ""
23070
23071 # type: verbatim
23072 #: ../fish/guestfish-actions.pod:3244
23073 #, no-wrap
23074 msgid ""
23075 " ping-daemon\n"
23076 "\n"
23077 msgstr ""
23078
23079 # type: =head2
23080 #: ../fish/guestfish-actions.pod:3251
23081 msgid "pread"
23082 msgstr ""
23083
23084 # type: verbatim
23085 #: ../fish/guestfish-actions.pod:3253
23086 #, no-wrap
23087 msgid ""
23088 " pread path count offset\n"
23089 "\n"
23090 msgstr ""
23091
23092 # type: textblock
23093 #: ../fish/guestfish-actions.pod:3261
23094 msgid "See also L</pwrite>, L</pread-device>."
23095 msgstr ""
23096
23097 # type: =head2
23098 #: ../fish/guestfish-actions.pod:3266
23099 msgid "pread-device"
23100 msgstr ""
23101
23102 # type: verbatim
23103 #: ../fish/guestfish-actions.pod:3268
23104 #, no-wrap
23105 msgid ""
23106 " pread-device device count offset\n"
23107 "\n"
23108 msgstr ""
23109
23110 # type: textblock
23111 #: ../fish/guestfish-actions.pod:3276
23112 msgid "See also L</pread>."
23113 msgstr ""
23114
23115 # type: =head2
23116 #: ../fish/guestfish-actions.pod:3281
23117 msgid "pvcreate"
23118 msgstr ""
23119
23120 # type: verbatim
23121 #: ../fish/guestfish-actions.pod:3283
23122 #, no-wrap
23123 msgid ""
23124 " pvcreate device\n"
23125 "\n"
23126 msgstr ""
23127
23128 # type: =head2
23129 #: ../fish/guestfish-actions.pod:3289
23130 msgid "pvremove"
23131 msgstr ""
23132
23133 # type: verbatim
23134 #: ../fish/guestfish-actions.pod:3291
23135 #, no-wrap
23136 msgid ""
23137 " pvremove device\n"
23138 "\n"
23139 msgstr ""
23140
23141 # type: =head2
23142 #: ../fish/guestfish-actions.pod:3300
23143 msgid "pvresize"
23144 msgstr ""
23145
23146 # type: verbatim
23147 #: ../fish/guestfish-actions.pod:3302
23148 #, no-wrap
23149 msgid ""
23150 " pvresize device\n"
23151 "\n"
23152 msgstr ""
23153
23154 # type: =head2
23155 #: ../fish/guestfish-actions.pod:3307
23156 msgid "pvresize-size"
23157 msgstr ""
23158
23159 # type: verbatim
23160 #: ../fish/guestfish-actions.pod:3309
23161 #, no-wrap
23162 msgid ""
23163 " pvresize-size device size\n"
23164 "\n"
23165 msgstr ""
23166
23167 # type: textblock
23168 #: ../fish/guestfish-actions.pod:3311
23169 msgid ""
23170 "This command is the same as L</pvresize> except that it allows you to "
23171 "specify the new size (in bytes) explicitly."
23172 msgstr ""
23173
23174 # type: =head2
23175 #: ../fish/guestfish-actions.pod:3314
23176 msgid "pvs"
23177 msgstr ""
23178
23179 # type: verbatim
23180 #: ../fish/guestfish-actions.pod:3316
23181 #, no-wrap
23182 msgid ""
23183 " pvs\n"
23184 "\n"
23185 msgstr ""
23186
23187 # type: textblock
23188 #: ../fish/guestfish-actions.pod:3324
23189 msgid "See also L</pvs-full>."
23190 msgstr ""
23191
23192 # type: =head2
23193 #: ../fish/guestfish-actions.pod:3326
23194 msgid "pvs-full"
23195 msgstr ""
23196
23197 # type: verbatim
23198 #: ../fish/guestfish-actions.pod:3328
23199 #, no-wrap
23200 msgid ""
23201 " pvs-full\n"
23202 "\n"
23203 msgstr ""
23204
23205 # type: =head2
23206 #: ../fish/guestfish-actions.pod:3333
23207 msgid "pvuuid"
23208 msgstr ""
23209
23210 # type: verbatim
23211 #: ../fish/guestfish-actions.pod:3335
23212 #, no-wrap
23213 msgid ""
23214 " pvuuid device\n"
23215 "\n"
23216 msgstr ""
23217
23218 # type: =head2
23219 #: ../fish/guestfish-actions.pod:3339
23220 msgid "pwrite"
23221 msgstr ""
23222
23223 # type: verbatim
23224 #: ../fish/guestfish-actions.pod:3341
23225 #, no-wrap
23226 msgid ""
23227 " pwrite path content offset\n"
23228 "\n"
23229 msgstr ""
23230
23231 # type: textblock
23232 #: ../fish/guestfish-actions.pod:3352
23233 msgid "See also L</pread>, L</pwrite-device>."
23234 msgstr ""
23235
23236 # type: =head2
23237 #: ../fish/guestfish-actions.pod:3357
23238 msgid "pwrite-device"
23239 msgstr ""
23240
23241 # type: verbatim
23242 #: ../fish/guestfish-actions.pod:3359
23243 #, no-wrap
23244 msgid ""
23245 " pwrite-device device content offset\n"
23246 "\n"
23247 msgstr ""
23248
23249 # type: textblock
23250 #: ../fish/guestfish-actions.pod:3369
23251 msgid "See also L</pwrite>."
23252 msgstr ""
23253
23254 # type: =head2
23255 #: ../fish/guestfish-actions.pod:3374
23256 msgid "read-file"
23257 msgstr ""
23258
23259 # type: verbatim
23260 #: ../fish/guestfish-actions.pod:3376
23261 #, no-wrap
23262 msgid ""
23263 " read-file path\n"
23264 "\n"
23265 msgstr ""
23266
23267 # type: textblock
23268 #: ../fish/guestfish-actions.pod:3381
23269 msgid ""
23270 "Unlike L</cat>, this function can correctly handle files that contain "
23271 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23272 "is limited in the total size of file that can be handled."
23273 msgstr ""
23274
23275 # type: =head2
23276 #: ../fish/guestfish-actions.pod:3389
23277 msgid "read-lines"
23278 msgstr ""
23279
23280 # type: verbatim
23281 #: ../fish/guestfish-actions.pod:3391
23282 #, no-wrap
23283 msgid ""
23284 " read-lines path\n"
23285 "\n"
23286 msgstr ""
23287
23288 # type: textblock
23289 #: ../fish/guestfish-actions.pod:3398
23290 msgid ""
23291 "Note that this function cannot correctly handle binary files (specifically, "
23292 "files containing C<\\0> character which is treated as end of line).  For "
23293 "those you need to use the L</read-file> function which has a more complex "
23294 "interface."
23295 msgstr ""
23296
23297 # type: =head2
23298 #: ../fish/guestfish-actions.pod:3403
23299 msgid "readdir"
23300 msgstr ""
23301
23302 # type: verbatim
23303 #: ../fish/guestfish-actions.pod:3405
23304 #, no-wrap
23305 msgid ""
23306 " readdir dir\n"
23307 "\n"
23308 msgstr ""
23309
23310 # type: textblock
23311 #: ../fish/guestfish-actions.pod:3457
23312 msgid ""
23313 "This function is primarily intended for use by programs.  To get a simple "
23314 "list of names, use L</ls>.  To get a printable directory for human "
23315 "consumption, use L</ll>."
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-actions.pod:3461
23320 msgid "readlink"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-actions.pod:3463
23325 #, no-wrap
23326 msgid ""
23327 " readlink path\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: =head2
23332 #: ../fish/guestfish-actions.pod:3467
23333 msgid "readlinklist"
23334 msgstr ""
23335
23336 # type: verbatim
23337 #: ../fish/guestfish-actions.pod:3469
23338 #, no-wrap
23339 msgid ""
23340 " readlinklist path 'names ...'\n"
23341 "\n"
23342 msgstr ""
23343
23344 # type: =head2
23345 #: ../fish/guestfish-actions.pod:3493
23346 msgid "realpath"
23347 msgstr ""
23348
23349 # type: verbatim
23350 #: ../fish/guestfish-actions.pod:3495
23351 #, no-wrap
23352 msgid ""
23353 " realpath path\n"
23354 "\n"
23355 msgstr ""
23356
23357 # type: =head2
23358 #: ../fish/guestfish-actions.pod:3500
23359 msgid "removexattr"
23360 msgstr ""
23361
23362 # type: verbatim
23363 #: ../fish/guestfish-actions.pod:3502
23364 #, no-wrap
23365 msgid ""
23366 " removexattr xattr path\n"
23367 "\n"
23368 msgstr ""
23369
23370 # type: textblock
23371 #: ../fish/guestfish-actions.pod:3507
23372 msgid "See also: L</lremovexattr>, L<attr(5)>."
23373 msgstr ""
23374
23375 # type: =head2
23376 #: ../fish/guestfish-actions.pod:3509
23377 msgid "resize2fs"
23378 msgstr ""
23379
23380 # type: verbatim
23381 #: ../fish/guestfish-actions.pod:3511
23382 #, no-wrap
23383 msgid ""
23384 " resize2fs device\n"
23385 "\n"
23386 msgstr ""
23387
23388 # type: textblock
23389 #: ../fish/guestfish-actions.pod:3516
23390 msgid ""
23391 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23392 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23393 "gives an error about this and sometimes not.  In any case, it is always safe "
23394 "to call L</e2fsck-f> before calling this function."
23395 msgstr ""
23396
23397 # type: =head2
23398 #: ../fish/guestfish-actions.pod:3522
23399 msgid "resize2fs-size"
23400 msgstr ""
23401
23402 # type: verbatim
23403 #: ../fish/guestfish-actions.pod:3524
23404 #, no-wrap
23405 msgid ""
23406 " resize2fs-size device size\n"
23407 "\n"
23408 msgstr ""
23409
23410 # type: textblock
23411 #: ../fish/guestfish-actions.pod:3526
23412 msgid ""
23413 "This command is the same as L</resize2fs> except that it allows you to "
23414 "specify the new size (in bytes) explicitly."
23415 msgstr ""
23416
23417 # type: =head2
23418 #: ../fish/guestfish-actions.pod:3529
23419 msgid "rm"
23420 msgstr ""
23421
23422 # type: verbatim
23423 #: ../fish/guestfish-actions.pod:3531
23424 #, no-wrap
23425 msgid ""
23426 " rm path\n"
23427 "\n"
23428 msgstr ""
23429
23430 # type: =head2
23431 #: ../fish/guestfish-actions.pod:3535
23432 msgid "rm-rf"
23433 msgstr ""
23434
23435 # type: verbatim
23436 #: ../fish/guestfish-actions.pod:3537
23437 #, no-wrap
23438 msgid ""
23439 " rm-rf path\n"
23440 "\n"
23441 msgstr ""
23442
23443 # type: =head2
23444 #: ../fish/guestfish-actions.pod:3543
23445 msgid "rmdir"
23446 msgstr ""
23447
23448 # type: verbatim
23449 #: ../fish/guestfish-actions.pod:3545
23450 #, no-wrap
23451 msgid ""
23452 " rmdir path\n"
23453 "\n"
23454 msgstr ""
23455
23456 # type: =head2
23457 #: ../fish/guestfish-actions.pod:3549
23458 msgid "rmmountpoint"
23459 msgstr ""
23460
23461 # type: verbatim
23462 #: ../fish/guestfish-actions.pod:3551
23463 #, no-wrap
23464 msgid ""
23465 " rmmountpoint exemptpath\n"
23466 "\n"
23467 msgstr ""
23468
23469 # type: textblock
23470 #: ../fish/guestfish-actions.pod:3553
23471 msgid ""
23472 "This calls removes a mountpoint that was previously created with L</"
23473 "mkmountpoint>.  See L</mkmountpoint> for full details."
23474 msgstr ""
23475
23476 # type: =head2
23477 #: ../fish/guestfish-actions.pod:3557
23478 msgid "scrub-device"
23479 msgstr ""
23480
23481 # type: verbatim
23482 #: ../fish/guestfish-actions.pod:3559
23483 #, no-wrap
23484 msgid ""
23485 " scrub-device device\n"
23486 "\n"
23487 msgstr ""
23488
23489 # type: =head2
23490 #: ../fish/guestfish-actions.pod:3570
23491 msgid "scrub-file"
23492 msgstr ""
23493
23494 # type: verbatim
23495 #: ../fish/guestfish-actions.pod:3572
23496 #, no-wrap
23497 msgid ""
23498 " scrub-file file\n"
23499 "\n"
23500 msgstr ""
23501
23502 # type: =head2
23503 #: ../fish/guestfish-actions.pod:3582
23504 msgid "scrub-freespace"
23505 msgstr ""
23506
23507 # type: verbatim
23508 #: ../fish/guestfish-actions.pod:3584
23509 #, no-wrap
23510 msgid ""
23511 " scrub-freespace dir\n"
23512 "\n"
23513 msgstr ""
23514
23515 # type: textblock
23516 #: ../fish/guestfish-actions.pod:3586
23517 msgid ""
23518 "This command creates the directory C<dir> and then fills it with files until "
23519 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23520 "deletes them.  The intention is to scrub any free space on the partition "
23521 "containing C<dir>."
23522 msgstr ""
23523
23524 # type: =head2
23525 #: ../fish/guestfish-actions.pod:3595
23526 msgid "set-append"
23527 msgstr ""
23528
23529 # type: =head2
23530 #: ../fish/guestfish-actions.pod:3597
23531 msgid "append"
23532 msgstr ""
23533
23534 # type: verbatim
23535 #: ../fish/guestfish-actions.pod:3599
23536 #, no-wrap
23537 msgid ""
23538 " set-append append\n"
23539 "\n"
23540 msgstr ""
23541
23542 # type: =head2
23543 #: ../fish/guestfish-actions.pod:3610
23544 msgid "set-autosync"
23545 msgstr ""
23546
23547 # type: =head2
23548 #: ../fish/guestfish-actions.pod:3612
23549 msgid "autosync"
23550 msgstr ""
23551
23552 # type: verbatim
23553 #: ../fish/guestfish-actions.pod:3614
23554 #, no-wrap
23555 msgid ""
23556 " set-autosync true|false\n"
23557 "\n"
23558 msgstr ""
23559
23560 # type: textblock
23561 #: ../fish/guestfish-actions.pod:3616
23562 msgid ""
23563 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23564 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23565 "closed (also if the program exits without closing handles)."
23566 msgstr ""
23567
23568 # type: =head2
23569 #: ../fish/guestfish-actions.pod:3624
23570 msgid "set-direct"
23571 msgstr ""
23572
23573 # type: =head2
23574 #: ../fish/guestfish-actions.pod:3626
23575 msgid "direct"
23576 msgstr ""
23577
23578 # type: verbatim
23579 #: ../fish/guestfish-actions.pod:3628
23580 #, no-wrap
23581 msgid ""
23582 " set-direct true|false\n"
23583 "\n"
23584 msgstr ""
23585
23586 # type: textblock
23587 #: ../fish/guestfish-actions.pod:3634
23588 msgid ""
23589 "One consequence of this is that log messages aren't caught by the library "
23590 "and handled by L</set-log-message-callback>, but go straight to stdout."
23591 msgstr ""
23592
23593 # type: =head2
23594 #: ../fish/guestfish-actions.pod:3643
23595 msgid "set-e2label"
23596 msgstr ""
23597
23598 # type: verbatim
23599 #: ../fish/guestfish-actions.pod:3645
23600 #, no-wrap
23601 msgid ""
23602 " set-e2label device label\n"
23603 "\n"
23604 msgstr ""
23605
23606 # type: textblock
23607 #: ../fish/guestfish-actions.pod:3651
23608 msgid ""
23609 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23610 "label on a filesystem."
23611 msgstr ""
23612
23613 # type: =head2
23614 #: ../fish/guestfish-actions.pod:3654
23615 msgid "set-e2uuid"
23616 msgstr ""
23617
23618 # type: verbatim
23619 #: ../fish/guestfish-actions.pod:3656
23620 #, no-wrap
23621 msgid ""
23622 " set-e2uuid device uuid\n"
23623 "\n"
23624 msgstr ""
23625
23626 # type: textblock
23627 #: ../fish/guestfish-actions.pod:3663
23628 msgid ""
23629 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23630 "UUID of a filesystem."
23631 msgstr ""
23632
23633 # type: =head2
23634 #: ../fish/guestfish-actions.pod:3666
23635 msgid "set-memsize"
23636 msgstr ""
23637
23638 # type: =head2
23639 #: ../fish/guestfish-actions.pod:3668
23640 msgid "memsize"
23641 msgstr ""
23642
23643 # type: verbatim
23644 #: ../fish/guestfish-actions.pod:3670
23645 #, no-wrap
23646 msgid ""
23647 " set-memsize memsize\n"
23648 "\n"
23649 msgstr ""
23650
23651 # type: textblock
23652 #: ../fish/guestfish-actions.pod:3672
23653 msgid ""
23654 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23655 "This only has any effect if called before L</launch>."
23656 msgstr ""
23657
23658 # type: =head2
23659 #: ../fish/guestfish-actions.pod:3683
23660 msgid "set-network"
23661 msgstr ""
23662
23663 # type: =head2
23664 #: ../fish/guestfish-actions.pod:3685
23665 msgid "network"
23666 msgstr ""
23667
23668 # type: verbatim
23669 #: ../fish/guestfish-actions.pod:3687
23670 #, no-wrap
23671 msgid ""
23672 " set-network true|false\n"
23673 "\n"
23674 msgstr ""
23675
23676 # type: textblock
23677 #: ../fish/guestfish-actions.pod:3695
23678 msgid ""
23679 "You must call this before calling L</launch>, otherwise it has no effect."
23680 msgstr ""
23681
23682 # type: =head2
23683 #: ../fish/guestfish-actions.pod:3698
23684 msgid "set-path"
23685 msgstr ""
23686
23687 # type: =head2
23688 #: ../fish/guestfish-actions.pod:3700
23689 msgid "path"
23690 msgstr ""
23691
23692 # type: verbatim
23693 #: ../fish/guestfish-actions.pod:3702
23694 #, no-wrap
23695 msgid ""
23696 " set-path searchpath\n"
23697 "\n"
23698 msgstr ""
23699
23700 # type: =head2
23701 #: ../fish/guestfish-actions.pod:3711
23702 msgid "set-qemu"
23703 msgstr ""
23704
23705 # type: =head2
23706 #: ../fish/guestfish-actions.pod:3713
23707 msgid "qemu"
23708 msgstr ""
23709
23710 # type: verbatim
23711 #: ../fish/guestfish-actions.pod:3715
23712 #, no-wrap
23713 msgid ""
23714 " set-qemu qemu\n"
23715 "\n"
23716 msgstr ""
23717
23718 # type: =head2
23719 #: ../fish/guestfish-actions.pod:3735
23720 msgid "set-recovery-proc"
23721 msgstr ""
23722
23723 # type: =head2
23724 #: ../fish/guestfish-actions.pod:3737
23725 msgid "recovery-proc"
23726 msgstr ""
23727
23728 # type: verbatim
23729 #: ../fish/guestfish-actions.pod:3739
23730 #, no-wrap
23731 msgid ""
23732 " set-recovery-proc true|false\n"
23733 "\n"
23734 msgstr ""
23735
23736 # type: textblock
23737 #: ../fish/guestfish-actions.pod:3741
23738 msgid ""
23739 "If this is called with the parameter C<false> then L</launch> does not "
23740 "create a recovery process.  The purpose of the recovery process is to stop "
23741 "runaway qemu processes in the case where the main program aborts abruptly."
23742 msgstr ""
23743
23744 # type: textblock
23745 #: ../fish/guestfish-actions.pod:3746
23746 msgid ""
23747 "This only has any effect if called before L</launch>, and the default is "
23748 "true."
23749 msgstr ""
23750
23751 # type: =head2
23752 #: ../fish/guestfish-actions.pod:3755
23753 msgid "set-selinux"
23754 msgstr ""
23755
23756 # type: =head2
23757 #: ../fish/guestfish-actions.pod:3757
23758 msgid "selinux"
23759 msgstr ""
23760
23761 # type: verbatim
23762 #: ../fish/guestfish-actions.pod:3759
23763 #, no-wrap
23764 msgid ""
23765 " set-selinux true|false\n"
23766 "\n"
23767 msgstr ""
23768
23769 # type: =head2
23770 #: ../fish/guestfish-actions.pod:3770
23771 msgid "set-trace"
23772 msgstr ""
23773
23774 # type: =head2
23775 #: ../fish/guestfish-actions.pod:3772
23776 msgid "trace"
23777 msgstr ""
23778
23779 # type: verbatim
23780 #: ../fish/guestfish-actions.pod:3774
23781 #, no-wrap
23782 msgid ""
23783 " set-trace true|false\n"
23784 "\n"
23785 msgstr ""
23786
23787 # type: =head2
23788 #: ../fish/guestfish-actions.pod:3790
23789 msgid "set-verbose"
23790 msgstr ""
23791
23792 # type: =head2
23793 #: ../fish/guestfish-actions.pod:3792
23794 msgid "verbose"
23795 msgstr ""
23796
23797 # type: verbatim
23798 #: ../fish/guestfish-actions.pod:3794
23799 #, no-wrap
23800 msgid ""
23801 " set-verbose true|false\n"
23802 "\n"
23803 msgstr ""
23804
23805 # type: =head2
23806 #: ../fish/guestfish-actions.pod:3801
23807 msgid "setcon"
23808 msgstr ""
23809
23810 # type: verbatim
23811 #: ../fish/guestfish-actions.pod:3803
23812 #, no-wrap
23813 msgid ""
23814 " setcon context\n"
23815 "\n"
23816 msgstr ""
23817
23818 # type: =head2
23819 #: ../fish/guestfish-actions.pod:3810
23820 msgid "setxattr"
23821 msgstr ""
23822
23823 # type: verbatim
23824 #: ../fish/guestfish-actions.pod:3812
23825 #, no-wrap
23826 msgid ""
23827 " setxattr xattr val vallen path\n"
23828 "\n"
23829 msgstr ""
23830
23831 # type: textblock
23832 #: ../fish/guestfish-actions.pod:3818
23833 msgid "See also: L</lsetxattr>, L<attr(5)>."
23834 msgstr ""
23835
23836 # type: =head2
23837 #: ../fish/guestfish-actions.pod:3820
23838 msgid "sfdisk"
23839 msgstr ""
23840
23841 # type: verbatim
23842 #: ../fish/guestfish-actions.pod:3822
23843 #, no-wrap
23844 msgid ""
23845 " sfdisk device cyls heads sectors 'lines ...'\n"
23846 "\n"
23847 msgstr ""
23848
23849 # type: textblock
23850 #: ../fish/guestfish-actions.pod:3844
23851 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23852 msgstr ""
23853
23854 # type: =head2
23855 #: ../fish/guestfish-actions.pod:3850
23856 msgid "sfdiskM"
23857 msgstr ""
23858
23859 # type: verbatim
23860 #: ../fish/guestfish-actions.pod:3852
23861 #, no-wrap
23862 msgid ""
23863 " sfdiskM device 'lines ...'\n"
23864 "\n"
23865 msgstr ""
23866
23867 # type: textblock
23868 #: ../fish/guestfish-actions.pod:3854
23869 msgid ""
23870 "This is a simplified interface to the L</sfdisk> command, where partition "
23871 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23872 "you don't need to specify the cyls, heads and sectors parameters which were "
23873 "rarely if ever used anyway."
23874 msgstr ""
23875
23876 # type: textblock
23877 #: ../fish/guestfish-actions.pod:3860
23878 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23879 msgstr ""
23880
23881 # type: =head2
23882 #: ../fish/guestfish-actions.pod:3866
23883 msgid "sfdisk-N"
23884 msgstr ""
23885
23886 # type: verbatim
23887 #: ../fish/guestfish-actions.pod:3868
23888 #, no-wrap
23889 msgid ""
23890 " sfdisk-N device partnum cyls heads sectors line\n"
23891 "\n"
23892 msgstr ""
23893
23894 # type: textblock
23895 #: ../fish/guestfish-actions.pod:3873
23896 msgid ""
23897 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23898 "cyls/heads/sectors parameters."
23899 msgstr ""
23900
23901 # type: textblock
23902 #: ../fish/guestfish-actions.pod:3876
23903 msgid "See also: L</part-add>"
23904 msgstr ""
23905
23906 # type: =head2
23907 #: ../fish/guestfish-actions.pod:3881
23908 msgid "sfdisk-disk-geometry"
23909 msgstr ""
23910
23911 # type: verbatim
23912 #: ../fish/guestfish-actions.pod:3883
23913 #, no-wrap
23914 msgid ""
23915 " sfdisk-disk-geometry device\n"
23916 "\n"
23917 msgstr ""
23918
23919 # type: textblock
23920 #: ../fish/guestfish-actions.pod:3885
23921 msgid ""
23922 "This displays the disk geometry of C<device> read from the partition table.  "
23923 "Especially in the case where the underlying block device has been resized, "
23924 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23925 "kernel-geometry>)."
23926 msgstr ""
23927
23928 # type: =head2
23929 #: ../fish/guestfish-actions.pod:3893
23930 msgid "sfdisk-kernel-geometry"
23931 msgstr ""
23932
23933 # type: verbatim
23934 #: ../fish/guestfish-actions.pod:3895
23935 #, no-wrap
23936 msgid ""
23937 " sfdisk-kernel-geometry device\n"
23938 "\n"
23939 msgstr ""
23940
23941 # type: =head2
23942 #: ../fish/guestfish-actions.pod:3902
23943 msgid "sfdisk-l"
23944 msgstr ""
23945
23946 # type: verbatim
23947 #: ../fish/guestfish-actions.pod:3904
23948 #, no-wrap
23949 msgid ""
23950 " sfdisk-l device\n"
23951 "\n"
23952 msgstr ""
23953
23954 # type: textblock
23955 #: ../fish/guestfish-actions.pod:3910
23956 msgid "See also: L</part-list>"
23957 msgstr ""
23958
23959 # type: =head2
23960 #: ../fish/guestfish-actions.pod:3912
23961 msgid "sh"
23962 msgstr ""
23963
23964 # type: verbatim
23965 #: ../fish/guestfish-actions.pod:3914
23966 #, no-wrap
23967 msgid ""
23968 " sh command\n"
23969 "\n"
23970 msgstr ""
23971
23972 # type: textblock
23973 #: ../fish/guestfish-actions.pod:3919
23974 msgid "This is like L</command>, but passes the command to:"
23975 msgstr ""
23976
23977 # type: textblock
23978 #: ../fish/guestfish-actions.pod:3927
23979 msgid "All the provisos about L</command> apply to this call."
23980 msgstr ""
23981
23982 # type: =head2
23983 #: ../fish/guestfish-actions.pod:3929
23984 msgid "sh-lines"
23985 msgstr ""
23986
23987 # type: verbatim
23988 #: ../fish/guestfish-actions.pod:3931
23989 #, no-wrap
23990 msgid ""
23991 " sh-lines command\n"
23992 "\n"
23993 msgstr ""
23994
23995 # type: textblock
23996 #: ../fish/guestfish-actions.pod:3933
23997 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23998 msgstr ""
23999
24000 # type: textblock
24001 #: ../fish/guestfish-actions.pod:3936
24002 msgid "See also: L</command-lines>"
24003 msgstr ""
24004
24005 # type: =head2
24006 #: ../fish/guestfish-actions.pod:3938
24007 msgid "sleep"
24008 msgstr ""
24009
24010 # type: verbatim
24011 #: ../fish/guestfish-actions.pod:3940
24012 #, no-wrap
24013 msgid ""
24014 " sleep secs\n"
24015 "\n"
24016 msgstr ""
24017
24018 # type: =head2
24019 #: ../fish/guestfish-actions.pod:3944
24020 msgid "stat"
24021 msgstr ""
24022
24023 # type: verbatim
24024 #: ../fish/guestfish-actions.pod:3946
24025 #, no-wrap
24026 msgid ""
24027 " stat path\n"
24028 "\n"
24029 msgstr ""
24030
24031 # type: =head2
24032 #: ../fish/guestfish-actions.pod:3952
24033 msgid "statvfs"
24034 msgstr ""
24035
24036 # type: verbatim
24037 #: ../fish/guestfish-actions.pod:3954
24038 #, no-wrap
24039 msgid ""
24040 " statvfs path\n"
24041 "\n"
24042 msgstr ""
24043
24044 # type: =head2
24045 #: ../fish/guestfish-actions.pod:3962
24046 msgid "strings"
24047 msgstr ""
24048
24049 # type: verbatim
24050 #: ../fish/guestfish-actions.pod:3964
24051 #, no-wrap
24052 msgid ""
24053 " strings path\n"
24054 "\n"
24055 msgstr ""
24056
24057 # type: =head2
24058 #: ../fish/guestfish-actions.pod:3972
24059 msgid "strings-e"
24060 msgstr ""
24061
24062 # type: verbatim
24063 #: ../fish/guestfish-actions.pod:3974
24064 #, no-wrap
24065 msgid ""
24066 " strings-e encoding path\n"
24067 "\n"
24068 msgstr ""
24069
24070 # type: textblock
24071 #: ../fish/guestfish-actions.pod:3976
24072 msgid ""
24073 "This is like the L</strings> command, but allows you to specify the encoding "
24074 "of strings that are looked for in the source file C<path>."
24075 msgstr ""
24076
24077 # type: textblock
24078 #: ../fish/guestfish-actions.pod:3986
24079 msgid ""
24080 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24081 "ISO-8859-X (this is what L</strings> uses)."
24082 msgstr ""
24083
24084 # type: =head2
24085 #: ../fish/guestfish-actions.pod:4018
24086 msgid "swapoff-device"
24087 msgstr ""
24088
24089 # type: verbatim
24090 #: ../fish/guestfish-actions.pod:4020
24091 #, no-wrap
24092 msgid ""
24093 " swapoff-device device\n"
24094 "\n"
24095 msgstr ""
24096
24097 # type: textblock
24098 #: ../fish/guestfish-actions.pod:4022
24099 msgid ""
24100 "This command disables the libguestfs appliance swap device or partition "
24101 "named C<device>.  See L</swapon-device>."
24102 msgstr ""
24103
24104 # type: =head2
24105 #: ../fish/guestfish-actions.pod:4026
24106 msgid "swapoff-file"
24107 msgstr ""
24108
24109 # type: verbatim
24110 #: ../fish/guestfish-actions.pod:4028
24111 #, no-wrap
24112 msgid ""
24113 " swapoff-file file\n"
24114 "\n"
24115 msgstr ""
24116
24117 # type: =head2
24118 #: ../fish/guestfish-actions.pod:4032
24119 msgid "swapoff-label"
24120 msgstr ""
24121
24122 # type: verbatim
24123 #: ../fish/guestfish-actions.pod:4034
24124 #, no-wrap
24125 msgid ""
24126 " swapoff-label label\n"
24127 "\n"
24128 msgstr ""
24129
24130 # type: =head2
24131 #: ../fish/guestfish-actions.pod:4039
24132 msgid "swapoff-uuid"
24133 msgstr ""
24134
24135 # type: verbatim
24136 #: ../fish/guestfish-actions.pod:4041
24137 #, no-wrap
24138 msgid ""
24139 " swapoff-uuid uuid\n"
24140 "\n"
24141 msgstr ""
24142
24143 # type: =head2
24144 #: ../fish/guestfish-actions.pod:4046
24145 msgid "swapon-device"
24146 msgstr ""
24147
24148 # type: verbatim
24149 #: ../fish/guestfish-actions.pod:4048
24150 #, no-wrap
24151 msgid ""
24152 " swapon-device device\n"
24153 "\n"
24154 msgstr ""
24155
24156 # type: textblock
24157 #: ../fish/guestfish-actions.pod:4050
24158 msgid ""
24159 "This command enables the libguestfs appliance to use the swap device or "
24160 "partition named C<device>.  The increased memory is made available for all "
24161 "commands, for example those run using L</command> or L</sh>."
24162 msgstr ""
24163
24164 # type: =head2
24165 #: ../fish/guestfish-actions.pod:4062
24166 msgid "swapon-file"
24167 msgstr ""
24168
24169 # type: verbatim
24170 #: ../fish/guestfish-actions.pod:4064
24171 #, no-wrap
24172 msgid ""
24173 " swapon-file file\n"
24174 "\n"
24175 msgstr ""
24176
24177 # type: textblock
24178 #: ../fish/guestfish-actions.pod:4066
24179 msgid ""
24180 "This command enables swap to a file.  See L</swapon-device> for other notes."
24181 msgstr ""
24182
24183 # type: =head2
24184 #: ../fish/guestfish-actions.pod:4069
24185 msgid "swapon-label"
24186 msgstr ""
24187
24188 # type: verbatim
24189 #: ../fish/guestfish-actions.pod:4071
24190 #, no-wrap
24191 msgid ""
24192 " swapon-label label\n"
24193 "\n"
24194 msgstr ""
24195
24196 # type: textblock
24197 #: ../fish/guestfish-actions.pod:4073
24198 msgid ""
24199 "This command enables swap to a labeled swap partition.  See L</swapon-"
24200 "device> for other notes."
24201 msgstr ""
24202
24203 # type: =head2
24204 #: ../fish/guestfish-actions.pod:4076
24205 msgid "swapon-uuid"
24206 msgstr ""
24207
24208 # type: verbatim
24209 #: ../fish/guestfish-actions.pod:4078
24210 #, no-wrap
24211 msgid ""
24212 " swapon-uuid uuid\n"
24213 "\n"
24214 msgstr ""
24215
24216 # type: textblock
24217 #: ../fish/guestfish-actions.pod:4080
24218 msgid ""
24219 "This command enables swap to a swap partition with the given UUID.  See L</"
24220 "swapon-device> for other notes."
24221 msgstr ""
24222
24223 # type: =head2
24224 #: ../fish/guestfish-actions.pod:4083
24225 msgid "sync"
24226 msgstr ""
24227
24228 # type: verbatim
24229 #: ../fish/guestfish-actions.pod:4085
24230 #, no-wrap
24231 msgid ""
24232 " sync\n"
24233 "\n"
24234 msgstr ""
24235
24236 # type: =head2
24237 #: ../fish/guestfish-actions.pod:4093
24238 msgid "tail"
24239 msgstr ""
24240
24241 # type: verbatim
24242 #: ../fish/guestfish-actions.pod:4095
24243 #, no-wrap
24244 msgid ""
24245 " tail path\n"
24246 "\n"
24247 msgstr ""
24248
24249 # type: =head2
24250 #: ../fish/guestfish-actions.pod:4103
24251 msgid "tail-n"
24252 msgstr ""
24253
24254 # type: verbatim
24255 #: ../fish/guestfish-actions.pod:4105
24256 #, no-wrap
24257 msgid ""
24258 " tail-n nrlines path\n"
24259 "\n"
24260 msgstr ""
24261
24262 # type: =head2
24263 #: ../fish/guestfish-actions.pod:4118
24264 msgid "tar-in"
24265 msgstr ""
24266
24267 # type: verbatim
24268 #: ../fish/guestfish-actions.pod:4120
24269 #, no-wrap
24270 msgid ""
24271 " tar-in (tarfile|-) directory\n"
24272 "\n"
24273 msgstr ""
24274
24275 # type: textblock
24276 #: ../fish/guestfish-actions.pod:4125
24277 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24278 msgstr ""
24279
24280 # type: =head2
24281 #: ../fish/guestfish-actions.pod:4130
24282 msgid "tar-out"
24283 msgstr ""
24284
24285 # type: verbatim
24286 #: ../fish/guestfish-actions.pod:4132
24287 #, no-wrap
24288 msgid ""
24289 " tar-out directory (tarfile|-)\n"
24290 "\n"
24291 msgstr ""
24292
24293 # type: textblock
24294 #: ../fish/guestfish-actions.pod:4137
24295 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24296 msgstr ""
24297
24298 # type: =head2
24299 #: ../fish/guestfish-actions.pod:4142
24300 msgid "tgz-in"
24301 msgstr ""
24302
24303 # type: verbatim
24304 #: ../fish/guestfish-actions.pod:4144
24305 #, no-wrap
24306 msgid ""
24307 " tgz-in (tarball|-) directory\n"
24308 "\n"
24309 msgstr ""
24310
24311 # type: textblock
24312 #: ../fish/guestfish-actions.pod:4149
24313 msgid "To upload an uncompressed tarball, use L</tar-in>."
24314 msgstr ""
24315
24316 # type: =head2
24317 #: ../fish/guestfish-actions.pod:4153
24318 msgid "tgz-out"
24319 msgstr ""
24320
24321 # type: verbatim
24322 #: ../fish/guestfish-actions.pod:4155
24323 #, no-wrap
24324 msgid ""
24325 " tgz-out directory (tarball|-)\n"
24326 "\n"
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../fish/guestfish-actions.pod:4160
24331 msgid "To download an uncompressed tarball, use L</tar-out>."
24332 msgstr ""
24333
24334 # type: =head2
24335 #: ../fish/guestfish-actions.pod:4164
24336 msgid "touch"
24337 msgstr ""
24338
24339 # type: verbatim
24340 #: ../fish/guestfish-actions.pod:4166
24341 #, no-wrap
24342 msgid ""
24343 " touch path\n"
24344 "\n"
24345 msgstr ""
24346
24347 # type: =head2
24348 #: ../fish/guestfish-actions.pod:4175
24349 msgid "truncate"
24350 msgstr ""
24351
24352 # type: verbatim
24353 #: ../fish/guestfish-actions.pod:4177
24354 #, no-wrap
24355 msgid ""
24356 " truncate path\n"
24357 "\n"
24358 msgstr ""
24359
24360 # type: =head2
24361 #: ../fish/guestfish-actions.pod:4182
24362 msgid "truncate-size"
24363 msgstr ""
24364
24365 # type: verbatim
24366 #: ../fish/guestfish-actions.pod:4184
24367 #, no-wrap
24368 msgid ""
24369 " truncate-size path size\n"
24370 "\n"
24371 msgstr ""
24372
24373 # type: textblock
24374 #: ../fish/guestfish-actions.pod:4189
24375 msgid ""
24376 "If the current file size is less than C<size> then the file is extended to "
24377 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24378 "blocks are not allocated for the file until you write to it).  To create a "
24379 "non-sparse file of zeroes, use L</fallocate64> instead."
24380 msgstr ""
24381
24382 # type: =head2
24383 #: ../fish/guestfish-actions.pod:4195
24384 msgid "tune2fs-l"
24385 msgstr ""
24386
24387 # type: verbatim
24388 #: ../fish/guestfish-actions.pod:4197
24389 #, no-wrap
24390 msgid ""
24391 " tune2fs-l device\n"
24392 "\n"
24393 msgstr ""
24394
24395 # type: =head2
24396 #: ../fish/guestfish-actions.pod:4207
24397 msgid "txz-in"
24398 msgstr ""
24399
24400 # type: verbatim
24401 #: ../fish/guestfish-actions.pod:4209
24402 #, no-wrap
24403 msgid ""
24404 " txz-in (tarball|-) directory\n"
24405 "\n"
24406 msgstr ""
24407
24408 # type: =head2
24409 #: ../fish/guestfish-actions.pod:4216
24410 msgid "txz-out"
24411 msgstr ""
24412
24413 # type: verbatim
24414 #: ../fish/guestfish-actions.pod:4218
24415 #, no-wrap
24416 msgid ""
24417 " txz-out directory (tarball|-)\n"
24418 "\n"
24419 msgstr ""
24420
24421 # type: =head2
24422 #: ../fish/guestfish-actions.pod:4225
24423 msgid "umask"
24424 msgstr ""
24425
24426 # type: verbatim
24427 #: ../fish/guestfish-actions.pod:4227
24428 #, no-wrap
24429 msgid ""
24430 " umask mask\n"
24431 "\n"
24432 msgstr ""
24433
24434 # type: textblock
24435 #: ../fish/guestfish-actions.pod:4241
24436 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24437 msgstr ""
24438
24439 # type: =head2
24440 #: ../fish/guestfish-actions.pod:4246
24441 msgid "umount"
24442 msgstr ""
24443
24444 # type: =head2
24445 #: ../fish/guestfish-actions.pod:4248
24446 msgid "unmount"
24447 msgstr ""
24448
24449 # type: verbatim
24450 #: ../fish/guestfish-actions.pod:4250
24451 #, no-wrap
24452 msgid ""
24453 " umount pathordevice\n"
24454 "\n"
24455 msgstr ""
24456
24457 # type: =head2
24458 #: ../fish/guestfish-actions.pod:4256
24459 msgid "umount-all"
24460 msgstr ""
24461
24462 # type: =head2
24463 #: ../fish/guestfish-actions.pod:4258
24464 msgid "unmount-all"
24465 msgstr ""
24466
24467 # type: verbatim
24468 #: ../fish/guestfish-actions.pod:4260
24469 #, no-wrap
24470 msgid ""
24471 " umount-all\n"
24472 "\n"
24473 msgstr ""
24474
24475 # type: =head2
24476 #: ../fish/guestfish-actions.pod:4266
24477 msgid "upload"
24478 msgstr ""
24479
24480 # type: verbatim
24481 #: ../fish/guestfish-actions.pod:4268
24482 #, no-wrap
24483 msgid ""
24484 " upload (filename|-) remotefilename\n"
24485 "\n"
24486 msgstr ""
24487
24488 # type: textblock
24489 #: ../fish/guestfish-actions.pod:4275
24490 msgid "See also L</download>."
24491 msgstr ""
24492
24493 # type: =head2
24494 #: ../fish/guestfish-actions.pod:4279
24495 msgid "upload-offset"
24496 msgstr ""
24497
24498 # type: verbatim
24499 #: ../fish/guestfish-actions.pod:4281
24500 #, no-wrap
24501 msgid ""
24502 " upload-offset (filename|-) remotefilename offset\n"
24503 "\n"
24504 msgstr ""
24505
24506 # type: textblock
24507 #: ../fish/guestfish-actions.pod:4293
24508 msgid ""
24509 "Note that there is no limit on the amount of data that can be uploaded with "
24510 "this call, unlike with L</pwrite>, and this call always writes the full "
24511 "amount unless an error occurs."
24512 msgstr ""
24513
24514 # type: textblock
24515 #: ../fish/guestfish-actions.pod:4298
24516 msgid "See also L</upload>, L</pwrite>."
24517 msgstr ""
24518
24519 # type: =head2
24520 #: ../fish/guestfish-actions.pod:4302
24521 msgid "utimens"
24522 msgstr ""
24523
24524 # type: verbatim
24525 #: ../fish/guestfish-actions.pod:4304
24526 #, no-wrap
24527 msgid ""
24528 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24529 "\n"
24530 msgstr ""
24531
24532 # type: =head2
24533 #: ../fish/guestfish-actions.pod:4323
24534 msgid "version"
24535 msgstr ""
24536
24537 # type: verbatim
24538 #: ../fish/guestfish-actions.pod:4325
24539 #, no-wrap
24540 msgid ""
24541 " version\n"
24542 "\n"
24543 msgstr ""
24544
24545 # type: textblock
24546 #: ../fish/guestfish-actions.pod:4352
24547 msgid ""
24548 "I<Note:> Don't use this call to test for availability of features.  In "
24549 "enterprise distributions we backport features from later versions into "
24550 "earlier versions, making this an unreliable way to test for features.  Use "
24551 "L</available> instead."
24552 msgstr ""
24553
24554 # type: =head2
24555 #: ../fish/guestfish-actions.pod:4358
24556 msgid "vfs-label"
24557 msgstr ""
24558
24559 # type: verbatim
24560 #: ../fish/guestfish-actions.pod:4360
24561 #, no-wrap
24562 msgid ""
24563 " vfs-label device\n"
24564 "\n"
24565 msgstr ""
24566
24567 # type: textblock
24568 #: ../fish/guestfish-actions.pod:4367
24569 msgid "To find a filesystem from the label, use L</findfs-label>."
24570 msgstr ""
24571
24572 # type: =head2
24573 #: ../fish/guestfish-actions.pod:4369
24574 msgid "vfs-type"
24575 msgstr ""
24576
24577 # type: verbatim
24578 #: ../fish/guestfish-actions.pod:4371
24579 #, no-wrap
24580 msgid ""
24581 " vfs-type device\n"
24582 "\n"
24583 msgstr ""
24584
24585 # type: =head2
24586 #: ../fish/guestfish-actions.pod:4381
24587 msgid "vfs-uuid"
24588 msgstr ""
24589
24590 # type: verbatim
24591 #: ../fish/guestfish-actions.pod:4383
24592 #, no-wrap
24593 msgid ""
24594 " vfs-uuid device\n"
24595 "\n"
24596 msgstr ""
24597
24598 # type: textblock
24599 #: ../fish/guestfish-actions.pod:4390
24600 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24601 msgstr ""
24602
24603 # type: =head2
24604 #: ../fish/guestfish-actions.pod:4392
24605 msgid "vg-activate"
24606 msgstr ""
24607
24608 # type: verbatim
24609 #: ../fish/guestfish-actions.pod:4394
24610 #, no-wrap
24611 msgid ""
24612 " vg-activate true|false 'volgroups ...'\n"
24613 "\n"
24614 msgstr ""
24615
24616 # type: =head2
24617 #: ../fish/guestfish-actions.pod:4407
24618 msgid "vg-activate-all"
24619 msgstr ""
24620
24621 # type: verbatim
24622 #: ../fish/guestfish-actions.pod:4409
24623 #, no-wrap
24624 msgid ""
24625 " vg-activate-all true|false\n"
24626 "\n"
24627 msgstr ""
24628
24629 # type: =head2
24630 #: ../fish/guestfish-actions.pod:4419
24631 msgid "vgcreate"
24632 msgstr ""
24633
24634 # type: verbatim
24635 #: ../fish/guestfish-actions.pod:4421
24636 #, no-wrap
24637 msgid ""
24638 " vgcreate volgroup 'physvols ...'\n"
24639 "\n"
24640 msgstr ""
24641
24642 # type: =head2
24643 #: ../fish/guestfish-actions.pod:4426
24644 msgid "vglvuuids"
24645 msgstr ""
24646
24647 # type: verbatim
24648 #: ../fish/guestfish-actions.pod:4428
24649 #, no-wrap
24650 msgid ""
24651 " vglvuuids vgname\n"
24652 "\n"
24653 msgstr ""
24654
24655 # type: textblock
24656 #: ../fish/guestfish-actions.pod:4433
24657 msgid ""
24658 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24659 "logical volumes and volume groups."
24660 msgstr ""
24661
24662 # type: textblock
24663 #: ../fish/guestfish-actions.pod:4436
24664 msgid "See also L</vgpvuuids>."
24665 msgstr ""
24666
24667 # type: =head2
24668 #: ../fish/guestfish-actions.pod:4438
24669 msgid "vgpvuuids"
24670 msgstr ""
24671
24672 # type: verbatim
24673 #: ../fish/guestfish-actions.pod:4440
24674 #, no-wrap
24675 msgid ""
24676 " vgpvuuids vgname\n"
24677 "\n"
24678 msgstr ""
24679
24680 # type: textblock
24681 #: ../fish/guestfish-actions.pod:4445
24682 msgid ""
24683 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24684 "physical volumes and volume groups."
24685 msgstr ""
24686
24687 # type: textblock
24688 #: ../fish/guestfish-actions.pod:4448
24689 msgid "See also L</vglvuuids>."
24690 msgstr ""
24691
24692 # type: =head2
24693 #: ../fish/guestfish-actions.pod:4450
24694 msgid "vgremove"
24695 msgstr ""
24696
24697 # type: verbatim
24698 #: ../fish/guestfish-actions.pod:4452
24699 #, no-wrap
24700 msgid ""
24701 " vgremove vgname\n"
24702 "\n"
24703 msgstr ""
24704
24705 # type: =head2
24706 #: ../fish/guestfish-actions.pod:4459
24707 msgid "vgrename"
24708 msgstr ""
24709
24710 # type: verbatim
24711 #: ../fish/guestfish-actions.pod:4461
24712 #, no-wrap
24713 msgid ""
24714 " vgrename volgroup newvolgroup\n"
24715 "\n"
24716 msgstr ""
24717
24718 # type: =head2
24719 #: ../fish/guestfish-actions.pod:4465
24720 msgid "vgs"
24721 msgstr ""
24722
24723 # type: verbatim
24724 #: ../fish/guestfish-actions.pod:4467
24725 #, no-wrap
24726 msgid ""
24727 " vgs\n"
24728 "\n"
24729 msgstr ""
24730
24731 # type: textblock
24732 #: ../fish/guestfish-actions.pod:4475
24733 msgid "See also L</vgs-full>."
24734 msgstr ""
24735
24736 # type: =head2
24737 #: ../fish/guestfish-actions.pod:4477
24738 msgid "vgs-full"
24739 msgstr ""
24740
24741 # type: verbatim
24742 #: ../fish/guestfish-actions.pod:4479
24743 #, no-wrap
24744 msgid ""
24745 " vgs-full\n"
24746 "\n"
24747 msgstr ""
24748
24749 # type: =head2
24750 #: ../fish/guestfish-actions.pod:4484
24751 msgid "vgscan"
24752 msgstr ""
24753
24754 # type: verbatim
24755 #: ../fish/guestfish-actions.pod:4486
24756 #, no-wrap
24757 msgid ""
24758 " vgscan\n"
24759 "\n"
24760 msgstr ""
24761
24762 # type: =head2
24763 #: ../fish/guestfish-actions.pod:4491
24764 msgid "vguuid"
24765 msgstr ""
24766
24767 # type: verbatim
24768 #: ../fish/guestfish-actions.pod:4493
24769 #, no-wrap
24770 msgid ""
24771 " vguuid vgname\n"
24772 "\n"
24773 msgstr ""
24774
24775 # type: =head2
24776 #: ../fish/guestfish-actions.pod:4497
24777 msgid "wc-c"
24778 msgstr ""
24779
24780 # type: verbatim
24781 #: ../fish/guestfish-actions.pod:4499
24782 #, no-wrap
24783 msgid ""
24784 " wc-c path\n"
24785 "\n"
24786 msgstr ""
24787
24788 # type: =head2
24789 #: ../fish/guestfish-actions.pod:4504
24790 msgid "wc-l"
24791 msgstr ""
24792
24793 # type: verbatim
24794 #: ../fish/guestfish-actions.pod:4506
24795 #, no-wrap
24796 msgid ""
24797 " wc-l path\n"
24798 "\n"
24799 msgstr ""
24800
24801 # type: =head2
24802 #: ../fish/guestfish-actions.pod:4511
24803 msgid "wc-w"
24804 msgstr ""
24805
24806 # type: verbatim
24807 #: ../fish/guestfish-actions.pod:4513
24808 #, no-wrap
24809 msgid ""
24810 " wc-w path\n"
24811 "\n"
24812 msgstr ""
24813
24814 # type: =head2
24815 #: ../fish/guestfish-actions.pod:4518
24816 msgid "write"
24817 msgstr ""
24818
24819 # type: verbatim
24820 #: ../fish/guestfish-actions.pod:4520
24821 #, no-wrap
24822 msgid ""
24823 " write path content\n"
24824 "\n"
24825 msgstr ""
24826
24827 # type: =head2
24828 #: ../fish/guestfish-actions.pod:4528
24829 msgid "write-file"
24830 msgstr ""
24831
24832 # type: verbatim
24833 #: ../fish/guestfish-actions.pod:4530
24834 #, no-wrap
24835 msgid ""
24836 " write-file path content size\n"
24837 "\n"
24838 msgstr ""
24839
24840 # type: =head2
24841 #: ../fish/guestfish-actions.pod:4553
24842 msgid "zegrep"
24843 msgstr ""
24844
24845 # type: verbatim
24846 #: ../fish/guestfish-actions.pod:4555
24847 #, no-wrap
24848 msgid ""
24849 " zegrep regex path\n"
24850 "\n"
24851 msgstr ""
24852
24853 # type: =head2
24854 #: ../fish/guestfish-actions.pod:4563
24855 msgid "zegrepi"
24856 msgstr ""
24857
24858 # type: verbatim
24859 #: ../fish/guestfish-actions.pod:4565
24860 #, no-wrap
24861 msgid ""
24862 " zegrepi regex path\n"
24863 "\n"
24864 msgstr ""
24865
24866 # type: =head2
24867 #: ../fish/guestfish-actions.pod:4573
24868 msgid "zero"
24869 msgstr ""
24870
24871 # type: verbatim
24872 #: ../fish/guestfish-actions.pod:4575
24873 #, no-wrap
24874 msgid ""
24875 " zero device\n"
24876 "\n"
24877 msgstr ""
24878
24879 # type: textblock
24880 #: ../fish/guestfish-actions.pod:4583
24881 msgid "See also: L</zero-device>, L</scrub-device>."
24882 msgstr ""
24883
24884 # type: =head2
24885 #: ../fish/guestfish-actions.pod:4585
24886 msgid "zero-device"
24887 msgstr ""
24888
24889 # type: verbatim
24890 #: ../fish/guestfish-actions.pod:4587
24891 #, no-wrap
24892 msgid ""
24893 " zero-device device\n"
24894 "\n"
24895 msgstr ""
24896
24897 # type: textblock
24898 #: ../fish/guestfish-actions.pod:4589
24899 msgid ""
24900 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24901 "which just zeroes the first few blocks of a device."
24902 msgstr ""
24903
24904 # type: =head2
24905 #: ../fish/guestfish-actions.pod:4596
24906 msgid "zerofree"
24907 msgstr ""
24908
24909 # type: verbatim
24910 #: ../fish/guestfish-actions.pod:4598
24911 #, no-wrap
24912 msgid ""
24913 " zerofree device\n"
24914 "\n"
24915 msgstr ""
24916
24917 # type: =head2
24918 #: ../fish/guestfish-actions.pod:4611
24919 msgid "zfgrep"
24920 msgstr ""
24921
24922 # type: verbatim
24923 #: ../fish/guestfish-actions.pod:4613
24924 #, no-wrap
24925 msgid ""
24926 " zfgrep pattern path\n"
24927 "\n"
24928 msgstr ""
24929
24930 # type: =head2
24931 #: ../fish/guestfish-actions.pod:4621
24932 msgid "zfgrepi"
24933 msgstr ""
24934
24935 # type: verbatim
24936 #: ../fish/guestfish-actions.pod:4623
24937 #, no-wrap
24938 msgid ""
24939 " zfgrepi pattern path\n"
24940 "\n"
24941 msgstr ""
24942
24943 # type: =head2
24944 #: ../fish/guestfish-actions.pod:4631
24945 msgid "zfile"
24946 msgstr ""
24947
24948 # type: verbatim
24949 #: ../fish/guestfish-actions.pod:4633
24950 #, no-wrap
24951 msgid ""
24952 " zfile meth path\n"
24953 "\n"
24954 msgstr ""
24955
24956 # type: textblock
24957 #: ../fish/guestfish-actions.pod:4640
24958 msgid ""
24959 "Since 1.0.63, use L</file> instead which can now process compressed files."
24960 msgstr ""
24961
24962 # type: =head2
24963 #: ../fish/guestfish-actions.pod:4650
24964 msgid "zgrep"
24965 msgstr ""
24966
24967 # type: verbatim
24968 #: ../fish/guestfish-actions.pod:4652
24969 #, no-wrap
24970 msgid ""
24971 " zgrep regex path\n"
24972 "\n"
24973 msgstr ""
24974
24975 # type: =head2
24976 #: ../fish/guestfish-actions.pod:4660
24977 msgid "zgrepi"
24978 msgstr ""
24979
24980 # type: verbatim
24981 #: ../fish/guestfish-actions.pod:4662
24982 #, no-wrap
24983 msgid ""
24984 " zgrepi regex path\n"
24985 "\n"
24986 msgstr ""
24987
24988 # type: =head2
24989 #: ../fish/guestfish-commands.pod:1
24990 msgid "alloc"
24991 msgstr ""
24992
24993 # type: =head2
24994 #: ../fish/guestfish-commands.pod:3
24995 msgid "allocate"
24996 msgstr ""
24997
24998 # type: verbatim
24999 #: ../fish/guestfish-commands.pod:5
25000 #, no-wrap
25001 msgid ""
25002 " alloc filename size\n"
25003 "\n"
25004 msgstr ""
25005
25006 # type: textblock
25007 #: ../fish/guestfish-commands.pod:7
25008 msgid ""
25009 "This creates an empty (zeroed) file of the given size, and then adds so it "
25010 "can be further examined."
25011 msgstr ""
25012
25013 # type: textblock
25014 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25015 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25016 msgstr ""
25017
25018 # type: textblock
25019 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25020 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25021 msgstr ""
25022
25023 # type: textblock
25024 #: ../fish/guestfish-commands.pod:14
25025 msgid ""
25026 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25027 "image, see L</PREPARED DISK IMAGES>."
25028 msgstr ""
25029
25030 # type: =head2
25031 #: ../fish/guestfish-commands.pod:17
25032 msgid "copy-in"
25033 msgstr ""
25034
25035 # type: verbatim
25036 #: ../fish/guestfish-commands.pod:19
25037 #, no-wrap
25038 msgid ""
25039 " copy-in local [local ...] /remotedir\n"
25040 "\n"
25041 msgstr ""
25042
25043 # type: textblock
25044 #: ../fish/guestfish-commands.pod:21
25045 msgid ""
25046 "C<copy-in> copies local files or directories recursively into the disk "
25047 "image, placing them in the directory called C</remotedir> (which must "
25048 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25049 "other commands as necessary."
25050 msgstr ""
25051
25052 # type: textblock
25053 #: ../fish/guestfish-commands.pod:26
25054 msgid ""
25055 "Multiple local files and directories can be specified, but the last "
25056 "parameter must always be a remote directory.  Wildcards cannot be used."
25057 msgstr ""
25058
25059 # type: =head2
25060 #: ../fish/guestfish-commands.pod:30
25061 msgid "copy-out"
25062 msgstr ""
25063
25064 # type: verbatim
25065 #: ../fish/guestfish-commands.pod:32
25066 #, no-wrap
25067 msgid ""
25068 " copy-out remote [remote ...] localdir\n"
25069 "\n"
25070 msgstr ""
25071
25072 # type: textblock
25073 #: ../fish/guestfish-commands.pod:34
25074 msgid ""
25075 "C<copy-out> copies remote files or directories recursively out of the disk "
25076 "image, placing them on the host disk in a local directory called C<localdir> "
25077 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25078 "download>, L</tar-out> and other commands as necessary."
25079 msgstr ""
25080
25081 # type: textblock
25082 #: ../fish/guestfish-commands.pod:40
25083 msgid ""
25084 "Multiple remote files and directories can be specified, but the last "
25085 "parameter must always be a local directory.  To download to the current "
25086 "directory, use C<.> as in:"
25087 msgstr ""
25088
25089 # type: verbatim
25090 #: ../fish/guestfish-commands.pod:44
25091 #, no-wrap
25092 msgid ""
25093 " copy-out /home .\n"
25094 "\n"
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../fish/guestfish-commands.pod:46
25099 msgid ""
25100 "Wildcards cannot be used in the ordinary command, but you can use them with "
25101 "the help of L</glob> like this:"
25102 msgstr ""
25103
25104 # type: verbatim
25105 #: ../fish/guestfish-commands.pod:49
25106 #, no-wrap
25107 msgid ""
25108 " glob copy-out /home/* .\n"
25109 "\n"
25110 msgstr ""
25111
25112 # type: =head2
25113 #: ../fish/guestfish-commands.pod:51
25114 msgid "echo"
25115 msgstr ""
25116
25117 # type: verbatim
25118 #: ../fish/guestfish-commands.pod:53
25119 #, no-wrap
25120 msgid ""
25121 " echo [params ...]\n"
25122 "\n"
25123 msgstr ""
25124
25125 # type: textblock
25126 #: ../fish/guestfish-commands.pod:55
25127 msgid "This echos the parameters to the terminal."
25128 msgstr ""
25129
25130 # type: =head2
25131 #: ../fish/guestfish-commands.pod:57
25132 msgid "edit"
25133 msgstr ""
25134
25135 # type: =head2
25136 #: ../fish/guestfish-commands.pod:59
25137 msgid "vi"
25138 msgstr ""
25139
25140 # type: =head2
25141 #: ../fish/guestfish-commands.pod:61
25142 msgid "emacs"
25143 msgstr ""
25144
25145 # type: verbatim
25146 #: ../fish/guestfish-commands.pod:63
25147 #, no-wrap
25148 msgid ""
25149 " edit filename\n"
25150 "\n"
25151 msgstr ""
25152
25153 # type: textblock
25154 #: ../fish/guestfish-commands.pod:65
25155 msgid ""
25156 "This is used to edit a file.  It downloads the file, edits it locally using "
25157 "your editor, then uploads the result."
25158 msgstr ""
25159
25160 # type: textblock
25161 #: ../fish/guestfish-commands.pod:68
25162 msgid ""
25163 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25164 "or C<emacs> you will get those corresponding editors."
25165 msgstr ""
25166
25167 # type: =head2
25168 #: ../fish/guestfish-commands.pod:72
25169 msgid "glob"
25170 msgstr ""
25171
25172 # type: verbatim
25173 #: ../fish/guestfish-commands.pod:74
25174 #, no-wrap
25175 msgid ""
25176 " glob command args...\n"
25177 "\n"
25178 msgstr ""
25179
25180 # type: textblock
25181 #: ../fish/guestfish-commands.pod:76
25182 msgid ""
25183 "Expand wildcards in any paths in the args list, and run C<command> "
25184 "repeatedly on each matching path."
25185 msgstr ""
25186
25187 # type: textblock
25188 #: ../fish/guestfish-commands.pod:79
25189 msgid "See L</WILDCARDS AND GLOBBING>."
25190 msgstr ""
25191
25192 # type: =head2
25193 #: ../fish/guestfish-commands.pod:81
25194 msgid "hexedit"
25195 msgstr ""
25196
25197 # type: verbatim
25198 #: ../fish/guestfish-commands.pod:83
25199 #, no-wrap
25200 msgid ""
25201 " hexedit <filename|device>\n"
25202 " hexedit <filename|device> <max>\n"
25203 " hexedit <filename|device> <start> <max>\n"
25204 "\n"
25205 msgstr ""
25206
25207 # type: textblock
25208 #: ../fish/guestfish-commands.pod:87
25209 msgid ""
25210 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25211 "device."
25212 msgstr ""
25213
25214 # type: textblock
25215 #: ../fish/guestfish-commands.pod:90
25216 msgid ""
25217 "This command works by downloading potentially the whole file or device, "
25218 "editing it locally, then uploading it.  If the file or device is large, you "
25219 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25220 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25221 "usual modifiers allowed such as C<1M> (1 megabyte)."
25222 msgstr ""
25223
25224 # type: textblock
25225 #: ../fish/guestfish-commands.pod:97
25226 msgid "For example to edit the first few sectors of a disk you might do:"
25227 msgstr ""
25228
25229 # type: verbatim
25230 #: ../fish/guestfish-commands.pod:100
25231 #, no-wrap
25232 msgid ""
25233 " hexedit /dev/sda 1M\n"
25234 "\n"
25235 msgstr ""
25236
25237 # type: textblock
25238 #: ../fish/guestfish-commands.pod:102
25239 msgid ""
25240 "which would allow you to edit anywhere within the first megabyte of the disk."
25241 msgstr ""
25242
25243 # type: textblock
25244 #: ../fish/guestfish-commands.pod:105
25245 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25246 msgstr ""
25247
25248 # type: verbatim
25249 #: ../fish/guestfish-commands.pod:107
25250 #, no-wrap
25251 msgid ""
25252 " hexedit /dev/sda1 0x400 0x400\n"
25253 "\n"
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../fish/guestfish-commands.pod:109
25258 msgid "(assuming the superblock is in the standard location)."
25259 msgstr ""
25260
25261 # type: textblock
25262 #: ../fish/guestfish-commands.pod:111
25263 msgid ""
25264 "This command requires the external L<hexedit(1)> program.  You can specify "
25265 "another program to use by setting the C<HEXEDITOR> environment variable."
25266 msgstr ""
25267
25268 # type: textblock
25269 #: ../fish/guestfish-commands.pod:115
25270 msgid "See also L</hexdump>."
25271 msgstr ""
25272
25273 # type: =head2
25274 #: ../fish/guestfish-commands.pod:117
25275 msgid "lcd"
25276 msgstr ""
25277
25278 # type: verbatim
25279 #: ../fish/guestfish-commands.pod:119
25280 #, no-wrap
25281 msgid ""
25282 " lcd directory\n"
25283 "\n"
25284 msgstr ""
25285
25286 # type: textblock
25287 #: ../fish/guestfish-commands.pod:121
25288 msgid ""
25289 "Change the local directory, ie. the current directory of guestfish itself."
25290 msgstr ""
25291
25292 # type: textblock
25293 #: ../fish/guestfish-commands.pod:124
25294 msgid "Note that C<!cd> won't do what you might expect."
25295 msgstr ""
25296
25297 # type: =head2
25298 #: ../fish/guestfish-commands.pod:126
25299 msgid "man"
25300 msgstr ""
25301
25302 # type: =head2
25303 #: ../fish/guestfish-commands.pod:128
25304 msgid "manual"
25305 msgstr ""
25306
25307 # type: verbatim
25308 #: ../fish/guestfish-commands.pod:130
25309 #, no-wrap
25310 msgid ""
25311 "  man\n"
25312 "\n"
25313 msgstr ""
25314
25315 # type: textblock
25316 #: ../fish/guestfish-commands.pod:132
25317 msgid "Opens the manual page for guestfish."
25318 msgstr ""
25319
25320 # type: =head2
25321 #: ../fish/guestfish-commands.pod:134
25322 msgid "more"
25323 msgstr ""
25324
25325 # type: =head2
25326 #: ../fish/guestfish-commands.pod:136
25327 msgid "less"
25328 msgstr ""
25329
25330 # type: verbatim
25331 #: ../fish/guestfish-commands.pod:138
25332 #, no-wrap
25333 msgid ""
25334 " more filename\n"
25335 "\n"
25336 msgstr ""
25337
25338 # type: verbatim
25339 #: ../fish/guestfish-commands.pod:140
25340 #, no-wrap
25341 msgid ""
25342 " less filename\n"
25343 "\n"
25344 msgstr ""
25345
25346 # type: textblock
25347 #: ../fish/guestfish-commands.pod:142
25348 msgid "This is used to view a file."
25349 msgstr ""
25350
25351 # type: textblock
25352 #: ../fish/guestfish-commands.pod:144
25353 msgid ""
25354 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25355 "C<less> you will get the C<less> command specifically."
25356 msgstr ""
25357
25358 # type: =head2
25359 #: ../fish/guestfish-commands.pod:147
25360 msgid "reopen"
25361 msgstr ""
25362
25363 # type: verbatim
25364 #: ../fish/guestfish-commands.pod:149
25365 #, no-wrap
25366 msgid ""
25367 "  reopen\n"
25368 "\n"
25369 msgstr ""
25370
25371 # type: textblock
25372 #: ../fish/guestfish-commands.pod:151
25373 msgid ""
25374 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25375 "normally, because the handle is closed properly when guestfish exits.  "
25376 "However this is occasionally useful for testing."
25377 msgstr ""
25378
25379 # type: =head2
25380 #: ../fish/guestfish-commands.pod:155
25381 msgid "sparse"
25382 msgstr ""
25383
25384 # type: verbatim
25385 #: ../fish/guestfish-commands.pod:157
25386 #, no-wrap
25387 msgid ""
25388 " sparse filename size\n"
25389 "\n"
25390 msgstr ""
25391
25392 # type: textblock
25393 #: ../fish/guestfish-commands.pod:159
25394 msgid ""
25395 "This creates an empty sparse file of the given size, and then adds so it can "
25396 "be further examined."
25397 msgstr ""
25398
25399 # type: textblock
25400 #: ../fish/guestfish-commands.pod:162
25401 msgid ""
25402 "In all respects it works the same as the L</alloc> command, except that the "
25403 "image file is allocated sparsely, which means that disk blocks are not "
25404 "assigned to the file until they are needed.  Sparse disk files only use "
25405 "space when written to, but they are slower and there is a danger you could "
25406 "run out of real disk space during a write operation."
25407 msgstr ""
25408
25409 # type: =head2
25410 #: ../fish/guestfish-commands.pod:172
25411 msgid "supported"
25412 msgstr ""
25413
25414 # type: verbatim
25415 #: ../fish/guestfish-commands.pod:174
25416 #, no-wrap
25417 msgid ""
25418 " supported\n"
25419 "\n"
25420 msgstr ""
25421
25422 # type: textblock
25423 #: ../fish/guestfish-commands.pod:176
25424 msgid ""
25425 "This command returns a list of the optional groups known to the daemon, and "
25426 "indicates which ones are supported by this build of the libguestfs appliance."
25427 msgstr ""
25428
25429 # type: textblock
25430 #: ../fish/guestfish-commands.pod:180
25431 msgid "See also L<guestfs(3)/AVAILABILITY>."
25432 msgstr ""
25433
25434 # type: =head2
25435 #: ../fish/guestfish-commands.pod:182
25436 msgid "time"
25437 msgstr ""
25438
25439 # type: verbatim
25440 #: ../fish/guestfish-commands.pod:184
25441 #, no-wrap
25442 msgid ""
25443 " time command args...\n"
25444 "\n"
25445 msgstr ""
25446
25447 # type: textblock
25448 #: ../fish/guestfish-commands.pod:186
25449 msgid ""
25450 "Run the command as usual, but print the elapsed time afterwards.  This can "
25451 "be useful for benchmarking operations."
25452 msgstr ""
25453
25454 # type: textblock
25455 #: ../test-tool/libguestfs-test-tool.pod:5
25456 msgid "libguestfs-test-tool - End user tests for libguestfs"
25457 msgstr ""
25458
25459 # type: verbatim
25460 #: ../test-tool/libguestfs-test-tool.pod:9
25461 #, no-wrap
25462 msgid ""
25463 " libguestfs-test-tool [--options]\n"
25464 "\n"
25465 msgstr ""
25466
25467 # type: textblock
25468 #: ../test-tool/libguestfs-test-tool.pod:13
25469 msgid ""
25470 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25471 "and developers, to allow them to check basic libguestfs functionality is "
25472 "working.  This is needed because libguestfs occasionally breaks for reasons "
25473 "beyond our control: usually because of changes in the underlying qemu or "
25474 "kernel packages, or the host environment."
25475 msgstr ""
25476
25477 # type: textblock
25478 #: ../test-tool/libguestfs-test-tool.pod:20
25479 msgid "If you suspect a problem in libguestfs, then just run:"
25480 msgstr ""
25481
25482 # type: verbatim
25483 #: ../test-tool/libguestfs-test-tool.pod:22
25484 #, no-wrap
25485 msgid ""
25486 " libguestfs-test-tool\n"
25487 "\n"
25488 msgstr ""
25489
25490 # type: textblock
25491 #: ../test-tool/libguestfs-test-tool.pod:24
25492 msgid "It will print lots of diagnostic messages."
25493 msgstr ""
25494
25495 # type: textblock
25496 #: ../test-tool/libguestfs-test-tool.pod:26
25497 msgid "If it runs to completion successfully, you will see this near the end:"
25498 msgstr ""
25499
25500 # type: verbatim
25501 #: ../test-tool/libguestfs-test-tool.pod:28
25502 #, no-wrap
25503 msgid ""
25504 " ===== TEST FINISHED OK =====\n"
25505 "\n"
25506 msgstr ""
25507
25508 # type: textblock
25509 #: ../test-tool/libguestfs-test-tool.pod:30
25510 msgid "and the test tool will exit with code 0."
25511 msgstr ""
25512
25513 # type: textblock
25514 #: ../test-tool/libguestfs-test-tool.pod:32
25515 msgid ""
25516 "If it fails (and/or exits with non-zero error code), please paste the "
25517 "B<complete, unedited> output of the test tool into a bug report.  More "
25518 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25519 "> website."
25520 msgstr ""
25521
25522 # type: =item
25523 #: ../test-tool/libguestfs-test-tool.pod:41
25524 msgid "I<--help>"
25525 msgstr ""
25526
25527 # type: textblock
25528 #: ../test-tool/libguestfs-test-tool.pod:43
25529 msgid "Display short usage information and exit."
25530 msgstr ""
25531
25532 # type: =item
25533 #: ../test-tool/libguestfs-test-tool.pod:45
25534 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25535 msgstr ""
25536
25537 # type: textblock
25538 #: ../test-tool/libguestfs-test-tool.pod:47
25539 msgid ""
25540 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25541 "normally look in the C<$libexec> directory that was configured when the tool "
25542 "was built."
25543 msgstr ""
25544
25545 # type: =item
25546 #: ../test-tool/libguestfs-test-tool.pod:51
25547 msgid "I<--qemu qemu_binary>"
25548 msgstr ""
25549
25550 # type: textblock
25551 #: ../test-tool/libguestfs-test-tool.pod:53
25552 msgid ""
25553 "If you have downloaded another qemu binary, point this option at the full "
25554 "path of the binary to try it."
25555 msgstr ""
25556
25557 # type: =item
25558 #: ../test-tool/libguestfs-test-tool.pod:56
25559 msgid "I<--qemudir qemu_source_dir>"
25560 msgstr ""
25561
25562 # type: textblock
25563 #: ../test-tool/libguestfs-test-tool.pod:58
25564 msgid ""
25565 "If you have compiled qemu from source, point this option at the source "
25566 "directory to try it."
25567 msgstr ""
25568
25569 # type: =item
25570 #: ../test-tool/libguestfs-test-tool.pod:61
25571 msgid "I<--timeout N>"
25572 msgstr ""
25573
25574 # type: textblock
25575 #: ../test-tool/libguestfs-test-tool.pod:63
25576 msgid ""
25577 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25578 "does not usually need to be adjusted unless your machine is very slow."
25579 msgstr ""
25580
25581 # type: =head1
25582 #: ../test-tool/libguestfs-test-tool.pod:69
25583 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25584 msgstr ""
25585
25586 # type: textblock
25587 #: ../test-tool/libguestfs-test-tool.pod:71
25588 msgid ""
25589 "If you have compiled another version of qemu from source and would like to "
25590 "try that, then you can use the I<--qemudir> option to point to the qemu "
25591 "source directory."
25592 msgstr ""
25593
25594 # type: textblock
25595 #: ../test-tool/libguestfs-test-tool.pod:75
25596 msgid ""
25597 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25598 "option to point to the binary."
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../test-tool/libguestfs-test-tool.pod:78
25603 msgid ""
25604 "When using an alternate qemu with libguestfs, usually you would need to "
25605 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25606 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25607 "use either of the I<--qemudir> or I<--qemu> options."
25608 msgstr ""
25609
25610 # type: textblock
25611 #: ../test-tool/libguestfs-test-tool.pod:85
25612 msgid ""
25613 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25614 "I<1> if there was an error."
25615 msgstr ""
25616
25617 # type: =item
25618 #: ../test-tool/libguestfs-test-tool.pod:92
25619 msgid "/usr/libexec/libguestfs-test-tool-helper"
25620 msgstr ""
25621
25622 # type: textblock
25623 #: ../test-tool/libguestfs-test-tool.pod:94
25624 msgid ""
25625 "This helper program is run inside the appliance and provides additional "
25626 "tests."
25627 msgstr ""
25628
25629 # type: =item
25630 #: ../test-tool/libguestfs-test-tool.pod:97
25631 msgid "/usr/bin/mkisofs"
25632 msgstr ""
25633
25634 # type: textblock
25635 #: ../test-tool/libguestfs-test-tool.pod:99
25636 msgid ""
25637 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25638 "which is used as part of the tests."
25639 msgstr ""
25640
25641 # type: textblock
25642 #: ../test-tool/libguestfs-test-tool.pod:106
25643 msgid ""
25644 "For the full list of environment variables which may affect libguestfs, "
25645 "please see the L<guestfs(3)> manual page."
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../test-tool/libguestfs-test-tool.pod:111
25650 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25651 msgstr ""
25652
25653 # type: textblock
25654 #: ../test-tool/libguestfs-test-tool.pod:121
25655 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25656 msgstr ""
25657
25658 # type: textblock
25659 #: ../fuse/guestmount.pod:5
25660 msgid ""
25661 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25662 msgstr ""
25663
25664 # type: verbatim
25665 #: ../fuse/guestmount.pod:9
25666 #, no-wrap
25667 msgid ""
25668 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25669 "\n"
25670 msgstr ""
25671
25672 # type: verbatim
25673 #: ../fuse/guestmount.pod:11
25674 #, no-wrap
25675 msgid ""
25676 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25677 "\n"
25678 msgstr ""
25679
25680 # type: verbatim
25681 #: ../fuse/guestmount.pod:13
25682 #, no-wrap
25683 msgid ""
25684 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25685 "\n"
25686 msgstr ""
25687
25688 # type: textblock
25689 #: ../fuse/guestmount.pod:17
25690 msgid ""
25691 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25692 "machines.  If you do this, you risk disk corruption in the VM."
25693 msgstr ""
25694
25695 # type: textblock
25696 #: ../fuse/guestmount.pod:22
25697 msgid ""
25698 "The guestmount program can be used to mount virtual machine filesystems and "
25699 "other disk images on the host.  It uses libguestfs for access to the guest "
25700 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25701 "a mountable device."
25702 msgstr ""
25703
25704 # type: textblock
25705 #: ../fuse/guestmount.pod:27
25706 msgid ""
25707 "Along with other options, you have to give at least one device (I<-a> "
25708 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25709 "option) or use the I<-i> inspection option.  How this works is better "
25710 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25711 "below."
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../fuse/guestmount.pod:33
25716 msgid ""
25717 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25718 "by you, and the filesystem will not be visible to any other users unless you "
25719 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25720 "the filesystem, use the C<fusermount -u> command."
25721 msgstr ""
25722
25723 # type: textblock
25724 #: ../fuse/guestmount.pod:41
25725 msgid ""
25726 "For a typical Windows guest which has its main filesystem on the first "
25727 "partition:"
25728 msgstr ""
25729
25730 # type: verbatim
25731 #: ../fuse/guestmount.pod:44
25732 #, no-wrap
25733 msgid ""
25734 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25735 "\n"
25736 msgstr ""
25737
25738 # type: textblock
25739 #: ../fuse/guestmount.pod:46
25740 msgid ""
25741 "For a typical Linux guest which has a /boot filesystem on the first "
25742 "partition, and the root filesystem on a logical volume:"
25743 msgstr ""
25744
25745 # type: verbatim
25746 #: ../fuse/guestmount.pod:49
25747 #, no-wrap
25748 msgid ""
25749 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25750 "\n"
25751 msgstr ""
25752
25753 # type: textblock
25754 #: ../fuse/guestmount.pod:51
25755 msgid "To get libguestfs to detect guest mountpoints for you:"
25756 msgstr ""
25757
25758 # type: verbatim
25759 #: ../fuse/guestmount.pod:53
25760 #, no-wrap
25761 msgid ""
25762 " guestmount -a guest.img -i --ro /mnt\n"
25763 "\n"
25764 msgstr ""
25765
25766 # type: textblock
25767 #: ../fuse/guestmount.pod:55
25768 msgid "For a libvirt guest called \"Guest\" you could do:"
25769 msgstr ""
25770
25771 # type: verbatim
25772 #: ../fuse/guestmount.pod:57
25773 #, no-wrap
25774 msgid ""
25775 " guestmount -d Guest -i --ro /mnt\n"
25776 "\n"
25777 msgstr ""
25778
25779 # type: textblock
25780 #: ../fuse/guestmount.pod:59
25781 msgid ""
25782 "If you don't know what filesystems are contained in a guest or disk image, "
25783 "use L<virt-filesystems(1)> first:"
25784 msgstr ""
25785
25786 # type: verbatim
25787 #: ../fuse/guestmount.pod:62
25788 #, no-wrap
25789 msgid ""
25790 " virt-filesystems MyGuest\n"
25791 "\n"
25792 msgstr ""
25793
25794 # type: textblock
25795 #: ../fuse/guestmount.pod:64
25796 msgid ""
25797 "If you want to trace the libguestfs calls but without excessive debugging "
25798 "information, we recommend:"
25799 msgstr ""
25800
25801 # type: verbatim
25802 #: ../fuse/guestmount.pod:67
25803 #, no-wrap
25804 msgid ""
25805 " guestmount [...] --trace /mnt\n"
25806 "\n"
25807 msgstr ""
25808
25809 # type: textblock
25810 #: ../fuse/guestmount.pod:69
25811 msgid "If you want to debug the program, we recommend:"
25812 msgstr ""
25813
25814 # type: verbatim
25815 #: ../fuse/guestmount.pod:71
25816 #, no-wrap
25817 msgid ""
25818 " guestmount [...] --trace --verbose /mnt\n"
25819 "\n"
25820 msgstr ""
25821
25822 # type: textblock
25823 #: ../fuse/guestmount.pod:79
25824 msgid "Add a block device or virtual machine image."
25825 msgstr ""
25826
25827 # type: =item
25828 #: ../fuse/guestmount.pod:96
25829 msgid "B<--dir-cache-timeout N>"
25830 msgstr ""
25831
25832 # type: textblock
25833 #: ../fuse/guestmount.pod:98
25834 msgid ""
25835 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25836 "seconds.  The readdir cache [actually, there are several semi-independent "
25837 "caches] is populated after a readdir(2) call with the stat and extended "
25838 "attributes of the files in the directory, in anticipation that they will be "
25839 "requested soon after."
25840 msgstr ""
25841
25842 # type: textblock
25843 #: ../fuse/guestmount.pod:104
25844 msgid ""
25845 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25846 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25847 "requests, only cache existing ones."
25848 msgstr ""
25849
25850 # type: textblock
25851 #: ../fuse/guestmount.pod:122
25852 msgid ""
25853 "If you have untrusted raw-format guest disk images, you should use this "
25854 "option to specify the disk format.  This avoids a possible security problem "
25855 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25856 "guestfs_add_drive_opts>."
25857 msgstr ""
25858
25859 # type: =item
25860 #: ../fuse/guestmount.pod:127
25861 msgid "B<--fuse-help>"
25862 msgstr ""
25863
25864 # type: textblock
25865 #: ../fuse/guestmount.pod:129
25866 msgid "Display help on special FUSE options (see I<-o> below)."
25867 msgstr ""
25868
25869 # type: textblock
25870 #: ../fuse/guestmount.pod:133
25871 msgid "Display brief help and exit."
25872 msgstr ""
25873
25874 # type: =item
25875 #: ../fuse/guestmount.pod:146
25876 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25877 msgstr ""
25878
25879 # type: textblock
25880 #: ../fuse/guestmount.pod:148
25881 msgid ""
25882 "Mount the named partition or logical volume on the given mountpoint B<in the "
25883 "guest> (this has nothing to do with mountpoints in the host)."
25884 msgstr ""
25885
25886 # type: textblock
25887 #: ../fuse/guestmount.pod:151
25888 msgid ""
25889 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25890 "something on C</>."
25891 msgstr ""
25892
25893 # type: textblock
25894 #: ../fuse/guestmount.pod:156
25895 msgid ""
25896 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25897 "unmounted.  If you specify this option, then we don't attempt to sync the "
25898 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25899 msgstr ""
25900
25901 # type: =item
25902 #: ../fuse/guestmount.pod:161
25903 msgid "B<-o option> | B<--option option>"
25904 msgstr ""
25905
25906 # type: textblock
25907 #: ../fuse/guestmount.pod:163
25908 msgid "Pass extra options to FUSE."
25909 msgstr ""
25910
25911 # type: textblock
25912 #: ../fuse/guestmount.pod:165
25913 msgid ""
25914 "To get a list of all the extra options supported by FUSE, use the command "
25915 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25916 "of them are a good idea."
25917 msgstr ""
25918
25919 # type: verbatim
25920 #: ../fuse/guestmount.pod:169
25921 #, no-wrap
25922 msgid ""
25923 " guestmount --fuse-help\n"
25924 "\n"
25925 msgstr ""
25926
25927 # type: textblock
25928 #: ../fuse/guestmount.pod:171
25929 msgid "Some potentially useful FUSE options:"
25930 msgstr ""
25931
25932 # type: =item
25933 #: ../fuse/guestmount.pod:175
25934 msgid "B<-o allow_other>"
25935 msgstr ""
25936
25937 # type: textblock
25938 #: ../fuse/guestmount.pod:177
25939 msgid "Allow other users to see the filesystem."
25940 msgstr ""
25941
25942 # type: =item
25943 #: ../fuse/guestmount.pod:179
25944 msgid "B<-o attr_timeout=N>"
25945 msgstr ""
25946
25947 # type: textblock
25948 #: ../fuse/guestmount.pod:181
25949 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25950 msgstr ""
25951
25952 # type: =item
25953 #: ../fuse/guestmount.pod:183
25954 msgid "B<-o kernel_cache>"
25955 msgstr ""
25956
25957 # type: textblock
25958 #: ../fuse/guestmount.pod:185
25959 msgid ""
25960 "Allow the kernel to cache files (reduces the number of reads that have to go "
25961 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25962 "afford the extra memory usage."
25963 msgstr ""
25964
25965 # type: =item
25966 #: ../fuse/guestmount.pod:189
25967 msgid "B<-o uid=N> B<-o gid=N>"
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../fuse/guestmount.pod:191
25972 msgid ""
25973 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25974 "the chosen values."
25975 msgstr ""
25976
25977 # type: textblock
25978 #: ../fuse/guestmount.pod:198
25979 msgid ""
25980 "Add devices and mount everything read-only.  Also disallow writes and make "
25981 "the disk appear read-only to FUSE."
25982 msgstr ""
25983
25984 # type: textblock
25985 #: ../fuse/guestmount.pod:201
25986 msgid ""
25987 "This is highly recommended if you are not going to edit the guest disk.  If "
25988 "the guest is running and this option is I<not> supplied, then there is a "
25989 "strong risk of disk corruption in the guest.  We try to prevent this from "
25990 "happening, but it is not always possible."
25991 msgstr ""
25992
25993 # type: textblock
25994 #: ../fuse/guestmount.pod:206
25995 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25996 msgstr ""
25997
25998 # type: textblock
25999 #: ../fuse/guestmount.pod:210
26000 msgid "Enable SELinux support for the guest."
26001 msgstr ""
26002
26003 # type: textblock
26004 #: ../fuse/guestmount.pod:214
26005 msgid "Enable verbose messages from underlying libguestfs."
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../fuse/guestmount.pod:218
26010 msgid "Display the program version and exit."
26011 msgstr ""
26012
26013 # type: textblock
26014 #: ../fuse/guestmount.pod:222
26015 msgid ""
26016 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26017 "FOR READ AND WRITE>."
26018 msgstr ""
26019
26020 # type: =item
26021 #: ../fuse/guestmount.pod:225
26022 msgid "B<-x> | B<--trace>"
26023 msgstr ""
26024
26025 # type: textblock
26026 #: ../fuse/guestmount.pod:227
26027 msgid "Trace libguestfs calls."
26028 msgstr ""
26029
26030 # type: textblock
26031 #: ../fuse/guestmount.pod:229
26032 msgid "This also stops the daemon from forking into the background."
26033 msgstr ""
26034
26035 # type: textblock
26036 #: ../fuse/guestmount.pod:235
26037 msgid ""
26038 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26039 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26040 "net/>."
26041 msgstr ""
26042
26043 # type: textblock
26044 #: ../tools/virt-edit.pl:34
26045 msgid "virt-edit - Edit a file in a virtual machine"
26046 msgstr ""
26047
26048 # type: verbatim
26049 #: ../tools/virt-edit.pl:38
26050 #, no-wrap
26051 msgid ""
26052 " virt-edit [--options] domname file\n"
26053 "\n"
26054 msgstr ""
26055
26056 # type: verbatim
26057 #: ../tools/virt-edit.pl:40
26058 #, no-wrap
26059 msgid ""
26060 " virt-edit [--options] disk.img [disk.img ...] file\n"
26061 "\n"
26062 msgstr ""
26063
26064 # type: verbatim
26065 #: ../tools/virt-edit.pl:42
26066 #, no-wrap
26067 msgid ""
26068 " virt-edit [domname|disk.img] file -e 'expr'\n"
26069 "\n"
26070 msgstr ""
26071
26072 # type: textblock
26073 #: ../tools/virt-edit.pl:46
26074 msgid ""
26075 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26076 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26077 "doing this, but doesn't catch all cases."
26078 msgstr ""
26079
26080 # type: textblock
26081 #: ../tools/virt-edit.pl:52
26082 msgid ""
26083 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26084 "the named virtual machine (or disk image)."
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-edit.pl:55
26089 msgid ""
26090 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26091 "you should look at the L<guestfish(1)> tool."
26092 msgstr ""
26093
26094 # type: textblock
26095 #: ../tools/virt-edit.pl:60
26096 msgid "Edit the named files interactively:"
26097 msgstr ""
26098
26099 # type: verbatim
26100 #: ../tools/virt-edit.pl:62
26101 #, no-wrap
26102 msgid ""
26103 " virt-edit mydomain /boot/grub/grub.conf\n"
26104 "\n"
26105 msgstr ""
26106
26107 # type: verbatim
26108 #: ../tools/virt-edit.pl:64
26109 #, no-wrap
26110 msgid ""
26111 " virt-edit mydomain /etc/passwd\n"
26112 "\n"
26113 msgstr ""
26114
26115 # type: textblock
26116 #: ../tools/virt-edit.pl:66
26117 msgid ""
26118 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26119 "below).  To change the init default level to 5:"
26120 msgstr ""
26121
26122 # type: verbatim
26123 #: ../tools/virt-edit.pl:70
26124 #, no-wrap
26125 msgid ""
26126 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26127 "\n"
26128 msgstr ""
26129
26130 # type: textblock
26131 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26132 #: ../tools/virt-df.pl:81 ../tools/virt-list-filesystems.pl:63
26133 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
26134 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26135 msgid "Display brief help."
26136 msgstr ""
26137
26138 # type: =item
26139 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26140 #: ../tools/virt-df.pl:87 ../tools/virt-resize.pl:272
26141 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114
26142 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
26143 #: ../tools/virt-list-partitions.pl:70
26144 msgid "B<--version>"
26145 msgstr ""
26146
26147 # type: textblock
26148 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26149 #: ../tools/virt-df.pl:89 ../tools/virt-resize.pl:274
26150 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:116
26151 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
26152 #: ../tools/virt-list-partitions.pl:72
26153 msgid "Display version number and exit."
26154 msgstr ""
26155
26156 # type: =item
26157 #: ../tools/virt-edit.pl:96
26158 msgid "B<--backup extension> | B<-b extension>"
26159 msgstr ""
26160
26161 # type: textblock
26162 #: ../tools/virt-edit.pl:98
26163 msgid ""
26164 "Create a backup of the original file I<in the guest disk image>.  The backup "
26165 "has the original filename with C<extension> added."
26166 msgstr ""
26167
26168 # type: textblock
26169 #: ../tools/virt-edit.pl:101
26170 msgid ""
26171 "Usually the first character of C<extension> would be a dot C<.> so you would "
26172 "write:"
26173 msgstr ""
26174
26175 # type: verbatim
26176 #: ../tools/virt-edit.pl:104
26177 #, no-wrap
26178 msgid ""
26179 " virt-edit -b .orig [etc]\n"
26180 "\n"
26181 msgstr ""
26182
26183 # type: textblock
26184 #: ../tools/virt-edit.pl:106
26185 msgid "By default, no backup file is made."
26186 msgstr ""
26187
26188 # type: =item
26189 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26190 #: ../tools/virt-df.pl:95 ../tools/virt-list-filesystems.pl:77
26191 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
26192 #: ../tools/virt-list-partitions.pl:78
26193 msgid "B<--connect URI> | B<-c URI>"
26194 msgstr ""
26195
26196 # type: textblock
26197 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26198 #: ../tools/virt-df.pl:97 ../tools/virt-list-filesystems.pl:79
26199 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
26200 #: ../tools/virt-list-partitions.pl:80
26201 msgid ""
26202 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26203 "to the default libvirt hypervisor."
26204 msgstr ""
26205
26206 # type: textblock
26207 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26208 #: ../tools/virt-df.pl:100 ../tools/virt-list-filesystems.pl:82
26209 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
26210 #: ../tools/virt-list-partitions.pl:83
26211 msgid ""
26212 "If you specify guest block devices directly, then libvirt is not used at all."
26213 msgstr ""
26214
26215 # type: =item
26216 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26217 #: ../tools/virt-df.pl:117 ../tools/virt-resize.pl:522
26218 #: ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:134
26219 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:90
26220 msgid "B<--format> raw"
26221 msgstr ""
26222
26223 # type: textblock
26224 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26225 #: ../tools/virt-df.pl:119 ../tools/virt-list-filesystems.pl:91
26226 #: ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149
26227 #: ../tools/virt-list-partitions.pl:92
26228 msgid ""
26229 "Specify the format of disk images given on the command line.  If this is "
26230 "omitted then the format is autodetected from the content of the disk image."
26231 msgstr ""
26232
26233 # type: textblock
26234 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26235 #: ../tools/virt-df.pl:123 ../tools/virt-list-filesystems.pl:95
26236 #: ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153
26237 #: ../tools/virt-list-partitions.pl:96
26238 msgid ""
26239 "If disk images are requested from libvirt, then this program asks libvirt "
26240 "for this information.  In this case, the value of the format parameter is "
26241 "ignored."
26242 msgstr ""
26243
26244 # type: textblock
26245 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26246 #: ../tools/virt-df.pl:127 ../tools/virt-resize.pl:527
26247 #: ../tools/virt-resize.pl:542 ../tools/virt-list-filesystems.pl:99
26248 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
26249 #: ../tools/virt-list-partitions.pl:100
26250 msgid ""
26251 "If working with untrusted raw-format guest disk images, you should ensure "
26252 "the format is always specified."
26253 msgstr ""
26254
26255 # type: =item
26256 #: ../tools/virt-edit.pl:141
26257 msgid "B<--expr EXPR> | B<-e EXPR>"
26258 msgstr ""
26259
26260 # type: textblock
26261 #: ../tools/virt-edit.pl:143
26262 msgid ""
26263 "Instead of launching the external editor, non-interactively apply the Perl "
26264 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26265 "EDITING> below."
26266 msgstr ""
26267
26268 # type: textblock
26269 #: ../tools/virt-edit.pl:147
26270 msgid ""
26271 "Be careful to properly quote the expression to prevent it from being altered "
26272 "by the shell."
26273 msgstr ""
26274
26275 # type: =head1
26276 #: ../tools/virt-edit.pl:268
26277 msgid "NON-INTERACTIVE EDITING"
26278 msgstr ""
26279
26280 # type: textblock
26281 #: ../tools/virt-edit.pl:270
26282 msgid ""
26283 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26284 "administrator can interactively edit the file."
26285 msgstr ""
26286
26287 # type: textblock
26288 #: ../tools/virt-edit.pl:273
26289 msgid ""
26290 "There are two ways also to use C<virt-edit> from scripts in order to make "
26291 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26292 "like this, it's less error-prone to write scripts directly using the "
26293 "libguestfs API and Augeas for configuration file editing.)"
26294 msgstr ""
26295
26296 # type: textblock
26297 #: ../tools/virt-edit.pl:279
26298 msgid ""
26299 "The first method is to temporarily set C<$EDITOR> to any script or program "
26300 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26301 "update C<tmpfile> in place however it likes."
26302 msgstr ""
26303
26304 # type: textblock
26305 #: ../tools/virt-edit.pl:283
26306 msgid ""
26307 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26308 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26309 "instances of C<foo> with C<bar> in a file:"
26310 msgstr ""
26311
26312 # type: verbatim
26313 #: ../tools/virt-edit.pl:287
26314 #, no-wrap
26315 msgid ""
26316 " virt-edit domname filename -e 's/foo/bar/'\n"
26317 "\n"
26318 msgstr ""
26319
26320 # type: textblock
26321 #: ../tools/virt-edit.pl:289
26322 msgid ""
26323 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26324 "For example to delete root's password you could do:"
26325 msgstr ""
26326
26327 # type: verbatim
26328 #: ../tools/virt-edit.pl:292
26329 #, no-wrap
26330 msgid ""
26331 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26332 "\n"
26333 msgstr ""
26334
26335 # type: textblock
26336 #: ../tools/virt-edit.pl:294
26337 msgid ""
26338 "What really happens is that the snippet is evaluated as a Perl expression "
26339 "for each line of the file.  The line, including the final C<\\n>, is passed "
26340 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26341 msgstr ""
26342
26343 # type: textblock
26344 #: ../tools/virt-edit.pl:299
26345 msgid ""
26346 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26347 "C<apache> user account from the password file you can do:"
26348 msgstr ""
26349
26350 # type: verbatim
26351 #: ../tools/virt-edit.pl:302
26352 #, no-wrap
26353 msgid ""
26354 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26355 "\n"
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-edit.pl:304
26360 msgid ""
26361 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26362 "the end of the file is rather difficult this way since there is no concept "
26363 "of \"last line of the file\" - your expression just doesn't get called "
26364 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26365 "want to do this."
26366 msgstr ""
26367
26368 # type: textblock
26369 #: ../tools/virt-edit.pl:310
26370 msgid ""
26371 "The variable C<$lineno> contains the current line number.  As is "
26372 "traditional, the first line in the file is number C<1>."
26373 msgstr ""
26374
26375 # type: textblock
26376 #: ../tools/virt-edit.pl:313
26377 msgid ""
26378 "The return value from the expression is ignored, but the expression may call "
26379 "C<die> in order to abort the whole program, leaving the original file "
26380 "untouched."
26381 msgstr ""
26382
26383 # type: textblock
26384 #: ../tools/virt-edit.pl:317
26385 msgid ""
26386 "Remember when matching the end of a line that C<$_> may contain the final C<"
26387 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26388 "newline then neither of these.  Thus to match or substitute some text at the "
26389 "end of a line, use this regular expression:"
26390 msgstr ""
26391
26392 # type: verbatim
26393 #: ../tools/virt-edit.pl:322
26394 #, no-wrap
26395 msgid ""
26396 " /some text(\\r?\\n)?$/\n"
26397 "\n"
26398 msgstr ""
26399
26400 # type: textblock
26401 #: ../tools/virt-edit.pl:324
26402 msgid ""
26403 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26404 "$_> itself (since that would remove all newlines from the file):"
26405 msgstr ""
26406
26407 # type: verbatim
26408 #: ../tools/virt-edit.pl:328
26409 #, no-wrap
26410 msgid ""
26411 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26412 "\n"
26413 msgstr ""
26414
26415 # type: =item
26416 #: ../tools/virt-edit.pl:334
26417 msgid "C<EDITOR>"
26418 msgstr ""
26419
26420 # type: textblock
26421 #: ../tools/virt-edit.pl:336
26422 msgid ""
26423 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26424 "\"emacs -nw\">"
26425 msgstr ""
26426
26427 # type: textblock
26428 #: ../tools/virt-edit.pl:339
26429 msgid "If not set, C<vi> is used."
26430 msgstr ""
26431
26432 # type: =head2
26433 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26434 #: ../tools/virt-win-reg.pl:477 ../tools/virt-df.pl:633
26435 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:182
26436 #: ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260
26437 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
26438 msgid "SHELL QUOTING"
26439 msgstr ""
26440
26441 # type: textblock
26442 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26443 #: ../tools/virt-df.pl:635 ../tools/virt-resize.pl:1480
26444 #: ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:276
26445 #: ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529
26446 #: ../tools/virt-list-partitions.pl:252
26447 msgid ""
26448 "Libvirt guest names can contain arbitrary characters, some of which have "
26449 "meaning to the shell such as C<#> and space.  You may need to quote or "
26450 "escape these characters on the command line.  See the shell manual page L<sh"
26451 "(1)> for details."
26452 msgstr ""
26453
26454 # type: textblock
26455 #: ../tools/virt-edit.pl:352
26456 msgid ""
26457 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26458 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26459 "L<perlre(1)>."
26460 msgstr ""
26461
26462 # type: =head1
26463 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26464 #: ../tools/virt-df.pl:649 ../tools/virt-resize.pl:1506
26465 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:292
26466 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
26467 #: ../tools/virt-list-partitions.pl:269
26468 msgid "AUTHOR"
26469 msgstr ""
26470
26471 # type: textblock
26472 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26473 #: ../tools/virt-df.pl:651 ../tools/virt-resize.pl:1508
26474 #: ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:294
26475 #: ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561
26476 #: ../tools/virt-list-partitions.pl:271
26477 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26478 msgstr ""
26479
26480 # type: textblock
26481 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26482 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:275
26483 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26484 msgstr ""
26485
26486 # type: textblock
26487 #: ../tools/virt-win-reg.pl:37
26488 msgid ""
26489 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26490 msgstr ""
26491
26492 # type: verbatim
26493 #: ../tools/virt-win-reg.pl:41
26494 #, no-wrap
26495 msgid ""
26496 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26497 "\n"
26498 msgstr ""
26499
26500 # type: verbatim
26501 #: ../tools/virt-win-reg.pl:43
26502 #, no-wrap
26503 msgid ""
26504 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26505 "\n"
26506 msgstr ""
26507
26508 # type: verbatim
26509 #: ../tools/virt-win-reg.pl:45
26510 #, no-wrap
26511 msgid ""
26512 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26513 "\n"
26514 msgstr ""
26515
26516 # type: verbatim
26517 #: ../tools/virt-win-reg.pl:47
26518 #, no-wrap
26519 msgid ""
26520 " virt-win-reg --merge domname [input.reg ...]\n"
26521 "\n"
26522 msgstr ""
26523
26524 # type: verbatim
26525 #: ../tools/virt-win-reg.pl:49
26526 #, no-wrap
26527 msgid ""
26528 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26529 "\n"
26530 msgstr ""
26531
26532 # type: textblock
26533 #: ../tools/virt-win-reg.pl:53
26534 msgid ""
26535 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26536 "virtual machines.  If you do this, you I<will> get irreversible disk "
26537 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26538 "but doesn't catch all cases."
26539 msgstr ""
26540
26541 # type: textblock
26542 #: ../tools/virt-win-reg.pl:58
26543 msgid ""
26544 "Modifying the Windows Registry is an inherently risky operation.  The format "
26545 "is deliberately obscure and undocumented, and Registry changes can leave the "
26546 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26547 "you have a reliable backup first."
26548 msgstr ""
26549
26550 # type: textblock
26551 #: ../tools/virt-win-reg.pl:65
26552 msgid ""
26553 "This program can export and merge Windows Registry entries from a Windows "
26554 "guest."
26555 msgstr ""
26556
26557 # type: textblock
26558 #: ../tools/virt-win-reg.pl:68
26559 msgid ""
26560 "The first parameter is the libvirt guest name or the raw disk image of a "
26561 "Windows guest."
26562 msgstr ""
26563
26564 # type: textblock
26565 #: ../tools/virt-win-reg.pl:71
26566 msgid ""
26567 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26568 "exported (recursively).  For example:"
26569 msgstr ""
26570
26571 # type: verbatim
26572 #: ../tools/virt-win-reg.pl:74
26573 #, no-wrap
26574 msgid ""
26575 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26576 "\n"
26577 msgstr ""
26578
26579 # type: textblock
26580 #: ../tools/virt-win-reg.pl:76
26581 msgid ""
26582 "You can also display single values from within registry keys, for example:"
26583 msgstr ""
26584
26585 # type: verbatim
26586 #: ../tools/virt-win-reg.pl:79
26587 #, no-wrap
26588 msgid ""
26589 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26590 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26591 " Windows 7 Enterprise\n"
26592 "\n"
26593 msgstr ""
26594
26595 # type: textblock
26596 #: ../tools/virt-win-reg.pl:83
26597 msgid ""
26598 "With C<--merge>, you can merge a textual regedit file into the Windows "
26599 "Registry:"
26600 msgstr ""
26601
26602 # type: verbatim
26603 #: ../tools/virt-win-reg.pl:86
26604 #, no-wrap
26605 msgid ""
26606 " $ virt-win-reg --merge Windows7 changes.reg\n"
26607 "\n"
26608 msgstr ""
26609
26610 # type: =head2
26611 #: ../tools/virt-win-reg.pl:88
26612 msgid "SUPPORTED SYSTEMS"
26613 msgstr ""
26614
26615 # type: textblock
26616 #: ../tools/virt-win-reg.pl:90
26617 msgid ""
26618 "The program currently supports Windows NT-derived guests starting with "
26619 "Windows XP through to at least Windows 7."
26620 msgstr ""
26621
26622 # type: textblock
26623 #: ../tools/virt-win-reg.pl:93
26624 msgid ""
26625 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26626 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26627 "and C<HKEY_USERS\\.DEFAULT>."
26628 msgstr ""
26629
26630 # type: textblock
26631 #: ../tools/virt-win-reg.pl:97
26632 msgid ""
26633 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26634 "C<HKEY_USERS>."
26635 msgstr ""
26636
26637 # type: textblock
26638 #: ../tools/virt-win-reg.pl:100
26639 msgid ""
26640 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26641 "time."
26642 msgstr ""
26643
26644 # type: =head2
26645 #: ../tools/virt-win-reg.pl:103
26646 msgid "NOTE"
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-win-reg.pl:105
26651 msgid ""
26652 "This program is only meant for simple access to the registry.  If you want "
26653 "to do complicated things with the registry, we suggest you download the "
26654 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26655 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26656 "L<hivexregedit(1)>."
26657 msgstr ""
26658
26659 # type: =head2
26660 #: ../tools/virt-win-reg.pl:111
26661 msgid "ENCODING"
26662 msgstr ""
26663
26664 # type: textblock
26665 #: ../tools/virt-win-reg.pl:113
26666 msgid ""
26667 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26668 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26669 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26670 "Windows-style line endings, you may need to reencode the whole file before "
26671 "or after processing."
26672 msgstr ""
26673
26674 # type: textblock
26675 #: ../tools/virt-win-reg.pl:119
26676 msgid ""
26677 "To reencode a file from Windows format to Linux (before processing it with "
26678 "the C<--merge> option), you would do something like this:"
26679 msgstr ""
26680
26681 # type: verbatim
26682 #: ../tools/virt-win-reg.pl:122
26683 #, no-wrap
26684 msgid ""
26685 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26686 "\n"
26687 msgstr ""
26688
26689 # type: textblock
26690 #: ../tools/virt-win-reg.pl:124
26691 msgid ""
26692 "To go in the opposite direction, after exporting and before sending the file "
26693 "to a Windows user, do something like this:"
26694 msgstr ""
26695
26696 # type: verbatim
26697 #: ../tools/virt-win-reg.pl:127
26698 #, no-wrap
26699 msgid ""
26700 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26701 "\n"
26702 msgstr ""
26703
26704 # type: textblock
26705 #: ../tools/virt-win-reg.pl:129
26706 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26707 msgstr ""
26708
26709 # type: textblock
26710 #: ../tools/virt-win-reg.pl:131
26711 msgid ""
26712 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26713 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26714 "style (CRLF) line endings, like this:"
26715 msgstr ""
26716
26717 # type: verbatim
26718 #: ../tools/virt-win-reg.pl:135
26719 #, no-wrap
26720 msgid ""
26721 " $ file software.reg\n"
26722 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26723 " with CRLF line terminators\n"
26724 "\n"
26725 msgstr ""
26726
26727 # type: textblock
26728 #: ../tools/virt-win-reg.pl:139
26729 msgid "This file would need conversion before you could C<--merge> it."
26730 msgstr ""
26731
26732 # type: textblock
26733 #: ../tools/virt-win-reg.pl:143
26734 msgid ""
26735 "Be careful when passing parameters containing C<\\> (backslash) in the "
26736 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26737 "(but not both) to protect them from the shell."
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-win-reg.pl:147
26742 msgid "Paths and value names are case-insensitive."
26743 msgstr ""
26744
26745 # type: =head2
26746 #: ../tools/virt-win-reg.pl:149
26747 msgid "CurrentControlSet etc."
26748 msgstr ""
26749
26750 # type: textblock
26751 #: ../tools/virt-win-reg.pl:151
26752 msgid ""
26753 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26754 "Registry at the level of the hive file, and therefore you cannot modify "
26755 "these."
26756 msgstr ""
26757
26758 # type: textblock
26759 #: ../tools/virt-win-reg.pl:155
26760 msgid ""
26761 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26762 "circumstances it might refer to another control set.  The way to find out is "
26763 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26764 msgstr ""
26765
26766 # type: verbatim
26767 #: ../tools/virt-win-reg.pl:159
26768 #, no-wrap
26769 msgid ""
26770 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26771 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26772 " \"Current\"=dword:00000001\n"
26773 " \"Default\"=dword:00000001\n"
26774 " \"Failed\"=dword:00000000\n"
26775 " \"LastKnownGood\"=dword:00000002\n"
26776 "\n"
26777 msgstr ""
26778
26779 # type: textblock
26780 #: ../tools/virt-win-reg.pl:166
26781 msgid "\"Current\" is the one which Windows will choose when it boots."
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-win-reg.pl:168
26786 msgid ""
26787 "Similarly, other C<Current...> keys in the path may need to be replaced."
26788 msgstr ""
26789
26790 # type: =item
26791 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26792 msgid "B<--debug>"
26793 msgstr ""
26794
26795 # type: textblock
26796 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:500
26797 msgid "Enable debugging messages."
26798 msgstr ""
26799
26800 # type: =item
26801 #: ../tools/virt-win-reg.pl:232
26802 msgid "B<--merge>"
26803 msgstr ""
26804
26805 # type: textblock
26806 #: ../tools/virt-win-reg.pl:234
26807 msgid ""
26808 "In merge mode, this merges a textual regedit file into the Windows Registry "
26809 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26810 "displays or exports Registry entries instead."
26811 msgstr ""
26812
26813 # type: textblock
26814 #: ../tools/virt-win-reg.pl:238
26815 msgid ""
26816 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26817 "result in disk corruption.  However exporting (without this flag)  is always "
26818 "safe."
26819 msgstr ""
26820
26821 # type: =item
26822 #: ../tools/virt-win-reg.pl:246
26823 msgid "B<--encoding> UTF-16LE|ASCII"
26824 msgstr ""
26825
26826 # type: textblock
26827 #: ../tools/virt-win-reg.pl:248
26828 msgid ""
26829 "When merging (only), you may need to specify the encoding for strings to be "
26830 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26831 "(3)/ENCODING STRINGS>."
26832 msgstr ""
26833
26834 # type: textblock
26835 #: ../tools/virt-win-reg.pl:252
26836 msgid ""
26837 "The default is to use UTF-16LE, which should work with recent versions of "
26838 "Windows."
26839 msgstr ""
26840
26841 # type: textblock
26842 #: ../tools/virt-win-reg.pl:486
26843 msgid ""
26844 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26845 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26846 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26847 msgstr ""
26848
26849 # type: textblock
26850 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26851 msgid ""
26852 "When reporting bugs, please enable debugging and capture the I<complete> "
26853 "output:"
26854 msgstr ""
26855
26856 # type: verbatim
26857 #: ../tools/virt-win-reg.pl:504
26858 #, no-wrap
26859 msgid ""
26860 " export LIBGUESTFS_DEBUG=1\n"
26861 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26862 "\n"
26863 msgstr ""
26864
26865 # type: textblock
26866 #: ../tools/virt-win-reg.pl:507
26867 msgid ""
26868 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26869 "redhat.com/>"
26870 msgstr ""
26871
26872 # type: textblock
26873 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1512
26874 #: ../tools/virt-make-fs.pl:565
26875 msgid "Copyright (C) 2010 Red Hat Inc."
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-df.pl:36
26880 msgid "virt-df - Display free space on virtual filesystems"
26881 msgstr ""
26882
26883 # type: verbatim
26884 #: ../tools/virt-df.pl:40
26885 #, no-wrap
26886 msgid ""
26887 " virt-df [--options]\n"
26888 "\n"
26889 msgstr ""
26890
26891 # type: verbatim
26892 #: ../tools/virt-df.pl:42
26893 #, no-wrap
26894 msgid ""
26895 " virt-df [--options] domname\n"
26896 "\n"
26897 msgstr ""
26898
26899 # type: verbatim
26900 #: ../tools/virt-df.pl:44
26901 #, no-wrap
26902 msgid ""
26903 " virt-df [--options] disk.img [disk.img ...]\n"
26904 "\n"
26905 msgstr ""
26906
26907 # type: textblock
26908 #: ../tools/virt-df.pl:48
26909 msgid ""
26910 "C<virt-df> is a command line tool to display free space on virtual machine "
26911 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26912 "space allocated to a virtual machine, but can look inside the virtual "
26913 "machine to see how much space is really being used."
26914 msgstr ""
26915
26916 # type: textblock
26917 #: ../tools/virt-df.pl:53
26918 msgid ""
26919 "It is like the L<df(1)> command, but for virtual machines, except that it "
26920 "also works for Windows virtual machines."
26921 msgstr ""
26922
26923 # type: textblock
26924 #: ../tools/virt-df.pl:56
26925 msgid ""
26926 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26927 "of all active and inactive guests, and performs a C<df>-type operation on "
26928 "each one in turn, printing out the results."
26929 msgstr ""
26930
26931 # type: textblock
26932 #: ../tools/virt-df.pl:60
26933 msgid ""
26934 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26935 "either the single named libvirt domain, or on the disk image(s) listed on "
26936 "the command line (which must all belong to a single VM).  In this mode (with "
26937 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26938 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26939 msgstr ""
26940
26941 # type: textblock
26942 #: ../tools/virt-df.pl:67
26943 msgid ""
26944 "Use the C<--csv> option to get a format which can be easily parsed by other "
26945 "programs.  Other options are mostly similar to standard C<df> options.  See "
26946 "below for the complete list."
26947 msgstr ""
26948
26949 # type: =item
26950 #: ../tools/virt-df.pl:107
26951 msgid "B<--csv>"
26952 msgstr ""
26953
26954 # type: textblock
26955 #: ../tools/virt-df.pl:109
26956 msgid ""
26957 "Write out the results in CSV format (comma-separated values).  This format "
26958 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26959 "ABOUT CSV FORMAT> below."
26960 msgstr ""
26961
26962 # type: =item
26963 #: ../tools/virt-df.pl:134
26964 msgid "B<--human-readable> | B<-h>"
26965 msgstr ""
26966
26967 # type: textblock
26968 #: ../tools/virt-df.pl:136
26969 msgid "Print sizes in human-readable format."
26970 msgstr ""
26971
26972 # type: textblock
26973 #: ../tools/virt-df.pl:138
26974 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26975 msgstr ""
26976
26977 # type: =item
26978 #: ../tools/virt-df.pl:144
26979 msgid "B<--inodes> | B<-i>"
26980 msgstr ""
26981
26982 # type: textblock
26983 #: ../tools/virt-df.pl:146
26984 msgid "Print inodes instead of blocks."
26985 msgstr ""
26986
26987 # type: =item
26988 #: ../tools/virt-df.pl:152
26989 msgid "B<--one-per-guest>"
26990 msgstr ""
26991
26992 # type: textblock
26993 #: ../tools/virt-df.pl:154
26994 msgid ""
26995 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26996 "disks from several guests to a single libguestfs appliance."
26997 msgstr ""
26998
26999 # type: textblock
27000 #: ../tools/virt-df.pl:157
27001 msgid "You might use this option in the following circumstances:"
27002 msgstr ""
27003
27004 # type: textblock
27005 #: ../tools/virt-df.pl:163
27006 msgid ""
27007 "If you think an untrusted guest might actively try to exploit the libguestfs "
27008 "appliance kernel, then this prevents one guest from interfering with the "
27009 "stats printed for another guest."
27010 msgstr ""
27011
27012 # type: textblock
27013 #: ../tools/virt-df.pl:169
27014 msgid ""
27015 "If the kernel has a bug which stops it from accessing a filesystem in one "
27016 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
27017 "and report stats for further guests."
27018 msgstr ""
27019
27020 # type: =item
27021 #: ../tools/virt-df.pl:180
27022 msgid "B<--uuid>"
27023 msgstr ""
27024
27025 # type: textblock
27026 #: ../tools/virt-df.pl:182
27027 msgid ""
27028 "Print UUIDs instead of names.  This is useful for following a guest even "
27029 "when the guest is migrated or renamed, or when two guests happen to have the "
27030 "same name."
27031 msgstr ""
27032
27033 # type: textblock
27034 #: ../tools/virt-df.pl:186
27035 msgid ""
27036 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
27037 "images, we still print the disk image name even when this option is "
27038 "specified."
27039 msgstr ""
27040
27041 # type: =head1
27042 #: ../tools/virt-df.pl:609
27043 msgid "NOTE ABOUT CSV FORMAT"
27044 msgstr ""
27045
27046 # type: textblock
27047 #: ../tools/virt-df.pl:611
27048 msgid ""
27049 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
27050 "should be easy to parse, but it is definitely not easy to parse."
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-df.pl:614
27055 msgid ""
27056 "Myth: Just split fields at commas.  Reality: This does I<not> work "
27057 "reliably.  This example has two columns:"
27058 msgstr ""
27059
27060 # type: verbatim
27061 #: ../tools/virt-df.pl:617
27062 #, no-wrap
27063 msgid ""
27064 " \"foo,bar\",baz\n"
27065 "\n"
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-df.pl:619
27070 msgid ""
27071 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
27072 "reliably.  This example has one row:"
27073 msgstr ""
27074
27075 # type: verbatim
27076 #: ../tools/virt-df.pl:622
27077 #, no-wrap
27078 msgid ""
27079 " \"foo\n"
27080 " bar\",baz\n"
27081 "\n"
27082 msgstr ""
27083
27084 # type: textblock
27085 #: ../tools/virt-df.pl:625
27086 msgid ""
27087 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
27088 "packaged in major Linux distributions)."
27089 msgstr ""
27090
27091 # type: textblock
27092 #: ../tools/virt-df.pl:628
27093 msgid ""
27094 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
27095 "or Python's built-in csv library)."
27096 msgstr ""
27097
27098 # type: textblock
27099 #: ../tools/virt-df.pl:631
27100 msgid "Most spreadsheets and databases can import CSV directly."
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-df.pl:642
27105 msgid ""
27106 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27107 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27108 msgstr ""
27109
27110 # type: textblock
27111 #: ../tools/virt-resize.pl:42
27112 msgid "virt-resize - Resize a virtual machine disk"
27113 msgstr ""
27114
27115 # type: verbatim
27116 #: ../tools/virt-resize.pl:46
27117 #, no-wrap
27118 msgid ""
27119 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27120 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27121 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27122 "\n"
27123 msgstr ""
27124
27125 # type: textblock
27126 #: ../tools/virt-resize.pl:52
27127 msgid ""
27128 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27129 "larger or smaller overall, and resizing or deleting any partitions contained "
27130 "within."
27131 msgstr ""
27132
27133 # type: textblock
27134 #: ../tools/virt-resize.pl:56
27135 msgid ""
27136 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27137 "not> be used on live virtual machines - for consistent results, shut the "
27138 "virtual machine down before resizing it."
27139 msgstr ""
27140
27141 # type: textblock
27142 #: ../tools/virt-resize.pl:60
27143 msgid ""
27144 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
27145 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27146 msgstr ""
27147
27148 # type: textblock
27149 #: ../tools/virt-resize.pl:66
27150 msgid ""
27151 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27152 "fill the extra 5GB of space."
27153 msgstr ""
27154
27155 # type: verbatim
27156 #: ../tools/virt-resize.pl:69
27157 #, no-wrap
27158 msgid ""
27159 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27160 " virt-filesystems --long --h --all -a olddisk\n"
27161 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27162 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27163 "\n"
27164 msgstr ""
27165
27166 # type: textblock
27167 #: ../tools/virt-resize.pl:74
27168 msgid ""
27169 "As above, but make the /boot partition 200MB bigger, while giving the "
27170 "remaining space to /dev/sda2:"
27171 msgstr ""
27172
27173 # type: verbatim
27174 #: ../tools/virt-resize.pl:77
27175 #, no-wrap
27176 msgid ""
27177 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27178 "\n"
27179 msgstr ""
27180
27181 # type: textblock
27182 #: ../tools/virt-resize.pl:79
27183 msgid "As above, but the output format will be uncompressed qcow2:"
27184 msgstr ""
27185
27186 # type: verbatim
27187 #: ../tools/virt-resize.pl:81
27188 #, no-wrap
27189 msgid ""
27190 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27191 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27192 "\n"
27193 msgstr ""
27194
27195 # type: =head1
27196 #: ../tools/virt-resize.pl:84
27197 msgid "DETAILED USAGE"
27198 msgstr ""
27199
27200 # type: =head2
27201 #: ../tools/virt-resize.pl:86
27202 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27203 msgstr ""
27204
27205 # type: =item
27206 #: ../tools/virt-resize.pl:90
27207 msgid "1. Shut down the virtual machine"
27208 msgstr ""
27209
27210 # type: =item
27211 #: ../tools/virt-resize.pl:92
27212 msgid "2. Locate input disk image"
27213 msgstr ""
27214
27215 # type: textblock
27216 #: ../tools/virt-resize.pl:94
27217 msgid ""
27218 "Locate the input disk image (ie. the file or device on the host containing "
27219 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27220 "dumpxml> like this to find the disk image name:"
27221 msgstr ""
27222
27223 # type: verbatim
27224 #: ../tools/virt-resize.pl:98
27225 #, no-wrap
27226 msgid ""
27227 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27228 " Found 1 nodes:\n"
27229 " -- NODE --\n"
27230 " <source dev=\"/dev/vg/lv_guest\" />\n"
27231 "\n"
27232 msgstr ""
27233
27234 # type: =item
27235 #: ../tools/virt-resize.pl:103
27236 msgid "3. Look at current sizing"
27237 msgstr ""
27238
27239 # type: textblock
27240 #: ../tools/virt-resize.pl:105
27241 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27242 msgstr ""
27243
27244 # type: verbatim
27245 #: ../tools/virt-resize.pl:108
27246 #, no-wrap
27247 msgid ""
27248 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27249 " Name       Type       Size  Parent\n"
27250 " /dev/sda1  partition  101M  /dev/sda\n"
27251 " /dev/sda2  partition  7.9G  /dev/sda\n"
27252 " /dev/sda   device     8.0G  -\n"
27253 "\n"
27254 msgstr ""
27255
27256 # type: textblock
27257 #: ../tools/virt-resize.pl:114
27258 msgid ""
27259 "(This example is a virtual machine with an 8 GB disk which we would like to "
27260 "expand up to 10 GB)."
27261 msgstr ""
27262
27263 # type: =item
27264 #: ../tools/virt-resize.pl:117
27265 msgid "4. Create output disk"
27266 msgstr ""
27267
27268 # type: textblock
27269 #: ../tools/virt-resize.pl:119
27270 msgid ""
27271 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27272 "to store the resized output disk."
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-resize.pl:122
27277 msgid ""
27278 "To store the resized disk image in a file, create a file of a suitable size:"
27279 msgstr ""
27280
27281 # type: verbatim
27282 #: ../tools/virt-resize.pl:125
27283 #, no-wrap
27284 msgid ""
27285 " # rm -f outdisk\n"
27286 " # truncate -s 10G outdisk\n"
27287 "\n"
27288 msgstr ""
27289
27290 # type: textblock
27291 #: ../tools/virt-resize.pl:128
27292 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27293 msgstr ""
27294
27295 # type: verbatim
27296 #: ../tools/virt-resize.pl:130
27297 #, no-wrap
27298 msgid ""
27299 " # lvcreate -L 10G -n lv_name vg_name\n"
27300 "\n"
27301 msgstr ""
27302
27303 # type: textblock
27304 #: ../tools/virt-resize.pl:132
27305 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27306 msgstr ""
27307
27308 # type: verbatim
27309 #: ../tools/virt-resize.pl:134
27310 #, no-wrap
27311 msgid ""
27312 " # virsh pool-list\n"
27313 " # virsh vol-create-as poolname newvol 10G\n"
27314 "\n"
27315 msgstr ""
27316
27317 # type: =item
27318 #: ../tools/virt-resize.pl:137
27319 msgid "5. Resize"
27320 msgstr ""
27321
27322 # type: textblock
27323 #: ../tools/virt-resize.pl:139
27324 msgid ""
27325 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27326 "file) and the output disk.  The output disk is the one created in the "
27327 "previous step."
27328 msgstr ""
27329
27330 # type: verbatim
27331 #: ../tools/virt-resize.pl:143
27332 #, no-wrap
27333 msgid ""
27334 " # virt-resize indisk outdisk\n"
27335 "\n"
27336 msgstr ""
27337
27338 # type: textblock
27339 #: ../tools/virt-resize.pl:145
27340 msgid ""
27341 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27342 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27343 "larger, then an extra, empty partition is created at the end of the disk "
27344 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27345 "error."
27346 msgstr ""
27347
27348 # type: textblock
27349 #: ../tools/virt-resize.pl:151
27350 msgid ""
27351 "More realistically you'd want to expand existing partitions in the disk "
27352 "image by passing extra options (for the full list see the L</OPTIONS> "
27353 "section below)."
27354 msgstr ""
27355
27356 # type: textblock
27357 #: ../tools/virt-resize.pl:155
27358 msgid ""
27359 "L</--expand> is the most useful option.  It expands the named partition "
27360 "within the disk to fill any extra space:"
27361 msgstr ""
27362
27363 # type: verbatim
27364 #: ../tools/virt-resize.pl:158
27365 #, no-wrap
27366 msgid ""
27367 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27368 "\n"
27369 msgstr ""
27370
27371 # type: textblock
27372 #: ../tools/virt-resize.pl:160
27373 msgid ""
27374 "(In this case, an extra partition is I<not> created at the end of the disk, "
27375 "because there will be no unused space)."
27376 msgstr ""
27377
27378 # type: textblock
27379 #: ../tools/virt-resize.pl:163
27380 msgid ""
27381 "L</--resize> is the other commonly used option.  The following would "
27382 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27383 "rest of the available space:"
27384 msgstr ""
27385
27386 # type: verbatim
27387 #: ../tools/virt-resize.pl:167
27388 #, no-wrap
27389 msgid ""
27390 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27391 "     indisk outdisk\n"
27392 "\n"
27393 msgstr ""
27394
27395 # type: textblock
27396 #: ../tools/virt-resize.pl:170
27397 msgid ""
27398 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27399 "if virt-resize knows how, it will resize the contents, the equivalent of "
27400 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27401 ">.  However virt-resize does not know how to resize some filesystems, so you "
27402 "would have to online resize them after booting the guest.  And virt-resize "
27403 "also does not resize anything inside an LVM PV, it just resizes the PV "
27404 "itself and leaves the user to resize any LVs inside that PV as desired."
27405 msgstr ""
27406
27407 # type: textblock
27408 #: ../tools/virt-resize.pl:179
27409 msgid "Other options are covered below."
27410 msgstr ""
27411
27412 # type: =item
27413 #: ../tools/virt-resize.pl:181
27414 msgid "6. Test"
27415 msgstr ""
27416
27417 # type: textblock
27418 #: ../tools/virt-resize.pl:183
27419 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27420 msgstr ""
27421
27422 # type: textblock
27423 #: ../tools/virt-resize.pl:185
27424 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27425 msgstr ""
27426
27427 # type: verbatim
27428 #: ../tools/virt-resize.pl:187
27429 #, no-wrap
27430 msgid ""
27431 " # virsh edit guestname\n"
27432 "\n"
27433 msgstr ""
27434
27435 # type: textblock
27436 #: ../tools/virt-resize.pl:189
27437 msgid ""
27438 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27439 "html#elementsDisks>"
27440 msgstr ""
27441
27442 # type: textblock
27443 #: ../tools/virt-resize.pl:192
27444 msgid "Then start up the domain with the new, resized disk:"
27445 msgstr ""
27446
27447 # type: verbatim
27448 #: ../tools/virt-resize.pl:194
27449 #, no-wrap
27450 msgid ""
27451 " # virsh start guestname\n"
27452 "\n"
27453 msgstr ""
27454
27455 # type: textblock
27456 #: ../tools/virt-resize.pl:196
27457 msgid ""
27458 "and check that it still works.  See also the L</NOTES> section below for "
27459 "additional information."
27460 msgstr ""
27461
27462 # type: =item
27463 #: ../tools/virt-resize.pl:199
27464 msgid "7. Resize LVs etc inside the guest"
27465 msgstr ""
27466
27467 # type: textblock
27468 #: ../tools/virt-resize.pl:201
27469 msgid "(This can also be done offline using L<guestfish(1)>)"
27470 msgstr ""
27471
27472 # type: textblock
27473 #: ../tools/virt-resize.pl:203
27474 msgid ""
27475 "Once the guest has booted you should see the new space available, at least "
27476 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27477 "may need to resize LVs inside PVs, and also resize filesystem types that "
27478 "virt-resize does not know how to expand."
27479 msgstr ""
27480
27481 # type: =head2
27482 #: ../tools/virt-resize.pl:210
27483 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27484 msgstr ""
27485
27486 # type: textblock
27487 #: ../tools/virt-resize.pl:212
27488 msgid ""
27489 "Shrinking is somewhat more complex than expanding, and only an overview is "
27490 "given here."
27491 msgstr ""
27492
27493 # type: textblock
27494 #: ../tools/virt-resize.pl:215
27495 msgid ""
27496 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27497 "filesystems).  The user has to shrink content before passing the disk image "
27498 "to virt-resize, and virt-resize will check that the content has been shrunk "
27499 "properly."
27500 msgstr ""
27501
27502 # type: textblock
27503 #: ../tools/virt-resize.pl:220
27504 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27505 msgstr ""
27506
27507 # type: textblock
27508 #: ../tools/virt-resize.pl:222
27509 msgid ""
27510 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27511 "steps 3 and 4 above to allocate a new disk image."
27512 msgstr ""
27513
27514 # type: textblock
27515 #: ../tools/virt-resize.pl:225
27516 msgid ""
27517 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27518 msgstr ""
27519
27520 # type: =head2
27521 #: ../tools/virt-resize.pl:228
27522 msgid "IGNORING OR DELETING PARTITIONS"
27523 msgstr ""
27524
27525 # type: textblock
27526 #: ../tools/virt-resize.pl:230
27527 msgid ""
27528 "virt-resize also gives a convenient way to ignore or delete partitions when "
27529 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27530 "up the copy where you don't care about the existing contents of a "
27531 "partition.  Deleting a partition removes it completely, but note that it "
27532 "also renumbers any partitions after the one which is deleted, which can "
27533 "leave some guests unbootable."
27534 msgstr ""
27535
27536 # type: =head2
27537 #: ../tools/virt-resize.pl:237
27538 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27539 msgstr ""
27540
27541 # type: textblock
27542 #: ../tools/virt-resize.pl:239
27543 msgid ""
27544 "If the input disk is in qcow2 format, then you may prefer that the output is "
27545 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27546 "the fly.  The output format is simply determined by the format of the empty "
27547 "output container that you provide.  Thus to create qcow2 output, use:"
27548 msgstr ""
27549
27550 # type: verbatim
27551 #: ../tools/virt-resize.pl:245
27552 #, no-wrap
27553 msgid ""
27554 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27555 "\n"
27556 msgstr ""
27557
27558 # type: textblock
27559 #: ../tools/virt-resize.pl:247
27560 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-resize.pl:249
27565 msgid "Similarly, to get non-sparse raw output use:"
27566 msgstr ""
27567
27568 # type: verbatim
27569 #: ../tools/virt-resize.pl:251
27570 #, no-wrap
27571 msgid ""
27572 " fallocate -l size outdisk\n"
27573 "\n"
27574 msgstr ""
27575
27576 # type: textblock
27577 #: ../tools/virt-resize.pl:253
27578 msgid ""
27579 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27580 "dev/zero of=outdisk bs=1M count=..>)"
27581 msgstr ""
27582
27583 # type: textblock
27584 #: ../tools/virt-resize.pl:266
27585 msgid "Display help."
27586 msgstr ""
27587
27588 # type: =item
27589 #: ../tools/virt-resize.pl:280
27590 msgid "B<--resize part=size>"
27591 msgstr ""
27592
27593 # type: textblock
27594 #: ../tools/virt-resize.pl:282
27595 msgid ""
27596 "Resize the named partition (expanding or shrinking it) so that it has the "
27597 "given size."
27598 msgstr ""
27599
27600 # type: textblock
27601 #: ../tools/virt-resize.pl:285
27602 msgid ""
27603 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27604 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27605 "Exabytes; or as a percentage of the current size; or as a relative number or "
27606 "percentage.  For example:"
27607 msgstr ""
27608
27609 # type: verbatim
27610 #: ../tools/virt-resize.pl:290
27611 #, no-wrap
27612 msgid ""
27613 " --resize /dev/sda2=10G\n"
27614 "\n"
27615 msgstr ""
27616
27617 # type: verbatim
27618 #: ../tools/virt-resize.pl:292
27619 #, no-wrap
27620 msgid ""
27621 " --resize /dev/sda4=90%\n"
27622 "\n"
27623 msgstr ""
27624
27625 # type: verbatim
27626 #: ../tools/virt-resize.pl:294
27627 #, no-wrap
27628 msgid ""
27629 " --resize /dev/sda2=+1G\n"
27630 "\n"
27631 msgstr ""
27632
27633 # type: verbatim
27634 #: ../tools/virt-resize.pl:296
27635 #, no-wrap
27636 msgid ""
27637 " --resize /dev/sda2=-200M\n"
27638 "\n"
27639 msgstr ""
27640
27641 # type: verbatim
27642 #: ../tools/virt-resize.pl:298
27643 #, no-wrap
27644 msgid ""
27645 " --resize /dev/sda1=+128K\n"
27646 "\n"
27647 msgstr ""
27648
27649 # type: verbatim
27650 #: ../tools/virt-resize.pl:300
27651 #, no-wrap
27652 msgid ""
27653 " --resize /dev/sda1=+10%\n"
27654 "\n"
27655 msgstr ""
27656
27657 # type: verbatim
27658 #: ../tools/virt-resize.pl:302
27659 #, no-wrap
27660 msgid ""
27661 " --resize /dev/sda1=-10%\n"
27662 "\n"
27663 msgstr ""
27664
27665 # type: textblock
27666 #: ../tools/virt-resize.pl:304
27667 msgid ""
27668 "You can increase the size of any partition.  Virt-resize will expand the "
27669 "direct content of the partition if it knows how (see C<--expand> below)."
27670 msgstr ""
27671
27672 # type: textblock
27673 #: ../tools/virt-resize.pl:308
27674 msgid ""
27675 "You can only I<decrease> the size of partitions that contain filesystems or "
27676 "PVs which have already been shrunk.  Virt-resize will check this has been "
27677 "done before proceeding, or else will print an error (see also C<--resize-"
27678 "force>)."
27679 msgstr ""
27680
27681 # type: textblock
27682 #: ../tools/virt-resize.pl:313 ../tools/virt-resize.pl:405
27683 #: ../tools/virt-resize.pl:422
27684 msgid "You can give this option multiple times."
27685 msgstr ""
27686
27687 # type: =item
27688 #: ../tools/virt-resize.pl:319
27689 msgid "B<--resize-force part=size>"
27690 msgstr ""
27691
27692 # type: textblock
27693 #: ../tools/virt-resize.pl:321
27694 msgid ""
27695 "This is the same as C<--resize> except that it will let you decrease the "
27696 "size of any partition.  Generally this means you will lose any data which "
27697 "was at the end of the partition you shrink, but you may not care about that "
27698 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27699 "as a swap partition)."
27700 msgstr ""
27701
27702 # type: textblock
27703 #: ../tools/virt-resize.pl:327
27704 msgid "See also the C<--ignore> option."
27705 msgstr ""
27706
27707 # type: =item
27708 #: ../tools/virt-resize.pl:333
27709 msgid "B<--expand part>"
27710 msgstr ""
27711
27712 # type: textblock
27713 #: ../tools/virt-resize.pl:335
27714 msgid ""
27715 "Expand the named partition so it uses up all extra space (space left over "
27716 "after any other resize changes that you request have been done)."
27717 msgstr ""
27718
27719 # type: textblock
27720 #: ../tools/virt-resize.pl:338
27721 msgid ""
27722 "If virt-resize knows how, it will expand the direct content of the "
27723 "partition.  For example, if the partition is an LVM PV, it will expand the "
27724 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27725 "content it doesn't know about alone."
27726 msgstr ""
27727
27728 # type: textblock
27729 #: ../tools/virt-resize.pl:343
27730 msgid "Currently virt-resize can resize:"
27731 msgstr ""
27732
27733 # type: textblock
27734 #: ../tools/virt-resize.pl:349
27735 msgid ""
27736 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27737 "partition."
27738 msgstr ""
27739
27740 # type: textblock
27741 #: ../tools/virt-resize.pl:354
27742 msgid ""
27743 "NTFS filesystems contained directly in a partition, if libguestfs was "
27744 "compiled with support for NTFS."
27745 msgstr ""
27746
27747 # type: textblock
27748 #: ../tools/virt-resize.pl:357
27749 msgid ""
27750 "The filesystem must have been shut down consistently last time it was used.  "
27751 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27752 "consistency check, so at the first boot after resizing Windows will check "
27753 "the disk."
27754 msgstr ""
27755
27756 # type: textblock
27757 #: ../tools/virt-resize.pl:364
27758 msgid ""
27759 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27760 "inside the PV.  The user will have to resize LVs as desired."
27761 msgstr ""
27762
27763 # type: textblock
27764 #: ../tools/virt-resize.pl:370 ../tools/virt-resize.pl:392
27765 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27766 msgstr ""
27767
27768 # type: =item
27769 #: ../tools/virt-resize.pl:376
27770 msgid "B<--shrink part>"
27771 msgstr ""
27772
27773 # type: textblock
27774 #: ../tools/virt-resize.pl:378
27775 msgid ""
27776 "Shrink the named partition until the overall disk image fits in the "
27777 "destination.  The named partition B<must> contain a filesystem or PV which "
27778 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27779 "online tools).  Virt-resize will check this and give an error if it has not "
27780 "been done."
27781 msgstr ""
27782
27783 # type: textblock
27784 #: ../tools/virt-resize.pl:384
27785 msgid ""
27786 "The amount by which the overall disk must be shrunk (after carrying out all "
27787 "other operations requested by the user) is called the \"deficit\".  For "
27788 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27789 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27790 "would give an error unless the user specified a partition to shrink and that "
27791 "partition had more than a gigabyte of free space."
27792 msgstr ""
27793
27794 # type: =item
27795 #: ../tools/virt-resize.pl:398
27796 msgid "B<--ignore part>"
27797 msgstr ""
27798
27799 # type: textblock
27800 #: ../tools/virt-resize.pl:400
27801 msgid ""
27802 "Ignore the named partition.  Effectively this means the partition is "
27803 "allocated on the destination disk, but the content is not copied across from "
27804 "the source disk.  The content of the partition will be blank (all zero "
27805 "bytes)."
27806 msgstr ""
27807
27808 # type: =item
27809 #: ../tools/virt-resize.pl:411
27810 msgid "B<--delete part>"
27811 msgstr ""
27812
27813 # type: textblock
27814 #: ../tools/virt-resize.pl:413
27815 msgid ""
27816 "Delete the named partition.  It would be more accurate to describe this as "
27817 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27818 "the original disk image is left intact."
27819 msgstr ""
27820
27821 # type: textblock
27822 #: ../tools/virt-resize.pl:417
27823 msgid ""
27824 "Note that when you delete a partition, then anything contained in the "
27825 "partition is also deleted.  Furthermore, this causes any partitions that "
27826 "come after to be I<renumbered>, which can easily make your guest unbootable."
27827 msgstr ""
27828
27829 # type: =item
27830 #: ../tools/virt-resize.pl:428
27831 msgid "B<--LV-expand logvol>"
27832 msgstr ""
27833
27834 # type: textblock
27835 #: ../tools/virt-resize.pl:430
27836 msgid ""
27837 "This takes the logical volume and, as a final step, expands it to fill all "
27838 "the space available in its volume group.  A typical usage, assuming a Linux "
27839 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27840 "lv_root> would be:"
27841 msgstr ""
27842
27843 # type: verbatim
27844 #: ../tools/virt-resize.pl:435
27845 #, no-wrap
27846 msgid ""
27847 " virt-resize indisk outdisk \\\n"
27848 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27849 "\n"
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-resize.pl:438
27854 msgid ""
27855 "This would first expand the partition (and PV), and then expand the root "
27856 "device to fill the extra space in the PV."
27857 msgstr ""
27858
27859 # type: textblock
27860 #: ../tools/virt-resize.pl:441
27861 msgid ""
27862 "The contents of the LV are also resized if virt-resize knows how to do "
27863 "that.  You can stop virt-resize from trying to expand the content by using "
27864 "the option C<--no-expand-content>."
27865 msgstr ""
27866
27867 # type: textblock
27868 #: ../tools/virt-resize.pl:445
27869 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27870 msgstr ""
27871
27872 # type: textblock
27873 #: ../tools/virt-resize.pl:448
27874 msgid ""
27875 "You can give this option multiple times, I<but> it doesn't make sense to do "
27876 "this unless the logical volumes you specify are all in different volume "
27877 "groups."
27878 msgstr ""
27879
27880 # type: =item
27881 #: ../tools/virt-resize.pl:456
27882 msgid "B<--no-copy-boot-loader>"
27883 msgstr ""
27884
27885 # type: textblock
27886 #: ../tools/virt-resize.pl:458
27887 msgid ""
27888 "By default, virt-resize copies over some sectors at the start of the disk "
27889 "(up to the beginning of the first partition).  Commonly these sectors "
27890 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27891 "in order for the guest to boot correctly."
27892 msgstr ""
27893
27894 # type: textblock
27895 #: ../tools/virt-resize.pl:463
27896 msgid ""
27897 "If you specify this flag, then this initial copy is not done.  You may need "
27898 "to reinstall the boot loader in this case."
27899 msgstr ""
27900
27901 # type: =item
27902 #: ../tools/virt-resize.pl:471
27903 msgid "B<--no-extra-partition>"
27904 msgstr ""
27905
27906 # type: textblock
27907 #: ../tools/virt-resize.pl:473
27908 msgid ""
27909 "By default, virt-resize creates an extra partition if there is any extra, "
27910 "unused space after all resizing has happened.  Use this option to prevent "
27911 "the extra partition from being created.  If you do this then the extra space "
27912 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27913 "tool in the guest."
27914 msgstr ""
27915
27916 # type: textblock
27917 #: ../tools/virt-resize.pl:479
27918 msgid ""
27919 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27920 "will be created."
27921 msgstr ""
27922
27923 # type: =item
27924 #: ../tools/virt-resize.pl:486
27925 msgid "B<--no-expand-content>"
27926 msgstr ""
27927
27928 # type: textblock
27929 #: ../tools/virt-resize.pl:488
27930 msgid ""
27931 "By default, virt-resize will try to expand the direct contents of "
27932 "partitions, if it knows how (see C<--expand> option above)."
27933 msgstr ""
27934
27935 # type: textblock
27936 #: ../tools/virt-resize.pl:491
27937 msgid ""
27938 "If you give the C<--no-expand-content> option then virt-resize will not "
27939 "attempt this."
27940 msgstr ""
27941
27942 # type: =item
27943 #: ../tools/virt-resize.pl:498
27944 msgid "B<-d> | B<--debug>"
27945 msgstr ""
27946
27947 # type: =item
27948 #: ../tools/virt-resize.pl:506
27949 msgid "B<-n> | B<--dryrun>"
27950 msgstr ""
27951
27952 # type: textblock
27953 #: ../tools/virt-resize.pl:508
27954 msgid "Print a summary of what would be done, but don't do anything."
27955 msgstr ""
27956
27957 # type: =item
27958 #: ../tools/virt-resize.pl:514
27959 msgid "B<-q> | B<--quiet>"
27960 msgstr ""
27961
27962 # type: textblock
27963 #: ../tools/virt-resize.pl:516
27964 msgid "Don't print the summary."
27965 msgstr ""
27966
27967 # type: textblock
27968 #: ../tools/virt-resize.pl:524
27969 msgid ""
27970 "Specify the format of the input disk image.  If this flag is not given then "
27971 "it is auto-detected from the image itself."
27972 msgstr ""
27973
27974 # type: textblock
27975 #: ../tools/virt-resize.pl:530
27976 msgid ""
27977 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27978 "AND NON-SPARSE RAW FORMATS>."
27979 msgstr ""
27980
27981 # type: =item
27982 #: ../tools/virt-resize.pl:537
27983 msgid "B<--output-format> raw"
27984 msgstr ""
27985
27986 # type: textblock
27987 #: ../tools/virt-resize.pl:539
27988 msgid ""
27989 "Specify the format of the output disk image.  If this flag is not given then "
27990 "it is auto-detected from the image itself."
27991 msgstr ""
27992
27993 # type: textblock
27994 #: ../tools/virt-resize.pl:545
27995 msgid ""
27996 "Note that you still need to create the output disk with the right format.  "
27997 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27998 msgstr ""
27999
28000 # type: =head1
28001 #: ../tools/virt-resize.pl:1421 ../tools/virt-rescue.pl:90
28002 msgid "NOTES"
28003 msgstr ""
28004
28005 # type: =head2
28006 #: ../tools/virt-resize.pl:1423
28007 msgid "\"Partition 1 does not end on cylinder boundary.\""
28008 msgstr ""
28009
28010 # type: textblock
28011 #: ../tools/virt-resize.pl:1425
28012 msgid ""
28013 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28014 "means the partitions will not be aligned to the ancient CHS geometry.  "
28015 "However CHS geometry is meaningless for disks manufactured since the early "
28016 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28017 "cylinders is not required by any modern operating system."
28018 msgstr ""
28019
28020 # type: =head2
28021 #: ../tools/virt-resize.pl:1432
28022 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28023 msgstr ""
28024
28025 # type: textblock
28026 #: ../tools/virt-resize.pl:1434
28027 msgid ""
28028 "In Windows Vista and later versions, Microsoft switched to using a separate "
28029 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28030 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28031 "the boot partition.  Doing so seems to break the guest completely.  However "
28032 "expanding the second partition (ie. C: drive) should work."
28033 msgstr ""
28034
28035 # type: textblock
28036 #: ../tools/virt-resize.pl:1441
28037 msgid ""
28038 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28039 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28040 "it find errors) is nothing to worry about."
28041 msgstr ""
28042
28043 # type: =head2
28044 #: ../tools/virt-resize.pl:1445
28045 msgid "GUEST BOOT STUCK AT \"GRUB\""
28046 msgstr ""
28047
28048 # type: textblock
28049 #: ../tools/virt-resize.pl:1447
28050 msgid ""
28051 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28052 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28053 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28054 "although we think is to do with partition alignment."
28055 msgstr ""
28056
28057 # type: verbatim
28058 #: ../tools/virt-resize.pl:1452
28059 #, no-wrap
28060 msgid ""
28061 " guestfish -i -a newdisk\n"
28062 " ><fs> cat /boot/grub/device.map\n"
28063 " # check the contents of this file are sensible or\n"
28064 " # edit the file if necessary\n"
28065 " ><fs> grub-install / /dev/vda\n"
28066 " ><fs> exit\n"
28067 "\n"
28068 msgstr ""
28069
28070 # type: textblock
28071 #: ../tools/virt-resize.pl:1459
28072 msgid ""
28073 "For more flexible guest reconfiguration, including if you need to specify "
28074 "other parameters to grub-install, use L<virt-rescue(1)>."
28075 msgstr ""
28076
28077 # type: =head1
28078 #: ../tools/virt-resize.pl:1462
28079 msgid "ALTERNATIVE TOOLS"
28080 msgstr ""
28081
28082 # type: textblock
28083 #: ../tools/virt-resize.pl:1464
28084 msgid ""
28085 "There are several proprietary tools for resizing partitions.  We won't "
28086 "mention any here."
28087 msgstr ""
28088
28089 # type: textblock
28090 #: ../tools/virt-resize.pl:1467
28091 msgid ""
28092 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28093 "operations on disk images.  They can resize and move partitions, but I don't "
28094 "think they can do anything with the contents, and they certainly don't "
28095 "understand LVM."
28096 msgstr ""
28097
28098 # type: textblock
28099 #: ../tools/virt-resize.pl:1472
28100 msgid ""
28101 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28102 "but at a much lower level.  You will probably end up hand-calculating sector "
28103 "offsets, which is something that virt-resize was designed to avoid.  If you "
28104 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28105 "C<--debug> flag."
28106 msgstr ""
28107
28108 # type: textblock
28109 #: ../tools/virt-resize.pl:1487
28110 msgid ""
28111 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
28112 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
28113 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
28114 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
28115 "libguestfs.org/>."
28116 msgstr ""
28117
28118 # type: textblock
28119 #: ../tools/virt-list-filesystems.pl:32
28120 msgid ""
28121 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28122 msgstr ""
28123
28124 # type: verbatim
28125 #: ../tools/virt-list-filesystems.pl:36
28126 #, no-wrap
28127 msgid ""
28128 " virt-list-filesystems [--options] domname\n"
28129 "\n"
28130 msgstr ""
28131
28132 # type: verbatim
28133 #: ../tools/virt-list-filesystems.pl:38
28134 #, no-wrap
28135 msgid ""
28136 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28137 "\n"
28138 msgstr ""
28139
28140 # type: textblock
28141 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
28142 msgid ""
28143 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
28144 "replacement."
28145 msgstr ""
28146
28147 # type: textblock
28148 #: ../tools/virt-list-filesystems.pl:45
28149 msgid ""
28150 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28151 "are contained in a virtual machine or disk image."
28152 msgstr ""
28153
28154 # type: textblock
28155 #: ../tools/virt-list-filesystems.pl:49
28156 msgid ""
28157 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28158 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28159 "> tool."
28160 msgstr ""
28161
28162 # type: =item
28163 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28164 msgid "B<-l> | B<--long>"
28165 msgstr ""
28166
28167 # type: textblock
28168 #: ../tools/virt-list-filesystems.pl:108
28169 msgid ""
28170 "With this option, C<virt-list-filesystems> displays the type of each "
28171 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28172 msgstr ""
28173
28174 # type: =item
28175 #: ../tools/virt-list-filesystems.pl:115
28176 msgid "B<-a> | B<--all>"
28177 msgstr ""
28178
28179 # type: textblock
28180 #: ../tools/virt-list-filesystems.pl:117
28181 msgid ""
28182 "Normally we only show mountable filesystems.  If this option is given then "
28183 "swap devices are shown too."
28184 msgstr ""
28185
28186 # type: textblock
28187 #: ../tools/virt-list-filesystems.pl:191
28188 msgid ""
28189 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
28190 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28191 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28192 msgstr ""
28193
28194 # type: textblock
28195 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28196 msgid "Copyright (C) 2009 Red Hat Inc."
28197 msgstr ""
28198
28199 # type: textblock
28200 #: ../tools/virt-tar.pl:33
28201 msgid "virt-tar - Extract or upload files to a virtual machine"
28202 msgstr ""
28203
28204 # type: verbatim
28205 #: ../tools/virt-tar.pl:37
28206 #, no-wrap
28207 msgid ""
28208 " virt-tar [--options] -x domname directory tarball\n"
28209 "\n"
28210 msgstr ""
28211
28212 # type: verbatim
28213 #: ../tools/virt-tar.pl:39
28214 #, no-wrap
28215 msgid ""
28216 " virt-tar [--options] -u domname tarball directory\n"
28217 "\n"
28218 msgstr ""
28219
28220 # type: verbatim
28221 #: ../tools/virt-tar.pl:41
28222 #, no-wrap
28223 msgid ""
28224 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28225 "\n"
28226 msgstr ""
28227
28228 # type: verbatim
28229 #: ../tools/virt-tar.pl:43
28230 #, no-wrap
28231 msgid ""
28232 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28233 "\n"
28234 msgstr ""
28235
28236 # type: textblock
28237 #: ../tools/virt-tar.pl:47
28238 msgid "Download C</home> from the VM into a local tarball:"
28239 msgstr ""
28240
28241 # type: verbatim
28242 #: ../tools/virt-tar.pl:49
28243 #, no-wrap
28244 msgid ""
28245 " virt-tar -x domname /home home.tar\n"
28246 "\n"
28247 msgstr ""
28248
28249 # type: verbatim
28250 #: ../tools/virt-tar.pl:51
28251 #, no-wrap
28252 msgid ""
28253 " virt-tar -zx domname /home home.tar.gz\n"
28254 "\n"
28255 msgstr ""
28256
28257 # type: textblock
28258 #: ../tools/virt-tar.pl:53
28259 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28260 msgstr ""
28261
28262 # type: verbatim
28263 #: ../tools/virt-tar.pl:55
28264 #, no-wrap
28265 msgid ""
28266 " virt-tar -u domname uploadstuff.tar /tmp\n"
28267 "\n"
28268 msgstr ""
28269
28270 # type: verbatim
28271 #: ../tools/virt-tar.pl:57
28272 #, no-wrap
28273 msgid ""
28274 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28275 "\n"
28276 msgstr ""
28277
28278 # type: textblock
28279 #: ../tools/virt-tar.pl:61
28280 msgid ""
28281 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28282 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28283 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28284 msgstr ""
28285
28286 # type: textblock
28287 #: ../tools/virt-tar.pl:66
28288 msgid ""
28289 "You can use C<-x> (extract) on live virtual machines, but you might get "
28290 "inconsistent results or errors if there is filesystem activity inside the "
28291 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28292 "work, but the only way to guarantee consistent results is if the virtual "
28293 "machine is shut down."
28294 msgstr ""
28295
28296 # type: textblock
28297 #: ../tools/virt-tar.pl:74
28298 msgid ""
28299 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28300 "parts of a guest filesystem.  There are many possibilities: making backups, "
28301 "uploading data files, snooping on guest activity, fixing or customizing "
28302 "guests, etc."
28303 msgstr ""
28304
28305 # type: textblock
28306 #: ../tools/virt-tar.pl:79
28307 msgid ""
28308 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28309 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28310 "should look at the L<guestfish(1)> tool."
28311 msgstr ""
28312
28313 # type: textblock
28314 #: ../tools/virt-tar.pl:83
28315 msgid ""
28316 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28317 "its contents (recursively) from the virtual machine into a local tarball.  "
28318 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28319 "virtual machine.  You cannot use these two options together."
28320 msgstr ""
28321
28322 # type: textblock
28323 #: ../tools/virt-tar.pl:89
28324 msgid ""
28325 "In addition, you may need to use the C<-z> (gZip) option to enable "
28326 "compression.  When uploading, you have to specify C<-z> if the upload file "
28327 "is compressed because virt-tar won't detect this on its own."
28328 msgstr ""
28329
28330 # type: textblock
28331 #: ../tools/virt-tar.pl:93
28332 msgid ""
28333 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28334 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28335 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28336 "the L<libguestfs(3)> API)."
28337 msgstr ""
28338
28339 # type: =item
28340 #: ../tools/virt-tar.pl:151
28341 msgid "B<-x> | B<--extract> | B<--download>"
28342 msgstr ""
28343
28344 # type: =item
28345 #: ../tools/virt-tar.pl:153
28346 msgid "B<-u> | B<--upload>"
28347 msgstr ""
28348
28349 # type: textblock
28350 #: ../tools/virt-tar.pl:155
28351 msgid ""
28352 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28353 "local tarball."
28354 msgstr ""
28355
28356 # type: textblock
28357 #: ../tools/virt-tar.pl:158
28358 msgid ""
28359 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28360 "Please read the L</WARNING> section above before using this option."
28361 msgstr ""
28362
28363 # type: textblock
28364 #: ../tools/virt-tar.pl:162
28365 msgid "You must specify exactly one of these options."
28366 msgstr ""
28367
28368 # type: =item
28369 #: ../tools/virt-tar.pl:168
28370 msgid "B<-z> | B<--gzip>"
28371 msgstr ""
28372
28373 # type: textblock
28374 #: ../tools/virt-tar.pl:170
28375 msgid "Specify that the input or output tarball is gzip-compressed."
28376 msgstr ""
28377
28378 # type: textblock
28379 #: ../tools/virt-tar.pl:283
28380 msgid ""
28381 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28382 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28383 "org/>."
28384 msgstr ""
28385
28386 # type: textblock
28387 #: ../tools/virt-rescue.pl:33
28388 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28389 msgstr ""
28390
28391 # type: verbatim
28392 #: ../tools/virt-rescue.pl:37
28393 #, no-wrap
28394 msgid ""
28395 " virt-rescue [--options] domname\n"
28396 "\n"
28397 msgstr ""
28398
28399 # type: verbatim
28400 #: ../tools/virt-rescue.pl:39
28401 #, no-wrap
28402 msgid ""
28403 " virt-rescue [--options] disk.img [disk.img ...]\n"
28404 "\n"
28405 msgstr ""
28406
28407 # type: textblock
28408 #: ../tools/virt-rescue.pl:43
28409 msgid ""
28410 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28411 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28412 "you from doing this, but doesn't catch all cases."
28413 msgstr ""
28414
28415 # type: textblock
28416 #: ../tools/virt-rescue.pl:47
28417 msgid ""
28418 "However if you use the I<--ro> (read only) option, then you can attach a "
28419 "shell to a live virtual machine.  The results might be strange or "
28420 "inconsistent at times but you won't get disk corruption."
28421 msgstr ""
28422
28423 # type: textblock
28424 #: ../tools/virt-rescue.pl:53
28425 msgid ""
28426 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28427 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28428 "recovery tools which you can use to examine or rescue a virtual machine or "
28429 "disk image."
28430 msgstr ""
28431
28432 # type: textblock
28433 #: ../tools/virt-rescue.pl:58
28434 msgid ""
28435 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28436 "on disk image(s):"
28437 msgstr ""
28438
28439 # type: verbatim
28440 #: ../tools/virt-rescue.pl:61
28441 #, no-wrap
28442 msgid ""
28443 " virt-rescue GuestName\n"
28444 "\n"
28445 msgstr ""
28446
28447 # type: verbatim
28448 #: ../tools/virt-rescue.pl:63
28449 #, no-wrap
28450 msgid ""
28451 " virt-rescue --ro /path/to/disk.img\n"
28452 "\n"
28453 msgstr ""
28454
28455 # type: verbatim
28456 #: ../tools/virt-rescue.pl:65
28457 #, no-wrap
28458 msgid ""
28459 " virt-rescue /dev/sdc\n"
28460 "\n"
28461 msgstr ""
28462
28463 # type: textblock
28464 #: ../tools/virt-rescue.pl:67
28465 msgid "For live VMs you I<must> use the --ro option."
28466 msgstr ""
28467
28468 # type: textblock
28469 #: ../tools/virt-rescue.pl:69
28470 msgid ""
28471 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28472 "in an interactive bash shell where you can use many ordinary Linux "
28473 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28474 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28475 "is an empty directory called C</sysroot> where you can mount filesystems."
28476 msgstr ""
28477
28478 # type: textblock
28479 #: ../tools/virt-rescue.pl:76
28480 msgid ""
28481 "In the example below, we list logical volumes, then choose one to mount "
28482 "under C</sysroot>:"
28483 msgstr ""
28484
28485 # type: verbatim
28486 #: ../tools/virt-rescue.pl:79
28487 #, no-wrap
28488 msgid ""
28489 " ><rescue> lvs\n"
28490 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28491 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28492 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28493 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28494 " ><rescue> ls /sysroot\n"
28495 "\n"
28496 msgstr ""
28497
28498 # type: textblock
28499 #: ../tools/virt-rescue.pl:86
28500 msgid ""
28501 "If you don't know what filesystems are available on the virtual machine then "
28502 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28503 msgstr ""
28504
28505 # type: textblock
28506 #: ../tools/virt-rescue.pl:92
28507 msgid ""
28508 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28509 "virtual machine.  For example you can use it on a blank file if you want to "
28510 "partition that file (although we would recommend using L<guestfish(1)> "
28511 "instead as it is more suitable for this purpose).  You can even use virt-"
28512 "rescue on things like SD cards."
28513 msgstr ""
28514
28515 # type: textblock
28516 #: ../tools/virt-rescue.pl:98
28517 msgid ""
28518 "This tool is just designed for quick interactive hacking on a virtual "
28519 "machine.  For more structured access to a virtual machine disk image, you "
28520 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28521 "make scripted changes to guests, use L<guestfish(1)>."
28522 msgstr ""
28523
28524 # type: =item
28525 #: ../tools/virt-rescue.pl:127
28526 msgid "B<--append kernelopts>"
28527 msgstr ""
28528
28529 # type: textblock
28530 #: ../tools/virt-rescue.pl:129
28531 msgid "Pass additional options to the rescue kernel."
28532 msgstr ""
28533
28534 # type: =item
28535 #: ../tools/virt-rescue.pl:164
28536 msgid "B<--memsize MB> | B<-m MB>"
28537 msgstr ""
28538
28539 # type: textblock
28540 #: ../tools/virt-rescue.pl:166
28541 msgid ""
28542 "Change the amount of memory allocated to the rescue system.  The default is "
28543 "set by libguestfs and is small but adequate for running system tools.  The "
28544 "occasional program might need more memory.  The parameter is specified in "
28545 "megabytes."
28546 msgstr ""
28547
28548 # type: =item
28549 #: ../tools/virt-rescue.pl:175
28550 msgid "B<--network>"
28551 msgstr ""
28552
28553 # type: textblock
28554 #: ../tools/virt-rescue.pl:177
28555 msgid "Enable QEMU user networking in the guest."
28556 msgstr ""
28557
28558 # type: =item
28559 #: ../tools/virt-rescue.pl:183
28560 msgid "B<--ro> | B<-r>"
28561 msgstr ""
28562
28563 # type: textblock
28564 #: ../tools/virt-rescue.pl:185
28565 msgid "Open the image read-only."
28566 msgstr ""
28567
28568 # type: textblock
28569 #: ../tools/virt-rescue.pl:197
28570 msgid ""
28571 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28572 "SELINUX> before using this option."
28573 msgstr ""
28574
28575 # type: textblock
28576 #: ../tools/virt-rescue.pl:257
28577 msgid ""
28578 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28579 "ENVIRONMENT VARIABLES> for the complete list."
28580 msgstr ""
28581
28582 # type: textblock
28583 #: ../tools/virt-rescue.pl:269
28584 msgid ""
28585 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28586 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28587 msgstr ""
28588
28589 # type: textblock
28590 #: ../tools/virt-make-fs.pl:37
28591 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28592 msgstr ""
28593
28594 # type: verbatim
28595 #: ../tools/virt-make-fs.pl:41
28596 #, no-wrap
28597 msgid ""
28598 " virt-make-fs [--options] input.tar output.img\n"
28599 "\n"
28600 msgstr ""
28601
28602 # type: verbatim
28603 #: ../tools/virt-make-fs.pl:43
28604 #, no-wrap
28605 msgid ""
28606 " virt-make-fs [--options] input.tar.gz output.img\n"
28607 "\n"
28608 msgstr ""
28609
28610 # type: verbatim
28611 #: ../tools/virt-make-fs.pl:45
28612 #, no-wrap
28613 msgid ""
28614 " virt-make-fs [--options] directory output.img\n"
28615 "\n"
28616 msgstr ""
28617
28618 # type: textblock
28619 #: ../tools/virt-make-fs.pl:49
28620 msgid ""
28621 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28622 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28623 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28624 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28625 "you want to attach these filesystems to existing virtual machines (eg. to "
28626 "import large amounts of read-only data to a VM)."
28627 msgstr ""
28628
28629 # type: textblock
28630 #: ../tools/virt-make-fs.pl:57
28631 msgid "Basic usage is:"
28632 msgstr ""
28633
28634 # type: verbatim
28635 #: ../tools/virt-make-fs.pl:59
28636 #, no-wrap
28637 msgid ""
28638 " virt-make-fs input output\n"
28639 "\n"
28640 msgstr ""
28641
28642 # type: textblock
28643 #: ../tools/virt-make-fs.pl:61
28644 msgid ""
28645 "where C<input> is either a directory containing files that you want to add, "
28646 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28647 "C<output> is a disk image.  The input type is detected automatically.  The "
28648 "output disk image defaults to a raw ext2 image unless you specify extra "
28649 "flags (see L</OPTIONS> below)."
28650 msgstr ""
28651
28652 # type: =head2
28653 #: ../tools/virt-make-fs.pl:67
28654 msgid "EXTRA SPACE"
28655 msgstr ""
28656
28657 # type: textblock
28658 #: ../tools/virt-make-fs.pl:69
28659 msgid ""
28660 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28661 "the files that it contains, but might have extra space.  Depending on how "
28662 "you are going to use the output, you might think this extra space is wasted "
28663 "and want to minimize it, or you might want to leave space so that more files "
28664 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28665 "but you can use the C<--size> flag to leave space in the filesystem if you "
28666 "want it."
28667 msgstr ""
28668
28669 # type: textblock
28670 #: ../tools/virt-make-fs.pl:77
28671 msgid ""
28672 "An alternative way to leave extra space but not make the output image any "
28673 "bigger is to use an alternative disk image format (instead of the default "
28674 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28675 "image format (check your hypervisor supports this before using it).  This "
28676 "allows you to choose a large C<--size> but the extra space won't actually be "
28677 "allocated in the image until you try to store something in it."
28678 msgstr ""
28679
28680 # type: textblock
28681 #: ../tools/virt-make-fs.pl:85
28682 msgid ""
28683 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28684 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28685 "resize to build another image from scratch."
28686 msgstr ""
28687
28688 # type: =head3
28689 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28690 #: ../tools/virt-make-fs.pl:142
28691 msgid "EXAMPLE"
28692 msgstr ""
28693
28694 # type: verbatim
28695 #: ../tools/virt-make-fs.pl:91
28696 #, no-wrap
28697 msgid ""
28698 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28699 "\n"
28700 msgstr ""
28701
28702 # type: =head2
28703 #: ../tools/virt-make-fs.pl:93
28704 msgid "FILESYSTEM TYPE"
28705 msgstr ""
28706
28707 # type: textblock
28708 #: ../tools/virt-make-fs.pl:95
28709 msgid ""
28710 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28711 "libguestfs supports can be used (but I<not> read-only formats like "
28712 "ISO9660).  Here are some of the more common choices:"
28713 msgstr ""
28714
28715 # type: =item
28716 #: ../tools/virt-make-fs.pl:101
28717 msgid "I<ext3>"
28718 msgstr ""
28719
28720 # type: textblock
28721 #: ../tools/virt-make-fs.pl:103
28722 msgid ""
28723 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28724 "you are not going to use the filesystem in a way that requires the journal, "
28725 "then this is just wasted overhead."
28726 msgstr ""
28727
28728 # type: =item
28729 #: ../tools/virt-make-fs.pl:107
28730 msgid "I<ntfs> or I<vfat>"
28731 msgstr ""
28732
28733 # type: textblock
28734 #: ../tools/virt-make-fs.pl:109
28735 msgid "Useful if exporting data to a Windows guest."
28736 msgstr ""
28737
28738 # type: textblock
28739 #: ../tools/virt-make-fs.pl:111
28740 msgid ""
28741 "I<Note for vfat>: The tar archive or local directory must only contain files "
28742 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28743 "program running within libguestfs is unable to change the ownership of non-"
28744 "root files, since vfat itself does not support this."
28745 msgstr ""
28746
28747 # type: =item
28748 #: ../tools/virt-make-fs.pl:116
28749 msgid "I<minix>"
28750 msgstr ""
28751
28752 # type: textblock
28753 #: ../tools/virt-make-fs.pl:118
28754 msgid ""
28755 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28756 "total filesystem size."
28757 msgstr ""
28758
28759 # type: verbatim
28760 #: ../tools/virt-make-fs.pl:125
28761 #, no-wrap
28762 msgid ""
28763 " virt-make-fs --type=minix input minixfs.img\n"
28764 "\n"
28765 msgstr ""
28766
28767 # type: =head2
28768 #: ../tools/virt-make-fs.pl:127
28769 msgid "TO PARTITION OR NOT TO PARTITION"
28770 msgstr ""
28771
28772 # type: textblock
28773 #: ../tools/virt-make-fs.pl:129
28774 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28775 msgstr ""
28776
28777 # type: textblock
28778 #: ../tools/virt-make-fs.pl:131
28779 msgid ""
28780 "Adding a partition can make the disk image more compatible with certain "
28781 "virtualized operating systems which don't expect to see a filesystem "
28782 "directly located on a block device (Linux doesn't care and will happily "
28783 "handle both types)."
28784 msgstr ""
28785
28786 # type: textblock
28787 #: ../tools/virt-make-fs.pl:136
28788 msgid ""
28789 "On the other hand, if you have a partition table then the output image is no "
28790 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28791 "directly on a partitioned disk image.  (However libguestfs tools such as "
28792 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28793 msgstr ""
28794
28795 # type: textblock
28796 #: ../tools/virt-make-fs.pl:144
28797 msgid "Add an MBR partition:"
28798 msgstr ""
28799
28800 # type: verbatim
28801 #: ../tools/virt-make-fs.pl:146
28802 #, no-wrap
28803 msgid ""
28804 " virt-make-fs --partition -- input disk.img\n"
28805 "\n"
28806 msgstr ""
28807
28808 # type: textblock
28809 #: ../tools/virt-make-fs.pl:148
28810 msgid ""
28811 "If the output disk image could be terabyte-sized or larger, it's better to "
28812 "use an EFI/GPT-compatible partition table:"
28813 msgstr ""
28814
28815 # type: verbatim
28816 #: ../tools/virt-make-fs.pl:151
28817 #, no-wrap
28818 msgid ""
28819 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28820 "\n"
28821 msgstr ""
28822
28823 # type: textblock
28824 #: ../tools/virt-make-fs.pl:179
28825 msgid "Enable debugging information."
28826 msgstr ""
28827
28828 # type: =item
28829 #: ../tools/virt-make-fs.pl:185
28830 msgid "B<--size=E<lt>NE<gt>>"
28831 msgstr ""
28832
28833 # type: =item
28834 #: ../tools/virt-make-fs.pl:187
28835 msgid "B<--size=+E<lt>NE<gt>>"
28836 msgstr ""
28837
28838 # type: =item
28839 #: ../tools/virt-make-fs.pl:189
28840 msgid "B<-s E<lt>NE<gt>>"
28841 msgstr ""
28842
28843 # type: =item
28844 #: ../tools/virt-make-fs.pl:191
28845 msgid "B<-s +E<lt>NE<gt>>"
28846 msgstr ""
28847
28848 # type: textblock
28849 #: ../tools/virt-make-fs.pl:193
28850 msgid ""
28851 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28852 msgstr ""
28853
28854 # type: textblock
28855 #: ../tools/virt-make-fs.pl:196
28856 msgid ""
28857 "If this option is I<not> given, then the output image will be just large "
28858 "enough to contain all the files, with not much wasted space."
28859 msgstr ""
28860
28861 # type: textblock
28862 #: ../tools/virt-make-fs.pl:199
28863 msgid ""
28864 "To choose a fixed size output disk, specify an absolute number followed by b/"
28865 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28866 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28867 "files, else you will get an error."
28868 msgstr ""
28869
28870 # type: textblock
28871 #: ../tools/virt-make-fs.pl:204
28872 msgid ""
28873 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28874 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28875 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28876 "the input files, and (approximately) an extra 200 MB free space."
28877 msgstr ""
28878
28879 # type: textblock
28880 #: ../tools/virt-make-fs.pl:210
28881 msgid ""
28882 "Note that virt-make-fs estimates free space, and therefore will not produce "
28883 "filesystems containing precisely the free space requested.  (It is much more "
28884 "expensive and time-consuming to produce a filesystem which has precisely the "
28885 "desired free space)."
28886 msgstr ""
28887
28888 # type: =item
28889 #: ../tools/virt-make-fs.pl:219
28890 msgid "B<--format=E<lt>fmtE<gt>>"
28891 msgstr ""
28892
28893 # type: =item
28894 #: ../tools/virt-make-fs.pl:221
28895 msgid "B<-F E<lt>fmtE<gt>>"
28896 msgstr ""
28897
28898 # type: textblock
28899 #: ../tools/virt-make-fs.pl:223
28900 msgid "Choose the output disk image format."
28901 msgstr ""
28902
28903 # type: textblock
28904 #: ../tools/virt-make-fs.pl:225
28905 msgid "The default is C<raw> (raw disk image)."
28906 msgstr ""
28907
28908 # type: textblock
28909 #: ../tools/virt-make-fs.pl:227
28910 msgid ""
28911 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28912 "that would really make sense here is C<qcow2>."
28913 msgstr ""
28914
28915 # type: =item
28916 #: ../tools/virt-make-fs.pl:234
28917 msgid "B<--type=E<lt>fsE<gt>>"
28918 msgstr ""
28919
28920 # type: =item
28921 #: ../tools/virt-make-fs.pl:236
28922 msgid "B<-t E<lt>fsE<gt>>"
28923 msgstr ""
28924
28925 # type: textblock
28926 #: ../tools/virt-make-fs.pl:238
28927 msgid "Choose the output filesystem type."
28928 msgstr ""
28929
28930 # type: textblock
28931 #: ../tools/virt-make-fs.pl:240
28932 msgid "The default is C<ext2>."
28933 msgstr ""
28934
28935 # type: textblock
28936 #: ../tools/virt-make-fs.pl:242
28937 msgid ""
28938 "Any filesystem which is supported read-write by libguestfs can be used here."
28939 msgstr ""
28940
28941 # type: =item
28942 #: ../tools/virt-make-fs.pl:249
28943 msgid "B<--partition>"
28944 msgstr ""
28945
28946 # type: =item
28947 #: ../tools/virt-make-fs.pl:251
28948 msgid "B<--partition=E<lt>parttypeE<gt>>"
28949 msgstr ""
28950
28951 # type: textblock
28952 #: ../tools/virt-make-fs.pl:253
28953 msgid ""
28954 "If specified, this flag adds an MBR partition table to the output disk image."
28955 msgstr ""
28956
28957 # type: textblock
28958 #: ../tools/virt-make-fs.pl:256
28959 msgid ""
28960 "You can change the partition table type, eg. C<--partition=gpt> for large "
28961 "disks."
28962 msgstr ""
28963
28964 # type: textblock
28965 #: ../tools/virt-make-fs.pl:259
28966 msgid ""
28967 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28968 "might consider the next parameter to be the partition type.  For example:"
28969 msgstr ""
28970
28971 # type: verbatim
28972 #: ../tools/virt-make-fs.pl:263
28973 #, no-wrap
28974 msgid ""
28975 " virt-make-fs --partition input.tar ...\n"
28976 "\n"
28977 msgstr ""
28978
28979 # type: textblock
28980 #: ../tools/virt-make-fs.pl:265
28981 msgid ""
28982 "would cause virt-make-fs to think you wanted to use a partition type of "
28983 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28984 "dash) between options and the input file argument:"
28985 msgstr ""
28986
28987 # type: verbatim
28988 #: ../tools/virt-make-fs.pl:269
28989 #, no-wrap
28990 msgid ""
28991 " virt-make-fs --partition -- input.tar ...\n"
28992 "\n"
28993 msgstr ""
28994
28995 # type: textblock
28996 #: ../tools/virt-make-fs.pl:536
28997 msgid ""
28998 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28999 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29000 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29001 msgstr ""
29002
29003 # type: verbatim
29004 #: ../tools/virt-make-fs.pl:553
29005 #, no-wrap
29006 msgid ""
29007 " export LIBGUESTFS_DEBUG=1\n"
29008 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29009 "\n"
29010 msgstr ""
29011
29012 # type: textblock
29013 #: ../tools/virt-make-fs.pl:556
29014 msgid ""
29015 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29016 "redhat.com/>"
29017 msgstr ""
29018
29019 # type: textblock
29020 #: ../tools/virt-list-partitions.pl:32
29021 msgid ""
29022 "virt-list-partitions - List partitions in a virtual machine or disk image"
29023 msgstr ""
29024
29025 # type: verbatim
29026 #: ../tools/virt-list-partitions.pl:36
29027 #, no-wrap
29028 msgid ""
29029 " virt-list-partitions [--options] domname\n"
29030 "\n"
29031 msgstr ""
29032
29033 # type: verbatim
29034 #: ../tools/virt-list-partitions.pl:38
29035 #, no-wrap
29036 msgid ""
29037 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29038 "\n"
29039 msgstr ""
29040
29041 # type: textblock
29042 #: ../tools/virt-list-partitions.pl:45
29043 msgid ""
29044 "C<virt-list-partitions> is a command line tool to list the partitions that "
29045 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29046 "first step to using L<virt-resize(1)>."
29047 msgstr ""
29048
29049 # type: textblock
29050 #: ../tools/virt-list-partitions.pl:50
29051 msgid ""
29052 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29053 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29054 "> tool."
29055 msgstr ""
29056
29057 # type: =item
29058 #: ../tools/virt-list-partitions.pl:107
29059 msgid "B<-h> | B<--human-readable>"
29060 msgstr ""
29061
29062 # type: textblock
29063 #: ../tools/virt-list-partitions.pl:109
29064 msgid "Show sizes in human-readable form (eg. \"1G\")."
29065 msgstr ""
29066
29067 # type: textblock
29068 #: ../tools/virt-list-partitions.pl:117
29069 msgid ""
29070 "With this option, C<virt-list-partitions> displays the type and size of each "
29071 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29072 msgstr ""
29073
29074 # type: =item
29075 #: ../tools/virt-list-partitions.pl:124
29076 msgid "B<-t> | B<--total>"
29077 msgstr ""
29078
29079 # type: textblock
29080 #: ../tools/virt-list-partitions.pl:126
29081 msgid ""
29082 "Display the total size of each block device (as a separate row or rows)."
29083 msgstr ""
29084
29085 # type: textblock
29086 #: ../tools/virt-list-partitions.pl:259
29087 msgid ""
29088 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
29089 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
29090 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29091 msgstr ""